added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / arch / .unmaintained / m68k-emul / utility / mmakefile.src
blobd3e3f56faef14df5abcaa78ac4980b991250fd42
1 # $Id$
2 TOP=../../..
4 include $(TOP)/config/make.cfg
6 FILES = \
7         sdivmod32 \
8         smult32 \
9         smult64 \
10         udivmod32 \
11         umult32 \
12         umult64 \
13         
15 OBJDIR= $(OSGENDIR)/utility
17 SPECIAL_CFLAGS= $(SHARED_CFLAGS) -I/usr/include -I..
18 CFLAGS2 = $(SHARED_CFLAGS) $(CFLAGS)
19 AFLAGS2 = $(AFLAGS) -I..
21 TESTS=
23 all: $(foreach f,$(FILES), $(OBJDIR)/$(f).o)
25 setup:
26         %mkdirs_q $(OBJDIR)
27         %add_objects $(foreach f,$(FILES), rom/utility/$(f))
28         %exclude_files $(foreach f,$(FILES), rom/utility/$(f))
30 clean::
31         $(RM) $(TESTS)
33 $(OBJDIR)/%.o : %.c
34         %compile_q opt=$(CFLAGS2)
36 $(OBJDIR)/%.o : %.s
37         %assemble_q opt=$(AFLAGS2)
39 $(OBJDIR)/%.d : %.c
40         %mkdepend_q
42 %common