2 include $(TOP)/config/make.cfg
6 aros/preprocessor/facilities \
7 aros/preprocessor/variadic \
38 INCLUDES := $(foreach d,$(INCSUBDIRS),$(wildcard $(d)/*.h) $(wildcard $(d)/*.hpp))
39 ARCHINCDIR := $(SRCDIR)/arch/$(CPU)-$(ARCH)/include/
40 ARCH_INCLUDES := $(subst $(ARCHINCDIR),,$(foreach d,$(addprefix $(ARCHINCDIR),$(INCSUBDIRS)),$(wildcard $(d)/*.h) $(wildcard $(d)/*.hpp)))
41 INCLUDES := $(filter-out rexx/rexxcall-%.h $(ARCH_INCLUDES),$(INCLUDES))
42 DEST_INCLUDES := $(foreach f,$(INCLUDES),$(AROS_INCLUDES)/$(f))
43 GEN_INCLUDES := $(foreach f,$(INCLUDES),$(GENINCDIR)/$(f))
44 INCL_DIRS := $(foreach dir,$(INCSUBDIRS),$(AROS_INCLUDES)/$(dir)) \
45 $(foreach dir,$(INCSUBDIRS),$(GENINCDIR)/$(dir))
47 #MM- includes : includes-generate
48 #MM- includes-generate : includes-generate-deps
49 #MM- includes-generate-deps : includes-copy includes-$(ARCH)-$(CPU)
50 #MM- includes-copy : compiler-includes includes-copy-$(ARCH)-$(CPU)
52 #MM- includes-$(ARCH)-$(CPU) : \
53 #MM includes-copy-$(ARCH)-$(CPU) \
54 #MM includes-generate-$(ARCH)-$(CPU)
55 #MM- includes-generate-$(ARCH)-$(CPU) : includes-copy-$(ARCH)-$(CPU)
56 #MM- includes-copy-$(ARCH)-$(CPU) :
59 compiler-includes : setup $(DEST_INCLUDES) $(GEN_INCLUDES)
61 ifeq ($(TARGET_CPU),m68k)
62 $(AROS_INCLUDES)/rexx/rexxcall.h : rexx/rexxcall-m68k.h
65 $(GENINCDIR)/rexx/rexxcall.h : rexx/rexxcall-m68k.h
69 $(AROS_INCLUDES)/%.h : %.h
72 $(GENINCDIR)/%.h : %.h
75 $(AROS_INCLUDES)/%.hpp : %.hpp
78 $(GENINCDIR)/%.hpp : %.hpp
88 -$(RM) $(AROS_INCLUDES) $(GENINCDIR)