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