Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / bind / dist / bin / tests / Makefile.in
blob2b2fff16899767b375444f91d540eeeca55b48c3
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
18 srcdir = @srcdir@
19 VPATH = @srcdir@
20 top_srcdir = @top_srcdir@
22 @BIND9_MAKE_INCLUDES@
24 CINCLUDES = ${DNS_INCLUDES} ${ISC_INCLUDES} ${ISCCFG_INCLUDES} \
25 ${LWRES_INCLUDES} ${OMAPI_INCLUDES}
27 CDEFINES =
28 CWARNINGS =
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@
42 LIBS = @LIBS@
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
49 # Alphabetically
50 TARGETS = cfg_test@EXEEXT@
52 # All the other tests are optional and not built by default.
54 # Alphabetically
55 XTARGETS = adb_test@EXEEXT@ \
56 byaddr_test@EXEEXT@ \
57 backtrace_test@EXEEXT@ \
58 backtrace_test_nosymtbl@EXEEXT@ \
59 byname_test@EXEEXT@ \
60 compress_test@EXEEXT@ \
61 db_test@EXEEXT@ \
62 entropy_test@EXEEXT@ \
63 entropy2_test@EXEEXT@ \
64 gxba_test@EXEEXT@ \
65 gxbn_test@EXEEXT@ \
66 hash_test@EXEEXT@ \
67 fsaccess_test@EXEEXT@ \
68 inter_test@EXEEXT@ \
69 keyboard_test@EXEEXT@ \
70 lex_test@EXEEXT@ \
71 lfsr_test@EXEEXT@ \
72 log_test@EXEEXT@ \
73 lwres_test@EXEEXT@ \
74 lwresconf_test@EXEEXT@ \
75 master_test@EXEEXT@ \
76 mempool_test@EXEEXT@ \
77 name_test@EXEEXT@ \
78 nsecify@EXEEXT@ \
79 ratelimiter_test@EXEEXT@ \
80 rbt_test@EXEEXT@ \
81 rdata_test@EXEEXT@ \
82 rwlock_test@EXEEXT@ \
83 serial_test@EXEEXT@ \
84 shutdown_test@EXEEXT@ \
85 sig0_test@EXEEXT@ \
86 sock_test@EXEEXT@ \
87 sym_test@EXEEXT@ \
88 task_test@EXEEXT@ \
89 timer_test@EXEEXT@ \
90 wire_test@EXEEXT@ \
91 zone_test@EXEEXT@
93 # Alphabetically
94 SRCS = cfg_test.c ${XSRCS}
96 XSRCS = adb_test.c \
97 byaddr_test.c \
98 backtrace_test.c \
99 byname_test.c \
100 compress_test.c \
101 db_test.c \
102 entropy_test.c \
103 entropy2_test.c \
104 gxba_test.c \
105 gxbn_test.c \
106 hash_test.c \
107 fsaccess_test.c \
108 inter_test.c \
109 keyboard_test.c \
110 lex_test.c \
111 lfsr_test.c \
112 log_test.c \
113 lwres_test.c \
114 lwresconf_test.c \
115 master_test.c \
116 mempool_test.c \
117 name_test.c \
118 nsecify.c \
119 printmsg.c \
120 ratelimiter_test.c \
121 rbt_test.c \
122 rdata_test.c \
123 rwlock_test.c \
124 serial_test.c \
125 shutdown_test.c \
126 sig0_test.c \
127 sock_test.c \
128 sym_test.c \
129 task_test.c \
130 timer_test.c \
131 wire_test.c \
132 zone_test.c
134 @BIND9_MAKE_RULES@
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
152 rm -f symtbl.c
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}
161 rm -f symtbl.c
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
167 rm -f $@0
168 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${BTTEST_CFLAGS} ${LDFLAGS} \
169 -o $@ backtrace_test.c symtbl.c ${ISCNOSYMLIBS} ${LIBS}
170 rm -f symtbl.c
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@ \
186 ${ISCLIBS} ${LIBS}
188 lfsr_test@EXEEXT@: lfsr_test.@O@ ${ISCDEPLIBS}
189 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ lfsr_test.@O@ \
190 ${ISCLIBS} ${LIBS}
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@ \
202 ${ISCLIBS} ${LIBS}
204 entropy_test@EXEEXT@: entropy_test.@O@ ${ISCDEPLIBS}
205 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ entropy_test.@O@ \
206 ${ISCLIBS} ${LIBS}
208 entropy2_test@EXEEXT@: entropy2_test.@O@ ${ISCDEPLIBS}
209 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ entropy2_test.@O@ \
210 ${ISCLIBS} ${LIBS}
212 sock_test@EXEEXT@: sock_test.@O@ ${ISCDEPLIBS}
213 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ sock_test.@O@ \
214 ${ISCLIBS} ${LIBS}
216 sym_test@EXEEXT@: sym_test.@O@ ${ISCDEPLIBS}
217 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ sym_test.@O@ \
218 ${ISCLIBS} ${LIBS}
220 task_test@EXEEXT@: task_test.@O@ ${ISCDEPLIBS}
221 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ task_test.@O@ \
222 ${ISCLIBS} ${LIBS}
224 shutdown_test@EXEEXT@: shutdown_test.@O@ ${ISCDEPLIBS}
225 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ shutdown_test.@O@ \
226 ${ISCLIBS} ${LIBS}
228 timer_test@EXEEXT@: timer_test.@O@ ${ISCDEPLIBS}
229 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ timer_test.@O@ \
230 ${ISCLIBS} ${LIBS}
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@ \
246 ${ISCLIBS} ${LIBS}
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@ \
266 ${ISCLIBS} ${LIBS}
268 serial_test@EXEEXT@: serial_test.@O@ ${ISCDEPLIBS}
269 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ serial_test.@O@ \
270 ${ISCLIBS} ${LIBS}
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@ \
278 ${ISCLIBS} ${LIBS}
280 inter_test@EXEEXT@: inter_test.@O@ ${ISCDEPLIBS}
281 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ inter_test.@O@ \
282 ${ISCLIBS} ${LIBS}
284 keyboard_test@EXEEXT@: keyboard_test.@O@ ${ISCDEPLIBS}
285 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ keyboard_test.@O@ \
286 ${ISCLIBS} ${LIBS}
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}
312 distclean::
313 rm -f headerdep_test.sh
315 clean distclean::
316 rm -f ${TARGETS} ${XTARGETS}
317 rm -f t_journal
318 rm -f backtrace_test_symtbl.c
320 check: test
322 test:
323 @for dir in $(SUBDIRS) ;\
324 do \
325 ( cd $$dir; $(MAKE) test ) ;\
326 done