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