3 include $(SRCDIR)/config/aros.cfg
4 CURDIR=config/m68k-emul
6 GENINC := $(TOOLDIR)/geninc-m68k-emul$(HOST_EXE_SUFFIX)
8 SPECIAL_CFLAGS =$(SHARED_CFLAGS) -I/usr/include -I$(TOP)/rom/exec
9 CLIBDIR = $(GENDIR)/compiler/clib
10 CFLAGS2 = $(SHARED_CFLAGS) $(CFLAGS)
11 AFLAGS2 = $(AFLAGS) -I..
13 SUBDIRS = exec clib utility
15 MACHINE_H = $(AROS_INCLUDES)/aros/machine.h
18 CFILES = $(wildcard $(foreach f,$(FILES),$(f).c))
19 DEPS = $(patsubst %.c,$(OSGENDIR)/%.d,$(CFILES))
23 all: machine.i subdirs
26 %subdirs_q text="Setting up" target=setup
27 %mkdirs_q $(OSGENDIR) $(CLIBDIR)
28 @echo "CFLAGS=$(CFLAGS)"
30 $(MACHINE_H): machine.h
34 -@$(RM) $(MACHINE_H) machine.i $(GENINC) $(TESTS)
36 machine.i: $(GENINC) $(MACHINE_H)
40 @echo "CFLAGS=$(CFLAGS)"
41 @echo "Creating geninc..."
42 @$(CC) $(CFLAGS) -o $@ $<
52 $(CC) -DTEST -I/usr/include $(CFLAGS) $< -o $@
54 $(CLIBDIR)/%.o: %.s machine.i
55 %assemble_q opt=$(AFLAGS2)
57 $(OSGENDIR)/%.o: %.s machine.i
58 %assemble_q opt=$(AFLAGS2)
61 # %compile_q opt=$(CFLAGS2)
63 #$(OSGENDIR)/%.d: %.c $(MACHINE_H)