1 # $Id: mmakefile.src 22639 2005-01-01 17:05:35Z verhaegs $
2 include $(TOP)/config/make.cfg
4 GENINC := $(TOOLDIR)/geninc-x86_64$(HOST_EXE_SUFFIX)
5 USER_INCLUDES := -I$(GENINCDIR)
6 MACHINE_H := $(GENINCDIR)/aros/machine.h
7 INCFILES := $(GENINCDIR)/aros/machine.h \
8 $(AROS_INCLUDES)/aros/machine.h \
11 # The dependancies here are for compiling geninc.c
12 #MM kernel-x86_64-machine_i : \
13 #MM kernel-exec-includes compiler-includes compiler-arossuport-includes
16 includes-common-x86_64 : $(INCFILES)
19 kernel-x86_64-machine_i : machine.i
23 $(RM) $(MACHINE_H) $(DISTMACHINE_H) $(TESTS) machine.i $(GENINC)
27 $(AROS_INCLUDES)/aros/%.h : %.h
28 %mkdirs_q $(AROS_INCLUDES)/aros
31 $(GENINCDIR)/aros/%.h : %.h
32 %mkdirs_q $(GENINCDIR)/aros
35 $(GENINCDIR)/%.h : %.h
36 %mkdirs_q $(GENINCDIR)
39 GENINC_CFLAGS := $(OS_CFLAGS) -I$(GENINCDIR) $(HOST_CFLAGS)
42 @echo "CFLAGS=$(GENINC_CFLAGS)"
43 @echo "Creating geninc..."
44 @$(HOST_CC) $(GENINC_CFLAGS) -o $@ $<
46 machine.i: $(GENINC) $(MACHINE_H)