Mercurial > hg > CbC > old > device
annotate Makefile.mips @ 500:0a4ca939f403
inline continue...
author | kono |
---|---|
date | Fri, 23 Dec 2005 14:27:32 +0900 |
parents | b6c10a4c0367 |
children | dc677ac7a744 |
rev | line source |
---|---|
495 | 1 # CC = gcc -std=c99 |
417 | 2 # -O3 |
3 CFLAGS = -g -Wall -I. | |
444 | 4 # CFLAGS = -g -Wall -I. -pg -fprofile-arcs -ftest-coverage |
5 # LDFLAGS = -pg | |
6 # for Linux Zaurus | |
7 # CFLAGS = -fsigned-char -pipe -g -I. -I/home/zaurus/develop/include | |
446 | 8 CFLAGS1 = -g -I. |
417 | 9 BASE=0 |
10 STAGE=1 | |
11 MFLAGS=$(MFALGS) BASE=$(BASE) STAGE=$(STAGE) | |
12 ARCH=mips | |
13 MC=mc-$(ARCH) | |
14 MLIB = -lm | |
15 PRINTF= # printf.c | |
16 CONVERTER=conv/c.o conv/null.o | |
17 # conv/c2cbc.o conv/cbc2c.o | |
471 | 18 COMPLIB = mc-parse.o mc-codegen.o mc-switch.o mc-macro.o mc-tree.o mc-inline.o |
417 | 19 # CODE=mc-code-ia32.c |
20 CODE=mc-code-$(ARCH).c | |
444 | 21 # |
22 TARGET=test/simp | |
417 | 23 |
444 | 24 all: mc mc-ia32 mc-powerpc mc-mips mc-arm |
417 | 25 |
26 mc: mc-$(ARCH) | |
27 cp mc-$(ARCH) mc | |
28 | |
29 TAGS: | |
30 ctags mc-code-powerpc.c mc-code.h mc-codegen.c mc-codegen.h \ | |
31 mc-macro.c \ | |
32 mc-parse.c mc-tree.c mc-switch.c mc-switch.h \ | |
33 mc.h conv/c.c conv/c.h \ | |
495 | 34 mc-inline.h mc-inline.c \ |
417 | 35 conv/conv.h conv/convdef.h conv/null.c |
36 | |
37 mc-powerpc : mc-code-powerpc.o $(COMPLIB) $(CONVERTER) | |
444 | 38 $(CC) $(LDFLAGS) -g mc-code-powerpc.o $(COMPLIB) $(CONVERTER) -o $@ |
417 | 39 |
40 mc-ia32 : mc-code-ia32.o $(COMPLIB) $(CONVERTER) | |
444 | 41 $(CC) $(LDFLAGS) -g mc-code-ia32.o $(COMPLIB) $(CONVERTER) -o $@ |
417 | 42 |
43 mc-mips : mc-code-mips.o $(COMPLIB) $(CONVERTER) | |
444 | 44 $(CC) $(LDFLAGS) -g mc-code-mips.o $(COMPLIB) $(CONVERTER) -o $@ |
45 | |
46 mc-arm : mc-code-arm.o $(COMPLIB) $(CONVERTER) | |
47 $(CC) $(LDFLAGS) -g mc-code-arm.o $(COMPLIB) $(CONVERTER) -o $@ | |
417 | 48 |
495 | 49 conv/conv.h: conv_func.tbl tools/conv_func.pl |
50 perl tools/conv_func.pl | |
51 conv/convdef.h: conv_func.tbl tools/conv_func.pl | |
52 perl tools/conv_func.pl | |
53 conv/null.c: conv_func.tbl tools/conv_func.pl | |
54 perl tools/conv_func.pl | |
417 | 55 |
56 mc.h-new: | |
495 | 57 perl tools/mc-h-renum.pl mc.h > mc.h.1 |
417 | 58 mv mc.h.1 mc.h |
59 | |
60 check-all: check-all-c check-all-code | |
61 | |
62 check-all-c: | |
63 make check TARGET=test/basic | |
64 make check TARGET=test/call | |
65 make check TARGET=test/fact0 | |
66 make check TARGET=test/float | |
67 make check TARGET=test/ifdef | |
68 make check TARGET=test/int | |
69 make check TARGET=test/macro | |
70 make check TARGET=test/regargs | |
71 make check TARGET=test/short | |
72 make check TARGET=test/simp | |
73 make check TARGET=test/simp0 | |
74 make check TARGET=test/simp1 | |
75 make check TARGET=test/static | |
76 make check TARGET=test/tmp | |
77 make check TARGET=test/tmp10 | |
78 make check TARGET=test/tmp11 | |
79 make check TARGET=test/tmp12 | |
80 make check TARGET=test/tmp5 | |
81 make check TARGET=test/tmp7 | |
82 make check TARGET=test/tmp8 | |
83 make check TARGET=test/tmp9 | |
84 make check TARGET=test/enum | |
85 make check TARGET=test/obsf | |
444 | 86 make check TARGET=test/obsf2 |
417 | 87 make check TARGET=test/long |
88 make check TARGET=test/tstdarg | |
89 make check TARGET=test/switch | |
90 make check TARGET=test/strinit | |
91 make check TARGET=test/code-gen-all | |
92 make check TARGET=test/bitfield | |
93 make check TARGET=test/bitfield1 | |
444 | 94 make check TARGET=test/cext |
95 make check TARGET=test/const | |
96 make check TARGET=test/void_code | |
495 | 97 make check TARGET=test/inline |
98 make check TARGET=test/putenemy | |
444 | 99 # make check TARGET=test/scope STDFLAG="-std=gnu99" |
417 | 100 #MK =-make |
101 MK= | |
102 check-all-code: | |
103 make check-code$(MK) TARGET=test/arg | |
104 make check-code$(MK) TARGET=test/conv | |
105 make check-code$(MK) TARGET=test/conv1 | |
106 make check-code$(MK) TARGET=test/fact-a | |
107 make check-code$(MK) TARGET=test/fact | |
108 make check-code$(MK) TARGET=test/goto | |
450
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
446
diff
changeset
|
109 make check-code$(MK) TARGET=test/test1 |
495 | 110 make check-code$(MK) TARGET=test/tmpa |
450
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
446
diff
changeset
|
111 make check-code$(MK) TARGET=test/tmp1 |
417 | 112 make check-code$(MK) TARGET=test/tmp2 |
113 make check-code$(MK) TARGET=test/tmp4 | |
450
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
446
diff
changeset
|
114 make check-code$(MK) TARGET=test/tmp6 |
444 | 115 make check-code$(MK) TARGET=test/scope |
417 | 116 |
117 check-nkf: | |
118 ( cd nkf203; $(CC) -g -o nkf1 nkf.c utf8tbl.c ) | |
119 ( cd nkf203; ../mc-$(ARCH) -s nkf.c utf8tbl.c ) | |
120 ( cd nkf203; $(CC) -g -o nkf nkf.s utf8tbl.s ) | |
121 ( cd nkf203; perl test.pl ) | |
122 | |
123 # -./$(MC) -Itest/ -s $(TARGET).c | |
124 | |
125 check: $(MC) $(TARGET).c | |
495 | 126 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB) |
417 | 127 -./b.out > $(TARGET).gcc.out |
128 -./$(MC) -s $(TARGET).c | |
495 | 129 -$(CC) $(TARGET).s $(MLIB) |
417 | 130 -./a.out > $(TARGET).$(MC).out |
131 -diff $(TARGET).gcc.out $(TARGET).$(MC).out | |
132 | |
133 check-code: $(MC) | |
134 -./$(MC) -s $(TARGET).c | |
495 | 135 -$(CC) $(TARGET).s $(MLIB) |
417 | 136 -./a.out > $(TARGET).$(MC).out |
137 -diff $(TARGET).code-out $(TARGET).$(MC).out | |
138 check-code-make: $(MC) | |
139 -./$(MC) -s $(TARGET).c | |
495 | 140 -$(CC) $(TARGET).s $(MLIB) |
417 | 141 -./a.out > $(TARGET).code-out |
142 | |
143 test/code-gen-all.c: test/code-gen.pl test/code-gen.c | |
144 perl test/code-gen.pl < test/code-gen.c > test/code-gen-all.c | |
145 | |
495 | 146 incpri: |
147 perl tools/incpri.pl test/*.c | |
148 | |
417 | 149 tags: tags-$(ARCH) |
150 | |
151 tags-$(ARCH): | |
152 ctags mc.h mc-code.h mc-code-$(ARCH).c mc-codegen.c mc-codegen.h \ | |
153 mc-parse.c mc-tree.c \ | |
154 conv/c.c conv/c.h \ | |
155 conv/conv.h conv/convdef.h | |
156 | |
157 tar : | |
158 make clean | |
159 tar cBf - . | gzip > ../comp.tgz | |
160 | |
161 depend : | |
162 makedepend mc-code-ia32.c mc-code.h mc-codegen.c mc-codegen.h \ | |
163 mc-parse.c mc-tree.c mc-switch.c mc-switch.h mc.h \ | |
164 mc-macro.c mc-macro.h mc-parse.h \ | |
165 conv/c.c conv/c.h conv/c2cbc.c conv/c2cbc.h conv/cbc2c.c \ | |
166 conv/cbc2c.h conv/conv.h conv/convdef.h conv/null.c conv/null.h \ | |
167 mc-code-powerpc.c \ | |
168 mc-code-mips.c | |
169 | |
170 clean : | |
444 | 171 -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 |
417 | 172 |
476 | 173 mc1 : b00.s b01.s mc-codegen.o mc-tree.o mc-switch.o mc-macro.o mc-inline.o $(CONVERTER) |
174 $(CC) -g -o $@ $(PRINTF) b00.s b01.s mc-codegen.o mc-tree.o mc-switch.o mc-macro.o mc-inline.o $(CONVERTER) | |
417 | 175 |
495 | 176 mc2 : b00.s b01.s b02.s b03.s mc-macro.o mc-inline.o $(CONVERTER) |
476 | 177 $(CC) -g -o $@ $(PRINTF) b00.s b01.s b02.s b03.s b04.s mc-macro.o mc-inline.o $(CONVERTER) |
417 | 178 |
179 b00.s : mc-parse.c $(MC) | |
180 ./$(MC) -s -ob00.s mc-parse.c | |
181 b01.s : $(CODE) $(MC) | |
182 ./$(MC) -s -ob01.s $(CODE) | |
183 b02.s : mc-codegen.c $(MC) | |
184 ./$(MC) -s -ob02.s mc-codegen.c | |
185 b03.s : mc-tree.c $(MC) | |
186 ./$(MC) -s -ob03.s mc-tree.c | |
187 b04.s : mc-switch.c $(MC) | |
188 ./$(MC) -s -ob04.s mc-switch.c | |
189 | |
190 b10.s : mc-parse.c mc1 | |
191 ./mc1 -s -ob10.s mc-parse.c | |
192 b11.s : $(CODE) $(PRINTF) mc1 | |
193 ./mc1 -s -ob11.s $(CODE) | |
194 b12.s : mc-codegen.c mc1 | |
195 ./mc1 -s -ob12.s mc-codegen.c | |
196 b13.s : mc-tree.c mc1 | |
197 ./mc1 -s -ob13.s mc-tree.c | |
198 b14.s : mc-switch.c mc1 | |
199 ./mc1 -s -ob14.s mc-switch.c | |
200 | |
201 b20.s : mc-parse.c mc2 | |
202 ./mc2 -s -ob20.s mc-parse.c | |
203 b21.s : $(CODE) $(PRINTF) mc2 | |
204 ./mc2 -s -ob21.s $(CODE) | |
205 b22.s : mc-codegen.c mc2 | |
206 ./mc2 -s -ob22.s mc-codegen.c | |
207 b23.s : mc-tree.c mc2 | |
208 ./mc2 -s -ob23.s mc-tree.c | |
209 b24.s : mc-switch.c mc1 | |
210 ./mc2 -s -ob24.s mc-switch.c | |
211 | |
212 diff : b00.s b01.s b02.s b03.s b04.s b10.s b11.s b12.s b13.s b14.s | |
213 -diff b00.s b10.s | |
214 -diff b01.s b11.s | |
215 -diff b02.s b12.s | |
216 -diff b03.s b13.s | |
217 -diff b04.s b14.s | |
218 | |
219 diff2 : b00.s b01.s b02.s b03.s b04.s b20.s b21.s b22.s b23.s b24.s | |
220 -diff b00.s b20.s | |
221 -diff b01.s b21.s | |
222 -diff b02.s b22.s | |
223 -diff b03.s b23.s | |
224 -diff b04.s b24.s | |
225 | |
226 | |
495 | 227 # DO NOT DELETE |
228 | |
229 mc-code-ia32.o: /usr/include/stdio.h /usr/include/features.h | |
230 mc-code-ia32.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h | |
231 mc-code-ia32.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h | |
232 mc-code-ia32.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h | |
233 mc-code-ia32.o: /usr/include/bits/sched.h /usr/include/libio.h | |
234 mc-code-ia32.o: /usr/include/_G_config.h /usr/include/wchar.h | |
235 mc-code-ia32.o: /usr/include/bits/wchar.h /usr/include/gconv.h | |
236 mc-code-ia32.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h | |
237 mc-code-ia32.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h | |
238 mc-code-ia32.o: /usr/include/bits/stdio_lim.h mc.h mc-parse.h mc-codegen.h | |
239 mc-code-ia32.o: mc-code.h | |
240 mc-codegen.o: /usr/include/stdio.h /usr/include/features.h | |
241 mc-codegen.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h | |
242 mc-codegen.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h | |
243 mc-codegen.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h | |
244 mc-codegen.o: /usr/include/bits/sched.h /usr/include/libio.h | |
245 mc-codegen.o: /usr/include/_G_config.h /usr/include/wchar.h | |
246 mc-codegen.o: /usr/include/bits/wchar.h /usr/include/gconv.h | |
247 mc-codegen.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h | |
248 mc-codegen.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h | |
249 mc-codegen.o: /usr/include/bits/stdio_lim.h mc.h mc-parse.h mc-codegen.h | |
250 mc-codegen.o: mc-code.h mc-switch.h mc-inline.h | |
251 mc-parse.o: /usr/include/stdio.h /usr/include/features.h | |
252 mc-parse.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h | |
253 mc-parse.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h | |
254 mc-parse.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h | |
255 mc-parse.o: /usr/include/bits/sched.h /usr/include/libio.h | |
256 mc-parse.o: /usr/include/_G_config.h /usr/include/wchar.h | |
257 mc-parse.o: /usr/include/bits/wchar.h /usr/include/gconv.h | |
258 mc-parse.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h | |
259 mc-parse.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h | |
260 mc-parse.o: /usr/include/bits/stdio_lim.h mc.h mc-parse.h mc-codegen.h | |
261 mc-parse.o: mc-switch.h mc-macro.h mc-inline.h conv/conv.h | |
262 mc-tree.o: /usr/include/stdio.h /usr/include/features.h | |
263 mc-tree.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h | |
264 mc-tree.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h | |
265 mc-tree.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h | |
266 mc-tree.o: /usr/include/bits/sched.h /usr/include/libio.h | |
267 mc-tree.o: /usr/include/_G_config.h /usr/include/wchar.h | |
268 mc-tree.o: /usr/include/bits/wchar.h /usr/include/gconv.h | |
269 mc-tree.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h | |
270 mc-tree.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h | |
271 mc-tree.o: /usr/include/bits/stdio_lim.h mc.h mc-parse.h | |
272 mc-switch.o: /usr/include/stdio.h /usr/include/features.h | |
273 mc-switch.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h | |
274 mc-switch.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h | |
275 mc-switch.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h | |
276 mc-switch.o: /usr/include/bits/sched.h /usr/include/libio.h | |
277 mc-switch.o: /usr/include/_G_config.h /usr/include/wchar.h | |
278 mc-switch.o: /usr/include/bits/wchar.h /usr/include/gconv.h | |
279 mc-switch.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h | |
280 mc-switch.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h | |
281 mc-switch.o: /usr/include/bits/stdio_lim.h mc.h mc-parse.h mc-codegen.h | |
282 mc-switch.o: mc-code.h | |
283 mc-macro.o: /usr/include/stdio.h /usr/include/features.h | |
284 mc-macro.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h | |
285 mc-macro.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h | |
286 mc-macro.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h | |
287 mc-macro.o: /usr/include/bits/sched.h /usr/include/libio.h | |
288 mc-macro.o: /usr/include/_G_config.h /usr/include/wchar.h | |
289 mc-macro.o: /usr/include/bits/wchar.h /usr/include/gconv.h | |
290 mc-macro.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h | |
291 mc-macro.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h | |
292 mc-macro.o: /usr/include/bits/stdio_lim.h mc.h mc-parse.h mc-macro.h | |
293 mc-macro.o: mc-codegen.h mc-code.h | |
294 conv/c.o: /usr/include/stdio.h /usr/include/features.h | |
295 conv/c.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h | |
296 conv/c.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h | |
297 conv/c.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h | |
298 conv/c.o: /usr/include/bits/sched.h /usr/include/libio.h | |
299 conv/c.o: /usr/include/_G_config.h /usr/include/wchar.h | |
300 conv/c.o: /usr/include/bits/wchar.h /usr/include/gconv.h | |
301 conv/c.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h | |
302 conv/c.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h | |
303 conv/c.o: /usr/include/bits/stdio_lim.h mc.h mc-parse.h conv/conv.h | |
304 conv/c.o: conv/convdef.h conv/c.h | |
305 conv/c2cbc.o: mc.h | |
306 conv/cbc2c.o: mc.h | |
307 conv/null.o: /usr/include/stdio.h /usr/include/features.h | |
308 conv/null.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h | |
309 conv/null.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h | |
310 conv/null.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h | |
311 conv/null.o: /usr/include/bits/sched.h /usr/include/libio.h | |
312 conv/null.o: /usr/include/_G_config.h /usr/include/wchar.h | |
313 conv/null.o: /usr/include/bits/wchar.h /usr/include/gconv.h | |
314 conv/null.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h | |
315 conv/null.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h | |
316 conv/null.o: /usr/include/bits/stdio_lim.h mc.h mc-parse.h conv/conv.h | |
317 conv/null.o: conv/convdef.h conv/null.h | |
318 mc-code-powerpc.o: /usr/include/stdio.h /usr/include/features.h | |
319 mc-code-powerpc.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h | |
320 mc-code-powerpc.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h | |
321 mc-code-powerpc.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h | |
322 mc-code-powerpc.o: /usr/include/bits/sched.h /usr/include/libio.h | |
323 mc-code-powerpc.o: /usr/include/_G_config.h /usr/include/wchar.h | |
324 mc-code-powerpc.o: /usr/include/bits/wchar.h /usr/include/gconv.h | |
325 mc-code-powerpc.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h | |
326 mc-code-powerpc.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h | |
327 mc-code-powerpc.o: /usr/include/bits/stdio_lim.h mc.h mc-parse.h mc-code.h | |
328 mc-code-powerpc.o: mc-codegen.h | |
329 mc-code-mips.o: /usr/include/stdio.h /usr/include/features.h | |
330 mc-code-mips.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h | |
331 mc-code-mips.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h | |
332 mc-code-mips.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h | |
333 mc-code-mips.o: /usr/include/bits/sched.h /usr/include/libio.h | |
334 mc-code-mips.o: /usr/include/_G_config.h /usr/include/wchar.h | |
335 mc-code-mips.o: /usr/include/bits/wchar.h /usr/include/gconv.h | |
336 mc-code-mips.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h | |
337 mc-code-mips.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h | |
338 mc-code-mips.o: /usr/include/bits/stdio_lim.h mc.h mc-parse.h mc-code.h | |
339 mc-code-mips.o: mc-codegen.h |