annotate Makefile.powerpc @ 704:6e6dc2d644ed

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