annotate Makefile.ia32 @ 704:6e6dc2d644ed

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