Makefile.in 10.8 KB
Newer Older
Automatic Updater's avatar
Automatic Updater committed
1
# Copyright (C) 2004-2011  Internet Systems Consortium, Inc. ("ISC")
Mark Andrews's avatar
Mark Andrews committed
2
# Copyright (C) 1998-2003  Internet Software Consortium.
3
#
Automatic Updater's avatar
Automatic Updater committed
4
# Permission to use, copy, modify, and/or distribute this software for any
Bob Halley's avatar
Bob Halley committed
5 6
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
7
#
Mark Andrews's avatar
Mark Andrews committed
8 9 10 11 12 13 14
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
Bob Halley's avatar
Bob Halley committed
15

16
# $Id: Makefile.in,v 1.145 2011/02/03 05:41:53 marka Exp $
David Lawrence's avatar
David Lawrence committed
17

Bob Halley's avatar
Bob Halley committed
18 19 20 21
srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

22
@BIND9_MAKE_INCLUDES@
23

24 25
CINCLUDES =	${DNS_INCLUDES} ${ISC_INCLUDES} ${ISCCFG_INCLUDES} \
		${LWRES_INCLUDES} ${OMAPI_INCLUDES}
26

27
CDEFINES =
Bob Halley's avatar
Bob Halley committed
28 29
CWARNINGS =

30
DNSLIBS =	../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
Francis Dupont's avatar
Francis Dupont committed
31
ISCLIBS =	../../lib/isc/libisc.@A@ @DNS_CRYPTO_LIBS@
32
ISCNOSYMLIBS =	../../lib/isc/libisc-nosymtbl.@A@ @DNS_CRYPTO_LIBS@
33
ISCCFGLIBS = 	../../lib/isccfg/libisccfg.@A@
Michael Graff's avatar
Michael Graff committed
34
LWRESLIBS =	../../lib/lwres/liblwres.@A@
35

Bob Halley's avatar
Bob Halley committed
36 37
DNSDEPLIBS =	../../lib/dns/libdns.@A@
ISCDEPLIBS =	../../lib/isc/libisc.@A@
38
ISCDEPNOSYMLIBS = ../../lib/isc/libisc-nosymtbl.@A@
39
ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@
Michael Graff's avatar
Michael Graff committed
40
LWRESDEPLIBS =	../../lib/lwres/liblwres.@A@
41 42

LIBS =		@LIBS@
Bob Halley's avatar
Bob Halley committed
43

44 45
SUBDIRS =	atomic db dst master mem hashes names net rbt resolver \
		sockaddr tasks timers system
46

47 48
# Test programs that are built by default:
# cfg_test is needed for regenerating doc/misc/options
49

50
# Alphabetically
51
TARGETS =	cfg_test@EXEEXT@
52 53

# All the other tests are optional and not built by default.
54

55
# Alphabetically
Mark Andrews's avatar
Mark Andrews committed
56 57
XTARGETS =	adb_test@EXEEXT@ \
		byaddr_test@EXEEXT@ \
58 59
		backtrace_test@EXEEXT@ \
		backtrace_test_nosymtbl@EXEEXT@ \
Mark Andrews's avatar
Mark Andrews committed
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
		byname_test@EXEEXT@ \
		compress_test@EXEEXT@ \
		db_test@EXEEXT@ \
		entropy_test@EXEEXT@ \
		entropy2_test@EXEEXT@ \
		gxba_test@EXEEXT@ \
		gxbn_test@EXEEXT@ \
		hash_test@EXEEXT@ \
		fsaccess_test@EXEEXT@ \
		inter_test@EXEEXT@ \
		keyboard_test@EXEEXT@ \
		lex_test@EXEEXT@ \
		lfsr_test@EXEEXT@ \
		log_test@EXEEXT@ \
		lwres_test@EXEEXT@ \
		lwresconf_test@EXEEXT@ \
		master_test@EXEEXT@ \
		mempool_test@EXEEXT@ \
		name_test@EXEEXT@ \
79
		nsecify@EXEEXT@ \
Mark Andrews's avatar
Mark Andrews committed
80 81 82 83 84 85 86 87 88 89 90 91 92
		ratelimiter_test@EXEEXT@ \
		rbt_test@EXEEXT@ \
		rdata_test@EXEEXT@ \
		rwlock_test@EXEEXT@ \
		serial_test@EXEEXT@ \
		shutdown_test@EXEEXT@ \
		sig0_test@EXEEXT@ \
		sock_test@EXEEXT@ \
		sym_test@EXEEXT@ \
		task_test@EXEEXT@ \
		timer_test@EXEEXT@ \
		wire_test@EXEEXT@ \
		zone_test@EXEEXT@
Bob Halley's avatar
Bob Halley committed
93

94
# Alphabetically
95
SRCS =		cfg_test.c ${XSRCS}
96 97

XSRCS =		adb_test.c \
98
		byaddr_test.c \
99
		backtrace_test.c \
100
		byname_test.c \
Michael Graff's avatar
Michael Graff committed
101
		compress_test.c \
102
		db_test.c \
Michael Graff's avatar
Michael Graff committed
103
		entropy_test.c \
104
		entropy2_test.c \
Mark Andrews's avatar
Mark Andrews committed
105
		gxba_test.c \
Mark Andrews's avatar
Mark Andrews committed
106
		gxbn_test.c \
107
		hash_test.c \
David Lawrence's avatar
David Lawrence committed
108
		fsaccess_test.c \
Mark Andrews's avatar
Mark Andrews committed
109
		inter_test.c \
Michael Graff's avatar
Michael Graff committed
110
		keyboard_test.c \
Bob Halley's avatar
Bob Halley committed
111
		lex_test.c \
Michael Graff's avatar
Michael Graff committed
112
		lfsr_test.c \
113
		log_test.c \
Michael Graff's avatar
Michael Graff committed
114
		lwres_test.c \
115
		lwresconf_test.c \
116 117
		master_test.c \
		mempool_test.c \
Bob Halley's avatar
Bob Halley committed
118
		name_test.c \
119
		nsecify.c \
120
		printmsg.c \
Andreas Gustafsson's avatar
Andreas Gustafsson committed
121
		ratelimiter_test.c \
122 123 124 125 126
		rbt_test.c \
		rdata_test.c \
		rwlock_test.c \
		serial_test.c \
		shutdown_test.c \
127
		sig0_test.c \
Bob Halley's avatar
Bob Halley committed
128 129 130 131 132
		sock_test.c \
		sym_test.c \
		task_test.c \
		timer_test.c \
		wire_test.c \
Andreas Gustafsson's avatar
Andreas Gustafsson committed
133
		zone_test.c
Bob Halley's avatar
Bob Halley committed
134

Bob Halley's avatar
Bob Halley committed
135 136
@BIND9_MAKE_RULES@

137 138 139 140
# disable optimization for backtrace test to get the expected result	
BTTEST_CFLAGS =	${EXT_CFLAGS} ${ALL_CPPFLAGS} -g ${ALWAYS_WARNINGS} \
	${STD_CWARNINGS} ${CWARNINGS}

141 142
all_tests: ${XTARGETS}

Mark Andrews's avatar
Mark Andrews committed
143
adb_test@EXEEXT@: adb_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
144
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ adb_test.@O@ \
Michael Graff's avatar
Michael Graff committed
145 146
		${DNSLIBS} ${ISCLIBS} ${LIBS}

147 148 149 150 151 152 153 154
backtrace_test_nosymtbl@EXEEXT@: backtrace_test.c ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${BTTEST_CFLAGS} ${LDFLAGS} -o $@ \
	backtrace_test.c ${ISCLIBS} ${LIBS}

backtrace_test@EXEEXT@: backtrace_test_nosymtbl@EXEEXT@
	#first step: create a first symbol table
	rm -f symtbl.c
	if test X${MKSYMTBL_PROGRAM} != X; then \
155 156
	${MKSYMTBL_PROGRAM} ${top_srcdir}/util/mksymtbl.pl \
	backtrace_test_nosymtbl@EXEEXT@; else \
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
	cp ${top_srcdir}/lib/isc/backtrace-emptytbl.c symtbl.c; fi
	#second step: build a binary with the first symbol table
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${BTTEST_CFLAGS} ${LDFLAGS} \
	-o $@0 backtrace_test.c symtbl.c \
	${ISCNOSYMLIBS} ${LIBS}
	rm -f symtbl.c
	#third step: create a second symbol table
	if test X${MKSYMTBL_PROGRAM} != X; then \
	${MKSYMTBL_PROGRAM} ${top_srcdir}/util/mksymtbl.pl $@0; else \
	cp ${top_srcdir}/lib/isc/backtrace-emptytbl.c symtbl.c; fi
	#fourth step: build the final binary
	rm -f $@0
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${BTTEST_CFLAGS} ${LDFLAGS} \
	-o $@ backtrace_test.c symtbl.c ${ISCNOSYMLIBS} ${LIBS}
	rm -f symtbl.c

173
nsecify@EXEEXT@: nsecify.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
174
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ nsecify.@O@ \
Bob Halley's avatar
Bob Halley committed
175 176
		${DNSLIBS} ${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
177
byaddr_test@EXEEXT@: byaddr_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
178
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ byaddr_test.@O@ \
Bob Halley's avatar
Bob Halley committed
179 180
		${DNSLIBS} ${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
181
byname_test@EXEEXT@: byname_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
182
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ byname_test.@O@ \
Bob Halley's avatar
Bob Halley committed
183 184
		${DNSLIBS} ${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
185
lex_test@EXEEXT@: lex_test.@O@ ${ISCDEPLIBS}
186
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ lex_test.@O@ \
187
		${ISCLIBS} ${LIBS}
188

Mark Andrews's avatar
Mark Andrews committed
189
lfsr_test@EXEEXT@: lfsr_test.@O@ ${ISCDEPLIBS}
190
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ lfsr_test.@O@ \
Michael Graff's avatar
Michael Graff committed
191 192
		${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
193
log_test@EXEEXT@: log_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
194
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ log_test.@O@ \
195 196
		${DNSLIBS} ${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
197
name_test@EXEEXT@: name_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
198
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ name_test.@O@ \
199
		${DNSLIBS} ${ISCLIBS} ${LIBS}
200

Mark Andrews's avatar
Mark Andrews committed
201
hash_test@EXEEXT@: hash_test.@O@ ${ISCDEPLIBS}
202
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ hash_test.@O@ \
Michael Graff's avatar
Michael Graff committed
203 204
		${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
205
entropy_test@EXEEXT@: entropy_test.@O@ ${ISCDEPLIBS}
206
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ entropy_test.@O@ \
Michael Graff's avatar
Michael Graff committed
207 208
		${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
209
entropy2_test@EXEEXT@: entropy2_test.@O@ ${ISCDEPLIBS}
210
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ entropy2_test.@O@ \
211 212
		${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
213
sock_test@EXEEXT@: sock_test.@O@ ${ISCDEPLIBS}
214
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ sock_test.@O@ \
215
		${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
216

Mark Andrews's avatar
Mark Andrews committed
217
sym_test@EXEEXT@: sym_test.@O@ ${ISCDEPLIBS}
218
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ sym_test.@O@ \
219
		${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
220

Mark Andrews's avatar
Mark Andrews committed
221
task_test@EXEEXT@: task_test.@O@ ${ISCDEPLIBS}
Mark Andrews's avatar
Mark Andrews committed
222
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ task_test.@O@ \
223
		${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
224

Mark Andrews's avatar
Mark Andrews committed
225
shutdown_test@EXEEXT@: shutdown_test.@O@ ${ISCDEPLIBS}
226
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ shutdown_test.@O@ \
227
		${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
228

Mark Andrews's avatar
Mark Andrews committed
229
timer_test@EXEEXT@: timer_test.@O@ ${ISCDEPLIBS}
230
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ timer_test.@O@ \
231
		${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
232

Mark Andrews's avatar
Mark Andrews committed
233
ratelimiter_test@EXEEXT@: ratelimiter_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
234
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ratelimiter_test.@O@ \
Andreas Gustafsson's avatar
Andreas Gustafsson committed
235 236
		${DNSLIBS} ${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
237
rbt_test@EXEEXT@: rbt_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
238
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ rbt_test.@O@ \
239
		${DNSLIBS} ${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
240

Mark Andrews's avatar
Mark Andrews committed
241
rdata_test@EXEEXT@: rdata_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
242
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ rdata_test.@O@ \
243
		${DNSLIBS} ${ISCLIBS} ${LIBS}
244

Mark Andrews's avatar
Mark Andrews committed
245
rwlock_test@EXEEXT@: rwlock_test.@O@ ${ISCDEPLIBS}
246
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ rwlock_test.@O@ \
247
		${ISCLIBS} ${LIBS}
248

Mark Andrews's avatar
Mark Andrews committed
249
wire_test@EXEEXT@: wire_test.@O@ printmsg.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
250
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ wire_test.@O@ printmsg.@O@ \
251
		${DNSLIBS} ${ISCLIBS} ${LIBS}
252

Mark Andrews's avatar
Mark Andrews committed
253
master_test@EXEEXT@: master_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
254
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ master_test.@O@ \
255
		${DNSLIBS} ${ISCLIBS} ${LIBS}
256

Mark Andrews's avatar
Mark Andrews committed
257
db_test@EXEEXT@: db_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
258
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ db_test.@O@ \
259
		${DNSLIBS} ${ISCLIBS} ${LIBS}
Mark Andrews's avatar
Mark Andrews committed
260

Mark Andrews's avatar
Mark Andrews committed
261
compress_test@EXEEXT@: compress_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
262
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ compress_test.@O@ \
263
		${DNSLIBS} ${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
264

Mark Andrews's avatar
Mark Andrews committed
265
mempool_test@EXEEXT@: mempool_test.@O@ ${ISCDEPLIBS}
266
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ mempool_test.@O@ \
267
		${ISCLIBS} ${LIBS}
Mark Andrews's avatar
Mark Andrews committed
268

Mark Andrews's avatar
Mark Andrews committed
269
serial_test@EXEEXT@: serial_test.@O@ ${ISCDEPLIBS}
270
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ serial_test.@O@ \
271 272
		${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
273
zone_test@EXEEXT@: zone_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
274
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ zone_test.@O@ \
275 276
		${DNSLIBS} ${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
277
fsaccess_test@EXEEXT@: fsaccess_test.@O@ ${ISCDEPLIBS}
278
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ fsaccess_test.@O@ \
David Lawrence's avatar
David Lawrence committed
279 280
		${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
281
inter_test@EXEEXT@: inter_test.@O@ ${ISCDEPLIBS}
282
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ inter_test.@O@ \
Mark Andrews's avatar
Mark Andrews committed
283 284
		${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
285
keyboard_test@EXEEXT@: keyboard_test.@O@ ${ISCDEPLIBS}
286
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ keyboard_test.@O@ \
Michael Graff's avatar
Michael Graff committed
287 288
		${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
289
lwresconf_test@EXEEXT@: lwresconf_test.@O@ ${ISCDEPLIBS} ${LWRESDEPLIBS}
290
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ lwresconf_test.@O@ \
291 292
		${LWRESLIBS} ${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
293
lwres_test@EXEEXT@: lwres_test.@O@ ${ISCDEPLIBS} ${LWRESDEPLIBS}
294
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ lwres_test.@O@ \
295
		${LWRESLIBS} ${ISCLIBS} ${LIBS}
296

Mark Andrews's avatar
Mark Andrews committed
297
gxbn_test@EXEEXT@: gxbn_test.@O@ ${LWRESDEPLIBS}
298
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ gxbn_test.@O@ \
Mark Andrews's avatar
Mark Andrews committed
299 300
		${LWRESLIBS} ${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
301
gxba_test@EXEEXT@: gxba_test.@O@ ${LWRESDEPLIBS}
302
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ gxba_test.@O@ \
Mark Andrews's avatar
Mark Andrews committed
303 304
		${LWRESLIBS} ${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
305
sig0_test@EXEEXT@: sig0_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
306
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ sig0_test.@O@ \
307 308
		${DNSLIBS} ${ISCLIBS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
309
cfg_test@EXEEXT@: cfg_test.@O@ ${ISCCFGDEPLIBS} ${ISCDEPLIBS}
310
	${LIBTOOL_MODE_LINK} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ cfg_test.@O@ \
311
		${ISCCFGLIBS} ${DNSLIBS} ${ISCLIBS} ${LIBS}
312

313 314 315
distclean::
	rm -f headerdep_test.sh

316
clean distclean::
317
	rm -f ${TARGETS} ${XTARGETS}
Bob Halley's avatar
Bob Halley committed
318
	rm -f t_journal
319
	rm -f backtrace_test_symtbl.c
James Brister's avatar
James Brister committed
320

321 322
check: test

William King's avatar
William King committed
323
test:
324
	@for dir in $(SUBDIRS) ;\
William King's avatar
William King committed
325
	do \
326
		( cd $$dir; $(MAKE) test ) ;\
William King's avatar
William King committed
327
	done