r4572@vps: verhaegs | 2007-04-27 08:50:47 -0400
[cake.git] / arch / ppc-all / include / mmakefile.src
blob0f0c2f35839adae2fd290d04a3162033a933588a
1 # $Id$
2 include $(TOP)/config/make.cfg
4 INCLUDE_FILES := aros/ppc/cpu.h
5 %copy_includes
7 INCLUDE_FILES := jmpdefs.h
8 %copy_includes mmake=includes-common-ppc compiler=host
10 GENINC          := $(TOOLDIR)/geninc-ppc$(HOST_EXE_SUFFIX)
11 USER_INCLUDES   := -I$(GENINCDIR)
12 MACHINE_H       := $(GENINCDIR)/aros/machine.h
14 # The dependancies here are for compiling geninc.c
15 #MM kernel-ppc-machine_i : \
16 #MM     kernel-exec-includes compiler-includes compiler-arossuport-includes
18 #MM
19 kernel-ppc-machine_i : machine.i
21 #MM
22 clean::
23         $(RM) machine.i $(GENINC)
25 GENINC_CFLAGS := $(OS_CFLAGS) -I$(GENINCDIR) $(HOST_CFLAGS)
27 $(GENINC) : geninc.c
28         @echo "CFLAGS=$(GENINC_CFLAGS)"
29         @echo "Creating geninc..."
30         @$(HOST_CC) $(GENINC_CFLAGS) -o $@ $<
32 machine.i: $(GENINC) $(GENINCDIR)/aros/cpu.h $(GENINCDIR)/aros/ppc/cpu.h
33         $(GENINC) > machine.i
35 %common