annotate Makefile.i64 @ 884:f915d5ba033e

struct init in function argument in parse_mode fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 05 Apr 2014 19:37:34 +0900
parents 3976dc54ec3d
children 08dcc3b7c39b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
861
c005a392e27e fix for Marvaricks
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 836
diff changeset
1 GCC = clang
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
2 CC = $(GCC) -std=c99 $(CCEXT) $(M) -fgnu89-inline
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
3 # -O3
836
a760656224fa parse mode diff is not worked yet...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 818
diff changeset
4 # MCFLAG = -DUSE_CODE_KEYWORD
a760656224fa parse mode diff is not worked yet...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 818
diff changeset
5 CFLAGS = -g -Wall -I. $(MCFLAG) # -O
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
6 # CFLAGS = -g -Wall -I. -pg -fprofile-arcs -ftest-coverage
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
7 # LDFLAGS = -pg
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
8 # for Linux Zaurus
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
9 # CFLAGS = -fsigned-char -pipe -g -I. -I/home/zaurus/develop/include
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
10 CFLAGS1 = -g -I.
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
11 BASE=0
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
12 STAGE=1
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
13 MFLAGS=$(MFALGS) BASE=$(BASE) STAGE=$(STAGE)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
14 ARCH=i64
836
a760656224fa parse mode diff is not worked yet...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 818
diff changeset
15 MC=mc-$(ARCH)
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
16 MLIB = -lm
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
17 PRINTF= # printf.c
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
18 CONVERTER=conv/c.o conv/null.o conv/c2cbc.o conv/cbc2c.o
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
19 COMPLIB = mc-parse.o mc-codegen.o mc-switch.o mc-macro.o mc-tree.o mc-inline.o
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
20 # CODE=mc-code-ia32.c
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
21 CODE=mc-code-$(ARCH).c
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
22 GCC_INCLUDE=`perl tools/find-gcc-include-path -p $(CC)`
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
23 #
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
24 #
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
25 TARGET=test/simp
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
26
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
27 all: mc tags
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
28
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
29 predefined:
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
30 $(CC) -xc -E -dM /dev/null
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
31
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
32 ppc:
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
33 make ARCH=powerpc CCEXT="-arch ppc" check-all
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
34
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
35 ia32:
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
36 make ARCH=ia32 CCEXT="-m32" check-all
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
37
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
38 ia32-make-code-check:
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
39 make ARCH=ia32 CCEXT="-m32" MK=-make check-all-code
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
40
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
41 mc: mc-$(ARCH)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
42 cp mc-$(ARCH) mc
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
43
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
44 mc-i64 :conv/conv.h mc-include.c mc-code-i64.o $(COMPLIB) $(CONVERTER)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
45 $(CC) $(LDFLAGS) -g mc-code-i64.o $(COMPLIB) $(CONVERTER) -o $@
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
46
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
47 mc-powerpc :conv/conv.h mc-include.c mc-code-powerpc.o $(COMPLIB) $(CONVERTER)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
48 $(CC) $(LDFLAGS) -g mc-code-powerpc.o $(COMPLIB) $(CONVERTER) -o $@
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
49
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
50 mc-ia32 :conv/conv.h mc-include.c mc-code-ia32.o $(COMPLIB) $(CONVERTER)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
51 $(CC) $(LDFLAGS) -g mc-code-ia32.o $(COMPLIB) $(CONVERTER) -o $@
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
52
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
53 mc-mips :conv/conv.h mc-include.c mc-code-mips.o $(COMPLIB) $(CONVERTER)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
54 $(CC) $(LDFLAGS) -g mc-code-mips.o $(COMPLIB) $(CONVERTER) -o $@
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
55
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
56 mc-arm :conv/conv.h mc-include.c mc-code-arm.o $(COMPLIB) $(CONVERTER)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
57 $(CC) $(LDFLAGS) -g mc-code-arm.o $(COMPLIB) $(CONVERTER) -o $@
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
58
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
59 mc-spu :conv/conv.h mc-include.c mc-code-spu.o $(COMPLIB) $(CONVERTER)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
60 $(CC) $(LDFLAGS) -g mc-code-spu.o $(COMPLIB) $(CONVERTER) -o $@
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
61
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
62 conv/conv.h: conv_func.tbl tools/conv_func.pl
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
63 perl tools/conv_func.pl
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
64 conv/convdef.h: conv_func.tbl tools/conv_func.pl
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
65 perl tools/conv_func.pl
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
66 conv/null.c: conv_func.tbl tools/conv_func.pl
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
67 perl tools/conv_func.pl
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
68
861
c005a392e27e fix for Marvaricks
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 836
diff changeset
69 mc-include.c: stdio.h
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
70 perl tools/find-gcc-include-path -l $(CC) > mc-include.c
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
71
861
c005a392e27e fix for Marvaricks
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 836
diff changeset
72 stdio.h:
c005a392e27e fix for Marvaricks
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 836
diff changeset
73 perl tools/find-gcc-include-path -s $(CC) > stdio.h
c005a392e27e fix for Marvaricks
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 836
diff changeset
74
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
75 mc.h-new:
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
76 perl tools/mc-h-renum.pl mc.h > mc.h.1
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
77 mv mc.h.1 mc.h
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
78
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
79 check-all: check-all-c check-all-code
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
80
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
81 check-all-c:
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
82 make check TARGET=test/basic
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
83 make check-inline TARGET=test/basic
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
84 make check TARGET=test/call
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
85 make check TARGET=test/fact0
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
86 make check TARGET=test/float
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
87 make check TARGET=test/ifdef
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
88 make check TARGET=test/int
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
89 make check TARGET=test/macro
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
90 make check TARGET=test/regargs
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
91 make check TARGET=test/short
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
92 make check TARGET=test/simp
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
93 make check TARGET=test/simp0
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
94 make check TARGET=test/simp1
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
95 make check TARGET=test/static
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
96 make check-inline TARGET=test/static
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
97 make check TARGET=test/tmp
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
98 make check TARGET=test/tmp10
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
99 make check TARGET=test/tmp11
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
100 make check TARGET=test/tmp12
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
101 make check TARGET=test/tmp5
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
102 make check TARGET=test/tmp7
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
103 make check-inline TARGET=test/tmp7
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
104 make check TARGET=test/tmp8
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
105 make check TARGET=test/tmp9
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
106 make check TARGET=test/enum
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
107 make check TARGET=test/obsf
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
108 make check TARGET=test/obsf2
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
109 make check TARGET=test/long
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
110 make check TARGET=test/tstdarg
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
111 make check TARGET=test/switch
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
112 make check-inline TARGET=test/switch
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
113 make check TARGET=test/strinit
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
114 make check-inline TARGET=test/strinit
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
115 make check TARGET=test/code-gen-all
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
116 make check-inline TARGET=test/code-gen-all
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
117 make check TARGET=test/bitfield
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
118 make check TARGET=test/bitfield1
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
119 make check-inline TARGET=test/bitfield1
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
120 make check TARGET=test/cext
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
121 make check TARGET=test/const
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
122 make check TARGET=test/void_code
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
123 make check TARGET=test/putenemy
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
124 make check TARGET=test/inline
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
125 make check TARGET=test/ps2
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
126 make check-inline TARGET=test/ps2
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
127 make check TARGET=test/offset
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
128 make check TARGET=test/multi
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
129 make check-inline TARGET=test/multi
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
130 make check TARGET=test/comp
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
131 make check-inline TARGET=test/comp
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
132 # make check TARGET=test/scope STDFLAG="-std=gnu99"
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
133 # make check-inline TARGET=test/scope STDFLAG="-std=gnu99"
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
134 #MK =-make
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
135 MK=
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
136 check-all-code:
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
137 make check-code$(MK) TARGET=test/arg
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
138 make check-code$(MK) TARGET=test/conv
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
139 make check-code$(MK) TARGET=test/conv1
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
140 make check-code$(MK) TARGET=test/fact-a
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
141 make check-code$(MK) TARGET=test/fact
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
142 make check-code$(MK) TARGET=test/goto
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
143 make check-code$(MK) TARGET=test/test1
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
144 make check-code$(MK) TARGET=test/test2
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
145 make check-code$(MK) TARGET=test/tmpa
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
146 make check-code$(MK) TARGET=test/tmp1
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
147 make check-code$(MK) TARGET=test/tmp2
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
148 make check-code$(MK) TARGET=test/tmp4
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
149 make check-code$(MK) TARGET=test/tmp6
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
150 make check-code$(MK) TARGET=test/tmpb
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
151 make check-code-inline TARGET=test/tmpb
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
152 make check-code$(MK) TARGET=test/scope
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
153 make check-code-inline TARGET=test/scope
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
154 # make check-code$(MK) TARGET=test/throw
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
155 make check-code$(MK) TARGET=test/too-long-argument
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
156
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
157 check-nkf: mc
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
158 ( cd nkf203; $(CC) -g -o nkf1 nkf.c utf8tbl.c )
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
159 ( cd nkf203; ../mc-$(ARCH) nkf.c utf8tbl.c )
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
160 ( cd nkf203; $(CC) -g -o nkf nkf.s utf8tbl.s )
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
161 ( cd nkf203; perl test.pl )
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
162
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
163 # -./$(MC) -Itest/ $(TARGET).c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
164
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
165 check: mc $(MC) $(TARGET).c
868
c55337499f96 remove warnings and error from test
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 862
diff changeset
166 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB) -Wno-literal-conversion -Wno-implicit-function-declaration -Wno-implicit-int \
882
3976dc54ec3d fix Makefile
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 868
diff changeset
167 -Wno-incompatible-pointer-types -Wno-int-conversion -Wno-return-type -Wno-bitfield-constant-conversion -Wno-tautological-compare -Wno-shift-overflow \
3976dc54ec3d fix Makefile
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 868
diff changeset
168 -Wno-unused-value
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
169 -./b.out > $(TARGET).gcc.out
868
c55337499f96 remove warnings and error from test
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 862
diff changeset
170 -./$(MC) $(MCFLAG) $(TARGET).c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
171 -$(CC) $(TARGET).s $(MLIB)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
172 -./a.out > $(TARGET).$(MC).out
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
173 -diff $(TARGET).gcc.out $(TARGET).$(MC).out
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
174
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
175 check-inline: mc $(MC) $(TARGET).c
868
c55337499f96 remove warnings and error from test
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 862
diff changeset
176 -$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB) -Wno-literal-conversion -Wno-implicit-function-declaration -Wno-implicit-int \
882
3976dc54ec3d fix Makefile
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 868
diff changeset
177 -Wno-incompatible-pointer-types -Wno-int-conversion -Wno-return-type -Wno-bitfield-constant-conversion -Wno-tautological-compare -Wno-shift-overflow \
3976dc54ec3d fix Makefile
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 868
diff changeset
178 -Wno-unused-value
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
179 -./b.out > $(TARGET).gcc.out
868
c55337499f96 remove warnings and error from test
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 862
diff changeset
180 -./$(MC) $(MCFLAG) -DINLINE=inline $(TARGET).c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
181 -$(CC) $(TARGET).s $(MLIB)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
182 -./a.out > $(TARGET).$(MC).out
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
183 -diff $(TARGET).gcc.out $(TARGET).$(MC).out
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
184
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
185 check-code: mc $(MC)
868
c55337499f96 remove warnings and error from test
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 862
diff changeset
186 -./$(MC) $(MCFLAG) $(TARGET).c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
187 -$(CC) $(TARGET).s $(MLIB)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
188 -./a.out > $(TARGET).$(MC).out
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
189 -diff $(TARGET).code-out $(TARGET).$(MC).out
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
190 check-code-inline: mc $(MC)
868
c55337499f96 remove warnings and error from test
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 862
diff changeset
191 -./$(MC) $(MCFLAG) -DINLINE=inline $(TARGET).c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
192 -$(CC) $(TARGET).s $(MLIB)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
193 -./a.out > $(TARGET).$(MC).out
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
194 -diff $(TARGET).code-out $(TARGET).$(MC).out
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
195 check-code-make: mc $(MC)
868
c55337499f96 remove warnings and error from test
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 862
diff changeset
196 -./$(MC) $(MCFLAG) $(TARGET).c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
197 -$(CC) $(TARGET).s $(MLIB)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
198 -./a.out > $(TARGET).code-out
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
199
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
200 check-flip: mc $(MC)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
201 -$(CC) -DFLIP -c test/basic2.c
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
202 -$(CC) basic2.o test/basic2.c
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
203 ./a.out
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
204 -./$(MC) test/basic2.c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
205 -$(CC) test/basic2.s -DFLIP test/basic2.c
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
206 ./a.out
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
207 -./$(MC) -DFLIP test/basic2.c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
208 -$(CC) test/basic2.s test/basic2.c
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
209 ./a.out
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
210
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
211 test/code-gen-all.c: test/code-gen.pl test/code-gen.c
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
212 perl test/code-gen.pl < test/code-gen.c > test/code-gen-all.c
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
213
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
214 incpri:
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
215 perl tools/incpri.pl test/*.c
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
216
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
217 tags: tags-$(ARCH)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
218
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
219 tags-$(ARCH):
861
c005a392e27e fix for Marvaricks
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 836
diff changeset
220 ctags -w mc.h mc-code.h mc-code-$(ARCH).c mc-codegen.c mc-codegen.h \
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
221 mc-parse.h mc-tree.c mc-inline.h mc-switch.h \
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
222 mc-macro.h mc-macro.c \
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
223 conv/c.c conv/c.h \
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
224 conv/conv.h conv/convdef.h
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
225
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
226 tar :
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
227 make clean
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
228 tar cBf - . | gzip > ../comp.tgz
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
229
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
230 depend : mc.h mc-include.c
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
231 makedepend -I$(GCC_INCLUDE) mc-code-ia32.c mc-code.h mc-codegen.c mc-codegen.h \
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
232 mc-parse.c mc-tree.c mc-switch.c mc-switch.h mc.h \
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
233 mc-inline.c mc-macro.c mc-macro.h mc-parse.h \
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
234 conv/c.c conv/c.h conv/c2cbc.c conv/c2cbc.h conv/cbc2c.c \
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
235 conv/cbc2c.h conv/conv.h conv/convdef.h conv/null.c conv/null.h \
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
236 mc-code-arm.c \
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
237 mc-code-powerpc.c \
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
238 mc-code-mips.c
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
239
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
240 clean :
861
c005a392e27e fix for Marvaricks
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 836
diff changeset
241 -rm -rf mc mc-spu mc-ia32 mc-powerpc mc-mips mc-arm *.bak *.s *.o *.cc mc mc1 mc2 a.out *~ core* */*.o *.bak test/*.s test/*.cc test/*.o test/*.bak test/*~ conv/*.s conv/*.cc conv/*.o conv/*.bak conv/*~ *.out */*.out *.i */*.i mc-include.c *.dSYM stdio.h
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
242
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
243 mc1 : b00.s b01.s mc-codegen.o mc-tree.o mc-switch.o mc-macro.o mc-inline.o $(CONVERTER)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
244 $(CC) -g -o $@ $(PRINTF) b00.s b01.s mc-codegen.o mc-tree.o mc-switch.o mc-macro.o mc-inline.o $(CONVERTER)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
245
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
246 mc2 : b00.s b01.s b02.s b03.s mc-macro.o mc-inline.o $(CONVERTER)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
247 $(CC) -g -o $@ $(PRINTF) b00.s b01.s b02.s b03.s b04.s mc-macro.o mc-inline.o $(CONVERTER)
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
248
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
249 b00.s : mc-parse.c $(MC)
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
250 ./$(MC) $(MCFLAG) -ob00.s mc-parse.c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
251 b01.s : $(CODE) $(MC)
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
252 ./$(MC) $(MCFLAG) -ob01.s $(CODE)
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
253 b02.s : mc-codegen.c $(MC)
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
254 ./$(MC) $(MCFLAG) -ob02.s mc-codegen.c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
255 b03.s : mc-tree.c $(MC)
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
256 ./$(MC) $(MCFLAG) -ob03.s mc-tree.c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
257 b04.s : mc-switch.c $(MC)
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
258 ./$(MC) $(MCFLAG) -ob04.s mc-switch.c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
259
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
260 b10.s : mc-parse.c mc1
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
261 ./mc1 $(MCFLAG) -ob10.s mc-parse.c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
262 b11.s : $(CODE) $(PRINTF) mc1
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
263 ./mc1 $(MCFLAG) -ob11.s $(CODE)
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
264 b12.s : mc-codegen.c mc1
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
265 ./mc1 $(MCFLAG) -ob12.s mc-codegen.c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
266 b13.s : mc-tree.c mc1
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
267 ./mc1 $(MCFLAG) -ob13.s mc-tree.c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
268 b14.s : mc-switch.c mc1
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
269 ./mc1 $(MCFLAG) -ob14.s mc-switch.c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
270
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
271 b20.s : mc-parse.c mc2
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
272 ./mc2 $(MCFLAG) -ob20.s mc-parse.c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
273 b21.s : $(CODE) $(PRINTF) mc2
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
274 ./mc2 $(MCFLAG) -ob21.s $(CODE)
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
275 b22.s : mc-codegen.c mc2
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
276 ./mc2 $(MCFLAG) -ob22.s mc-codegen.c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
277 b23.s : mc-tree.c mc2
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
278 ./mc2 $(MCFLAG) -ob23.s mc-tree.c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
279 b24.s : mc-switch.c mc1
862
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 861
diff changeset
280 ./mc2 $(MCFLAG) -ob24.s mc-switch.c
804
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
281
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
282 diff : b00.s b01.s b02.s b03.s b04.s b10.s b11.s b12.s b13.s b14.s
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
283 -diff b00.s b10.s
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
284 -diff b01.s b11.s
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
285 -diff b02.s b12.s
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
286 -diff b03.s b13.s
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
287 -diff b04.s b14.s
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
288
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
289 diff2 : b00.s b01.s b02.s b03.s b04.s b20.s b21.s b22.s b23.s b24.s
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
290 -diff b00.s b20.s
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
291 -diff b01.s b21.s
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
292 -diff b02.s b22.s
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
293 -diff b03.s b23.s
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
294 -diff b04.s b24.s
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
295
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
296
aec31f182f9f PS3 PPU register
kono@localhost.localdomain
parents:
diff changeset
297 # DO NOT DELETE