1 #############################################################################
2 # The following parameters must be altered for each platform and compiler.
3 # The default is for g++ on Unix and MSDOG.
4 #############################################################################
10 #PROP_OPTS = -s $(CINCLUDE)
12 OBJS
= ac.
$(OBJ
) acgen.
$(OBJ
) bottomup.
$(OBJ
) lr0.
$(OBJ
) compdfa.
$(OBJ
) densedfa.
$(OBJ
)
13 OBJS2
= gentable.
$(OBJ
) grammar.
$(OBJ
) lr1.
$(OBJ
) lalr1gen.
$(OBJ
)
14 OBJS3
= lexer.
$(OBJ
) lexergen.
$(OBJ
) ll1.
$(OBJ
) ll1gen.
$(OBJ
) ll1parse.
$(OBJ
) lrgen.
$(OBJ
)
15 OBJS4
= llk.
$(OBJ
) llkgen.
$(OBJ
) lrk.
$(OBJ
) lrparser.
$(OBJ
) lookahd.
$(OBJ
)
16 OBJS5
= scanner.
$(OBJ
) sparsdfa.
$(OBJ
) topdown.
$(OBJ
) topdowng.
$(OBJ
)
17 OBJS6
= treeauto.
$(OBJ
) treegen.
$(OBJ
) treegram.
$(OBJ
) regexmat.
$(OBJ
)
18 OBJS7
= nullable.
$(OBJ
) firstset.
$(OBJ
) follow.
$(OBJ
) first_k.
$(OBJ
) follow_k.
$(OBJ
) operprec.
$(OBJ
)
19 OBJS8
= nfa.
$(OBJ
) nfa_node.
$(OBJ
) nfa32.
$(OBJ
) lr1gen.
$(OBJ
) lrkgen.
$(OBJ
) gla.
$(OBJ
) lexerbuf.
$(OBJ
)
20 OBJS9
= iolexerbuf.
$(OBJ
) iolexerstack.
$(OBJ
) item.
$(OBJ
) firstset2.
$(OBJ
) fastac.
$(OBJ
)
22 SRC
+= $(wildcard $(S
)/%.
cc)
24 #############################################################################
26 #############################################################################
27 #SRC = treegram.cc topdowng.cc treegen.cc
30 #treegram.cc: treegram.pcc $D/treegram.ph
31 #topdowng.cc: topdowng.pcc $D/treegram.ph
32 #treegen.cc: treegen.pcc $D/treegram.ph
34 ac.
$(OBJ
): $(S
)/ac.
cc $D/ac.h
$D/compdfa.h
$(ad
)/generic
/generic.h \
35 $D/sparsdfa.h
$D/dfatable.h
36 acgen.
$(OBJ
): acgen.
cc $D/acgen.h
$D/sparsdfa.h
$D/compdfa.h \
37 $(ad
)/tries
/briandai.h
$(ad
)/contain
/varstack.h \
38 $(ad
)/contain
/queue.h
$(ad
)/generic
/generic.h \
40 factac.
$(OBJ
): factac.
cc $D/acgen.h
$D/sparsdfa.h
$D/compdfa.h \
41 $(ad
)/tries
/briandai.h
$(ad
)/contain
/varstack.h \
42 $(ad
)/contain
/queue.h
$(ad
)/generic
/generic.h \
44 nullable.
$(OBJ
): nullable.
cc $D/nullable.h
$(ad
)/contain
/bitset.h \
45 $D/grammar.h
$(ad
)/memory
/mempool.h
$(ad
)/generic
/generic.h \
46 $D/dfatable.h
$(ad
)/memory
/mem.h
47 firstset.
$(OBJ
): firstset.
cc $D/firstset.h
$D/nullable.h
$(ad
)/contain
/bitset.h \
48 $D/grammar.h
$(ad
)/memory
/mempool.h
$(ad
)/generic
/generic.h \
49 $D/dfatable.h
$(ad
)/memory
/mem.h
50 firstset2.
$(OBJ
): firstset2.
cc $D/firstset2.h \
51 $D/firstset.h
$D/nullable.h
$(ad
)/contain
/bitset.h \
52 $D/grammar.h
$(ad
)/memory
/mempool.h
$(ad
)/generic
/generic.h \
53 $D/dfatable.h
$(ad
)/memory
/mem.h
54 follow.
$(OBJ
): follow.
cc $D/follow.h
$D/firstset.h
$D/nullable.h \
55 $(ad
)/contain
/bitset.h \
56 $D/grammar.h
$(ad
)/memory
/mempool.h
$(ad
)/generic
/generic.h \
57 $D/dfatable.h
$(ad
)/memory
/mem.h
58 first_k.
$(OBJ
): first_k.
cc $D/first_k.h
$D/follow.h
$D/firstset.h
$D/nullable.h \
59 $(ad
)/contain
/bitset.h \
60 $D/grammar.h
$(ad
)/memory
/mempool.h
$(ad
)/generic
/generic.h \
61 $D/dfatable.h
$(ad
)/memory
/mem.h
62 follow_k.
$(OBJ
): follow_k.
cc $D/follow_k.h
$D/first_k.h
$D/follow.h \
63 $D/firstset.h
$D/nullable.h
$(ad
)/contain
/bitset.h \
64 $D/grammar.h
$(ad
)/memory
/mempool.h
$(ad
)/generic
/generic.h \
65 $D/dfatable.h
$(ad
)/memory
/mem.h
66 bottomup.
$(OBJ
): bottomup.
cc $D/bottomup.h
$D/treeauto.h \
67 $D/treepat.h
$D/termpat.h
$(ad
)/generic
/generic.h \
68 $(ad
)/contain
/dchmap.h
$(ad
)/memory
/mempool.h \
69 $(ad
)/contain
/vararray.h
$(ad
)/contain
/stack.h \
70 $(ad
)/contain
/varqueue.h
$D/treetab.h \
71 $D/dfatable.h
$(ad
)/memory
/mem.h \
72 $D/compdfa.h
$D/sparsdfa.h
73 item.
$(OBJ
): item.
cc $D/item.h
$D/grammar.h
$D/gentable.h \
74 $(ad
)/generic
/generic.h
75 lr0.
$(OBJ
): lr0.
cc $D/lr0.h
$D/grammar.h
$D/gentable.h \
76 $(ad
)/hash
/dchash.h
$(ad
)/contain
/hashmap.h \
77 $(ad
)/contain
/dchmap.h
$(ad
)/generic
/generic.h \
78 $(ad
)/generic
/ordering.h
$D/item.h
$(ad
)/memory
/mempool.h \
79 $D/dfatable.h
$(ad
)/contain
/bitset.h
$(ad
)/memory
/mem.h
80 gla.
$(OBJ
): gla.
cc $D/gla.h
$D/grammar.h
$D/gentable.h \
81 $(ad
)/hash
/dchash.h
$(ad
)/contain
/hashmap.h \
82 $(ad
)/contain
/dchmap.h
$(ad
)/generic
/generic.h \
83 $(ad
)/generic
/ordering.h
$(ad
)/memory
/mempool.h \
84 $D/dfatable.h
$(ad
)/contain
/bitset.h
$(ad
)/memory
/mem.h
85 compdfa.
$(OBJ
): compdfa.
cc $D/compdfa.h
$(ad
)/generic
/generic.h \
87 densedfa.
$(OBJ
): densedfa.
cc $D/densedfa.h
$D/sparsdfa.h
$D/compdfa.h \
88 $(ad
)/contain
/varstack.h
$(ad
)/generic
/generic.h \
89 $D/dfatable.h
$(ad
)/memory
/mem.h
90 dfa.
$(OBJ
): dfa.
cc $D/dfa.h
$(ad
)/contain
/map.h
$(ad
)/memory
/mempool.h \
91 $(ad
)/generic
/generic.h
$(ad
)/memory
/mem.h
92 gentable.
$(OBJ
): gentable.
cc $D/gentable.h
$(ad
)/generic
/generic.h
93 graminfo.
$(OBJ
): graminfo.
cc $D/graminfo.h
$D/grammar.h \
94 $(ad
)/contain
/intsets.h
$(ad
)/generic
/generic.h \
95 $(ad
)/sort/shellsrt.h
$(ad
)/generic
/ordering.h \
96 $(ad
)/sort/sorting.h
$D/dfatable.h
97 grammar.
$(OBJ
): grammar.
cc $D/grammar.h
$(ad
)/generic
/generic.h \
98 $D/dfatable.h
$(ad
)/strings
/charesc.h
99 #labtree.$(OBJ): labtree.cc $D/labtree.h $(ad)/contain/charset.h \
100 # $(ad)/generic/generic.h $D/dfatable.h
101 lr1.
$(OBJ
): lr1.
cc $D/lr1.h
$D/grammar.h
$(ad
)/generic
/generic.h \
103 lrparser.
$(OBJ
): lrparser.
cc $D/lrparser.h
$D/lr1.h \
104 $D/grammar.h
$(ad
)/generic
/generic.h \
105 $D/compdfa.h
$D/dfatable.h
106 lalr1gen.
$(OBJ
): lalr1gen.
cc $D/grammar.h
$(ad
)/generic
/generic.h \
107 $(ad
)/hash
/dchash.h
$(ad
)/contain
/hashmap.h
$(ad
)/contain
/dchmap.h \
108 $(ad
)/memory
/mempool.h
$D/gentable.h
$D/lrgen.h \
109 $D/lr0.h
$D/lookahd.h
$D/operprec.h \
110 $D/dfatable.h
$(ad
)/contain
/bitset.h
$D/densedfa.h \
111 $D/sparsdfa.h
$(ad
)/memory
/mem.h
112 lookahd.
$(OBJ
): lookahd.
cc $D/lookahd.h
$D/grammar.h
$(ad
)/generic
/generic.h \
113 $(ad
)/hash
/dchash.h
$(ad
)/contain
/hashmap.h
$(ad
)/contain
/dchmap.h \
114 $(ad
)/memory
/mempool.h
$D/gentable.h
$D/lrgen.h \
115 $D/lr0.h
$D/firstset.h
$D/nullable.h
$D/operprec.h \
116 $D/dfatable.h
$(ad
)/contain
/bitset.h
$(ad
)/memory
/mem.h \
118 lrgen.
$(OBJ
): lrgen.
cc $D/lrgen.h
$(ad
)/generic
/generic.h \
119 $D/compdfa.h
$D/sparsdfa.h
$D/densedfa.h
$D/grammar.h \
121 lexer.
$(OBJ
): lexer.
cc $D/lexer.h
$D/compdfa.h
$(ad
)/generic
/generic.h \
123 lexergen.
$(OBJ
): lexergen.
cc $D/lexergen.h
$D/labtree.h
$D/dfa.h \
124 $D/densedfa.h
$D/sparsdfa.h
$D/compdfa.h
$D/nfa.h
$D/nfa_node.h\
125 $(ad
)/contain
/varstack.h
$(ad
)/contain
/fixqueue.h \
126 $(ad
)/hash
/dchash.h
$(ad
)/generic
/generic.h \
127 $(ad
)/contain
/bitset.h
$D/dfatable.h
$(ad
)/contain
/fbitset.h
128 ll1.
$(OBJ
): ll1.
cc $D/ll1.h
$D/grammar.h
$D/compdfa.h \
129 $(ad
)/generic
/generic.h
$D/dfatable.h
130 ll1gen.
$(OBJ
): ll1gen.
cc $D/ll1gen.h
$D/grammar.h
$D/sparsdfa.h \
131 $D/compdfa.h
$(ad
)/generic
/generic.h
$D/dfatable.h \
132 $D/nullable.h
$D/firstset.h
$D/follow.h \
133 $(ad
)/contain
/bitset.h
$(ad
)/memory
/mempool.h
$(ad
)/memory
/mem.h
134 ll1parse.
$(OBJ
): ll1parse.
cc $D/ll1.h \
135 $D/grammar.h
$D/sparsdfa.h
$D/compdfa.h \
136 $(ad
)/generic
/generic.h
$D/dfatable.h
137 llk.
$(OBJ
): llk.
cc $D/llk.h
$D/grammar.h
$D/compdfa.h \
138 $(ad
)/generic
/generic.h
$D/dfatable.h
139 llkgen.
$(OBJ
): llkgen.
cc $D/llkgen.h
$D/graminfo.h \
140 $D/grammar.h
$D/densedfa.h
$D/sparsdfa.h
$D/compdfa.h \
141 $(ad
)/generic
/generic.h
$D/dfatable.h \
142 $D/follow_k.h
$D/first_k.h
$D/follow.h
$D/firstset.h \
143 $D/nullable.h
$(ad
)/contain
/bitset.h
$(ad
)/memory
/mempool.h
$(ad
)/memory
/mem.h
144 lr1gen.
$(OBJ
): lr1gen.
cc $D/grammar.h
$(ad
)/generic
/generic.h \
145 $(ad
)/hash
/dchash.h
$(ad
)/contain
/hashmap.h
$(ad
)/contain
/dchmap.h \
146 $(ad
)/memory
/mempool.h
$D/gentable.h
$D/lr0.h \
147 $D/dfatable.h
$D/lrgen.h
$D/sparsdfa.h
$D/compdfa.h
148 lrk.
$(OBJ
): lrk.
cc $D/lrk.h
$D/grammar.h
$(ad
)/generic
/generic.h \
149 $D/dfatable.h
$(ad
)/memory
/mem.h
150 lrkgen.
$(OBJ
): lrkgen.
cc $D/lrkgen.h
$D/graminfo.h \
151 $D/grammar.h
$D/densedfa.h
$D/sparsdfa.h
$D/compdfa.h \
152 $(ad
)/generic
/generic.h
$D/dfatable.h
153 nfa.
$(OBJ
): nfa.
cc $D/nfa.h
$D/nfa_node.h
$(ad
)/generic
/generic.h \
154 $D/dfatable.h
$(ad
)/contain
/fbitset.h
$(ad
)/contain
/bitset.h
155 nfa_node.
$(OBJ
): nfa_node.
cc $D/nfa_node.h
$(ad
)/generic
/generic.h \
156 $D/dfatable.h
$(ad
)/contain
/bitset.h
$(ad
)/contain
/fbitset.h
157 nfa32.
$(OBJ
): nfa32.
cc $D/nfa32.h
$(ad
)/generic
/generic.h \
159 scanner.
$(OBJ
): scanner.
cc $D/scanner.h
$D/compdfa.h \
160 $(ad
)/generic
/generic.h
$D/sparsdfa.h
$D/densedfa.h \
161 $D/lexer.h
$D/dfatable.h
162 sparsdfa.
$(OBJ
): sparsdfa.
cc $D/sparsdfa.h
$D/compdfa.h \
163 $(ad
)/contain
/varstack.h
$(ad
)/generic
/generic.h \
165 #termpat.$(OBJ): termpat.cc $D/termpat.h $(ad)/generic/generic.h \
167 topdowng.
$(OBJ
): topdowng.
cc $D/topdowng.h
$D/acgen.h
$D/treegram.h \
168 $D/sparsdfa.h
$D/compdfa.h \
169 $(ad
)/contain
/varstack.h \
170 $(ad
)/tries
/briandai.h
$(ad
)/generic
/generic.h \
171 $D/dfatable.h
$(ad
)/contain
/bitset.h
172 topdown.
$(OBJ
): topdown.
cc $D/topdown.h
$D/ac.h
$D/sparsdfa.h
$D/compdfa.h \
173 $(ad
)/generic
/generic.h
$D/dfatable.h
174 treeauto.
$(OBJ
): treeauto.
cc $D/treeauto.h
$D/gentable.h \
175 $(ad
)/generic
/generic.h
$D/dfatable.h
$D/treetab.h \
176 $(ad
)/contain
/n_array.h
178 # Compiler bug in g++ 2.5.8 under Linux makes it impossible to
179 # compile this file with symbols.
181 # $(CC) -c -O6 $(CINCLUDE) $(@:.o=.cc)
182 treegen.
$(OBJ
): treegen.
cc $D/treegen.h
$D/treegram.h
$D/treeauto.h \
183 $(ad
)/generic
/generic.h
$(ad
)/contain
/dchmap.h \
184 $(ad
)/contain
/vararray.h
$(ad
)/memory
/mempool.h \
185 $D/dfatable.h
$(ad
)/memory
/mem.h
$D/treetab.h \
186 $(ad
)/contain
/bitset.h \
187 $D/compdfa.h
$D/sparsdfa.h
188 treegram.
$(OBJ
): treegram.
cc $D/treegram.h
$D/treeauto.h
$(ad
)/generic
/generic.h \
189 $(ad
)/contain
/bitset.h
190 #treemat.$(OBJ): treemat.cc $D/treemat.h $D/treeauto.h $(ad)/generic/generic.h
191 #treepat.$(OBJ): treepat.cc $D/treepat.h $D/termpat.h $(ad)/generic/generic.h \
192 # $(ad)/memory/mempool.h $D/treeauto.h $(ad)/memory/mem.h
193 regexmat.
$(OBJ
): regexmat.
cc $D/regexmat.h
$D/lexer.h
$D/dfatable.h \
194 $(ad
)/generic
/generic.h
195 lexerbuf.
$(OBJ
): lexerbuf.
cc $D/lexerbuf.h
$D/regexmat.h
$D/lexer.h \
196 $D/dfatable.h
$(ad
)/generic
/generic.h
$(ad
)/strings
/charesc.h
197 iolexerbuf.
$(OBJ
): iolexerbuf.
cc $D/iolexerbuf.h \
198 $D/lexerbuf.h
$D/regexmat.h
$D/lexer.h \
199 $D/dfatable.h
$(ad
)/generic
/generic.h
$(ad
)/strings
/charesc.h
200 iolexerstack.
$(OBJ
): iolexerstack.
cc $D/iolexerstack.h
$D/iolexerbuf.h \
201 $D/lexerbuf.h
$D/regexmat.h
$D/lexer.h \
202 $D/dfatable.h
$(ad
)/generic
/generic.h
$(ad
)/strings
/charesc.h
203 operprec.
$(OBJ
): operprec.
cc $D/operprec.h
$D/grammar.h
$D/dfatable.h \
204 $(ad
)/generic
/generic.h