1 # Copyright (C) 2004-2014 Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 1998-2003 Internet Software Consortium.
4 # Permission to use, copy, modify, and/or distribute this software for any
5 # purpose with or without fee is hereby granted, provided that the above
6 # copyright notice and this permission notice appear in all copies.
8 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 # PERFORMANCE OF THIS SOFTWARE.
16 # Id: Makefile.in,v 1.145 2011/02/03 05:41:53 marka Exp
20 top_srcdir
= @top_srcdir@
24 CINCLUDES
= ${DNS_INCLUDES} ${ISC_INCLUDES} ${ISCCFG_INCLUDES} \
25 ${LWRES_INCLUDES} ${OMAPI_INCLUDES}
29 BACKTRACECFLAGS
= @BACKTRACECFLAGS@
31 DNSLIBS
= ..
/..
/lib
/dns
/libdns.@A@ @DNS_CRYPTO_LIBS@
32 ISCLIBS
= ..
/..
/lib
/isc
/libisc.@A@ @ISC_OPENSSL_LIBS@
33 ISCNOSYMLIBS
= ..
/..
/lib
/isc
/libisc-nosymtbl.@A@ @ISC_OPENSSL_LIBS@
34 ISCCFGLIBS
= ..
/..
/lib
/isccfg
/libisccfg.@A@
35 LWRESLIBS
= ..
/..
/lib
/lwres
/liblwres.@A@
37 DNSDEPLIBS
= ..
/..
/lib
/dns
/libdns.@A@
38 ISCDEPLIBS
= ..
/..
/lib
/isc
/libisc.@A@
39 ISCDEPNOSYMLIBS
= ..
/..
/lib
/isc
/libisc-nosymtbl.@A@
40 ISCCFGDEPLIBS
= ..
/..
/lib
/isccfg
/libisccfg.@A@
41 LWRESDEPLIBS
= ..
/..
/lib
/lwres
/liblwres.@A@
45 SUBDIRS
= atomic db dst master mem hashes names net rbt resolver \
46 sockaddr tasks timers system @PKCS11_TOOLS@
48 # Test programs that are built by default:
49 # cfg_test is needed for regenerating doc/misc/options
50 # makejournal is needed by system tests
53 TARGETS
= cfg_test@EXEEXT@ makejournal@EXEEXT@
55 # All the other tests are optional and not built by default.
58 XTARGETS
= adb_test@EXEEXT@ \
60 backtrace_test@EXEEXT@ \
61 backtrace_test_nosymtbl@EXEEXT@ \
63 compress_test@EXEEXT@ \
65 entropy_test@EXEEXT@ \
66 entropy2_test@EXEEXT@ \
70 fsaccess_test@EXEEXT@ \
72 keyboard_test@EXEEXT@ \
77 lwresconf_test@EXEEXT@ \
79 mempool_test@EXEEXT@ \
82 ratelimiter_test@EXEEXT@ \
87 shutdown_test@EXEEXT@ \
97 SRCS
= cfg_test.c makejournal.c
${XSRCS}
139 # disable optimization for backtrace test to get the expected result
140 BTTEST_CFLAGS
= ${BACKTRACECFLAGS} ${EXT_CFLAGS} ${ALL_CPPFLAGS} -g \
141 ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
143 all_tests
: ${XTARGETS}
145 adb_test@EXEEXT@
: adb_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
146 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ adb_test.@O@ \
147 ${DNSLIBS} ${ISCLIBS} ${LIBS}
149 backtrace_test_nosymtbl@EXEEXT@
: backtrace_test.c
${ISCDEPLIBS}
150 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${BTTEST_CFLAGS} ${LDFLAGS} -o
$@ \
151 backtrace_test.c
${ISCLIBS} ${LIBS}
153 backtrace_test@EXEEXT@
: backtrace_test_nosymtbl@EXEEXT@
154 #first step: create a first symbol table
156 if
test X
${MKSYMTBL_PROGRAM} != X
; then \
157 ${MKSYMTBL_PROGRAM} ${top_srcdir}/util
/mksymtbl.pl \
158 backtrace_test_nosymtbl@EXEEXT@
; else \
159 cp
${top_srcdir}/lib
/isc
/backtrace-emptytbl.c symtbl.c
; fi
160 #second step: build a binary with the first symbol table
161 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${BTTEST_CFLAGS} ${LDFLAGS} \
162 -o
$@
0 backtrace_test.c symtbl.c \
163 ${ISCNOSYMLIBS} ${LIBS}
165 #third step: create a second symbol table
166 if
test X
${MKSYMTBL_PROGRAM} != X
; then \
167 ${MKSYMTBL_PROGRAM} ${top_srcdir}/util
/mksymtbl.pl
$@
0; else \
168 cp
${top_srcdir}/lib
/isc
/backtrace-emptytbl.c symtbl.c
; fi
169 #fourth step: build the final binary
171 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${BTTEST_CFLAGS} ${LDFLAGS} \
172 -o
$@ backtrace_test.c symtbl.c
${ISCNOSYMLIBS} ${LIBS}
175 nsecify@EXEEXT@
: nsecify.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
176 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ nsecify.@O@ \
177 ${DNSLIBS} ${ISCLIBS} ${LIBS}
179 byaddr_test@EXEEXT@
: byaddr_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
180 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ byaddr_test.@O@ \
181 ${DNSLIBS} ${ISCLIBS} ${LIBS}
183 byname_test@EXEEXT@
: byname_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
184 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ byname_test.@O@ \
185 ${DNSLIBS} ${ISCLIBS} ${LIBS}
187 lex_test@EXEEXT@
: lex_test.@O@
${ISCDEPLIBS}
188 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ lex_test.@O@ \
191 lfsr_test@EXEEXT@
: lfsr_test.@O@
${ISCDEPLIBS}
192 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ lfsr_test.@O@ \
195 log_test@EXEEXT@
: log_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
196 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ log_test.@O@ \
197 ${DNSLIBS} ${ISCLIBS} ${LIBS}
199 name_test@EXEEXT@
: name_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
200 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ name_test.@O@ \
201 ${DNSLIBS} ${ISCLIBS} ${LIBS}
203 hash_test@EXEEXT@
: hash_test.@O@
${ISCDEPLIBS}
204 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ hash_test.@O@ \
207 entropy_test@EXEEXT@
: entropy_test.@O@
${ISCDEPLIBS}
208 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ entropy_test.@O@ \
211 entropy2_test@EXEEXT@
: entropy2_test.@O@
${ISCDEPLIBS}
212 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ entropy2_test.@O@ \
215 sock_test@EXEEXT@
: sock_test.@O@
${ISCDEPLIBS}
216 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ sock_test.@O@ \
219 sym_test@EXEEXT@
: sym_test.@O@
${ISCDEPLIBS}
220 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ sym_test.@O@ \
223 task_test@EXEEXT@
: task_test.@O@
${ISCDEPLIBS}
224 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ task_test.@O@ \
227 shutdown_test@EXEEXT@
: shutdown_test.@O@
${ISCDEPLIBS}
228 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ shutdown_test.@O@ \
231 timer_test@EXEEXT@
: timer_test.@O@
${ISCDEPLIBS}
232 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ timer_test.@O@ \
235 ratelimiter_test@EXEEXT@
: ratelimiter_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
236 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ ratelimiter_test.@O@ \
237 ${DNSLIBS} ${ISCLIBS} ${LIBS}
239 rbt_test@EXEEXT@
: rbt_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
240 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ rbt_test.@O@ \
241 ${DNSLIBS} ${ISCLIBS} ${LIBS}
243 rdata_test@EXEEXT@
: rdata_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
244 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ rdata_test.@O@ \
245 ${DNSLIBS} ${ISCLIBS} ${LIBS}
247 rwlock_test@EXEEXT@
: rwlock_test.@O@
${ISCDEPLIBS}
248 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ rwlock_test.@O@ \
251 wire_test@EXEEXT@
: wire_test.@O@ printmsg.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
252 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ wire_test.@O@ printmsg.@O@ \
253 ${DNSLIBS} ${ISCLIBS} ${LIBS}
255 master_test@EXEEXT@
: master_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
256 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ master_test.@O@ \
257 ${DNSLIBS} ${ISCLIBS} ${LIBS}
259 db_test@EXEEXT@
: db_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
260 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ db_test.@O@ \
261 ${DNSLIBS} ${ISCLIBS} ${LIBS}
263 compress_test@EXEEXT@
: compress_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
264 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ compress_test.@O@ \
265 ${DNSLIBS} ${ISCLIBS} ${LIBS}
267 mempool_test@EXEEXT@
: mempool_test.@O@
${ISCDEPLIBS}
268 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ mempool_test.@O@ \
271 serial_test@EXEEXT@
: serial_test.@O@
${ISCDEPLIBS}
272 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ serial_test.@O@ \
275 zone_test@EXEEXT@
: zone_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
276 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ zone_test.@O@ \
277 ${DNSLIBS} ${ISCLIBS} ${LIBS}
279 fsaccess_test@EXEEXT@
: fsaccess_test.@O@
${ISCDEPLIBS}
280 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ fsaccess_test.@O@ \
283 inter_test@EXEEXT@
: inter_test.@O@
${ISCDEPLIBS}
284 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ inter_test.@O@ \
287 keyboard_test@EXEEXT@
: keyboard_test.@O@
${ISCDEPLIBS}
288 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ keyboard_test.@O@ \
291 lwresconf_test@EXEEXT@
: lwresconf_test.@O@
${ISCDEPLIBS} ${LWRESDEPLIBS}
292 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ lwresconf_test.@O@ \
293 ${LWRESLIBS} ${ISCLIBS} ${LIBS}
295 lwres_test@EXEEXT@
: lwres_test.@O@
${ISCDEPLIBS} ${LWRESDEPLIBS}
296 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ lwres_test.@O@ \
297 ${LWRESLIBS} ${ISCLIBS} ${LIBS}
299 gxbn_test@EXEEXT@
: gxbn_test.@O@
${LWRESDEPLIBS}
300 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ gxbn_test.@O@ \
301 ${LWRESLIBS} ${ISCLIBS} ${LIBS}
303 gxba_test@EXEEXT@
: gxba_test.@O@
${LWRESDEPLIBS}
304 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ gxba_test.@O@ \
305 ${LWRESLIBS} ${ISCLIBS} ${LIBS}
307 sig0_test@EXEEXT@
: sig0_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
308 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ sig0_test.@O@ \
309 ${DNSLIBS} ${ISCLIBS} ${LIBS}
311 cfg_test@EXEEXT@
: cfg_test.@O@
${ISCCFGDEPLIBS} ${ISCDEPLIBS}
312 ${LIBTOOL_MODE_LINK} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ cfg_test.@O@ \
313 ${ISCCFGLIBS} ${DNSLIBS} ${ISCLIBS} ${LIBS}
315 makejournal@EXEEXT@
: makejournal.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
316 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ makejournal.@O@ \
317 ${DNSLIBS} ${ISCLIBS} ${LIBS}
320 rm -f headerdep_test.sh
323 rm -f
${TARGETS} ${XTARGETS}
325 rm -f backtrace_test_symtbl.c
330 @for
dir in
$(SUBDIRS
) ;\
332 ( cd
$$dir; $(MAKE
) test ) ;\