annotate Makefile @ 93:8f5d61239b93

*** empty log message ***
author kono
date Sun, 09 Mar 2003 18:31:00 +0900
parents 25654dc29ecc
children 1ad7045741a7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
1 CC = gcc
59
eeca07d1b1c2 *** empty log message ***
kono
parents: 32
diff changeset
2 CFLAGS = -g -Wall -I.
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
3 BASE=0
d35df41eac69 Initial revision
kono
parents:
diff changeset
4 STAGE=1
d35df41eac69 Initial revision
kono
parents:
diff changeset
5 MFLAGS=$(MFALGS) BASE=$(BASE) STAGE=$(STAGE)
d35df41eac69 Initial revision
kono
parents:
diff changeset
6 MC=mc
d35df41eac69 Initial revision
kono
parents:
diff changeset
7 PRINTF= # printf.c
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
8 CONVERTER=conv/c.o conv/null.o
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
9 # conv/c2cbc.o conv/cbc2c.o
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
10
93
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
11 # CODE=mc-code-ia32.o
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
12 CODE=mc-code-powerpc.o
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
13
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
14 all: mc
d35df41eac69 Initial revision
kono
parents:
diff changeset
15
93
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
16 mc : mc-parse.o mc-codegen.o $(CODE) mc-tree.o $(CONVERTER)
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
17 $(CC) -g mc-parse.o mc-codegen.o $(CODE) \
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
18 mc-tree.o $(CONVERTER) -o $@
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
19
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
20 conv/conv.h: conv_func.tbl conv_func.pl
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
21 perl conv_func.pl
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
22 conv/convdef.h: conv_func.tbl conv_func.pl
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
23 perl conv_func.pl
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
24 conv/null.c: conv_func.tbl conv_func.pl
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
25 perl conv_func.pl
254a0c576114 argument type list
kono
parents: 66
diff changeset
26
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
27 tar :
d35df41eac69 Initial revision
kono
parents:
diff changeset
28 make clean
d35df41eac69 Initial revision
kono
parents:
diff changeset
29 tar cBf - . | gzip > ../comp.tgz
d35df41eac69 Initial revision
kono
parents:
diff changeset
30
d35df41eac69 Initial revision
kono
parents:
diff changeset
31 depend :
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
32 makedepend mc-code-ia32.c mc-code.h mc-codegen.c mc-codegen.h \
254a0c576114 argument type list
kono
parents: 66
diff changeset
33 mc-parse.c mc-tree.c mc.h \
254a0c576114 argument type list
kono
parents: 66
diff changeset
34 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
35 conv/cbc2c.h conv/conv.h conv/convdef.h conv/null.c conv/null.h \
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
36 mc-code-powerpc.c
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
37
d35df41eac69 Initial revision
kono
parents:
diff changeset
38 clean :
81
f94ca1168520 float first try...
kono
parents: 78
diff changeset
39 -rm -f *.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/*~
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
40
78
8418d4b7caa7 *** empty log message ***
kono
parents: 67
diff changeset
41 mc1 : b00.s b01.s mc-codegen.o mc-tree.o $(CONVERTER)
8418d4b7caa7 *** empty log message ***
kono
parents: 67
diff changeset
42 $(CC) -g -o $@ $(PRINTF) b00.s b01.s mc-codegen.o mc-tree.o $(CONVERTER)
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
43 b00.s : mc-parse.c mc
65
8ad746efa4f8 *** empty log message ***
kono
parents: 62
diff changeset
44 ./mc -s -ob00.s mc-parse.c
62
129f4802b027 separation done
kono
parents: 61
diff changeset
45 b01.s : mc-code-ia32.c mc
65
8ad746efa4f8 *** empty log message ***
kono
parents: 62
diff changeset
46 ./mc -s -ob01.s mc-code-ia32.c
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
47 b10.s : mc-parse.c mc1
65
8ad746efa4f8 *** empty log message ***
kono
parents: 62
diff changeset
48 ./mc1 -s -ob10.s mc-parse.c
62
129f4802b027 separation done
kono
parents: 61
diff changeset
49 b11.s : mc-code-ia32.c $(PRINTF) mc1
65
8ad746efa4f8 *** empty log message ***
kono
parents: 62
diff changeset
50 ./mc1 -s -ob11.s mc-code-ia32.c
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
51
d35df41eac69 Initial revision
kono
parents:
diff changeset
52 diff : b00.s b01.s b10.s b11.s
d35df41eac69 Initial revision
kono
parents:
diff changeset
53 -diff b00.s b10.s
d35df41eac69 Initial revision
kono
parents:
diff changeset
54 -diff b01.s b11.s
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
55
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
56 # DO NOT DELETE
d35df41eac69 Initial revision
kono
parents:
diff changeset
57
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
58 mc-code-ia32.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
59 mc-code-ia32.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
60 mc-code-ia32.o: /usr/include/machine/types.h /usr/include/ppc/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
61 mc-code-ia32.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
62 mc-code-ia32.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
93
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
63 mc-code-ia32.o: conv/conv.h mc-codegen.h
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
64 mc-codegen.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
65 mc-codegen.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
66 mc-codegen.o: /usr/include/machine/types.h /usr/include/ppc/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
67 mc-codegen.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
68 mc-codegen.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
93
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
69 mc-codegen.o: conv/conv.h mc-codegen.h mc-code.h
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
70 mc-parse.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
71 mc-parse.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
72 mc-parse.o: /usr/include/machine/types.h /usr/include/ppc/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
73 mc-parse.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
74 mc-parse.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
93
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
75 mc-parse.o: conv/conv.h mc-codegen.h
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
76 mc-tree.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
77 mc-tree.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
78 mc-tree.o: /usr/include/machine/types.h /usr/include/ppc/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
79 mc-tree.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
80 mc-tree.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
93
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
81 mc-tree.o: conv/conv.h
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
82 mc.o: /usr/include/stdio.h /usr/include/sys/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
83 mc.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
84 mc.o: /usr/include/machine/types.h /usr/include/ppc/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
85 mc.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
86 mc.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h conv/conv.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
87 conv/c.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
88 conv/c.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
89 conv/c.o: /usr/include/machine/types.h /usr/include/ppc/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
90 conv/c.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
91 conv/c.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h conv/conv.h
93
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
92 conv/c.o: conv/convdef.h conv/c.h
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
93 conv/c2cbc.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
94 conv/c2cbc.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
95 conv/c2cbc.o: /usr/include/machine/types.h /usr/include/ppc/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
96 conv/c2cbc.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
97 conv/c2cbc.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
93
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
98 conv/c2cbc.o: conv/conv.h
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
99 conv/cbc2c.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
100 conv/cbc2c.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
101 conv/cbc2c.o: /usr/include/machine/types.h /usr/include/ppc/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
102 conv/cbc2c.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
103 conv/cbc2c.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
93
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
104 conv/cbc2c.o: conv/conv.h
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
105 conv/null.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
106 conv/null.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
107 conv/null.o: /usr/include/machine/types.h /usr/include/ppc/types.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
108 conv/null.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
254a0c576114 argument type list
kono
parents: 66
diff changeset
109 conv/null.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
93
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
110 conv/null.o: conv/conv.h conv/convdef.h conv/null.h
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
111 mc-code-powerpc.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
112 mc-code-powerpc.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
113 mc-code-powerpc.o: /usr/include/machine/types.h /usr/include/ppc/types.h
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
114 mc-code-powerpc.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
115 mc-code-powerpc.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
8f5d61239b93 *** empty log message ***
kono
parents: 82
diff changeset
116 mc-code-powerpc.o: conv/conv.h mc-codegen.h