annotate Makefile.ia32 @ 615:2dee957ef988

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