3 include $(TOP)/config/make.cfg
5 _INCLUDES := $(foreach f,$(shell ls *.[hi]), $(f)) \
6 $(foreach f,$(shell ls aros/*.[hi]), $(f)) \
7 $(foreach f,$(shell ls asm/*.[hi]), $(f)) \
8 $(foreach f,$(shell ls libcore/*.[hic]), $(f)) \
9 $(foreach f,$(shell ls inline/*.[hi]), $(f))
11 INCFILES := $(foreach f,$(_INCLUDES), $(AROS_INCLUDES)/$(f) $(GENINCDIR)/$(f))
13 DIRS := $(AROS_INCLUDES) $(GENINCDIR) \
14 $(foreach d, aros asm libcore inline, $(AROS_INCLUDES)/$(d) $(GENINCDIR)/$(d))
16 MACHINE_H := $(GENINCDIR)/aros/machine.h
19 includes-copy-ppc : setup-includes $(INCFILES) $(GENINCDIR)/sigcore.h
22 @$(FOR) dir in $(DIRS) ; do \
23 $(IF) $(TEST) ! -d "$$dir" ; then $(MKDIR) "$$dir" ; else true ; fi ; \
28 $(RM) $(MACHINE_H) $(DISTMACHINE_H) $(TESTS) machine.i $(GENINC)
30 $(AROS_INCLUDES)/% : %
36 # geninc is run on the host (which is incorrect...)
37 GENINC_CFLAGS := $(USER_CFLAGS) $(OS_CFLAGS) -I$(GENINCDIR) $(HOST_CFLAGS)
40 @echo "CFLAGS=$(GENINC_CFLAGS)"
41 @echo "Creating geninc..."
42 @$(HOST_CC) $(GENINC_CFLAGS) -o $@ $<
44 machine.i : $(GENINC) $(MACHINE_H)