3 include $(SRCDIR)/config/aros.cfg
5 GENINC := $(TOOLDIR)/geninc-ppc-native$(HOST_EXE_SUFFIX)
6 OS_INCLUDES := -I$(GENINCDIR)
7 MACHINE_H := $(GENINCDIR)/aros/machine.h
8 INCFILES := $(GENINCDIR)/aros/machine.h \
9 $(AROS_INCLUDES)/aros/machine.h \
11 #MM- AROS-amiga : setup-amiga includes compiler kernel
14 #MM- kernel-amiga : kernel-exec-amiga \
15 #MM kernel-aros-linklib
18 #MM- setup-amiga : setup-exec-amiga-$(CPU)
21 #MM- includes-amiga : includes-copy includes-amiga-$(CPU)
23 # Setup the CLIB metatargets...
24 #MM- setup-clib-amiga : setup-clib-amiga-$(CPU)
26 #MM- clib-amiga : clib-amiga-$(CPU)
28 #MM- alib-amiga : alib-amiga-$(CPU)
30 #MM- kernel-exec-amiga : exec-amiga-$(CPU) kernel-exec-linklib
33 #MM kernel-exec-amiga-ppc :
34 kernel-exec-amiga-ppc :
35 %add_objects rom/boot/libexec
37 #MM kernel-aros-amiga-ppc :
38 kernel-aros-amiga-ppc :
39 %add_objects rom/boot/libaros
42 includes-amiga-ppc : $(INCFILES) machine.i
47 -$(RM) $(MACHINE_H) $(DISTMACHINE_H) $(TESTS) machine.i $(GENINC)
49 $(AROS_INCLUDES)/aros/%.h : %.h
50 %mkdirs_q $(AROS_INCLUDES)/aros
53 $(AROS_INCLUDES)/asm/%.h : %.h
54 %mkdirs_q $(AROS_INCLUDES)/asm
57 $(AROS_INCLUDES)/exec/%.h : %.h
58 %mkdirs_q $(AROS_INCLUDES)/exec
61 $(AROS_INCLUDES)/%.h : %.h
62 %mkdirs_q $(AROS_INCLUDES)
65 $(GENINCDIR)/aros/%.h : %.h
66 %mkdirs_q $(GENINCDIR)/aros
69 $(GENINCDIR)/asm/%.h : %.h
70 %mkdirs_q $(GENINCDIR)/asm
73 $(GENINCDIR)/exec/%.h : %.h
74 %mkdirs_q $(GENINCDIR)/exec
77 $(GENINCDIR)/%.h : %.h
78 %mkdirs_q $(GENINCDIR)
81 machine.i: $(GENINC) $(MACHINE_H)
85 @echo "CFLAGS=$(CFLAGS)"
86 @echo "Creating geninc..."
87 @$(HOST_CC) $(CFLAGS) -o $@ $<
89 build: build.c $(GENINCDIR)/aros/boot.h
90 @$(HOST_CC) $(CFLAGS) -D__BFD__ -o build $<