config: fix build with external compiler by passing the sysroot where needed
[AROS.git] / arch / .unmaintained / m68k-emul / utility / mmakefile.src
blobb55f0c6e6bd3fea525301826b9efd315896c0721
1 # $Id$
3 include $(SRCDIR)/config/aros.cfg
5 FILES = \
6         sdivmod32 \
7         smult32 \
8         smult64 \
9         udivmod32 \
10         umult32 \
11         umult64 \
12         
14 OBJDIR= $(OSGENDIR)/utility
16 SPECIAL_CFLAGS= $(SHARED_CFLAGS) -I/usr/include -I..
17 CFLAGS2 = $(SHARED_CFLAGS) $(CFLAGS)
18 AFLAGS2 = $(AFLAGS) -I..
20 TESTS=
22 all: $(foreach f,$(FILES), $(OBJDIR)/$(f).o)
24 setup:
25         %mkdirs_q $(OBJDIR)
26         %add_objects $(foreach f,$(FILES), rom/utility/$(f))
27         %exclude_files $(foreach f,$(FILES), rom/utility/$(f))
29 clean::
30         $(RM) $(TESTS)
32 $(OBJDIR)/%.o : %.c
33         %compile_q opt=$(CFLAGS2)
35 $(OBJDIR)/%.o : %.s
36         %assemble_q opt=$(AFLAGS2)
38 $(OBJDIR)/%.d : %.c
39         %mkdepend_q
41 %common