annotate Makefile.powerpc @ 922:3cdc3c1d83bd

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