1 # Copyright (C) 2004-2009 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.138 2009/12/05 23:31:40 each Exp
20 top_srcdir
= @top_srcdir@
24 CINCLUDES
= ${DNS_INCLUDES} ${ISC_INCLUDES} ${ISCCFG_INCLUDES} \
25 ${LWRES_INCLUDES} ${OMAPI_INCLUDES}
30 DNSLIBS
= ..
/..
/lib
/dns
/libdns.@A@ @DNS_CRYPTO_LIBS@
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@
34 LWRESLIBS
= ..
/..
/lib
/lwres
/liblwres.@A@
36 DNSDEPLIBS
= ..
/..
/lib
/dns
/libdns.@A@
37 ISCDEPLIBS
= ..
/..
/lib
/isc
/libisc.@A@
38 ISCDEPNOSYMLIBS
= ..
/..
/lib
/isc
/libisc-nosymtbl.@A@
39 ISCCFGDEPLIBS
= ..
/..
/lib
/isccfg
/libisccfg.@A@
40 LWRESDEPLIBS
= ..
/..
/lib
/lwres
/liblwres.@A@
44 SUBDIRS
= db dst master mem names net rbt sockaddr tasks timers system
46 # Test programs that are built by default:
47 # cfg_test is needed for regenerating doc/misc/options
50 TARGETS
= cfg_test@EXEEXT@
52 # All the other tests are optional and not built by default.
55 XTARGETS
= adb_test@EXEEXT@ \
57 backtrace_test@EXEEXT@ \
58 backtrace_test_nosymtbl@EXEEXT@ \
60 compress_test@EXEEXT@ \
62 entropy_test@EXEEXT@ \
63 entropy2_test@EXEEXT@ \
67 fsaccess_test@EXEEXT@ \
69 keyboard_test@EXEEXT@ \
74 lwresconf_test@EXEEXT@ \
76 mempool_test@EXEEXT@ \
79 ratelimiter_test@EXEEXT@ \
84 shutdown_test@EXEEXT@ \
94 SRCS
= cfg_test.c
${XSRCS}
136 # disable optimization for backtrace test to get the expected result
137 BTTEST_CFLAGS
= ${EXT_CFLAGS} ${ALL_CPPFLAGS} -g
${ALWAYS_WARNINGS} \
138 ${STD_CWARNINGS} ${CWARNINGS}
140 all_tests
: ${XTARGETS}
142 adb_test@EXEEXT@
: adb_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
143 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ adb_test.@O@ \
144 ${DNSLIBS} ${ISCLIBS} ${LIBS}
146 backtrace_test_nosymtbl@EXEEXT@
: backtrace_test.c
${ISCDEPLIBS}
147 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${BTTEST_CFLAGS} ${LDFLAGS} -o
$@ \
148 backtrace_test.c
${ISCLIBS} ${LIBS}
150 backtrace_test@EXEEXT@
: backtrace_test_nosymtbl@EXEEXT@
151 #first step: create a first symbol table
153 if
test X
${MKSYMTBL_PROGRAM} != X
; then \
154 ${MKSYMTBL_PROGRAM} ${top_srcdir}/util
/mksymtbl.pl \
155 backtrace_test_nosymtbl@EXEEXT@
; else \
156 cp
${top_srcdir}/lib
/isc
/backtrace-emptytbl.c symtbl.c
; fi
157 #second step: build a binary with the first symbol table
158 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${BTTEST_CFLAGS} ${LDFLAGS} \
159 -o
$@
0 backtrace_test.c symtbl.c \
160 ${ISCNOSYMLIBS} ${LIBS}
162 #third step: create a second symbol table
163 if
test X
${MKSYMTBL_PROGRAM} != X
; then \
164 ${MKSYMTBL_PROGRAM} ${top_srcdir}/util
/mksymtbl.pl
$@
0; else \
165 cp
${top_srcdir}/lib
/isc
/backtrace-emptytbl.c symtbl.c
; fi
166 #fourth step: build the final binary
168 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${BTTEST_CFLAGS} ${LDFLAGS} \
169 -o
$@ backtrace_test.c symtbl.c
${ISCNOSYMLIBS} ${LIBS}
172 nsecify@EXEEXT@
: nsecify.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
173 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ nsecify.@O@ \
174 ${DNSLIBS} ${ISCLIBS} ${LIBS}
176 byaddr_test@EXEEXT@
: byaddr_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
177 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ byaddr_test.@O@ \
178 ${DNSLIBS} ${ISCLIBS} ${LIBS}
180 byname_test@EXEEXT@
: byname_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
181 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ byname_test.@O@ \
182 ${DNSLIBS} ${ISCLIBS} ${LIBS}
184 lex_test@EXEEXT@
: lex_test.@O@
${ISCDEPLIBS}
185 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ lex_test.@O@ \
188 lfsr_test@EXEEXT@
: lfsr_test.@O@
${ISCDEPLIBS}
189 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ lfsr_test.@O@ \
192 log_test@EXEEXT@
: log_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
193 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ log_test.@O@ \
194 ${DNSLIBS} ${ISCLIBS} ${LIBS}
196 name_test@EXEEXT@
: name_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
197 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ name_test.@O@ \
198 ${DNSLIBS} ${ISCLIBS} ${LIBS}
200 hash_test@EXEEXT@
: hash_test.@O@
${ISCDEPLIBS}
201 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ hash_test.@O@ \
204 entropy_test@EXEEXT@
: entropy_test.@O@
${ISCDEPLIBS}
205 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ entropy_test.@O@ \
208 entropy2_test@EXEEXT@
: entropy2_test.@O@
${ISCDEPLIBS}
209 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ entropy2_test.@O@ \
212 sock_test@EXEEXT@
: sock_test.@O@
${ISCDEPLIBS}
213 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ sock_test.@O@ \
216 sym_test@EXEEXT@
: sym_test.@O@
${ISCDEPLIBS}
217 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ sym_test.@O@ \
220 task_test@EXEEXT@
: task_test.@O@
${ISCDEPLIBS}
221 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ task_test.@O@ \
224 shutdown_test@EXEEXT@
: shutdown_test.@O@
${ISCDEPLIBS}
225 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ shutdown_test.@O@ \
228 timer_test@EXEEXT@
: timer_test.@O@
${ISCDEPLIBS}
229 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ timer_test.@O@ \
232 ratelimiter_test@EXEEXT@
: ratelimiter_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
233 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ ratelimiter_test.@O@ \
234 ${DNSLIBS} ${ISCLIBS} ${LIBS}
236 rbt_test@EXEEXT@
: rbt_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
237 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ rbt_test.@O@ \
238 ${DNSLIBS} ${ISCLIBS} ${LIBS}
240 rdata_test@EXEEXT@
: rdata_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
241 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ rdata_test.@O@ \
242 ${DNSLIBS} ${ISCLIBS} ${LIBS}
244 rwlock_test@EXEEXT@
: rwlock_test.@O@
${ISCDEPLIBS}
245 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ rwlock_test.@O@ \
248 wire_test@EXEEXT@
: wire_test.@O@ printmsg.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
249 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ wire_test.@O@ printmsg.@O@ \
250 ${DNSLIBS} ${ISCLIBS} ${LIBS}
252 master_test@EXEEXT@
: master_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
253 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ master_test.@O@ \
254 ${DNSLIBS} ${ISCLIBS} ${LIBS}
256 db_test@EXEEXT@
: db_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
257 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ db_test.@O@ \
258 ${DNSLIBS} ${ISCLIBS} ${LIBS}
260 compress_test@EXEEXT@
: compress_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
261 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ compress_test.@O@ \
262 ${DNSLIBS} ${ISCLIBS} ${LIBS}
264 mempool_test@EXEEXT@
: mempool_test.@O@
${ISCDEPLIBS}
265 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ mempool_test.@O@ \
268 serial_test@EXEEXT@
: serial_test.@O@
${ISCDEPLIBS}
269 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ serial_test.@O@ \
272 zone_test@EXEEXT@
: zone_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
273 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ zone_test.@O@ \
274 ${DNSLIBS} ${ISCLIBS} ${LIBS}
276 fsaccess_test@EXEEXT@
: fsaccess_test.@O@
${ISCDEPLIBS}
277 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ fsaccess_test.@O@ \
280 inter_test@EXEEXT@
: inter_test.@O@
${ISCDEPLIBS}
281 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ inter_test.@O@ \
284 keyboard_test@EXEEXT@
: keyboard_test.@O@
${ISCDEPLIBS}
285 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ keyboard_test.@O@ \
288 lwresconf_test@EXEEXT@
: lwresconf_test.@O@
${ISCDEPLIBS} ${LWRESDEPLIBS}
289 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ lwresconf_test.@O@ \
290 ${LWRESLIBS} ${ISCLIBS} ${LIBS}
292 lwres_test@EXEEXT@
: lwres_test.@O@
${ISCDEPLIBS} ${LWRESDEPLIBS}
293 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ lwres_test.@O@ \
294 ${LWRESLIBS} ${ISCLIBS} ${LIBS}
296 gxbn_test@EXEEXT@
: gxbn_test.@O@
${LWRESDEPLIBS}
297 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ gxbn_test.@O@ \
298 ${LWRESLIBS} ${ISCLIBS} ${LIBS}
300 gxba_test@EXEEXT@
: gxba_test.@O@
${LWRESDEPLIBS}
301 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ gxba_test.@O@ \
302 ${LWRESLIBS} ${ISCLIBS} ${LIBS}
304 sig0_test@EXEEXT@
: sig0_test.@O@
${ISCDEPLIBS} ${DNSDEPLIBS}
305 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ sig0_test.@O@ \
306 ${DNSLIBS} ${ISCLIBS} ${LIBS}
308 cfg_test@EXEEXT@
: cfg_test.@O@
${ISCCFGDEPLIBS} ${ISCDEPLIBS}
309 ${LIBTOOL_MODE_LINK} ${CC} ${CFLAGS} ${LDFLAGS} -o
$@ cfg_test.@O@ \
310 ${ISCCFGLIBS} ${DNSLIBS} ${ISCLIBS} ${LIBS}
313 rm -f headerdep_test.sh
316 rm -f
${TARGETS} ${XTARGETS}
318 rm -f backtrace_test_symtbl.c
323 @for
dir in
$(SUBDIRS
) ;\
325 ( cd
$$dir; $(MAKE
) test ) ;\