annotate Makefile.raspberryPi @ 935:7672a37e7545 default tip

Raspbery PI ARM support begin
author kono
date Sat, 24 Dec 2016 03:02:57 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
935
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
1 CC = gcc
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
2 # -O3
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
3 # CFLAGS = -g -Wall -I.
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
4 # CFLAGS = -g -Wall -I. -pg -fprofile-arcs -ftest-coverage
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
5 # LDFLAGS = -pg
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
6 # for Linux Zaurus
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
7 CFLAGS = -fsigned-char -pipe -g -I. -I/home/zaurus/develop/include -DUSE_CODE_KEYWORD
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
8 CFLAGS1 = -g -pipe -I. -fsigned-char -DUSE_CODE_KEYWORD
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
9 BASE=0
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
10 STAGE=1
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
11 MFLAGS=$(MFALGS) BASE=$(BASE) STAGE=$(STAGE)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
12 ARCH=arm
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
13 MC=mc-$(ARCH)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
14 MLIB = -lm
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
15 PRINTF= # printf.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
16 CONVERTER=conv/c.o conv/null.o conv/c2cbc.o conv/cbc2c.o
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
17 COMPLIB = mc-parse.o mc-codegen.o mc-switch.o mc-macro.o mc-tree.o mc-inline.o
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
18 # CODE=mc-code-ia32.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
19 CODE=mc-code-$(ARCH).c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
20 #
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
21 TARGET=test/simp
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
22
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
23 all: mc
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
24
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
25 mc: mc-include.c mc-$(ARCH)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
26 cp mc-$(ARCH) mc
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
27
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
28 TAGS:
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
29 ctags mc-code-powerpc.c mc-code.h mc-codegen.c mc-codegen.h \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
30 mc-macro.c \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
31 mc-parse.c mc-tree.c mc-switch.c mc-switch.h \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
32 mc.h conv/c.c conv/c.h \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
33 mc-inline.h mc-inline.c \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
34 conv/conv.h conv/convdef.h conv/null.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
35
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
36 predefined:
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
37 $(CC) -xc -E -dM /dev/null
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
38
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
39
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
40 mc-powerpc : mc-code-powerpc.o $(COMPLIB) $(CONVERTER)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
41 $(CC) $(LDFLAGS) -g mc-code-powerpc.o $(COMPLIB) $(CONVERTER) -o $@
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
42
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
43 mc-ia32 : mc-code-ia32.o $(COMPLIB) $(CONVERTER)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
44 $(CC) $(LDFLAGS) -g mc-code-ia32.o $(COMPLIB) $(CONVERTER) -o $@
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
45
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
46 mc-mips : mc-code-mips.o $(COMPLIB) $(CONVERTER)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
47 $(CC) $(LDFLAGS) -g mc-code-mips.o $(COMPLIB) $(CONVERTER) -o $@
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
48
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
49 mc-arm : mc-code-arm.o $(COMPLIB) $(CONVERTER)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
50 $(CC) $(LDFLAGS) -g mc-code-arm.o $(COMPLIB) $(CONVERTER) -o $@
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
51
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
52 conv/conv.h: conv_func.tbl tools/conv_func.pl
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
53 perl tools/conv_func.pl
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
54 conv/convdef.h: conv_func.tbl tools/conv_func.pl
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
55 perl tools/conv_func.pl
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
56 conv/null.c: conv_func.tbl tools/conv_func.pl
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
57 perl tools/conv_func.pl
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
58
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
59 mc-include.c: conv/conv.h
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
60 perl tools/find-gcc-include-path -l $(CC) > mc-include.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
61
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
62 mc.h-new:
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
63 perl tools/mc-h-renum.pl mc.h > mc.h.1
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
64 mv mc.h.1 mc.h
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
65
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
66 check-all: check-all-c check-all-code
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
67
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
68 check-all-c:
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
69 make check TARGET=test/basic
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
70 make check-inline TARGET=test/basic
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
71 make check TARGET=test/call
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
72 make check TARGET=test/fact0
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
73 make check TARGET=test/float
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
74 make check TARGET=test/ifdef
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
75 make check TARGET=test/int
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
76 make check TARGET=test/macro
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
77 make check TARGET=test/regargs
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
78 make check TARGET=test/short
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
79 make check TARGET=test/simp
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
80 make check TARGET=test/simp0
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
81 make check TARGET=test/simp1
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
82 make check TARGET=test/static
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
83 make check TARGET=test/tmp
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
84 make check TARGET=test/tmp10
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
85 make check TARGET=test/tmp11
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
86 make check TARGET=test/tmp12
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
87 make check TARGET=test/tmp5
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
88 make check TARGET=test/tmp7
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
89 make check TARGET=test/tmp8
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
90 make check TARGET=test/tmp9
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
91 make check TARGET=test/enum
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
92 make check TARGET=test/obsf
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
93 make check TARGET=test/obsf2
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
94 make check TARGET=test/long
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
95 make check TARGET=test/tstdarg
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
96 make check TARGET=test/switch
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
97 make check TARGET=test/strinit
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
98 make check TARGET=test/code-gen-all
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
99 make check-inline TARGET=test/code-gen-all
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
100 make check TARGET=test/bitfield
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
101 make check TARGET=test/bitfield1
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
102 make check-inline TARGET=test/bitfield1
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
103 make check TARGET=test/cext
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
104 make check TARGET=test/const
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
105 make check TARGET=test/void_code
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
106 make check TARGET=test/putenemy
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
107 make check TARGET=test/inline
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
108 make check TARGET=test/offset
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
109 make check TARGET=test/ps2
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
110 make check TARGET=test/multi
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
111 # make check TARGET=test/scope STDFLAG="-std=gnu99"
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
112 # make check-inline TARGET=test/scope STDFLAG="-std=gnu99"
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
113 #MK =-make
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
114 MK=
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
115 check-all-code:
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
116 make check-code$(MK) TARGET=test/arg
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
117 make check-code$(MK) TARGET=test/conv
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
118 make check-code$(MK) TARGET=test/conv1
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
119 make check-code$(MK) TARGET=test/fact-a
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
120 make check-code$(MK) TARGET=test/fact
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
121 make check-code$(MK) TARGET=test/goto
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
122 make check-code$(MK) TARGET=test/test1
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
123 make check-code$(MK) TARGET=test/test2
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
124 make check-code$(MK) TARGET=test/tmpa
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
125 make check-code$(MK) TARGET=test/tmp1
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
126 make check-code$(MK) TARGET=test/tmp2
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
127 make check-code$(MK) TARGET=test/tmp4
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
128 make check-code$(MK) TARGET=test/tmp6
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
129 make check-code$(MK) TARGET=test/tmpb
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
130 make check-code$(MK) TARGET=test/scope
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
131 make check-code$(MK) TARGET=test/throw
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
132 make check-code$(MK) TARGET=test/too-long-argument
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
133
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
134 check-nkf:
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
135 ( cd nkf203; $(CC) -g -o nkf1 nkf.c utf8tbl.c )
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
136 ( cd nkf203; ../mc-$(ARCH) -s nkf.c utf8tbl.c )
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
137 ( cd nkf203; $(CC) -g -o nkf nkf.s utf8tbl.s )
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
138 ( cd nkf203; perl test.pl )
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
139
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
140 # -./$(MC) -Itest/ -s $(TARGET).c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
141
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
142 check: mc $(MC) $(TARGET).c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
143 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
144 -./b.out > $(TARGET).gcc.out
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
145 -./$(MC) -s $(TARGET).c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
146 -$(CC) $(TARGET).s $(MLIB)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
147 -./a.out > $(TARGET).$(MC).out
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
148 -diff $(TARGET).gcc.out $(TARGET).$(MC).out
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
149
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
150 check-inline: mc $(MC) $(TARGET).c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
151 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
152 -./b.out > $(TARGET).gcc.out
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
153 -./$(MC) -s -DINLINE=inline $(TARGET).c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
154 -$(CC) $(TARGET).s $(MLIB)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
155 -./a.out > $(TARGET).$(MC).out
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
156 -diff $(TARGET).gcc.out $(TARGET).$(MC).out
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
157
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
158 check-code: mc $(MC)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
159 -./$(MC) -s $(TARGET).c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
160 -$(CC) $(TARGET).s $(MLIB)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
161 -./a.out > $(TARGET).$(MC).out
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
162 -diff $(TARGET).code-out $(TARGET).$(MC).out
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
163 check-code-make: mc $(MC)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
164 -./$(MC) -s $(TARGET).c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
165 -$(CC) $(TARGET).s $(MLIB)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
166 -./a.out > $(TARGET).code-out
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
167
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
168 test/code-gen-all.c: test/code-gen.pl test/code-gen.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
169 perl test/code-gen.pl < test/code-gen.c > test/code-gen-all.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
170
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
171 incpri:
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
172 perl tools/incpri.pl test/*.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
173
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
174 tags: tags-$(ARCH)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
175
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
176 tags-$(ARCH):
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
177 ctags mc.h mc-code.h mc-code-$(ARCH).c mc-codegen.c mc-codegen.h \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
178 mc-parse.c mc-tree.c \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
179 conv/c.c conv/c.h \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
180 conv/conv.h conv/convdef.h
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
181
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
182 tar :
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
183 make clean
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
184 tar cBf - . | gzip > ../comp.tgz
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
185
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
186 depend : mc-include.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
187 makedepend mc-code-ia32.c mc-code.h mc-codegen.c mc-codegen.h \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
188 mc-parse.c mc-tree.c mc-switch.c mc-switch.h mc.h \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
189 mc-inline.c mc-macro.c mc-macro.h mc-parse.h \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
190 conv/c.c conv/c.h conv/c2cbc.c conv/c2cbc.h conv/cbc2c.c \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
191 conv/cbc2c.h conv/conv.h conv/convdef.h conv/null.c conv/null.h \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
192 mc-code-arm.c \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
193 mc-code-powerpc.c \
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
194 mc-code-mips.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
195
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
196 clean :
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
197 -rm -f mc mc-ia32 mc-powerpc mc-mips mc-arm *.bak *.s *.o *.cc mc mc1 mc2 a.out *~ core* */*.o *.bak test/*.s test/*.cc test/*.o test/*.bak test/*~ conv/*.s conv/*.cc conv/*.o conv/*.bak conv/*~ *.out */*.out *.i */*.i mc-include.h
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
198
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
199 mc1 : b00.s b01.s mc-codegen.o mc-tree.o mc-switch.o mc-macro.o mc-inline.o $(CONVERTER)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
200 $(CC) -g -o $@ $(PRINTF) b00.s b01.s mc-codegen.o mc-tree.o mc-switch.o mc-macro.o mc-inline.o $(CONVERTER)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
201
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
202 mc2 : b00.s b01.s b02.s b03.s mc-macro.o mc-inline.o $(CONVERTER)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
203 $(CC) -g -o $@ $(PRINTF) b00.s b01.s b02.s b03.s b04.s mc-macro.o mc-inline.o $(CONVERTER)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
204
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
205 b00.s : mc-parse.c $(MC)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
206 ./$(MC) -s -ob00.s mc-parse.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
207 b01.s : $(CODE) $(MC)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
208 ./$(MC) -s -ob01.s $(CODE)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
209 b02.s : mc-codegen.c $(MC)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
210 ./$(MC) -s -ob02.s mc-codegen.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
211 b03.s : mc-tree.c $(MC)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
212 ./$(MC) -s -ob03.s mc-tree.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
213 b04.s : mc-switch.c $(MC)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
214 ./$(MC) -s -ob04.s mc-switch.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
215
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
216 b10.s : mc-parse.c mc1
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
217 ./mc1 -s -ob10.s mc-parse.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
218 b11.s : $(CODE) $(PRINTF) mc1
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
219 ./mc1 -s -ob11.s $(CODE)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
220 b12.s : mc-codegen.c mc1
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
221 ./mc1 -s -ob12.s mc-codegen.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
222 b13.s : mc-tree.c mc1
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
223 ./mc1 -s -ob13.s mc-tree.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
224 b14.s : mc-switch.c mc1
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
225 ./mc1 -s -ob14.s mc-switch.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
226
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
227 b20.s : mc-parse.c mc2
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
228 ./mc2 -s -ob20.s mc-parse.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
229 b21.s : $(CODE) $(PRINTF) mc2
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
230 ./mc2 -s -ob21.s $(CODE)
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
231 b22.s : mc-codegen.c mc2
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
232 ./mc2 -s -ob22.s mc-codegen.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
233 b23.s : mc-tree.c mc2
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
234 ./mc2 -s -ob23.s mc-tree.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
235 b24.s : mc-switch.c mc1
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
236 ./mc2 -s -ob24.s mc-switch.c
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
237
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
238 diff : b00.s b01.s b02.s b03.s b04.s b10.s b11.s b12.s b13.s b14.s
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
239 -diff b00.s b10.s
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
240 -diff b01.s b11.s
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
241 -diff b02.s b12.s
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
242 -diff b03.s b13.s
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
243 -diff b04.s b14.s
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
244
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
245 diff2 : b00.s b01.s b02.s b03.s b04.s b20.s b21.s b22.s b23.s b24.s
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
246 -diff b00.s b20.s
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
247 -diff b01.s b21.s
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
248 -diff b02.s b22.s
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
249 -diff b03.s b23.s
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
250 -diff b04.s b24.s
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
251
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
252
7672a37e7545 Raspbery PI ARM support begin
kono
parents:
diff changeset
253 # DO NOT DELETE