annotate Makefile.powerpc @ 656:8320ae3ac186 strinit-expr

inlined strinit
author kono
date Mon, 15 Jan 2007 13:30:31 +0900
parents cddab906095e
children dbfbeb05210c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
1 CC = gcc -std=c99
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
2 # -O2
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
3 # -O99
615
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
4 CFLAGS = -g -Wall -I. -DUSE_CODE_KEYWORD
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
5 # CFLAGS = -g -Wall -I. -pg -fprofile-arcs -ftest-coverage
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
6 # LDFLAGS = -pg
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
7 # for Linux Zaurus
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
8 # CFLAGS = -fsigned-char -pipe -g -I. -I/home/zaurus/develop/include
615
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
9 CFLAGS1 = -g -I. -DUSE_CODE_KEYWORD
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
10 BASE=0
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
11 STAGE=1
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
12 MFLAGS=$(MFALGS) BASE=$(BASE) STAGE=$(STAGE)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
13 ARCH=powerpc
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
14 MC=mc-$(ARCH)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
15 MLIB = -lm
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
16 PRINTF= # printf.c
609
af6b9ae79583 modificatioon for udpcl
kono
parents: 604
diff changeset
17 CONVERTER=conv/c.o conv/null.o conv/cbc2c.o conv/c2cbc.o
af6b9ae79583 modificatioon for udpcl
kono
parents: 604
diff changeset
18
af6b9ae79583 modificatioon for udpcl
kono
parents: 604
diff changeset
19 # conv/c2cbc.o conv/cbc2c.o
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
20 COMPLIB = mc-parse.o mc-codegen.o mc-switch.o mc-macro.o mc-tree.o mc-inline.o
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
21 # CODE=mc-code-ia32.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
22 CODE=mc-code-$(ARCH).c
615
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
23 GCC_INCLUDE=`perl tools/find-gcc-include-path -p $(CC)`
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
24
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
25 #
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
26 TARGET=test/simp
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
27
656
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
28 all: mc-include.c mc
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
29
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
30 allall: mc-include.c mc mc-ia32 mc-powerpc mc-mips mc-arm
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
31
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
32 mc: mc-$(ARCH)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
33 cp mc-$(ARCH) mc
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
34
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
35 TAGS:
609
af6b9ae79583 modificatioon for udpcl
kono
parents: 604
diff changeset
36 ctags mc-code-null.c mc-code.h mc-codegen.c mc-codegen.h \
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
37 mc-macro.c \
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
38 mc-parse.c mc-tree.c mc-switch.c mc-switch.h \
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
39 mc.h conv/c.c conv/c.h \
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
40 mc-inline.h mc-inline.c \
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
41 conv/conv.h conv/convdef.h conv/null.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
42
609
af6b9ae79583 modificatioon for udpcl
kono
parents: 604
diff changeset
43 mc-null : mc-code-null.o $(COMPLIB) $(CONVERTER)
af6b9ae79583 modificatioon for udpcl
kono
parents: 604
diff changeset
44 $(CC) $(LDFLAGS) -g mc-code-null.o $(COMPLIB) $(CONVERTER) -o $@
af6b9ae79583 modificatioon for udpcl
kono
parents: 604
diff changeset
45
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
46 mc-powerpc : mc-code-powerpc.o $(COMPLIB) $(CONVERTER)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
47 $(CC) $(LDFLAGS) -g mc-code-powerpc.o $(COMPLIB) $(CONVERTER) -o $@
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
48
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
49 mc-ia32 : mc-code-ia32.o $(COMPLIB) $(CONVERTER)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
50 $(CC) $(LDFLAGS) -g mc-code-ia32.o $(COMPLIB) $(CONVERTER) -o $@
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
51
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
52 mc-mips : mc-code-mips.o $(COMPLIB) $(CONVERTER)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
53 $(CC) $(LDFLAGS) -g mc-code-mips.o $(COMPLIB) $(CONVERTER) -o $@
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
54
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
55 mc-arm : mc-code-arm.o $(COMPLIB) $(CONVERTER)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
56 $(CC) $(LDFLAGS) -g mc-code-arm.o $(COMPLIB) $(CONVERTER) -o $@
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
57
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
58 conv/conv.h: conv_func.tbl tools/conv_func.pl
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
59 perl tools/conv_func.pl
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
60 conv/convdef.h: conv_func.tbl tools/conv_func.pl
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
61 perl tools/conv_func.pl
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
62 conv/null.c: conv_func.tbl tools/conv_func.pl
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
63 perl tools/conv_func.pl
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
64
615
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
65 mc-include.c:
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
66 perl tools/find-gcc-include-path -l $(CC) > mc-include.c
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
67
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
68 mc.h-new:
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
69 perl tools/mc-h-renum.pl mc.h > mc.h.1
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
70 mv mc.h.1 mc.h
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
71
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
72 check-all: check-all-c check-all-code
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
73
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
74 check-all-c:
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
75 make check TARGET=test/basic
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
76 make check-inline TARGET=test/basic
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
77 make check TARGET=test/call
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
78 make check TARGET=test/fact0
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
79 make check TARGET=test/float
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
80 make check TARGET=test/ifdef
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
81 make check TARGET=test/int
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
82 make check TARGET=test/macro
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
83 make check TARGET=test/regargs
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
84 make check TARGET=test/short
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
85 make check TARGET=test/simp
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
86 make check TARGET=test/simp0
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
87 make check TARGET=test/simp1
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
88 make check TARGET=test/static
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
89 make check TARGET=test/tmp
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
90 make check TARGET=test/tmp10
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
91 make check TARGET=test/tmp11
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
92 make check TARGET=test/tmp12
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
93 make check TARGET=test/tmp5
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
94 make check TARGET=test/tmp7
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
95 make check-inline TARGET=test/tmp8
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
96 make check TARGET=test/tmp9
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
97 make check TARGET=test/enum
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
98 make check TARGET=test/obsf
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
99 make check TARGET=test/obsf2
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
100 make check TARGET=test/long
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
101 make check TARGET=test/tstdarg
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
102 make check TARGET=test/switch
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
103 make check TARGET=test/strinit
656
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
104 make check-inline TARGET=test/strinit
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
105 make check TARGET=test/code-gen-all
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
106 make check-inline TARGET=test/code-gen-all
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
107 make check TARGET=test/bitfield
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
108 make check TARGET=test/bitfield1
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
109 make check-inline TARGET=test/bitfield1
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
110 make check TARGET=test/cext
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
111 make check TARGET=test/const
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
112 make check TARGET=test/void_code
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
113 make check TARGET=test/putenemy
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
114 make check TARGET=test/inline
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
115 make check TARGET=test/offset
640
04211a2cf227 *** empty log message ***
kono
parents: 615
diff changeset
116 make check TARGET=test/ps2
04211a2cf227 *** empty log message ***
kono
parents: 615
diff changeset
117 make check TARGET=test/multi
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
118 # make check TARGET=test/scope STDFLAG="-std=gnu99"
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
119 # make check-inline TARGET=test/scope STDFLAG="-std=gnu99"
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
120 #MK =-make
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
121 MK=
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
122 check-all-code:
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
123 make check-code$(MK) TARGET=test/arg
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
124 make check-code$(MK) TARGET=test/conv
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
125 make check-code$(MK) TARGET=test/conv1
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
126 make check-code$(MK) TARGET=test/fact-a
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
127 make check-code$(MK) TARGET=test/fact
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
128 make check-code$(MK) TARGET=test/goto
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
129 make check-code$(MK) TARGET=test/test1
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
130 make check-code$(MK) TARGET=test/tmpa
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
131 make check-code$(MK) TARGET=test/tmp1
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
132 make check-code$(MK) TARGET=test/tmp2
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
133 make check-code$(MK) TARGET=test/tmp4
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
134 make check-code$(MK) TARGET=test/tmp6
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
135 make check-code$(MK) TARGET=test/scope
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
136 make check-code$(MK) TARGET=test/throw
609
af6b9ae79583 modificatioon for udpcl
kono
parents: 604
diff changeset
137 make check-code$(MK) TARGET=test/test2
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
138 make check-code$(MK) TARGET=test/too-long-argument
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
139
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
140 check-nkf:
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
141 ( cd nkf203; $(CC) -g -o nkf1 nkf.c utf8tbl.c )
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
142 ( cd nkf203; ../mc-$(ARCH) -s nkf.c utf8tbl.c )
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
143 ( cd nkf203; $(CC) -g -o nkf nkf.s utf8tbl.s )
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
144 ( cd nkf203; perl test.pl )
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
145
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
146 # -./$(MC) -Itest/ -s $(TARGET).c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
147
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
148 check: mc $(MC) $(TARGET).c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
149 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
150 -./b.out > $(TARGET).gcc.out
615
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
151 -./$(MC) -s $(TARGET).c
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
152 -$(CC) $(TARGET).s $(MLIB)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
153 -./a.out > $(TARGET).$(MC).out
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
154 -diff $(TARGET).gcc.out $(TARGET).$(MC).out
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
155
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
156 check-inline: mc $(MC) $(TARGET).c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
157 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
158 -./b.out > $(TARGET).gcc.out
615
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
159 -./$(MC) -s -DINLINE=inline $(TARGET).c
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
160 -$(CC) $(TARGET).s $(MLIB)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
161 -./a.out > $(TARGET).$(MC).out
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
162 -diff $(TARGET).gcc.out $(TARGET).$(MC).out
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
163
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
164 check-code: mc $(MC)
615
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
165 -./$(MC) -s $(TARGET).c
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
166 -$(CC) $(TARGET).s $(MLIB)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
167 -./a.out > $(TARGET).$(MC).out
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
168 -diff $(TARGET).code-out $(TARGET).$(MC).out
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
169 check-code-make: mc $(MC)
615
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
170 -./$(MC) -s $(TARGET).c
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
171 -$(CC) $(TARGET).s $(MLIB)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
172 -./a.out > $(TARGET).code-out
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
173
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
174 test/code-gen-all.c: test/code-gen.pl test/code-gen.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
175 perl test/code-gen.pl < test/code-gen.c > test/code-gen-all.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
176
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
177 incpri:
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
178 perl tools/incpri.pl test/*.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
179
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
180 tags: tags-$(ARCH)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
181
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
182 tags-$(ARCH):
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
183 ctags mc.h mc-code.h mc-code-$(ARCH).c mc-codegen.c mc-codegen.h \
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
184 mc-parse.c mc-tree.c \
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
185 conv/c.c conv/c.h \
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
186 conv/conv.h conv/convdef.h
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
187
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
188 tar :
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
189 make clean
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
190 tar cBf - . | gzip > ../comp.tgz
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
191
615
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
192 depend : mc.h mc-include.c conv/conv.h
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
193 makedepend -I$(GCC_INCLUDE) mc-code-ia32.c mc-code.h mc-codegen.c mc-codegen.h \
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
194 mc-parse.c mc-tree.c mc-switch.c mc-switch.h mc.h \
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
195 mc-inline.c mc-macro.c mc-macro.h mc-parse.h \
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
196 conv/c.c conv/c.h conv/c2cbc.c conv/c2cbc.h conv/cbc2c.c \
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
197 conv/cbc2c.h conv/conv.h conv/convdef.h conv/null.c conv/null.h \
615
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
198 mc-code-arm.c \
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
199 mc-code-powerpc.c \
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
200 mc-code-mips.c
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
201
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
202 clean :
644
ac1285a0f69f *** empty log message ***
kono
parents: 640
diff changeset
203 -rm -f mc mc-null 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 *.cbc.? */*.cbc.? mc-include.h
609
af6b9ae79583 modificatioon for udpcl
kono
parents: 604
diff changeset
204 -rm -f *.tsv ../test/*.tsv ../test/sample/*.tsv
581
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
205
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
206 mc1 : b00.s b01.s mc-codegen.o mc-tree.o mc-switch.o mc-macro.o mc-inline.o $(CONVERTER)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
207 $(CC) -g -o $@ $(PRINTF) b00.s b01.s mc-codegen.o mc-tree.o mc-switch.o mc-macro.o mc-inline.o $(CONVERTER)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
208
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
209 mc2 : b00.s b01.s b02.s b03.s mc-macro.o mc-inline.o $(CONVERTER)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
210 $(CC) -g -o $@ $(PRINTF) b00.s b01.s b02.s b03.s b04.s mc-macro.o mc-inline.o $(CONVERTER)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
211
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
212 b00.s : mc-parse.c $(MC)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
213 ./$(MC) -s -ob00.s mc-parse.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
214 b01.s : $(CODE) $(MC)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
215 ./$(MC) -s -ob01.s $(CODE)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
216 b02.s : mc-codegen.c $(MC)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
217 ./$(MC) -s -ob02.s mc-codegen.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
218 b03.s : mc-tree.c $(MC)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
219 ./$(MC) -s -ob03.s mc-tree.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
220 b04.s : mc-switch.c $(MC)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
221 ./$(MC) -s -ob04.s mc-switch.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
222
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
223 b10.s : mc-parse.c mc1
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
224 ./mc1 -s -ob10.s mc-parse.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
225 b11.s : $(CODE) $(PRINTF) mc1
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
226 ./mc1 -s -ob11.s $(CODE)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
227 b12.s : mc-codegen.c mc1
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
228 ./mc1 -s -ob12.s mc-codegen.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
229 b13.s : mc-tree.c mc1
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
230 ./mc1 -s -ob13.s mc-tree.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
231 b14.s : mc-switch.c mc1
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
232 ./mc1 -s -ob14.s mc-switch.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
233
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
234 b20.s : mc-parse.c mc2
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
235 ./mc2 -s -ob20.s mc-parse.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
236 b21.s : $(CODE) $(PRINTF) mc2
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
237 ./mc2 -s -ob21.s $(CODE)
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
238 b22.s : mc-codegen.c mc2
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
239 ./mc2 -s -ob22.s mc-codegen.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
240 b23.s : mc-tree.c mc2
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
241 ./mc2 -s -ob23.s mc-tree.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
242 b24.s : mc-switch.c mc1
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
243 ./mc2 -s -ob24.s mc-switch.c
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
244
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
245 diff : b00.s b01.s b02.s b03.s b04.s b10.s b11.s b12.s b13.s b14.s
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
246 -diff b00.s b10.s
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
247 -diff b01.s b11.s
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
248 -diff b02.s b12.s
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
249 -diff b03.s b13.s
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
250 -diff b04.s b14.s
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
251
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
252 diff2 : b00.s b01.s b02.s b03.s b04.s b20.s b21.s b22.s b23.s b24.s
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
253 -diff b00.s b20.s
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
254 -diff b01.s b21.s
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
255 -diff b02.s b22.s
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
256 -diff b03.s b23.s
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
257 -diff b04.s b24.s
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
258
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
259
ad9ef203f95b *** empty log message ***
kono
parents:
diff changeset
260 # DO NOT DELETE
656
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
261
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
262 mc-code-ia32.o: /usr/include/stdio.h /usr/include/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
263 mc-code-ia32.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
264 mc-code-ia32.o: /usr/include/machine/_types.h /usr/include/ppc/_types.h mc.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
265 mc-code-ia32.o: mc-parse.h mc-codegen.h mc-code.h mc-include.c
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
266 mc-codegen.o: /usr/include/stdio.h /usr/include/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
267 mc-codegen.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
268 mc-codegen.o: /usr/include/machine/_types.h /usr/include/ppc/_types.h mc.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
269 mc-codegen.o: mc-parse.h mc-codegen.h mc-code.h mc-switch.h mc-inline.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
270 mc-codegen.o: conv/conv.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
271 mc-parse.o: /usr/include/stdio.h /usr/include/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
272 mc-parse.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
273 mc-parse.o: /usr/include/machine/_types.h /usr/include/ppc/_types.h mc.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
274 mc-parse.o: mc-parse.h mc-codegen.h mc-switch.h mc-macro.h mc-inline.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
275 mc-parse.o: conv/conv.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
276 mc-tree.o: /usr/include/stdio.h /usr/include/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
277 mc-tree.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
278 mc-tree.o: /usr/include/machine/_types.h /usr/include/ppc/_types.h mc.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
279 mc-tree.o: mc-parse.h mc-codegen.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
280 mc-switch.o: /usr/include/stdio.h /usr/include/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
281 mc-switch.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
282 mc-switch.o: /usr/include/machine/_types.h /usr/include/ppc/_types.h mc.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
283 mc-switch.o: mc-parse.h mc-codegen.h mc-code.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
284 mc-inline.o: /usr/include/stdio.h /usr/include/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
285 mc-inline.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
286 mc-inline.o: /usr/include/machine/_types.h /usr/include/ppc/_types.h mc.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
287 mc-inline.o: mc-parse.h mc-codegen.h mc-switch.h mc-code.h mc-inline.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
288 mc-macro.o: /usr/include/stdio.h /usr/include/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
289 mc-macro.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
290 mc-macro.o: /usr/include/machine/_types.h /usr/include/ppc/_types.h mc.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
291 mc-macro.o: mc-parse.h mc-macro.h mc-codegen.h mc-code.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
292 conv/c.o: /usr/include/stdio.h /usr/include/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
293 conv/c.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
294 conv/c.o: /usr/include/machine/_types.h /usr/include/ppc/_types.h mc.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
295 conv/c.o: mc-parse.h mc-codegen.h conv/conv.h conv/convdef.h conv/c.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
296 conv/c2cbc.o: /usr/include/stdio.h /usr/include/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
297 conv/c2cbc.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
298 conv/c2cbc.o: /usr/include/machine/_types.h /usr/include/ppc/_types.h mc.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
299 conv/c2cbc.o: mc-parse.h mc-codegen.h conv/conv.h conv/convdef.h conv/c2cbc.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
300 conv/cbc2c.o: /usr/include/stdio.h /usr/include/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
301 conv/cbc2c.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
302 conv/cbc2c.o: /usr/include/machine/_types.h /usr/include/ppc/_types.h mc.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
303 conv/cbc2c.o: mc-parse.h mc-codegen.h conv/conv.h conv/convdef.h conv/cbc2c.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
304 conv/null.o: /usr/include/stdio.h /usr/include/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
305 conv/null.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
306 conv/null.o: /usr/include/machine/_types.h /usr/include/ppc/_types.h mc.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
307 conv/null.o: mc-parse.h conv/conv.h conv/convdef.h conv/null.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
308 mc-code-arm.o: /usr/include/stdio.h /usr/include/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
309 mc-code-arm.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
310 mc-code-arm.o: /usr/include/machine/_types.h /usr/include/ppc/_types.h mc.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
311 mc-code-arm.o: mc-parse.h mc-code.h mc-codegen.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
312 mc-code-powerpc.o: /usr/include/stdio.h /usr/include/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
313 mc-code-powerpc.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
314 mc-code-powerpc.o: /usr/include/machine/_types.h /usr/include/ppc/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
315 mc-code-powerpc.o: mc.h mc-parse.h mc-code.h mc-codegen.h mc-include.c
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
316 mc-code-mips.o: /usr/include/stdio.h /usr/include/_types.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
317 mc-code-mips.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
318 mc-code-mips.o: /usr/include/machine/_types.h /usr/include/ppc/_types.h mc.h
8320ae3ac186 inlined strinit
kono
parents: 655
diff changeset
319 mc-code-mips.o: mc-parse.h mc-code.h mc-codegen.h