1# makefile for nauty 2.2, including gtools 1.1
2# @configure_input@
3
4SHELL = /bin/sh
5CC=@CC@
6CFLAGS=@CFLAGS@ @MORECFLAGS@
7SAFECFLAGS=@CFLAGS@
8LDFLAGS=@LIBS@
9LOK=@lok@         # 0 if no 64-bit integers
10TESTPROGS=@testprogs@
11BIGTEST=1         # set to 0 if less than 512MB is available
12
13SMALL=-DMAXN=WORDSIZE
14BIG=-DBIGNAUTY
15L1=-DMAXN=WORDSIZE -DWORDSIZE=64
16W1=-DMAXN=WORDSIZE -DWORDSIZE=32
17S1=-DMAXN=WORDSIZE -DWORDSIZE=16
18S=-DWORDSIZE=16
19L=-DWORDSIZE=64
20FOURK=-DMAXN=4096
21
22all : nauty gtools ;
23
24nauty : dreadnaut dreadnautB ;
25
26gtools : copyg listg labelg dretog amtog geng complg shortg showg NRswitchg \
27  biplabg addedgeg deledgeg countg pickg genrang newedgeg catg genbg directg \
28  multig ;
29
30rng.o: rng.c
31	${CC} -c ${CFLAGS} rng.c
32
33dreadnaut: dreadnaut.c naututil.o nauty.o nautil.o nautinv.o naugraph.o rng.o
34	${CC} -o dreadnaut ${SAFECFLAGS} dreadnaut.c \
35	    naututil.o nauty.o nautil.o nautinv.o naugraph.o rng.o ${LDFLAGS}
36naututil.o: nauty.h naututil.h naututil.c
37	${CC} -c ${CFLAGS} naututil.c
38nautil.o: nauty.h nautil.c
39	${CC} -c ${CFLAGS} nautil.c
40nauty.o: nauty.h nauty.c
41	${CC} -c ${CFLAGS} nauty.c
42nautinv.o: nauty.h naututil.h nautinv.c
43	${CC} -c ${CFLAGS} nautinv.c
44nautaux.o: nautaux.h nauty.h naututil.h nautaux.c
45	${CC} -c ${CFLAGS} nautaux.c
46naugraph.o: nauty.h naugraph.c
47	${CC} -c ${CFLAGS} naugraph.c
48
49dreadnaut1: dreadnaut.c naututil1.o nauty1.o nautil1.o \
50            nautinv1.o naugraph1.o rng.o
51	${CC} -o dreadnaut1 ${SAFECFLAGS} ${SMALL} dreadnaut.c naututil1.o \
52	    nauty1.o nautil1.o nautinv1.o naugraph1.o rng.o ${LDFLAGS}
53naututil1.o: nauty.h naututil.h naututil.c
54	${CC} -c ${CFLAGS} ${SMALL} -o naututil1.o naututil.c
55nautil1.o: nauty.h nautil.c
56	${CC} -c ${CFLAGS} ${SMALL} -o nautil1.o nautil.c
57nauty1.o: nauty.h nauty.c
58	${CC} -c ${CFLAGS} ${SMALL} -o nauty1.o nauty.c
59nautinv1.o: nauty.h naututil.h nautinv.c
60	${CC} -c ${CFLAGS} ${SMALL} -o nautinv1.o nautinv.c
61nautaux1.o: nautaux.h nauty.h naututil.h nautaux.c
62	${CC} -c ${CFLAGS} ${SMALL} -o nautaux1.o nautaux.c
63naugraph1.o: nauty.h naugraph.c
64	${CC} -c ${CFLAGS} ${SMALL} -o naugraph1.o naugraph.c
65
66dreadnautB: dreadnaut.c naututilB.o nautyB.o nautilB.o \
67	    nautinvB.o naugraphB.o rng.o
68	${CC} -o dreadnautB ${SAFECFLAGS} ${BIG} dreadnaut.c naututilB.o \
69	    nautyB.o nautilB.o nautinvB.o naugraphB.o rng.o ${LDFLAGS}
70naututilB.o: nauty.h naututil.h naututil.c
71	${CC} -c ${CFLAGS} ${BIG} -o naututilB.o naututil.c
72nautilB.o: nauty.h nautil.c
73	${CC} -c ${CFLAGS} ${BIG} -o nautilB.o nautil.c
74nautyB.o: nauty.h nauty.c
75	${CC} -c ${CFLAGS} ${BIG} -o nautyB.o nauty.c
76nautinvB.o: nauty.h naututil.h nautinv.c
77	${CC} -c ${CFLAGS} ${BIG} -o nautinvB.o nautinv.c
78nautauxB.o: nautaux.h nauty.h naututil.h nautaux.c
79	${CC} -c ${CFLAGS} ${BIG} -o nautauxB.o nautaux.c
80naugraphB.o: nauty.h naugraph.c
81	${CC} -c ${CFLAGS} ${BIG} -o naugraphB.o naugraph.c
82
83dreadnaut4K: dreadnaut.c naututil4K.o nauty4K.o nautil4K.o \
84             nautinv4K.o naugraph4K.o rng.o
85	${CC} -o dreadnaut4K ${SAFECFLAGS} ${FOURK} dreadnaut.c naututil4K.o \
86	     nauty4K.o nautil4K.o nautinv4K.o naugraph4K.o rng.o ${LDFLAGS}
87naututil4K.o: nauty.h naututil.h naututil.c
88	${CC} -c ${CFLAGS} ${FOURK} -o naututil4K.o naututil.c
89nautil4K.o: nauty.h nautil.c
90	${CC} -c ${CFLAGS} ${FOURK} -o nautil4K.o nautil.c
91nauty4K.o: nauty.h nauty.c
92	${CC} -c ${CFLAGS} ${FOURK} -o nauty4K.o nauty.c
93nautinv4K.o: nauty.h naututil.h nautinv.c
94	${CC} -c ${CFLAGS} ${FOURK} -o nautinv4K.o nautinv.c
95nautaux4K.o: nautaux.h nauty.h naututil.h nautaux.c
96	${CC} -c ${CFLAGS} ${FOURK} -o nautaux4K.o nautaux.c
97naugraph4K.o: nauty.h naugraph.c
98	${CC} -c ${CFLAGS} ${FOURK} -o naugraph4K.o naugraph.c
99
100dreadnautL1: dreadnaut.c naututilL1.o nautyL1.o nautilL1.o nautinvL1.o \
101	     naugraphL1.o rng.o
102	${CC} -o dreadnautL1 ${SAFECFLAGS} ${L1} dreadnaut.c naututilL1.o \
103	     nautyL1.o nautilL1.o nautinvL1.o naugraphL1.o rng.o ${LDFLAGS}
104naututilL1.o: nauty.h naututil.h naututil.c
105	${CC} -c ${CFLAGS} ${L1} -o naututilL1.o naututil.c
106nautilL1.o: nauty.h nautil.c
107	${CC} -c ${CFLAGS} ${L1} -o nautilL1.o nautil.c
108nautyL1.o: nauty.h nauty.c
109	${CC} -c ${CFLAGS} ${L1} -o nautyL1.o nauty.c
110nautinvL1.o: nauty.h naututil.h nautinv.c
111	${CC} -c ${CFLAGS} ${L1} -o nautinvL1.o nautinv.c
112nautauxL1.o: nautaux.h nauty.h naututil.h nautaux.c
113	${CC} -c ${CFLAGS} ${L1} -o nautauxL1.o nautaux.c
114naugraphL1.o: nauty.h naugraph.c
115	${CC} -c ${CFLAGS} ${L1} -o naugraphL1.o naugraph.c
116
117dreadnautW1: dreadnaut.c naututilW1.o nautyW1.o nautilW1.o nautinvW1.o \
118	     naugraphW1.o rng.o
119	${CC} -o dreadnautW1 ${SAFECFLAGS} ${W1} dreadnaut.c naututilW1.o \
120	     nautyW1.o nautilW1.o nautinvW1.o naugraphW1.o rng.o ${LDFLAGS}
121naututilW1.o: nauty.h naututil.h naututil.c
122	${CC} -c ${CFLAGS} ${W1} -o naututilW1.o naututil.c
123nautilW1.o: nauty.h nautil.c
124	${CC} -c ${CFLAGS} ${W1} -o nautilW1.o nautil.c
125nautyW1.o: nauty.h nauty.c
126	${CC} -c ${CFLAGS} ${W1} -o nautyW1.o nauty.c
127nautinvW1.o: nauty.h naututil.h nautinv.c
128	${CC} -c ${CFLAGS} ${W1} -o nautinvW1.o nautinv.c
129nautauxW1.o: nautaux.h nauty.h naututil.h nautaux.c
130	${CC} -c ${CFLAGS} ${W1} -o nautauxW1.o nautaux.c
131naugraphW1.o: nauty.h naugraph.c
132	${CC} -c ${CFLAGS} ${W1} -o naugraphW1.o naugraph.c
133
134dreadnautS1: dreadnaut.c naututilS1.o nautyS1.o nautilS1.o nautinvS1.o \
135	     naugraphS1.o rng.o
136	${CC} -o dreadnautS1 ${SAFECFLAGS} ${S1} dreadnaut.c naututilS1.o \
137	     nautyS1.o nautilS1.o nautinvS1.o naugraphS1.o rng.o ${LDFLAGS}
138naututilS1.o: nauty.h naututil.h naututil.c
139	${CC} -c ${CFLAGS} ${S1} -o naututilS1.o naututil.c
140nautilS1.o: nauty.h nautil.c
141	${CC} -c ${CFLAGS} ${S1} -o nautilS1.o nautil.c
142nautyS1.o: nauty.h nauty.c
143	${CC} -c ${CFLAGS} ${S1} -o nautyS1.o nauty.c
144nautinvS1.o: nauty.h naututil.h nautinv.c
145	${CC} -c ${CFLAGS} ${S1} -o nautinvS1.o nautinv.c
146nautauxS1.o: nautaux.h nauty.h naututil.h nautaux.c
147	${CC} -c ${CFLAGS} ${S1} -o nautauxS1.o nautaux.c
148naugraphS1.o: nauty.h naugraph.c
149	${CC} -c ${CFLAGS} ${S1} -o naugraphS1.o naugraph.c
150
151dreadnautL: dreadnaut.c naututilL.o nautyL.o nautilL.o nautinvL.o \
152	     naugraphL.o rng.o
153	${CC} -o dreadnautL ${SAFECFLAGS} ${L} dreadnaut.c naututilL.o \
154	     nautyL.o nautilL.o nautinvL.o naugraphL.o rng.o ${LDFLAGS}
155naututilL.o: nauty.h naututil.h naututil.c
156	${CC} -c ${CFLAGS} ${L} -o naututilL.o naututil.c
157nautilL.o: nauty.h nautil.c
158	${CC} -c ${CFLAGS} ${L} -o nautilL.o nautil.c
159nautyL.o: nauty.h nauty.c
160	${CC} -c ${CFLAGS} ${L} -o nautyL.o nauty.c
161nautinvL.o: nauty.h naututil.h nautinv.c
162	${CC} -c ${CFLAGS} ${L} -o nautinvL.o nautinv.c
163nautauxL.o: nautaux.h nauty.h naututil.h nautaux.c
164	${CC} -c ${CFLAGS} ${L} -o nautauxL.o nautaux.c
165naugraphL.o: nauty.h naugraph.c
166	${CC} -c ${CFLAGS} ${L} -o naugraphL.o naugraph.c
167
168dreadnautS: dreadnaut.c naututilS.o nautyS.o nautilS.o nautinvS.o \
169	     naugraphS.o rng.o
170	${CC} -o dreadnautS ${SAFECFLAGS} ${S} dreadnaut.c naututilS.o \
171	     nautyS.o nautilS.o nautinvS.o naugraphS.o rng.o ${LDFLAGS}
172naututilS.o: nauty.h naututil.h naututil.c
173	${CC} -c ${CFLAGS} ${S} -o naututilS.o naututil.c
174nautilS.o: nauty.h nautil.c
175	${CC} -c ${CFLAGS} ${S} -o nautilS.o nautil.c
176nautyS.o: nauty.h nauty.c
177	${CC} -c ${CFLAGS} ${S} -o nautyS.o nauty.c
178nautinvS.o: nauty.h naututil.h nautinv.c
179	${CC} -c ${CFLAGS} ${S} -o nautinvS.o nautinv.c
180nautauxS.o: nautaux.h nauty.h naututil.h nautaux.c
181	${CC} -c ${CFLAGS} ${S} -o nautauxS.o nautaux.c
182naugraphS.o: nauty.h naugraph.c
183	${CC} -c ${CFLAGS} ${S} -o naugraphS.o naugraph.c
184
185clean:
186	rm -f *.o config.log config.cache config.status
187	rm -f dreadtest dreadtestB dreadtestL dreadtestS dreadtestS1 \
188	        dreadtest4K dreadtest1 dreadtestL1 dreadtestW1
189
190gtools.h : nauty.h naututil.h
191	touch gtools.h
192
193gtools.o : gtools.h gtools.c
194	${CC} -c ${CFLAGS} gtools.c
195
196gtnauty.o : gtools.h gtnauty.c
197	${CC} -c ${CFLAGS} gtnauty.c
198
199gutil1.o : gtools.h gutils.h gutil1.c
200	${CC} -c ${CFLAGS} gutil1.c
201
202gutil2.o : gtools.h gutils.h gutil2.c
203	${CC} -c ${CFLAGS} gutil2.c
204
205catg : gtools.h catg.c gtools.o
206	${CC} -o catg ${CFLAGS} catg.c gtools.o ${LDFLAGS}
207
208copyg : gtools.h copyg.c gtools.o
209	${CC} -o copyg ${CFLAGS} copyg.c gtools.o ${LDFLAGS}
210
211listg : gtools.h listg.c gtools.o nautil.o
212	${CC} -o listg ${CFLAGS} listg.c gtools.o nautil.o ${LDFLAGS}
213
214labelg : gtools.h naututil.h \
215         labelg.c gtools.o gtnauty.o nauty.o nautil.o naugraph.o nautinv.o
216	${CC} -o labelg ${SAFECFLAGS} labelg.c gtools.o gtnauty.o \
217		nauty.o nautil.o naugraph.o nautinv.o ${LDFLAGS}
218
219shortg : gtools.h shortg.c gtools.o gtnauty.o nauty.o nautil.o naugraph.o
220	${CC} -o shortg ${CFLAGS} shortg.c \
221		gtools.o gtnauty.o nauty.o nautil.o naugraph.o ${LDFLAGS}
222
223dretog : gtools.h dretog.c gtools.o naututil.o nautil.o naugraph.o rng.o
224	${CC} -o dretog ${CFLAGS} dretog.c \
225		gtools.o naututil.o nautil.o rng.o naugraph.o ${LDFLAGS}
226
227amtog : gtools.h amtog.c gtools.o
228	${CC} -o amtog ${CFLAGS} amtog.c gtools.o ${LDFLAGS}
229
230genbg : gtools.h genbg.c gtools.o nauty1.o nautil1.o naugraph1.o
231	${CC} -o genbg ${CFLAGS} ${W1} genbg.c gtools.o nauty1.o \
232		nautil1.o naugraph1.o ${LDFLAGS}
233
234genbgL : gtools.h genbg.c gtoolsL1.o nautyL1.o nautilL1.o naugraphL1.o
235	${CC} -o genbgL ${CFLAGS} ${L1} -DMAXN1=30 genbg.c gtoolsL1.o \
236	    nautyL1.o nautilL1.o naugraphL1.o ${LDFLAGS}
237
238geng : gtools.h geng.c gtools.o nauty1.o nautil1.o naugraph1.o
239	${CC} -o geng ${CFLAGS} -DMAXN=32 geng.c gtools.o nauty1.o \
240		nautil1.o naugraph1.o ${LDFLAGS}
241
242geng16 : gtools.h geng.c gtools.o nauty1.o nautil1.o naugraph1.o
243	${CC} -o geng16 ${CFLAGS} -DMAXN=16 geng.c gtools.o nauty1.o \
244		nautil1.o naugraph1.o ${LDFLAGS}
245
246geng24 : gtools.h geng.c gtools.o nauty1.o nautil1.o naugraph1.o
247	${CC} -o geng24 ${CFLAGS} -DMAXN=24 geng.c gtools.o nauty1.o \
248		nautil1.o naugraph1.o ${LDFLAGS}
249
250genrang : gtools.h genrang.c gtools.o naututil.o nautil.o naugraph.o rng.o
251	${CC} -o genrang ${CFLAGS} genrang.c \
252		gtools.o nautil.o naututil.o naugraph.o rng.o ${LDFLAGS}
253
254complg : gtools.h complg.c gtools.o gtnauty.o nauty.o nautil.o naugraph.o
255	${CC} -o complg ${CFLAGS} complg.c \
256		gtools.o gtnauty.o nauty.o nautil.o naugraph.o ${LDFLAGS}
257
258biplabg : gtools.h biplabg.c gtools.o nautil.o naugraph.o gutil1.o
259	${CC} -o biplabg ${CFLAGS} biplabg.c \
260		gtools.o nautil.o naugraph.o gutil1.o ${LDFLAGS}
261
262NRswitchg : gtools.h NRswitchg.c gtools.o gtnauty.o nauty.o nautil.o naugraph.o
263	${CC} -o NRswitchg ${CFLAGS} NRswitchg.c gtools.o gtnauty.o \
264		 nauty.o nautil.o naugraph.o ${LDFLAGS}
265
266deledgeg : gtools.h deledgeg.c gtools.o gtnauty.o nauty.o nautil.o naugraph.o
267	${CC} -o deledgeg ${CFLAGS} deledgeg.c gtools.o gtnauty.o \
268		 nauty.o nautil.o naugraph.o ${LDFLAGS}
269
270addedgeg : gtools.h addedgeg.c \
271             gtools.o gtnauty.o nauty.o nautil.o naugraph.o gutil1.o
272	${CC} -o addedgeg ${CFLAGS} addedgeg.c gtools.o gtnauty.o \
273		 nauty.o nautil.o naugraph.o gutil1.o ${LDFLAGS}
274
275newedgeg : gtools.h newedgeg.c \
276             gtools.o gtnauty.o nauty.o nautil.o naugraph.o
277	${CC} -o newedgeg ${CFLAGS} newedgeg.c gtools.o gtnauty.o \
278		 nauty.o nautil.o naugraph.o ${LDFLAGS}
279
280pickg : gtools.h testg.c splay.c \
281	     gtools.o gtnauty.o nauty.o nautil.o naugraph.o gutil1.o gutil2.o
282	${CC} -o pickg ${SAFECFLAGS} testg.c gtools.o gtnauty.o gutil1.o \
283	        gutil2.o nauty.o nautil.o naugraph.o ${LDFLAGS}
284
285countg : gtools.h testg.c splay.c \
286	     gtools.o gtnauty.o nauty.o nautil.o naugraph.o gutil1.o gutil2.o
287	${CC} -o countg ${SAFECFLAGS} testg.c gtools.o gtnauty.o gutil1.o \
288	         gutil2.o nauty.o nautil.o naugraph.o ${LDFLAGS}
289
290directg : gtools.h naugroup.h directg.c \
291             gtools.o nauty.o nautil.o naugraph.o naugroup.o
292	${CC} -o directg ${CFLAGS} directg.c gtools.o \
293                nauty.o nautil.o naugraph.o naugroup.o ${LDFLAGS}
294
295multig : gtools.h naugroup.h multig.c \
296             gtools.o nauty.o nautil.o naugraph.o naugroup.o
297	${CC} -o multig ${CFLAGS} multig.c gtools.o \
298                nauty.o nautil.o naugraph.o naugroup.o ${LDFLAGS}
299
300showg : showg.c
301	${CC} -o showg ${CFLAGS} showg.c ${LDFLAGS}
302
303readg :
304	echo "*** readg is now called showg ***"
305	make showg
306
307gtoolsL1.o : gtools.h gtools.c
308	${CC} -c ${CFLAGS} ${L1} -o gtoolsL1.o gtools.c
309
310gtnautyL1.o : gtools.h gtnauty.c
311	${CC} -c ${CFLAGS} ${L1} -o gtnautyL1.o gtnauty.c
312
313sumlines : sumlines.c
314	${CC} -o sumlines ${CFLAGS} sumlines.c ${LDFLAGS} -lgmp
315
316nautyex : nauty.h nauty.o nautil.o naugraph.o nautyex.c
317	${CC} -o nautyex ${CFLAGS} nautyex.c nauty.o nautil.o naugraph.o ${LDFLAGS}
318
319nautyex2 : nauty.h nauty.o nautil.o naugraph.o nautyex2.c
320	${CC} -o nautyex2 ${CFLAGS} \
321		nautyex2.c nauty.o nautil.o naugraph.o ${LDFLAGS}
322
323naugroup.o : nauty.h naugroup.h naugroup.c
324	${CC} -c ${CFLAGS} naugroup.c
325
326nautyex3 : nauty.h nauty.o nautil.o naugraph.o naugroup.o nautyex3.c
327	${CC} -o nautyex3 ${CFLAGS} \
328		nautyex3.c nauty.o nautil.o naugraph.o naugroup.o ${LDFLAGS}
329
330dreadtest: dreadtest.c naututil.o nauty.o nautil.o nautinv.o naugraph.o rng.o
331	${CC} -o dreadtest ${SAFECFLAGS} dreadtest.c \
332	    naututil.o nauty.o nautil.o nautinv.o naugraph.o rng.o ${LDFLAGS}
333	./dreadtest <testS.dre
334	./dreadtest <testW.dre
335	./dreadtest <testL.dre
336	./dreadtest <testM.dre
337	./dreadtest <testa.dre
338	rm dreadtest
339
340dreadtestB: dreadtest.c \
341		naututilB.o nautyB.o nautilB.o nautinvB.o naugraphB.o rng.o
342	${CC} -o dreadtestB ${SAFECFLAGS} ${BIG} dreadtest.c naututilB.o \
343	    nautyB.o nautilB.o nautinvB.o naugraphB.o rng.o ${LDFLAGS}
344	./dreadtestB < testS.dre
345	./dreadtestB < testW.dre
346	./dreadtestB < testL.dre
347	./dreadtestB < testM.dre
348	./dreadtestB < testa.dre
349	test ${BIGTEST} -eq 0 || ./dreadtestB < testB.dre
350	rm dreadtestB
351
352dreadtestL: dreadtest.c \
353		naututilL.o nautyL.o nautilL.o nautinvL.o naugraphL.o rng.o
354	${CC} -o dreadtestL ${SAFECFLAGS} ${L} dreadtest.c naututilL.o \
355	    nautyL.o nautilL.o nautinvL.o naugraphL.o rng.o ${LDFLAGS}
356	./dreadtestL < testS.dre
357	./dreadtestL < testW.dre
358	./dreadtestL < testL.dre
359	./dreadtestL < testM.dre
360	./dreadtestL < testa.dre
361	rm dreadtestL
362
363dreadtestS: dreadtest.c \
364		naututilS.o nautyS.o nautilS.o nautinvS.o naugraphS.o rng.o
365	${CC} -o dreadtestS ${SAFECFLAGS} ${S} dreadtest.c naututilS.o \
366	    nautyS.o nautilS.o nautinvS.o naugraphS.o rng.o ${LDFLAGS}
367	./dreadtestS < testS.dre
368	./dreadtestS < testW.dre
369	./dreadtestS < testL.dre
370	./dreadtestS < testM.dre
371	./dreadtestS < testa.dre
372	rm dreadtestS
373
374dreadtest4K: dreadtest.c \
375		naututil4K.o nauty4K.o nautil4K.o nautinv4K.o naugraph4K.o rng.o
376	${CC} -o dreadtest4K ${SAFECFLAGS} ${FOURK} dreadtest.c naututil4K.o \
377	    nauty4K.o nautil4K.o nautinv4K.o naugraph4K.o rng.o ${LDFLAGS}
378	./dreadtest4K <testS.dre
379	./dreadtest4K <testW.dre
380	./dreadtest4K < testM.dre
381	rm dreadtest4K
382
383dreadtest1: dreadtest.c \
384		naututil1.o nauty1.o nautil1.o nautinv1.o naugraph1.o rng.o
385	${CC} -o dreadtest1 ${SAFECFLAGS} ${SMALL} dreadtest.c naututil1.o \
386	    nauty1.o nautil1.o nautinv1.o naugraph1.o rng.o ${LDFLAGS}
387	./dreadtest1 < testS.dre
388	./dreadtest1 < testW.dre
389	rm dreadtest1
390
391dreadtestL1: dreadtest.c \
392		naututilL1.o nautyL1.o nautilL1.o nautinvL1.o naugraphL1.o rng.o
393	${CC} -o dreadtestL1 ${SAFECFLAGS} ${L1} dreadtest.c naututilL1.o \
394	    nautyL1.o nautilL1.o nautinvL1.o naugraphL1.o rng.o ${LDFLAGS}
395	./dreadtestL1 <testS.dre
396	./dreadtestL1 <testW.dre
397	./dreadtestL1 <testL.dre
398	rm dreadtestL1
399
400dreadtestW1: dreadtest.c \
401		naututilW1.o nautyW1.o nautilW1.o nautinvW1.o naugraphW1.o rng.o
402	${CC} -o dreadtestW1 ${SAFECFLAGS} ${W1} dreadtest.c naututilW1.o \
403	    nautyW1.o nautilW1.o nautinvW1.o naugraphW1.o rng.o ${LDFLAGS}
404	./dreadtestW1 <testS.dre
405	./dreadtestW1 <testW.dre
406	rm dreadtestW1
407
408dreadtestS1: dreadtest.c \
409		naututilS1.o nautyS1.o nautilS1.o nautinvS1.o naugraphS1.o rng.o
410	${CC} -o dreadtestS1 ${SAFECFLAGS} ${S1} dreadtest.c naututilS1.o \
411	    nautyS1.o nautilS1.o nautinvS1.o naugraphS1.o rng.o ${LDFLAGS}
412	./dreadtestS1 <testS.dre
413
414checks: ${TESTPROGS}
415
416checks6: checks6.c gtools.h gtools.o
417	${CC} -o checks6 ${CFLAGS} checks6.c gtools.o
418