annotate Makefile.ia32 @ 739:0c7a6ae119ba

i64 continue... compiler compiled.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 08 Nov 2010 22:22:46 +0900
parents 3f1f6c0610c1
children a2a7b2835fa3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
704
6e6dc2d644ed *** empty log message ***
kono
parents: 676
diff changeset
1 CC = gcc -std=c99 $(CCEXT)
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
2 # -O3
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
3 MCFLAGS = -DUSE_CODE_KEYWORD
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
4 CFLAGS = -g -O -Wall -I. $(MCFLAGS)
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
674
68d70527b0c0 *** empty log message ***
kono
parents: 666
diff changeset
9 CFLAGS1 = -g -I.
497
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
706
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
26 all: mc tags
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
27
704
6e6dc2d644ed *** empty log message ***
kono
parents: 676
diff changeset
28 ppc:
6e6dc2d644ed *** empty log message ***
kono
parents: 676
diff changeset
29 make ARCH=powerpc CCEXT="-arch ppc" check-all
6e6dc2d644ed *** empty log message ***
kono
parents: 676
diff changeset
30
666
7c42cf329666 *** empty log message ***
kono
parents: 640
diff changeset
31 mc: mc-$(ARCH)
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
32 cp mc-$(ARCH) mc
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
33
704
6e6dc2d644ed *** empty log message ***
kono
parents: 676
diff changeset
34 mc-powerpc :conv/conv.h mc-include.c mc-code-powerpc.o $(COMPLIB) $(CONVERTER)
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
35 $(CC) $(LDFLAGS) -g mc-code-powerpc.o $(COMPLIB) $(CONVERTER) -o $@
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
36
704
6e6dc2d644ed *** empty log message ***
kono
parents: 676
diff changeset
37 mc-ia32 :conv/conv.h mc-include.c mc-code-ia32.o $(COMPLIB) $(CONVERTER)
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
38 $(CC) $(LDFLAGS) -g mc-code-ia32.o $(COMPLIB) $(CONVERTER) -o $@
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
39
704
6e6dc2d644ed *** empty log message ***
kono
parents: 676
diff changeset
40 mc-mips :conv/conv.h mc-include.c mc-code-mips.o $(COMPLIB) $(CONVERTER)
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
41 $(CC) $(LDFLAGS) -g mc-code-mips.o $(COMPLIB) $(CONVERTER) -o $@
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
42
704
6e6dc2d644ed *** empty log message ***
kono
parents: 676
diff changeset
43 mc-arm :conv/conv.h mc-include.c mc-code-arm.o $(COMPLIB) $(CONVERTER)
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
44 $(CC) $(LDFLAGS) -g mc-code-arm.o $(COMPLIB) $(CONVERTER) -o $@
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
45
704
6e6dc2d644ed *** empty log message ***
kono
parents: 676
diff changeset
46 mc-spu :conv/conv.h mc-include.c mc-code-spu.o $(COMPLIB) $(CONVERTER)
666
7c42cf329666 *** empty log message ***
kono
parents: 640
diff changeset
47 $(CC) $(LDFLAGS) -g mc-code-spu.o $(COMPLIB) $(CONVERTER) -o $@
7c42cf329666 *** empty log message ***
kono
parents: 640
diff changeset
48
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
49 conv/conv.h: conv_func.tbl tools/conv_func.pl
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
50 perl tools/conv_func.pl
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
51 conv/convdef.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/null.c: 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
615
2dee957ef988 test case on undeclared name
kono
parents: 604
diff changeset
56 mc-include.c:
2dee957ef988 test case on undeclared name
kono
parents: 604
diff changeset
57 perl tools/find-gcc-include-path -l $(CC) > mc-include.c
2dee957ef988 test case on undeclared name
kono
parents: 604
diff changeset
58
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
59 mc.h-new:
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
60 perl tools/mc-h-renum.pl mc.h > mc.h.1
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
61 mv mc.h.1 mc.h
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
62
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
63 check-all: check-all-c check-all-code
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
64
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
65 check-all-c:
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
66 make check TARGET=test/basic
554
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
67 make check-inline TARGET=test/basic
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
68 make check TARGET=test/call
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
69 make check TARGET=test/fact0
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
70 make check TARGET=test/float
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
71 make check TARGET=test/ifdef
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
72 make check TARGET=test/int
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
73 make check TARGET=test/macro
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
74 make check TARGET=test/regargs
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
75 make check TARGET=test/short
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
76 make check TARGET=test/simp
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
77 make check TARGET=test/simp0
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
78 make check TARGET=test/simp1
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
79 make check TARGET=test/static
706
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
80 make check-inline TARGET=test/static
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
81 make check TARGET=test/tmp
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
82 make check TARGET=test/tmp10
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
83 make check TARGET=test/tmp11
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
84 make check TARGET=test/tmp12
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
85 make check TARGET=test/tmp5
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
86 make check TARGET=test/tmp7
704
6e6dc2d644ed *** empty log message ***
kono
parents: 676
diff changeset
87 make check-inline TARGET=test/tmp7
497
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
706
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
96 make check-inline TARGET=test/switch
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
97 make check TARGET=test/strinit
706
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
98 make check-inline TARGET=test/strinit
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
99 make check TARGET=test/code-gen-all
554
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
100 make check-inline TARGET=test/code-gen-all
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
101 make check TARGET=test/bitfield
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
102 make check TARGET=test/bitfield1
706
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
103 make check-inline TARGET=test/bitfield1
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
104 make check TARGET=test/cext
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
105 make check TARGET=test/const
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
106 make check TARGET=test/void_code
554
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
107 make check TARGET=test/putenemy
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
108 make check TARGET=test/inline
640
04211a2cf227 *** empty log message ***
kono
parents: 615
diff changeset
109 make check TARGET=test/ps2
706
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
110 make check-inline TARGET=test/ps2
725
3f1f6c0610c1 goto with enviornment syntax changed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 706
diff changeset
111 make check TARGET=test/offset
640
04211a2cf227 *** empty log message ***
kono
parents: 615
diff changeset
112 make check TARGET=test/multi
706
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
113 make check-inline TARGET=test/multi
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
114 make check TARGET=test/comp
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
115 make check-inline TARGET=test/comp
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
116 # make check TARGET=test/scope STDFLAG="-std=gnu99"
554
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
117 # make check-inline TARGET=test/scope STDFLAG="-std=gnu99"
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
118 #MK =-make
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
119 MK=
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
120 check-all-code:
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
121 make check-code$(MK) TARGET=test/arg
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
122 make check-code$(MK) TARGET=test/conv
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
123 make check-code$(MK) TARGET=test/conv1
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
124 make check-code$(MK) TARGET=test/fact-a
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
125 make check-code$(MK) TARGET=test/fact
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
126 make check-code$(MK) TARGET=test/goto
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
127 make check-code$(MK) TARGET=test/test1
604
ff033b46cac5 *** empty log message ***
kono
parents: 602
diff changeset
128 make check-code$(MK) TARGET=test/test2
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
129 make check-code$(MK) TARGET=test/tmpa
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
130 make check-code$(MK) TARGET=test/tmp1
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
131 make check-code$(MK) TARGET=test/tmp2
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
132 make check-code$(MK) TARGET=test/tmp4
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
133 make check-code$(MK) TARGET=test/tmp6
590
cc2a83f98188 ia32 reorganization etc.
kono
parents: 581
diff changeset
134 make check-code$(MK) TARGET=test/tmpb
706
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
135 make check-code-inline TARGET=test/tmpb
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
136 make check-code$(MK) TARGET=test/scope
706
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
137 make check-code-inline TARGET=test/scope
725
3f1f6c0610c1 goto with enviornment syntax changed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 706
diff changeset
138 # make check-code$(MK) TARGET=test/throw
554
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
139 make check-code$(MK) TARGET=test/too-long-argument
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
140
704
6e6dc2d644ed *** empty log message ***
kono
parents: 676
diff changeset
141 check-nkf: mc
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
142 ( cd nkf203; $(CC) -g -o nkf1 nkf.c utf8tbl.c )
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
143 ( cd nkf203; ../mc-$(ARCH) -s nkf.c utf8tbl.c )
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
144 ( cd nkf203; $(CC) -g -o nkf nkf.s utf8tbl.s )
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
145 ( cd nkf203; perl test.pl )
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
146
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
147 # -./$(MC) -Itest/ -s $(TARGET).c
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
148
554
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
149 check: mc $(MC) $(TARGET).c
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
150 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB)
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
151 -./b.out > $(TARGET).gcc.out
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
152 -./$(MC) -s $(TARGET).c
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
153 -$(CC) $(TARGET).s $(MLIB)
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
154 -./a.out > $(TARGET).$(MC).out
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
155 -diff $(TARGET).gcc.out $(TARGET).$(MC).out
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
156
554
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
157 check-inline: mc $(MC) $(TARGET).c
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
158 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB)
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
159 -./b.out > $(TARGET).gcc.out
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
160 -./$(MC) -s -DINLINE=inline $(TARGET).c
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
161 -$(CC) $(TARGET).s $(MLIB)
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
162 -./a.out > $(TARGET).$(MC).out
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
163 -diff $(TARGET).gcc.out $(TARGET).$(MC).out
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
164
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
165 check-code: mc $(MC)
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
166 -./$(MC) -s $(TARGET).c
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
167 -$(CC) $(TARGET).s $(MLIB)
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
168 -./a.out > $(TARGET).$(MC).out
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
169 -diff $(TARGET).code-out $(TARGET).$(MC).out
706
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
170 check-code-inline: mc $(MC)
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
171 -./$(MC) -s -DINLINE=inline $(TARGET).c
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
172 -$(CC) $(TARGET).s $(MLIB)
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
173 -./a.out > $(TARGET).$(MC).out
afcba0382231 *** empty log message ***
kono
parents: 704
diff changeset
174 -diff $(TARGET).code-out $(TARGET).$(MC).out
554
dc677ac7a744 emit_pop_free kills creg after emit_copy.
kono
parents: 497
diff changeset
175 check-code-make: mc $(MC)
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
176 -./$(MC) -s $(TARGET).c
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
177 -$(CC) $(TARGET).s $(MLIB)
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
178 -./a.out > $(TARGET).code-out
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
179
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
180 check-flip: mc $(MC)
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
181 -$(CC) -DFLIP -c test/basic2.c
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
182 -$(CC) basic2.o test/basic2.c
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
183 ./a.out
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
184 -./$(MC) -s test/basic2.c
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
185 -$(CC) test/basic2.s -DFLIP test/basic2.c
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
186 ./a.out
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
187 -./$(MC) -DFLIP -s test/basic2.c
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
188 -$(CC) test/basic2.s test/basic2.c
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
189 ./a.out
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
190
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
191 test/code-gen-all.c: test/code-gen.pl test/code-gen.c
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
192 perl test/code-gen.pl < test/code-gen.c > test/code-gen-all.c
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
193
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
194 incpri:
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
195 perl tools/incpri.pl test/*.c
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
196
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
197 tags: tags-$(ARCH)
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
198
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
199 tags-$(ARCH):
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
200 ctags mc.h mc-code.h mc-code-$(ARCH).c mc-codegen.c mc-codegen.h \
725
3f1f6c0610c1 goto with enviornment syntax changed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 706
diff changeset
201 mc-parse.h mc-tree.c mc-inline.h mc-switch.h \
3f1f6c0610c1 goto with enviornment syntax changed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 706
diff changeset
202 mc-parse.c mc-tree.c mc-inline.c mc-switch.c \
3f1f6c0610c1 goto with enviornment syntax changed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 706
diff changeset
203 mc-macro.h mc-macro.c \
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
204 conv/c.c conv/c.h \
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
205 conv/conv.h conv/convdef.h
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
206
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
207 tar :
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
208 make clean
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
209 tar cBf - . | gzip > ../comp.tgz
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
210
615
2dee957ef988 test case on undeclared name
kono
parents: 604
diff changeset
211 depend : mc.h mc-include.c
2dee957ef988 test case on undeclared name
kono
parents: 604
diff changeset
212 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
213 mc-parse.c mc-tree.c mc-switch.c mc-switch.h mc.h \
602
429ec87e03e7 *** empty log message ***
kono
parents: 599
diff changeset
214 mc-inline.c mc-macro.c mc-macro.h mc-parse.h \
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
215 conv/c.c conv/c.h conv/c2cbc.c conv/c2cbc.h conv/cbc2c.c \
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
216 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
217 mc-code-arm.c \
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
218 mc-code-powerpc.c \
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
219 mc-code-mips.c
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
220
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
221 clean :
725
3f1f6c0610c1 goto with enviornment syntax changed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 706
diff changeset
222 -rm -f mc mc-spu 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
223
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
224 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
225 $(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
226
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
227 mc2 : b00.s b01.s b02.s b03.s mc-macro.o mc-inline.o $(CONVERTER)
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
228 $(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
229
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
230 b00.s : mc-parse.c $(MC)
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
231 ./$(MC) $(MCFLAGS) -s -ob00.s mc-parse.c
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
232 b01.s : $(CODE) $(MC)
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
233 ./$(MC) $(MCFLAGS) -s -ob01.s $(CODE)
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
234 b02.s : mc-codegen.c $(MC)
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
235 ./$(MC) $(MCFLAGS) -s -ob02.s mc-codegen.c
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
236 b03.s : mc-tree.c $(MC)
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
237 ./$(MC) $(MCFLAGS) -s -ob03.s mc-tree.c
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
238 b04.s : mc-switch.c $(MC)
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
239 ./$(MC) $(MCFLAGS) -s -ob04.s mc-switch.c
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
240
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
241 b10.s : mc-parse.c mc1
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
242 ./mc1 $(MCFLAGS) -s -ob10.s mc-parse.c
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
243 b11.s : $(CODE) $(PRINTF) mc1
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
244 ./mc1 $(MCFLAGS) -s -ob11.s $(CODE)
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
245 b12.s : mc-codegen.c mc1
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
246 ./mc1 $(MCFLAGS) -s -ob12.s mc-codegen.c
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
247 b13.s : mc-tree.c mc1
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
248 ./mc1 $(MCFLAGS) -s -ob13.s mc-tree.c
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
249 b14.s : mc-switch.c mc1
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
250 ./mc1 $(MCFLAGS) -s -ob14.s mc-switch.c
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
251
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
252 b20.s : mc-parse.c mc2
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
253 ./mc2 $(MCFLAGS) -s -ob20.s mc-parse.c
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
254 b21.s : $(CODE) $(PRINTF) mc2
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
255 ./mc2 $(MCFLAGS) -s -ob21.s $(CODE)
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
256 b22.s : mc-codegen.c mc2
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
257 ./mc2 $(MCFLAGS) -s -ob22.s mc-codegen.c
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
258 b23.s : mc-tree.c mc2
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
259 ./mc2 $(MCFLAGS) -s -ob23.s mc-tree.c
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
260 b24.s : mc-switch.c mc1
676
5e71527f9fd6 *** empty log message ***
kono
parents: 674
diff changeset
261 ./mc2 $(MCFLAGS) -s -ob24.s mc-switch.c
497
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
262
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
263 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
264 -diff b00.s b10.s
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
265 -diff b01.s b11.s
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
266 -diff b02.s b12.s
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
267 -diff b03.s b13.s
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
268 -diff b04.s b14.s
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
269
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
270 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
271 -diff b00.s b20.s
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
272 -diff b01.s b21.s
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
273 -diff b02.s b22.s
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
274 -diff b03.s b23.s
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
275 -diff b04.s b24.s
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
276
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
277
dbbc07bca089 *** empty log message ***
kono
parents:
diff changeset
278 # DO NOT DELETE