blob: ef659e3b101ae7977c21d99a4321352ee70e82ea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
|
--- ../../work/cocktail-9309//./specs/c/minilax/Makefile Tue Feb 15 14:28:44 1994
+++ ./specs/c/minilax/Makefile Wed Mar 31 23:06:11 2004
@@ -1,7 +1,3 @@
-LIB = $(HOME)/lib
-INCDIR = $(LIB)/include
-CFLAGS = -I$(INCDIR)
-CC = cc
SOURCES = Scanner.h Scanner.c Parser.h Parser.c Tree.h Tree.c \
Semantics.h Semantics.c Types.h Types.c Definitions.h Definitions.c \
@@ -21,31 +17,31 @@
lpp -cxzj minilax.pars;
minilax.rex: minilax.scan Scanner.rpp
- rpp < minilax.scan > minilax.rex;
+ $(RPP) < minilax.scan > minilax.rex;
Scanner.h Scanner.c: minilax.rex
- rex -cd minilax.rex;
+ $(REX) -cd minilax.rex;
Parser.h Parser.c: Parser.lalr
- lalr -c -d -g Parser.lalr;
+ $(LALR) -c -d -g Parser.lalr;
Tree.h Tree.c: minilax.cg
- cg -cdimRDI0 minilax.cg;
+ $(CG) -cdimRDI0 minilax.cg;
Semantics.h Semantics.c: minilax.cg
- cg -cDI0 minilax.cg;
+ $(CG) -cDI0 minilax.cg;
Definitions.h Definitions.c Definitions.TS: Definitions.cg
- cg -cdim4 Definitions.cg;
+ $(CG) -cdim4 Definitions.cg;
Tree.TS: minilax.cg
- echo SELECT AbstractSyntax Output | cat - minilax.cg | cg -c4
+ echo SELECT AbstractSyntax Output | cat - minilax.cg | $(CG) -c4
Types.h Types.c: Types.puma Tree.TS
- puma -cdipk Types.puma;
+ $(PUMA) -cdipk Types.puma;
ICode.h ICode.c: ICode.puma Tree.TS Definitions.TS
- puma -cdi ICode.puma;
+ $(PUMA) -cdi ICode.puma;
Parser.o: Parser.h Scanner.h Tree.h Types.h Definitions.h
Semantics.o: Semantics.h Tree.h Definitions.h Types.h
@@ -59,87 +55,85 @@
lint $(CFLAGS) -u *.c
test: $(SOURCES)
- cg -cdimRDI0 minilax.cg;
+ $(CG) -cdimRDI0 minilax.cg;
make minilax LIB=$(LIB)
tcsh -c "time minilax < in5; time minilax < in5; time minilax < in5; time minilax < in5"
wc Semantics.c
size Semantics.o
- cg -cdimRDI09 minilax.cg;
+ $(CG) -cdimRDI09 minilax.cg;
make minilax LIB=$(LIB)
time minilax < in5
- cg -cdimRDI minilax.cg;
+ $(CG) -cdimRDI minilax.cg;
make minilax LIB=$(LIB)
tcsh -c "time minilax < in5; time minilax < in5; time minilax < in5; time minilax < in5"
wc Semantics.c
size Semantics.o
- cg -cdimRDI9 minilax.cg;
+ $(CG) -cdimRDI9 minilax.cg;
make minilax LIB=$(LIB)
time minilax < in5
- cg -cdimRDIL minilax.cg;
+ $(CG) -cdimRDIL minilax.cg;
make minilax LIB=$(LIB)
tcsh -c "time minilax < in5; time minilax < in5; time minilax < in5; time minilax < in5"
wc Semantics.c
size Semantics.o
- cg -cdimRDIL9 minilax.cg;
+ $(CG) -cdimRDIL9 minilax.cg;
make minilax LIB=$(LIB)
time minilax < in5
- cg -cdimRDIK minilax.cg;
+ $(CG) -cdimRDIK minilax.cg;
make minilax LIB=$(LIB)
tcsh -c "time minilax < in5; time minilax < in5; time minilax < in5; time minilax < in5"
wc Semantics.c
size Semantics.o
- cg -cdimRDIK9 minilax.cg;
+ $(CG) -cdimRDIK9 minilax.cg;
make minilax LIB=$(LIB)
time minilax < in5
test2: $(SOURCES)
- cg -cdimRD minilax.cg
- cg -cI minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cI0 minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cIL minilax.cg; make minilax LIB=$(LIB)
- cg -cIK minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cdimRD0 minilax.cg
- cg -cI minilax.cg; make minilax LIB=$(LIB)
- cg -cI0 minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cIL minilax.cg; make minilax LIB=$(LIB)
- cg -cIK minilax.cg; make minilax LIB=$(LIB)
- cg -cdimRDL minilax.cg
- cg -cI minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cI0 minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cIL minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cIK minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cdimRD minilax.cg
+ $(CG) -cI minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cI0 minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cIL minilax.cg; make minilax LIB=$(LIB)
+ $(CG) -cIK minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cdimRD0 minilax.cg
+ $(CG) -cI minilax.cg; make minilax LIB=$(LIB)
+ $(CG) -cI0 minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cIL minilax.cg; make minilax LIB=$(LIB)
+ $(CG) -cIK minilax.cg; make minilax LIB=$(LIB)
+ $(CG) -cdimRDL minilax.cg
+ $(CG) -cI minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cI0 minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cIL minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cIK minilax.cg; make minilax LIB=$(LIB); minilax < in1
trace: $(SOURCES)
- cg -cdimRwDI09 minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cI09T minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cI09YZ minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cI09X minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cI09Y minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cI09Z minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cdimRwDI9 minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cI9T minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cI9YZ minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cI9X minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cI9Y minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cI9Z minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cdimRwDIL9 minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cIL9T minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cIL9YZ minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cIL9X minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cIL9Y minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cIL9Z minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cdimRwDIK9 minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cIK9T minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cIK9YZ minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cIK9X minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cIK9Y minilax.cg; make minilax LIB=$(LIB); minilax < in1
- cg -cIK9Z minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cdimRwDI09 minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cI09T minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cI09YZ minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cI09X minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cI09Y minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cI09Z minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cdimRwDI9 minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cI9T minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cI9YZ minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cI9X minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cI9Y minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cI9Z minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cdimRwDIL9 minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cIL9T minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cIL9YZ minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cIL9X minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cIL9Y minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cIL9Z minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cdimRwDIK9 minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cIK9T minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cIK9YZ minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cIK9X minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cIK9Y minilax.cg; make minilax LIB=$(LIB); minilax < in1
+ $(CG) -cIK9Z minilax.cg; make minilax LIB=$(LIB); minilax < in1
clean:
- rm -f Scanner.? Parser.? Tree.? Semantics.? Definitions.? Types.? ICode.? *.TS
- rm -f core _Debug minilax *Tab minilax.rex Parser.lalr Scanner.rpp yy*.w *.o
+ rm -f Scanner.? Parser.? Tree.? Semantics.? Definitions.?
+ rm -f core _Debug minilax *Tab minilax.rex Parser.lalr
+ rm -f Types.? ICode.? *.TS Scanner.rpp yy*.w *.o
-.SUFFIXES: .c .o
-
-.c.o:
- $(CC) $(CFLAGS) -c $*.c
+.include "../../../Makefile.inc"
|