annotate Makefile @ 704:6e6dc2d644ed

*** empty log message ***
author kono
date Wed, 24 Oct 2007 00:13:06 +0900
parents 8eadf0db2970
children 0554b7f985ee
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
690
5d3b4669854c fix prindirect
kono
parents: 689
diff changeset
1 CC = gcc -std=c99 $(CCEXT)
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
2 # -O3
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
3 MCFLAGS = -DUSE_CODE_KEYWORD
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
4 CFLAGS = -g -O -Wall -I. $(MCFLAGS)
440
a531bbf572e3 regression test (case, float, long long)
kono
parents: 438
diff changeset
5 # CFLAGS = -g -Wall -I. -pg -fprofile-arcs -ftest-coverage
a531bbf572e3 regression test (case, float, long long)
kono
parents: 438
diff changeset
6 # LDFLAGS = -pg
407
dafb9110d70b ARM continue... emit_copy bug
kono
parents: 400
diff changeset
7 # for Linux Zaurus
dafb9110d70b ARM continue... emit_copy bug
kono
parents: 400
diff changeset
8 # CFLAGS = -fsigned-char -pipe -g -I. -I/home/zaurus/develop/include
669
1530b1a636ac ato mouchotto...
kono
parents: 668
diff changeset
9 CFLAGS1 = -g -I.
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
10 BASE=0
d35df41eac69 Initial revision
kono
parents:
diff changeset
11 STAGE=1
d35df41eac69 Initial revision
kono
parents:
diff changeset
12 MFLAGS=$(MFALGS) BASE=$(BASE) STAGE=$(STAGE)
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
13 ARCH=ia32
126
1d1612fe705a *** empty log message ***
kono
parents: 123
diff changeset
14 MC=mc-$(ARCH)
561
de0b0380c461 comments
kono
parents: 556
diff changeset
15 MLIB = -lm
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
16 PRINTF= # printf.c
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
17 CONVERTER=conv/c.o conv/null.o conv/c2cbc.o conv/cbc2c.o
453
1e5ca85d3f97 inline on going...
kono
parents: 449
diff changeset
18 COMPLIB = mc-parse.o mc-codegen.o mc-switch.o mc-macro.o mc-tree.o mc-inline.o
109
e09f9de6f5d3 *** empty log message ***
kono
parents: 94
diff changeset
19 # CODE=mc-code-ia32.c
126
1d1612fe705a *** empty log message ***
kono
parents: 123
diff changeset
20 CODE=mc-code-$(ARCH).c
615
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
21 GCC_INCLUDE=`perl tools/find-gcc-include-path -p $(CC)`
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
22 #
420
efbd420386c5 non aligned bitfield (not yet finished)
kono
parents: 407
diff changeset
23 #
efbd420386c5 non aligned bitfield (not yet finished)
kono
parents: 407
diff changeset
24 TARGET=test/simp
93
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
25
666
7c42cf329666 *** empty log message ***
kono
parents: 664
diff changeset
26 all: mc
94
1ad7045741a7 float dbinop fix
kono
parents: 93
diff changeset
27
690
5d3b4669854c fix prindirect
kono
parents: 689
diff changeset
28 ppc:
5d3b4669854c fix prindirect
kono
parents: 689
diff changeset
29 make ARCH=powerpc CCEXT="-arch ppc" check-all
5d3b4669854c fix prindirect
kono
parents: 689
diff changeset
30
666
7c42cf329666 *** empty log message ***
kono
parents: 664
diff changeset
31 mc: mc-$(ARCH)
126
1d1612fe705a *** empty log message ***
kono
parents: 123
diff changeset
32 cp mc-$(ARCH) mc
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
33
195
c193120ee2a6 *** empty log message ***
kono
parents: 191
diff changeset
34 TAGS:
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
35 ctags mc-code-powerpc.c mc-code.h mc-codegen.c mc-codegen.h \
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 311
diff changeset
36 mc-macro.c \
297
0f79c95df73a switch index no compile error
kono
parents: 249
diff changeset
37 mc-parse.c mc-tree.c mc-switch.c mc-switch.h \
0f79c95df73a switch index no compile error
kono
parents: 249
diff changeset
38 mc.h conv/c.c conv/c.h \
453
1e5ca85d3f97 inline on going...
kono
parents: 449
diff changeset
39 mc-inline.h mc-inline.c \
195
c193120ee2a6 *** empty log message ***
kono
parents: 191
diff changeset
40 conv/conv.h conv/convdef.h conv/null.c
c193120ee2a6 *** empty log message ***
kono
parents: 191
diff changeset
41
691
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
42 mc-powerpc :conv/conv.h mc-include.c mc-code-powerpc.o $(COMPLIB) $(CONVERTER)
440
a531bbf572e3 regression test (case, float, long long)
kono
parents: 438
diff changeset
43 $(CC) $(LDFLAGS) -g mc-code-powerpc.o $(COMPLIB) $(CONVERTER) -o $@
94
1ad7045741a7 float dbinop fix
kono
parents: 93
diff changeset
44
691
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
45 mc-ia32 :conv/conv.h mc-include.c mc-code-ia32.o $(COMPLIB) $(CONVERTER)
440
a531bbf572e3 regression test (case, float, long long)
kono
parents: 438
diff changeset
46 $(CC) $(LDFLAGS) -g mc-code-ia32.o $(COMPLIB) $(CONVERTER) -o $@
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
47
691
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
48 mc-mips :conv/conv.h mc-include.c mc-code-mips.o $(COMPLIB) $(CONVERTER)
440
a531bbf572e3 regression test (case, float, long long)
kono
parents: 438
diff changeset
49 $(CC) $(LDFLAGS) -g mc-code-mips.o $(COMPLIB) $(CONVERTER) -o $@
130
fea1b499d47b fix register var save
kono
parents: 127
diff changeset
50
691
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
51 mc-arm :conv/conv.h mc-include.c mc-code-arm.o $(COMPLIB) $(CONVERTER)
440
a531bbf572e3 regression test (case, float, long long)
kono
parents: 438
diff changeset
52 $(CC) $(LDFLAGS) -g mc-code-arm.o $(COMPLIB) $(CONVERTER) -o $@
383
9a3d897d58fd ARM continue...
kono
parents: 366
diff changeset
53
691
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
54 mc-spu :conv/conv.h mc-include.c mc-code-spu.o $(COMPLIB) $(CONVERTER)
666
7c42cf329666 *** empty log message ***
kono
parents: 664
diff changeset
55 $(CC) $(LDFLAGS) -g mc-code-spu.o $(COMPLIB) $(CONVERTER) -o $@
7c42cf329666 *** empty log message ***
kono
parents: 664
diff changeset
56
466
7c3d8237b625 *** empty log message ***
kono
parents: 453
diff changeset
57 conv/conv.h: conv_func.tbl tools/conv_func.pl
7c3d8237b625 *** empty log message ***
kono
parents: 453
diff changeset
58 perl tools/conv_func.pl
7c3d8237b625 *** empty log message ***
kono
parents: 453
diff changeset
59 conv/convdef.h: conv_func.tbl tools/conv_func.pl
7c3d8237b625 *** empty log message ***
kono
parents: 453
diff changeset
60 perl tools/conv_func.pl
7c3d8237b625 *** empty log message ***
kono
parents: 453
diff changeset
61 conv/null.c: conv_func.tbl tools/conv_func.pl
7c3d8237b625 *** empty log message ***
kono
parents: 453
diff changeset
62 perl tools/conv_func.pl
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
63
615
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
64 mc-include.c:
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
65 perl tools/find-gcc-include-path -l $(CC) > mc-include.c
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
66
166
9e55cc5551fb *** empty log message ***
kono
parents: 161
diff changeset
67 mc.h-new:
466
7c3d8237b625 *** empty log message ***
kono
parents: 453
diff changeset
68 perl tools/mc-h-renum.pl mc.h > mc.h.1
166
9e55cc5551fb *** empty log message ***
kono
parents: 161
diff changeset
69 mv mc.h.1 mc.h
9e55cc5551fb *** empty log message ***
kono
parents: 161
diff changeset
70
172
096559f07a70 some check
kono
parents: 166
diff changeset
71 check-all: check-all-c check-all-code
096559f07a70 some check
kono
parents: 166
diff changeset
72
096559f07a70 some check
kono
parents: 166
diff changeset
73 check-all-c:
118
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
74 make check TARGET=test/basic
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
75 make check-inline TARGET=test/basic
118
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
76 make check TARGET=test/call
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
77 make check TARGET=test/fact0
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
78 make check TARGET=test/float
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
79 make check TARGET=test/ifdef
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
80 make check TARGET=test/int
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
81 make check TARGET=test/macro
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
82 make check TARGET=test/regargs
172
096559f07a70 some check
kono
parents: 166
diff changeset
83 make check TARGET=test/short
118
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
84 make check TARGET=test/simp
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
85 make check TARGET=test/simp0
249
8313c965c0e2 *** empty log message ***
kono
parents: 245
diff changeset
86 make check TARGET=test/simp1
172
096559f07a70 some check
kono
parents: 166
diff changeset
87 make check TARGET=test/static
118
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
88 make check TARGET=test/tmp
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
89 make check TARGET=test/tmp10
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
90 make check TARGET=test/tmp11
161
cc2fc5c0dfe5 struct field fix
kono
parents: 158
diff changeset
91 make check TARGET=test/tmp12
336
d488b72254fb bit-field done.
kono
parents: 328
diff changeset
92 make check TARGET=test/tmp5
118
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
93 make check TARGET=test/tmp7
701
bf4fd39737e9 fix static in parse mode
kono
parents: 691
diff changeset
94 make check-inline TARGET=test/tmp7
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
95 make check TARGET=test/tmp8
118
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
96 make check TARGET=test/tmp9
176
kono
parents: 172
diff changeset
97 make check TARGET=test/enum
214
4f459364c334 *** empty log message ***
kono
parents: 213
diff changeset
98 make check TARGET=test/obsf
444
8bec605d1701 small sized struct
kono
parents: 440
diff changeset
99 make check TARGET=test/obsf2
221
ceae585186d9 *** empty log message ***
kono
parents: 214
diff changeset
100 make check TARGET=test/long
307
fda28752d301 stdarg (varargs done... PowerPC, IA32 checked)
kono
parents: 298
diff changeset
101 make check TARGET=test/tstdarg
311
38c9976863b7 swtich list fix. macro fix.
kono
parents: 310
diff changeset
102 make check TARGET=test/switch
310
5ae5857ded2c struct partial init done.
kono
parents: 307
diff changeset
103 make check TARGET=test/strinit
221
ceae585186d9 *** empty log message ***
kono
parents: 214
diff changeset
104 make check TARGET=test/code-gen-all
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
105 make check-inline TARGET=test/code-gen-all
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
106 make check TARGET=test/bitfield
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
107 make check TARGET=test/bitfield1
353
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents: 338
diff changeset
108 make check TARGET=test/cext
400
a9427845ca4c ARM test/basic test pass.
kono
parents: 387
diff changeset
109 make check TARGET=test/const
438
626d705471d5 Unexecuted code in conditional. Lazy jmp code generation.
kono
parents: 420
diff changeset
110 make check TARGET=test/void_code
494
07fdc5bf5e96 *** empty log message ***
kono
parents: 491
diff changeset
111 make check TARGET=test/putenemy
453
1e5ca85d3f97 inline on going...
kono
parents: 449
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
366
2d510935c37d *** empty log message ***
kono
parents: 365
diff changeset
115 # make check TARGET=test/scope STDFLAG="-std=gnu99"
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
116 # make check-inline TARGET=test/scope STDFLAG="-std=gnu99"
172
096559f07a70 some check
kono
parents: 166
diff changeset
117 #MK =-make
096559f07a70 some check
kono
parents: 166
diff changeset
118 MK=
096559f07a70 some check
kono
parents: 166
diff changeset
119 check-all-code:
096559f07a70 some check
kono
parents: 166
diff changeset
120 make check-code$(MK) TARGET=test/arg
096559f07a70 some check
kono
parents: 166
diff changeset
121 make check-code$(MK) TARGET=test/conv
096559f07a70 some check
kono
parents: 166
diff changeset
122 make check-code$(MK) TARGET=test/conv1
096559f07a70 some check
kono
parents: 166
diff changeset
123 make check-code$(MK) TARGET=test/fact-a
096559f07a70 some check
kono
parents: 166
diff changeset
124 make check-code$(MK) TARGET=test/fact
096559f07a70 some check
kono
parents: 166
diff changeset
125 make check-code$(MK) TARGET=test/goto
449
c55363eff5e5 parallel assignment (modify not completed)
kono
parents: 445
diff changeset
126 make check-code$(MK) TARGET=test/test1
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
127 make check-code$(MK) TARGET=test/test2
477
308192c08e0a *** empty log message ***
kono
parents: 467
diff changeset
128 make check-code$(MK) TARGET=test/tmpa
449
c55363eff5e5 parallel assignment (modify not completed)
kono
parents: 445
diff changeset
129 make check-code$(MK) TARGET=test/tmp1
172
096559f07a70 some check
kono
parents: 166
diff changeset
130 make check-code$(MK) TARGET=test/tmp2
096559f07a70 some check
kono
parents: 166
diff changeset
131 make check-code$(MK) TARGET=test/tmp4
449
c55363eff5e5 parallel assignment (modify not completed)
kono
parents: 445
diff changeset
132 make check-code$(MK) TARGET=test/tmp6
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
133 make check-code$(MK) TARGET=test/tmpb
366
2d510935c37d *** empty log message ***
kono
parents: 365
diff changeset
134 make check-code$(MK) TARGET=test/scope
581
ad9ef203f95b *** empty log message ***
kono
parents: 575
diff changeset
135 make check-code$(MK) TARGET=test/throw
545
2f577690bcfb *** empty log message ***
kono
parents: 537
diff changeset
136 make check-code$(MK) TARGET=test/too-long-argument
172
096559f07a70 some check
kono
parents: 166
diff changeset
137
702
8eadf0db2970 *** empty log message ***
kono
parents: 701
diff changeset
138 check-nkf: mc
191
8646a4a9cde9 *** empty log message ***
kono
parents: 186
diff changeset
139 ( cd nkf203; $(CC) -g -o nkf1 nkf.c utf8tbl.c )
8646a4a9cde9 *** empty log message ***
kono
parents: 186
diff changeset
140 ( cd nkf203; ../mc-$(ARCH) -s nkf.c utf8tbl.c )
8646a4a9cde9 *** empty log message ***
kono
parents: 186
diff changeset
141 ( cd nkf203; $(CC) -g -o nkf nkf.s utf8tbl.s )
8646a4a9cde9 *** empty log message ***
kono
parents: 186
diff changeset
142 ( cd nkf203; perl test.pl )
8646a4a9cde9 *** empty log message ***
kono
parents: 186
diff changeset
143
224
82a55cc6b5fc *** empty log message ***
kono
parents: 221
diff changeset
144 # -./$(MC) -Itest/ -s $(TARGET).c
118
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
145
551
73ebe9d82a9c inline (scope.c/GNU extension) continue...
kono
parents: 550
diff changeset
146 check: mc $(MC) $(TARGET).c
466
7c3d8237b625 *** empty log message ***
kono
parents: 453
diff changeset
147 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB)
123
5f180dc8d84e intel fix.
kono
parents: 122
diff changeset
148 -./b.out > $(TARGET).gcc.out
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
149 -./$(MC) -s $(TARGET).c
466
7c3d8237b625 *** empty log message ***
kono
parents: 453
diff changeset
150 -$(CC) $(TARGET).s $(MLIB)
123
5f180dc8d84e intel fix.
kono
parents: 122
diff changeset
151 -./a.out > $(TARGET).$(MC).out
225
8675ea3d2c7f *** empty log message ***
kono
parents: 224
diff changeset
152 -diff $(TARGET).gcc.out $(TARGET).$(MC).out
118
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
153
551
73ebe9d82a9c inline (scope.c/GNU extension) continue...
kono
parents: 550
diff changeset
154 check-inline: mc $(MC) $(TARGET).c
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
155 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB)
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
156 -./b.out > $(TARGET).gcc.out
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
157 -./$(MC) -s -DINLINE=inline $(TARGET).c
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
158 -$(CC) $(TARGET).s $(MLIB)
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
159 -./a.out > $(TARGET).$(MC).out
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
160 -diff $(TARGET).gcc.out $(TARGET).$(MC).out
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
161
551
73ebe9d82a9c inline (scope.c/GNU extension) continue...
kono
parents: 550
diff changeset
162 check-code: mc $(MC)
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
163 -./$(MC) -s $(TARGET).c
466
7c3d8237b625 *** empty log message ***
kono
parents: 453
diff changeset
164 -$(CC) $(TARGET).s $(MLIB)
172
096559f07a70 some check
kono
parents: 166
diff changeset
165 -./a.out > $(TARGET).$(MC).out
096559f07a70 some check
kono
parents: 166
diff changeset
166 -diff $(TARGET).code-out $(TARGET).$(MC).out
551
73ebe9d82a9c inline (scope.c/GNU extension) continue...
kono
parents: 550
diff changeset
167 check-code-make: mc $(MC)
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
168 -./$(MC) -s $(TARGET).c
466
7c3d8237b625 *** empty log message ***
kono
parents: 453
diff changeset
169 -$(CC) $(TARGET).s $(MLIB)
172
096559f07a70 some check
kono
parents: 166
diff changeset
170 -./a.out > $(TARGET).code-out
096559f07a70 some check
kono
parents: 166
diff changeset
171
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
172 check-flip: mc $(MC)
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
173 -$(CC) -DFLIP -c test/basic2.c
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
174 -$(CC) basic2.o test/basic2.c
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
175 ./a.out
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
176 -./$(MC) -s test/basic2.c
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
177 -$(CC) test/basic2.s -DFLIP test/basic2.c
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
178 ./a.out
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
179 -./$(MC) -DFLIP -s test/basic2.c
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
180 -$(CC) test/basic2.s test/basic2.c
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
181 ./a.out
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
182
245
8a72b0afccfc *** empty log message ***
kono
parents: 225
diff changeset
183 test/code-gen-all.c: test/code-gen.pl test/code-gen.c
8a72b0afccfc *** empty log message ***
kono
parents: 225
diff changeset
184 perl test/code-gen.pl < test/code-gen.c > test/code-gen-all.c
8a72b0afccfc *** empty log message ***
kono
parents: 225
diff changeset
185
491
a379da780856 cond signed/unsigned
kono
parents: 477
diff changeset
186 incpri:
a379da780856 cond signed/unsigned
kono
parents: 477
diff changeset
187 perl tools/incpri.pl test/*.c
a379da780856 cond signed/unsigned
kono
parents: 477
diff changeset
188
186
6391432ca002 nkf binary fix
kono
parents: 176
diff changeset
189 tags: tags-$(ARCH)
6391432ca002 nkf binary fix
kono
parents: 176
diff changeset
190
6391432ca002 nkf binary fix
kono
parents: 176
diff changeset
191 tags-$(ARCH):
6391432ca002 nkf binary fix
kono
parents: 176
diff changeset
192 ctags mc.h mc-code.h mc-code-$(ARCH).c mc-codegen.c mc-codegen.h \
6391432ca002 nkf binary fix
kono
parents: 176
diff changeset
193 mc-parse.c mc-tree.c \
6391432ca002 nkf binary fix
kono
parents: 176
diff changeset
194 conv/c.c conv/c.h \
6391432ca002 nkf binary fix
kono
parents: 176
diff changeset
195 conv/conv.h conv/convdef.h
6391432ca002 nkf binary fix
kono
parents: 176
diff changeset
196
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
197 tar :
d35df41eac69 Initial revision
kono
parents:
diff changeset
198 make clean
d35df41eac69 Initial revision
kono
parents:
diff changeset
199 tar cBf - . | gzip > ../comp.tgz
d35df41eac69 Initial revision
kono
parents:
diff changeset
200
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
201 depend : mc.h mc-include.c
615
2dee957ef988 test case on undeclared name
kono
parents: 609
diff changeset
202 makedepend -I$(GCC_INCLUDE) mc-code-ia32.c mc-code.h mc-codegen.c mc-codegen.h \
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
203 mc-parse.c mc-tree.c mc-switch.c mc-switch.h mc.h \
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
204 mc-inline.c mc-macro.c mc-macro.h mc-parse.h \
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
205 conv/c.c conv/c.h conv/c2cbc.c conv/c2cbc.h conv/cbc2c.c \
93
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
206 conv/cbc2c.h conv/conv.h conv/convdef.h conv/null.c conv/null.h \
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
207 mc-code-arm.c \
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
208 mc-code-powerpc.c \
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
diff changeset
209 mc-code-mips.c
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
210
d35df41eac69 Initial revision
kono
parents:
diff changeset
211 clean :
664
ec1bac997e50 fix 387 floating point stack overflow
kono
parents: 662
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
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
213
453
1e5ca85d3f97 inline on going...
kono
parents: 449
diff changeset
214 mc1 : b00.s b01.s mc-codegen.o mc-tree.o mc-switch.o mc-macro.o mc-inline.o $(CONVERTER)
1e5ca85d3f97 inline on going...
kono
parents: 449
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)
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
216
453
1e5ca85d3f97 inline on going...
kono
parents: 449
diff changeset
217 mc2 : b00.s b01.s b02.s b03.s mc-macro.o mc-inline.o $(CONVERTER)
1e5ca85d3f97 inline on going...
kono
parents: 449
diff changeset
218 $(CC) -g -o $@ $(PRINTF) b00.s b01.s b02.s b03.s b04.s mc-macro.o mc-inline.o $(CONVERTER)
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
219
94
1ad7045741a7 float dbinop fix
kono
parents: 93
diff changeset
220 b00.s : mc-parse.c $(MC)
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
221 ./$(MC) $(MCFLAGS) -s -ob00.s mc-parse.c
109
e09f9de6f5d3 *** empty log message ***
kono
parents: 94
diff changeset
222 b01.s : $(CODE) $(MC)
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
223 ./$(MC) $(MCFLAGS) -s -ob01.s $(CODE)
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
224 b02.s : mc-codegen.c $(MC)
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
225 ./$(MC) $(MCFLAGS) -s -ob02.s mc-codegen.c
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
226 b03.s : mc-tree.c $(MC)
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
227 ./$(MC) $(MCFLAGS) -s -ob03.s mc-tree.c
298
4ccacae1d2e6 switch index level=1 odd situation.
kono
parents: 297
diff changeset
228 b04.s : mc-switch.c $(MC)
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
229 ./$(MC) $(MCFLAGS) -s -ob04.s mc-switch.c
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
230
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
231 b10.s : mc-parse.c mc1
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
232 ./mc1 $(MCFLAGS) -s -ob10.s mc-parse.c
109
e09f9de6f5d3 *** empty log message ***
kono
parents: 94
diff changeset
233 b11.s : $(CODE) $(PRINTF) mc1
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
234 ./mc1 $(MCFLAGS) -s -ob11.s $(CODE)
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
235 b12.s : mc-codegen.c mc1
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
236 ./mc1 $(MCFLAGS) -s -ob12.s mc-codegen.c
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
237 b13.s : mc-tree.c mc1
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
238 ./mc1 $(MCFLAGS) -s -ob13.s mc-tree.c
298
4ccacae1d2e6 switch index level=1 odd situation.
kono
parents: 297
diff changeset
239 b14.s : mc-switch.c mc1
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
240 ./mc1 $(MCFLAGS) -s -ob14.s mc-switch.c
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
241
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
242 b20.s : mc-parse.c mc2
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
243 ./mc2 $(MCFLAGS) -s -ob20.s mc-parse.c
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
244 b21.s : $(CODE) $(PRINTF) mc2
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
245 ./mc2 $(MCFLAGS) -s -ob21.s $(CODE)
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
246 b22.s : mc-codegen.c mc2
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
247 ./mc2 $(MCFLAGS) -s -ob22.s mc-codegen.c
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
248 b23.s : mc-tree.c mc2
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
249 ./mc2 $(MCFLAGS) -s -ob23.s mc-tree.c
298
4ccacae1d2e6 switch index level=1 odd situation.
kono
parents: 297
diff changeset
250 b24.s : mc-switch.c mc1
676
5e71527f9fd6 *** empty log message ***
kono
parents: 669
diff changeset
251 ./mc2 $(MCFLAGS) -s -ob24.s mc-switch.c
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
252
298
4ccacae1d2e6 switch index level=1 odd situation.
kono
parents: 297
diff changeset
253 diff : b00.s b01.s b02.s b03.s b04.s b10.s b11.s b12.s b13.s b14.s
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
254 -diff b00.s b10.s
d35df41eac69 Initial revision
kono
parents:
diff changeset
255 -diff b01.s b11.s
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
256 -diff b02.s b12.s
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
257 -diff b03.s b13.s
298
4ccacae1d2e6 switch index level=1 odd situation.
kono
parents: 297
diff changeset
258 -diff b04.s b14.s
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
259
298
4ccacae1d2e6 switch index level=1 odd situation.
kono
parents: 297
diff changeset
260 diff2 : b00.s b01.s b02.s b03.s b04.s b20.s b21.s b22.s b23.s b24.s
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
261 -diff b00.s b20.s
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
262 -diff b01.s b21.s
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
263 -diff b02.s b22.s
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
264 -diff b03.s b23.s
298
4ccacae1d2e6 switch index level=1 odd situation.
kono
parents: 297
diff changeset
265 -diff b04.s b24.s
140
aac62d1e30a6 fix minor syntax error
kono
parents: 138
diff changeset
266
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
267
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
268 # DO NOT DELETE
d35df41eac69 Initial revision
kono
parents:
diff changeset
269
704
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
270 mc-code-ia32.o: /usr/include/stdio.h /usr/include/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
271 mc-code-ia32.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
272 mc-code-ia32.o: /usr/include/machine/_types.h /usr/include/i386/_types.h mc.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
273 mc-code-ia32.o: mc-parse.h mc-codegen.h mc-code.h mc-include.c
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
274 mc-codegen.o: /usr/include/stdio.h /usr/include/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
275 mc-codegen.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
276 mc-codegen.o: /usr/include/machine/_types.h /usr/include/i386/_types.h mc.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
277 mc-codegen.o: mc-parse.h mc-codegen.h mc-code.h mc-switch.h mc-inline.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
278 mc-codegen.o: conv/conv.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
279 mc-parse.o: /usr/include/stdio.h /usr/include/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
280 mc-parse.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
281 mc-parse.o: /usr/include/machine/_types.h /usr/include/i386/_types.h mc.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
282 mc-parse.o: mc-parse.h mc-codegen.h mc-switch.h mc-macro.h mc-inline.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
283 mc-parse.o: conv/conv.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
284 mc-tree.o: /usr/include/stdio.h /usr/include/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
285 mc-tree.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
286 mc-tree.o: /usr/include/machine/_types.h /usr/include/i386/_types.h mc.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
287 mc-tree.o: mc-parse.h mc-codegen.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
288 mc-switch.o: /usr/include/stdio.h /usr/include/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
289 mc-switch.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
290 mc-switch.o: /usr/include/machine/_types.h /usr/include/i386/_types.h mc.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
291 mc-switch.o: mc-parse.h mc-codegen.h mc-code.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
292 mc-inline.o: /usr/include/stdio.h /usr/include/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
293 mc-inline.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
294 mc-inline.o: /usr/include/machine/_types.h /usr/include/i386/_types.h mc.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
295 mc-inline.o: mc-parse.h mc-codegen.h mc-switch.h mc-code.h mc-inline.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
296 mc-macro.o: /usr/include/stdio.h /usr/include/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
297 mc-macro.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
298 mc-macro.o: /usr/include/machine/_types.h /usr/include/i386/_types.h mc.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
299 mc-macro.o: mc-parse.h mc-macro.h mc-codegen.h mc-code.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
300 conv/c.o: /usr/include/stdio.h /usr/include/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
301 conv/c.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
302 conv/c.o: /usr/include/machine/_types.h /usr/include/i386/_types.h mc.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
303 conv/c.o: mc-parse.h mc-codegen.h conv/conv.h conv/convdef.h conv/c.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
304 conv/c2cbc.o: /usr/include/stdio.h /usr/include/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
305 conv/c2cbc.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
306 conv/c2cbc.o: /usr/include/machine/_types.h /usr/include/i386/_types.h mc.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
307 conv/c2cbc.o: mc-parse.h mc-codegen.h conv/conv.h conv/convdef.h conv/c2cbc.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
308 conv/cbc2c.o: /usr/include/stdio.h /usr/include/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
309 conv/cbc2c.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
310 conv/cbc2c.o: /usr/include/machine/_types.h /usr/include/i386/_types.h mc.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
311 conv/cbc2c.o: mc-parse.h mc-codegen.h conv/conv.h conv/convdef.h conv/cbc2c.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
312 conv/null.o: /usr/include/stdio.h /usr/include/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
313 conv/null.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
314 conv/null.o: /usr/include/machine/_types.h /usr/include/i386/_types.h mc.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
315 conv/null.o: mc-parse.h conv/conv.h conv/convdef.h conv/null.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
316 mc-code-arm.o: /usr/include/stdio.h /usr/include/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
317 mc-code-arm.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
318 mc-code-arm.o: /usr/include/machine/_types.h /usr/include/i386/_types.h mc.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
319 mc-code-arm.o: mc-parse.h mc-code.h mc-codegen.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
320 mc-code-powerpc.o: /usr/include/stdio.h /usr/include/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
321 mc-code-powerpc.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
322 mc-code-powerpc.o: /usr/include/machine/_types.h /usr/include/i386/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
323 mc-code-powerpc.o: mc.h mc-parse.h mc-code.h mc-codegen.h mc-include.c
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
324 mc-code-mips.o: /usr/include/stdio.h /usr/include/_types.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
325 mc-code-mips.o: /usr/include/sys/_types.h /usr/include/sys/cdefs.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
326 mc-code-mips.o: /usr/include/machine/_types.h /usr/include/i386/_types.h mc.h
6e6dc2d644ed *** empty log message ***
kono
parents: 702
diff changeset
327 mc-code-mips.o: mc-parse.h mc-code.h mc-codegen.h mc-include.c