config: fix build with external compiler by passing the sysroot where needed
[AROS.git] / arch / .unmaintained / m68k-emul / exec / mmakefile.src
blobd9ebeae6a18b95908e9a98db632b0cf362df8b4b
1 # $Id$
3 include $(SRCDIR)/config/aros.cfg
5 FILES = execstubs 
7 OBJDIR= $(OSGENDIR)/exec
9 SPECIAL_CFLAGS= $(SHARED_CFLAGS) -I/usr/include -I$(TOP)/rom/exec -I..
10 CFLAGS2 = $(SHARED_CFLAGS) $(CFLAGS)
11 AFLAGS2 = $(AFLAGS) -I..
13 TESTS=
15 all: $(foreach f,$(FILES), $(OBJDIR)/$(f).o)
17 setup:
18         %mkdirs_q $(OBJDIR)
19         %add_objects $(foreach f,$(FILES), rom/exec/$(f))
21 clean::
22         -@$(RM) $(TESTS)
24 $(OBJDIR)/%.o : %.c
25         %compile_q opt=$(CFLAGS2)
27 $(OBJDIR)/%.o : %.s
28         %assemble_q opt=$(AFLAGS2)
30 $(OBJDIR)/%.d : %.c
31         %mkdepend_q
33 %common