annotate Makefile @ 138:e6e77af048a1 float-double

float/dobule configuration
author kono
date Tue, 06 May 2003 02:31:46 +0900
parents fea1b499d47b
children aac62d1e30a6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
127
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
1 CC = gcc
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
2 # -O3
59
eeca07d1b1c2 *** empty log message ***
kono
parents: 32
diff changeset
3 CFLAGS = -g -Wall -I.
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
4 BASE=0
d35df41eac69 Initial revision
kono
parents:
diff changeset
5 STAGE=1
d35df41eac69 Initial revision
kono
parents:
diff changeset
6 MFLAGS=$(MFALGS) BASE=$(BASE) STAGE=$(STAGE)
126
1d1612fe705a *** empty log message ***
kono
parents: 123
diff changeset
7 ARCH=powerpc
1d1612fe705a *** empty log message ***
kono
parents: 123
diff changeset
8 MC=mc-$(ARCH)
1d1612fe705a *** empty log message ***
kono
parents: 123
diff changeset
9 # MLIB = -lm
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
10 PRINTF= # printf.c
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
11 CONVERTER=conv/c.o conv/null.o
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
12 # conv/c2cbc.o conv/cbc2c.o
94
1ad7045741a7 float dbinop fix
kono
parents: 93
diff changeset
13 COMPLIB = mc-parse.o mc-codegen.o mc-tree.o
109
e09f9de6f5d3 *** empty log message ***
kono
parents: 94
diff changeset
14 # CODE=mc-code-ia32.c
126
1d1612fe705a *** empty log message ***
kono
parents: 123
diff changeset
15 CODE=mc-code-$(ARCH).c
93
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
16
130
fea1b499d47b fix register var save
kono
parents: 127
diff changeset
17 all: mc mc-ia32 mc-powerpc mc-mips
94
1ad7045741a7 float dbinop fix
kono
parents: 93
diff changeset
18
126
1d1612fe705a *** empty log message ***
kono
parents: 123
diff changeset
19 mc: mc-$(ARCH)
1d1612fe705a *** empty log message ***
kono
parents: 123
diff changeset
20 cp mc-$(ARCH) mc
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
21
94
1ad7045741a7 float dbinop fix
kono
parents: 93
diff changeset
22 mc-powerpc : mc-code-powerpc.o $(COMPLIB) $(CONVERTER)
1ad7045741a7 float dbinop fix
kono
parents: 93
diff changeset
23 $(CC) -g mc-code-powerpc.o $(COMPLIB) $(CONVERTER) -o $@
1ad7045741a7 float dbinop fix
kono
parents: 93
diff changeset
24
1ad7045741a7 float dbinop fix
kono
parents: 93
diff changeset
25 mc-ia32 : mc-code-ia32.o $(COMPLIB) $(CONVERTER)
1ad7045741a7 float dbinop fix
kono
parents: 93
diff changeset
26 $(CC) -g mc-code-ia32.o $(COMPLIB) $(CONVERTER) -o $@
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
27
130
fea1b499d47b fix register var save
kono
parents: 127
diff changeset
28 mc-mips : mc-code-mips.o $(COMPLIB) $(CONVERTER)
fea1b499d47b fix register var save
kono
parents: 127
diff changeset
29 $(CC) -g mc-code-mips.o $(COMPLIB) $(CONVERTER) -o $@
fea1b499d47b fix register var save
kono
parents: 127
diff changeset
30
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
31 conv/conv.h: conv_func.tbl conv_func.pl
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
32 perl conv_func.pl
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
33 conv/convdef.h: conv_func.tbl conv_func.pl
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
34 perl conv_func.pl
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
35 conv/null.c: conv_func.tbl conv_func.pl
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
36 perl conv_func.pl
254a0c576114 argument type list
kono
parents: 66
diff changeset
37
118
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
38 check-all:
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
39 make check TARGET=test/basic
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
40 make check TARGET=test/call
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
41 make check TARGET=test/fact0
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
42 make check TARGET=test/float
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
43 make check TARGET=test/ifdef
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
44 make check TARGET=test/int
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
45 make check TARGET=test/macro
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
46 make check TARGET=test/regargs
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
47 make check TARGET=test/simp
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
48 make check TARGET=test/simp0
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
49 make check TARGET=test/tmp
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
50 make check TARGET=test/tmp10
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
51 make check TARGET=test/tmp11
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
52 make check TARGET=test/tmp7
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
53 make check TARGET=test/tmp8
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
54 make check TARGET=test/tmp9
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
55
122
b884271bcab2 input registers (long arguments )
kono
parents: 118
diff changeset
56 check: $(MC)
126
1d1612fe705a *** empty log message ***
kono
parents: 123
diff changeset
57 -gcc $(TARGET).c -o b.out $(MLIB)
123
5f180dc8d84e intel fix.
kono
parents: 122
diff changeset
58 -./b.out > $(TARGET).gcc.out
5f180dc8d84e intel fix.
kono
parents: 122
diff changeset
59 -./$(MC) -s $(TARGET).c
127
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
60 -gcc $(TARGET).s $(MLIB)
123
5f180dc8d84e intel fix.
kono
parents: 122
diff changeset
61 -./a.out > $(TARGET).$(MC).out
118
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
62 -diff $(TARGET).gcc.out $(TARGET).$(MC).out
07b91b625f84 assignment optimization
kono
parents: 109
diff changeset
63
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
64 tar :
d35df41eac69 Initial revision
kono
parents:
diff changeset
65 make clean
d35df41eac69 Initial revision
kono
parents:
diff changeset
66 tar cBf - . | gzip > ../comp.tgz
d35df41eac69 Initial revision
kono
parents:
diff changeset
67
d35df41eac69 Initial revision
kono
parents:
diff changeset
68 depend :
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
69 makedepend mc-code-ia32.c mc-code.h mc-codegen.c mc-codegen.h \
254a0c576114 argument type list
kono
parents: 66
diff changeset
70 mc-parse.c mc-tree.c mc.h \
254a0c576114 argument type list
kono
parents: 66
diff changeset
71 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
72 conv/cbc2c.h conv/conv.h conv/convdef.h conv/null.c conv/null.h \
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
73 mc-code-powerpc.c
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
74
d35df41eac69 Initial revision
kono
parents:
diff changeset
75 clean :
138
e6e77af048a1 float/dobule configuration
kono
parents: 130
diff changeset
76 -rm -f mc mc-ia32 mc-powerpc mc-mips *.bak *.s *.o *.cc mc mc1 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
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
77
78
8418d4b7caa7 *** empty log message ***
kono
parents: 67
diff changeset
78 mc1 : b00.s b01.s mc-codegen.o mc-tree.o $(CONVERTER)
8418d4b7caa7 *** empty log message ***
kono
parents: 67
diff changeset
79 $(CC) -g -o $@ $(PRINTF) b00.s b01.s mc-codegen.o mc-tree.o $(CONVERTER)
94
1ad7045741a7 float dbinop fix
kono
parents: 93
diff changeset
80 b00.s : mc-parse.c $(MC)
1ad7045741a7 float dbinop fix
kono
parents: 93
diff changeset
81 ./$(MC) -s -ob00.s mc-parse.c
109
e09f9de6f5d3 *** empty log message ***
kono
parents: 94
diff changeset
82 b01.s : $(CODE) $(MC)
e09f9de6f5d3 *** empty log message ***
kono
parents: 94
diff changeset
83 ./$(MC) -s -ob01.s $(CODE)
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
84 b10.s : mc-parse.c mc1
65
8ad746efa4f8 *** empty log message ***
kono
parents: 62
diff changeset
85 ./mc1 -s -ob10.s mc-parse.c
109
e09f9de6f5d3 *** empty log message ***
kono
parents: 94
diff changeset
86 b11.s : $(CODE) $(PRINTF) mc1
e09f9de6f5d3 *** empty log message ***
kono
parents: 94
diff changeset
87 ./mc1 -s -ob11.s $(CODE)
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
88
d35df41eac69 Initial revision
kono
parents:
diff changeset
89 diff : b00.s b01.s b10.s b11.s
d35df41eac69 Initial revision
kono
parents:
diff changeset
90 -diff b00.s b10.s
d35df41eac69 Initial revision
kono
parents:
diff changeset
91 -diff b01.s b11.s
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
92
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
93 # DO NOT DELETE
d35df41eac69 Initial revision
kono
parents:
diff changeset
94
127
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
95 mc-code-ia32.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
96 mc-code-ia32.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
97 mc-code-ia32.o: /usr/include/machine/types.h /usr/include/ppc/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
98 mc-code-ia32.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
99 mc-code-ia32.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
100 mc-code-ia32.o: conv/conv.h mc-codegen.h mc-code.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
101 mc-codegen.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
102 mc-codegen.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
103 mc-codegen.o: /usr/include/machine/types.h /usr/include/ppc/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
104 mc-codegen.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
105 mc-codegen.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
106 mc-codegen.o: conv/conv.h mc-codegen.h mc-code.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
107 mc-parse.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
108 mc-parse.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
109 mc-parse.o: /usr/include/machine/types.h /usr/include/ppc/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
110 mc-parse.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
111 mc-parse.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
112 mc-parse.o: conv/conv.h mc-codegen.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
113 mc-tree.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
114 mc-tree.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
115 mc-tree.o: /usr/include/machine/types.h /usr/include/ppc/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
116 mc-tree.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
117 mc-tree.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
118 mc-tree.o: conv/conv.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
119 mc.o: /usr/include/stdio.h /usr/include/sys/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
120 mc.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
121 mc.o: /usr/include/machine/types.h /usr/include/ppc/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
122 mc.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
123 mc.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h conv/conv.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
124 conv/c.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
125 conv/c.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
126 conv/c.o: /usr/include/machine/types.h /usr/include/ppc/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
127 conv/c.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
128 conv/c.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h conv/conv.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
129 conv/c.o: conv/convdef.h conv/c.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
130 conv/c2cbc.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
131 conv/c2cbc.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
132 conv/c2cbc.o: /usr/include/machine/types.h /usr/include/ppc/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
133 conv/c2cbc.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
134 conv/c2cbc.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
135 conv/c2cbc.o: conv/conv.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
136 conv/cbc2c.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
137 conv/cbc2c.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
138 conv/cbc2c.o: /usr/include/machine/types.h /usr/include/ppc/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
139 conv/cbc2c.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
140 conv/cbc2c.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
141 conv/cbc2c.o: conv/conv.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
142 conv/null.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
143 conv/null.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
144 conv/null.o: /usr/include/machine/types.h /usr/include/ppc/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
145 conv/null.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
146 conv/null.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
147 conv/null.o: conv/conv.h conv/convdef.h conv/null.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
148 mc-code-powerpc.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
149 mc-code-powerpc.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
150 mc-code-powerpc.o: /usr/include/machine/types.h /usr/include/ppc/types.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
151 mc-code-powerpc.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
152 mc-code-powerpc.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
eb4d8975926c Intel float fix
kono
parents: 126
diff changeset
153 mc-code-powerpc.o: conv/conv.h mc-code.h mc-codegen.h