Mercurial > hg > CbC > old > device
comparison Makefile.ia32 @ 862:68cbc637f486
fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 31 Mar 2014 18:40:27 +0900 |
parents | c005a392e27e |
children |
comparison
equal
deleted
inserted
replaced
861:c005a392e27e | 862:68cbc637f486 |
---|---|
142 # make check-code$(MK) TARGET=test/throw | 142 # make check-code$(MK) TARGET=test/throw |
143 make check-code$(MK) TARGET=test/too-long-argument | 143 make check-code$(MK) TARGET=test/too-long-argument |
144 | 144 |
145 check-nkf: mc | 145 check-nkf: mc |
146 ( cd nkf203; $(CC) -g -o nkf1 nkf.c utf8tbl.c ) | 146 ( cd nkf203; $(CC) -g -o nkf1 nkf.c utf8tbl.c ) |
147 ( cd nkf203; ../mc-$(ARCH) -s nkf.c utf8tbl.c ) | 147 ( cd nkf203; ../mc-$(ARCH) nkf.c utf8tbl.c ) |
148 ( cd nkf203; $(CC) -g -o nkf nkf.s utf8tbl.s ) | 148 ( cd nkf203; $(CC) -g -o nkf nkf.s utf8tbl.s ) |
149 ( cd nkf203; perl test.pl ) | 149 ( cd nkf203; perl test.pl ) |
150 | 150 |
151 # -./$(MC) -Itest/ -s $(TARGET).c | 151 # -./$(MC) -Itest/ -s $(TARGET).c |
152 | 152 |
153 check: mc $(MC) $(TARGET).c | 153 check: mc $(MC) $(TARGET).c |
154 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB) | 154 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB) |
155 -./b.out > $(TARGET).gcc.out | 155 -./b.out > $(TARGET).gcc.out |
156 -./$(MC) -s $(TARGET).c | 156 -./$(MC) $(TARGET).c |
157 -$(CC) $(TARGET).s $(MLIB) | 157 -$(CC) $(TARGET).s $(MLIB) |
158 -./a.out > $(TARGET).$(MC).out | 158 -./a.out > $(TARGET).$(MC).out |
159 -diff $(TARGET).gcc.out $(TARGET).$(MC).out | 159 -diff $(TARGET).gcc.out $(TARGET).$(MC).out |
160 | 160 |
161 check-inline: mc $(MC) $(TARGET).c | 161 check-inline: mc $(MC) $(TARGET).c |
162 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB) | 162 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB) |
163 -./b.out > $(TARGET).gcc.out | 163 -./b.out > $(TARGET).gcc.out |
164 -./$(MC) -s -DINLINE=inline $(TARGET).c | 164 -./$(MC) -DINLINE=inline $(TARGET).c |
165 -$(CC) $(TARGET).s $(MLIB) | 165 -$(CC) $(TARGET).s $(MLIB) |
166 -./a.out > $(TARGET).$(MC).out | 166 -./a.out > $(TARGET).$(MC).out |
167 -diff $(TARGET).gcc.out $(TARGET).$(MC).out | 167 -diff $(TARGET).gcc.out $(TARGET).$(MC).out |
168 | 168 |
169 check-code: mc $(MC) | 169 check-code: mc $(MC) |
170 -./$(MC) -s $(TARGET).c | 170 -./$(MC) $(TARGET).c |
171 -$(CC) $(TARGET).s $(MLIB) | 171 -$(CC) $(TARGET).s $(MLIB) |
172 -./a.out > $(TARGET).$(MC).out | 172 -./a.out > $(TARGET).$(MC).out |
173 -diff $(TARGET).code-out $(TARGET).$(MC).out | 173 -diff $(TARGET).code-out $(TARGET).$(MC).out |
174 check-code-inline: mc $(MC) | 174 check-code-inline: mc $(MC) |
175 -./$(MC) -s -DINLINE=inline $(TARGET).c | 175 -./$(MC) -DINLINE=inline $(TARGET).c |
176 -$(CC) $(TARGET).s $(MLIB) | 176 -$(CC) $(TARGET).s $(MLIB) |
177 -./a.out > $(TARGET).$(MC).out | 177 -./a.out > $(TARGET).$(MC).out |
178 -diff $(TARGET).code-out $(TARGET).$(MC).out | 178 -diff $(TARGET).code-out $(TARGET).$(MC).out |
179 check-code-make: mc $(MC) | 179 check-code-make: mc $(MC) |
180 -./$(MC) -s $(TARGET).c | 180 -./$(MC) $(TARGET).c |
181 -$(CC) $(TARGET).s $(MLIB) | 181 -$(CC) $(TARGET).s $(MLIB) |
182 -./a.out > $(TARGET).code-out | 182 -./a.out > $(TARGET).code-out |
183 | 183 |
184 check-flip: mc $(MC) | 184 check-flip: mc $(MC) |
185 -$(CC) -DFLIP -c test/basic2.c | 185 -$(CC) -DFLIP -c test/basic2.c |
186 -$(CC) basic2.o test/basic2.c | 186 -$(CC) basic2.o test/basic2.c |
187 ./a.out | 187 ./a.out |
188 -./$(MC) -s test/basic2.c | 188 -./$(MC) test/basic2.c |
189 -$(CC) test/basic2.s -DFLIP test/basic2.c | 189 -$(CC) test/basic2.s -DFLIP test/basic2.c |
190 ./a.out | 190 ./a.out |
191 -./$(MC) -DFLIP -s test/basic2.c | 191 -./$(MC) -DFLIP test/basic2.c |
192 -$(CC) test/basic2.s test/basic2.c | 192 -$(CC) test/basic2.s test/basic2.c |
193 ./a.out | 193 ./a.out |
194 | 194 |
195 test/code-gen-all.c: test/code-gen.pl test/code-gen.c | 195 test/code-gen-all.c: test/code-gen.pl test/code-gen.c |
196 perl test/code-gen.pl < test/code-gen.c > test/code-gen-all.c | 196 perl test/code-gen.pl < test/code-gen.c > test/code-gen-all.c |
230 | 230 |
231 mc2 : b00.s b01.s b02.s b03.s mc-macro.o mc-inline.o $(CONVERTER) | 231 mc2 : b00.s b01.s b02.s b03.s mc-macro.o mc-inline.o $(CONVERTER) |
232 $(CC) -g -o $@ $(PRINTF) b00.s b01.s b02.s b03.s b04.s mc-macro.o mc-inline.o $(CONVERTER) | 232 $(CC) -g -o $@ $(PRINTF) b00.s b01.s b02.s b03.s b04.s mc-macro.o mc-inline.o $(CONVERTER) |
233 | 233 |
234 b00.s : mc-parse.c $(MC) | 234 b00.s : mc-parse.c $(MC) |
235 ./$(MC) $(MCFLAGS) -s -ob00.s mc-parse.c | 235 ./$(MC) $(MCFLAGS) -ob00.s mc-parse.c |
236 b01.s : $(CODE) $(MC) | 236 b01.s : $(CODE) $(MC) |
237 ./$(MC) $(MCFLAGS) -s -ob01.s $(CODE) | 237 ./$(MC) $(MCFLAGS) -ob01.s $(CODE) |
238 b02.s : mc-codegen.c $(MC) | 238 b02.s : mc-codegen.c $(MC) |
239 ./$(MC) $(MCFLAGS) -s -ob02.s mc-codegen.c | 239 ./$(MC) $(MCFLAGS) -ob02.s mc-codegen.c |
240 b03.s : mc-tree.c $(MC) | 240 b03.s : mc-tree.c $(MC) |
241 ./$(MC) $(MCFLAGS) -s -ob03.s mc-tree.c | 241 ./$(MC) $(MCFLAGS) -ob03.s mc-tree.c |
242 b04.s : mc-switch.c $(MC) | 242 b04.s : mc-switch.c $(MC) |
243 ./$(MC) $(MCFLAGS) -s -ob04.s mc-switch.c | 243 ./$(MC) $(MCFLAGS) -ob04.s mc-switch.c |
244 | 244 |
245 b10.s : mc-parse.c mc1 | 245 b10.s : mc-parse.c mc1 |
246 ./mc1 $(MCFLAGS) -s -ob10.s mc-parse.c | 246 ./mc1 $(MCFLAGS) -ob10.s mc-parse.c |
247 b11.s : $(CODE) $(PRINTF) mc1 | 247 b11.s : $(CODE) $(PRINTF) mc1 |
248 ./mc1 $(MCFLAGS) -s -ob11.s $(CODE) | 248 ./mc1 $(MCFLAGS) -ob11.s $(CODE) |
249 b12.s : mc-codegen.c mc1 | 249 b12.s : mc-codegen.c mc1 |
250 ./mc1 $(MCFLAGS) -s -ob12.s mc-codegen.c | 250 ./mc1 $(MCFLAGS) -ob12.s mc-codegen.c |
251 b13.s : mc-tree.c mc1 | 251 b13.s : mc-tree.c mc1 |
252 ./mc1 $(MCFLAGS) -s -ob13.s mc-tree.c | 252 ./mc1 $(MCFLAGS) -ob13.s mc-tree.c |
253 b14.s : mc-switch.c mc1 | 253 b14.s : mc-switch.c mc1 |
254 ./mc1 $(MCFLAGS) -s -ob14.s mc-switch.c | 254 ./mc1 $(MCFLAGS) -ob14.s mc-switch.c |
255 | 255 |
256 b20.s : mc-parse.c mc2 | 256 b20.s : mc-parse.c mc2 |
257 ./mc2 $(MCFLAGS) -s -ob20.s mc-parse.c | 257 ./mc2 $(MCFLAGS) -ob20.s mc-parse.c |
258 b21.s : $(CODE) $(PRINTF) mc2 | 258 b21.s : $(CODE) $(PRINTF) mc2 |
259 ./mc2 $(MCFLAGS) -s -ob21.s $(CODE) | 259 ./mc2 $(MCFLAGS) -ob21.s $(CODE) |
260 b22.s : mc-codegen.c mc2 | 260 b22.s : mc-codegen.c mc2 |
261 ./mc2 $(MCFLAGS) -s -ob22.s mc-codegen.c | 261 ./mc2 $(MCFLAGS) -ob22.s mc-codegen.c |
262 b23.s : mc-tree.c mc2 | 262 b23.s : mc-tree.c mc2 |
263 ./mc2 $(MCFLAGS) -s -ob23.s mc-tree.c | 263 ./mc2 $(MCFLAGS) -ob23.s mc-tree.c |
264 b24.s : mc-switch.c mc1 | 264 b24.s : mc-switch.c mc1 |
265 ./mc2 $(MCFLAGS) -s -ob24.s mc-switch.c | 265 ./mc2 $(MCFLAGS) -ob24.s mc-switch.c |
266 | 266 |
267 diff : b00.s b01.s b02.s b03.s b04.s b10.s b11.s b12.s b13.s b14.s | 267 diff : b00.s b01.s b02.s b03.s b04.s b10.s b11.s b12.s b13.s b14.s |
268 -diff b00.s b10.s | 268 -diff b00.s b10.s |
269 -diff b01.s b11.s | 269 -diff b01.s b11.s |
270 -diff b02.s b12.s | 270 -diff b02.s b12.s |