added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / arch / .unmaintained / arm-all / exec / mmakefile.src
blob6ab7b4553222cb6a2639de9e8af2a5f5f89433ab
1 # $Id$
2 include $(TOP)/config/make.cfg
4 OBJDIR          := $(OSGENDIR)/exec
5 OS_INCLUDES     := -I$(GENINCDIR)
6 CFLAGS2         := $(CFLAGS) -g -I.. -I$(TOP)/rom/exec
7 CFLAGS3         := $(OS_INCLUDES) -fomit-frame-pointer -O6
8 AFLAGS2         := $(AFLAGS) -I.. -I$(TOP)/rom/exec -I$(GENINCDIR)
9 TESTS           :=
12 FILES :=  \
13         cause \
14         disable \
15         detect_memory \
16         detect_memory_handlers \
17         enable \
18         idletask \
19         offsets \
20         preparecontext \
21         rawputchar \
22         setsr \
23         set_sp \
24         stackswap \
25         switchtouser \
26         sys_dispatch \
27         sys_swi_handler \
28         switch \
29         tools \
30         tools_asm
32 FINAL := \
33         coldreboot \
34         addintserver \
35         cause \
36         supervisor \
37         userstate \
38         superstate \
39         switchtouser \
40         traps
42 COREFILES := \
43         init \
44         core
46 FINAL_COREFILES := \
47         init \
48         execstubs \
49         core \
50         detect_memory
53 #MM
54 exec-generic-arm : $(foreach f,$(FILES), $(OBJDIR)/$(f).o) \
55         $(foreach f,$(COREFILES), $(OBJDIR)/$(f).o)
56         @$(NOP)
58 #MM
59 setup-exec-generic-arm :
60         %mkdirs_q $(OBJDIR)
61         %add_objects $(foreach f,$(FILES), rom/exec/$(f))
62         %add_objects $(foreach f,$(COREFILES), rom/exec/$(f))
63         %exclude_files $(foreach f,$(FILES), rom/exec/$(f))
66 #MM
67 includes-arm :
68         @$(NOP)
70 #MM
71 clean ::
72         -$(RM) $(TESTS)
74 $(OBJDIR)/offsets.o : offsets.c
75         %compile_q opt=$(CFLAGS3)
77 $(OBJDIR)/%.o : %.c
78         %compile_q opt=$(CFLAGS2)
80 $(OBJDIR)/%.o : %.s
81         %assemble_q opt=$(AFLAGS2)
83 $(OBJDIR)/%.d : %.c
84         %mkdepend_q
87 %common