Remove building with NOCRYPTO option
[minix.git] / external / bsd / bind / dist / bin / tests / Makefile.in
blob0cb2363d6f155482c396a8c9450731342700fbea
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
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 =
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@
43 LIBS = @LIBS@
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
52 # Alphabetically
53 TARGETS = cfg_test@EXEEXT@ makejournal@EXEEXT@
55 # All the other tests are optional and not built by default.
57 # Alphabetically
58 XTARGETS = adb_test@EXEEXT@ \
59 byaddr_test@EXEEXT@ \
60 backtrace_test@EXEEXT@ \
61 backtrace_test_nosymtbl@EXEEXT@ \
62 byname_test@EXEEXT@ \
63 compress_test@EXEEXT@ \
64 db_test@EXEEXT@ \
65 entropy_test@EXEEXT@ \
66 entropy2_test@EXEEXT@ \
67 gxba_test@EXEEXT@ \
68 gxbn_test@EXEEXT@ \
69 hash_test@EXEEXT@ \
70 fsaccess_test@EXEEXT@ \
71 inter_test@EXEEXT@ \
72 keyboard_test@EXEEXT@ \
73 lex_test@EXEEXT@ \
74 lfsr_test@EXEEXT@ \
75 log_test@EXEEXT@ \
76 lwres_test@EXEEXT@ \
77 lwresconf_test@EXEEXT@ \
78 master_test@EXEEXT@ \
79 mempool_test@EXEEXT@ \
80 name_test@EXEEXT@ \
81 nsecify@EXEEXT@ \
82 ratelimiter_test@EXEEXT@ \
83 rbt_test@EXEEXT@ \
84 rdata_test@EXEEXT@ \
85 rwlock_test@EXEEXT@ \
86 serial_test@EXEEXT@ \
87 shutdown_test@EXEEXT@ \
88 sig0_test@EXEEXT@ \
89 sock_test@EXEEXT@ \
90 sym_test@EXEEXT@ \
91 task_test@EXEEXT@ \
92 timer_test@EXEEXT@ \
93 wire_test@EXEEXT@ \
94 zone_test@EXEEXT@
96 # Alphabetically
97 SRCS = cfg_test.c makejournal.c ${XSRCS}
99 XSRCS = adb_test.c \
100 byaddr_test.c \
101 backtrace_test.c \
102 byname_test.c \
103 compress_test.c \
104 db_test.c \
105 entropy_test.c \
106 entropy2_test.c \
107 gxba_test.c \
108 gxbn_test.c \
109 hash_test.c \
110 fsaccess_test.c \
111 inter_test.c \
112 keyboard_test.c \
113 lex_test.c \
114 lfsr_test.c \
115 log_test.c \
116 lwres_test.c \
117 lwresconf_test.c \
118 master_test.c \
119 mempool_test.c \
120 name_test.c \
121 nsecify.c \
122 printmsg.c \
123 ratelimiter_test.c \
124 rbt_test.c \
125 rdata_test.c \
126 rwlock_test.c \
127 serial_test.c \
128 shutdown_test.c \
129 sig0_test.c \
130 sock_test.c \
131 sym_test.c \
132 task_test.c \
133 timer_test.c \
134 wire_test.c \
135 zone_test.c
137 @BIND9_MAKE_RULES@
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
155 rm -f symtbl.c
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}
164 rm -f symtbl.c
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
170 rm -f $@0
171 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${BTTEST_CFLAGS} ${LDFLAGS} \
172 -o $@ backtrace_test.c symtbl.c ${ISCNOSYMLIBS} ${LIBS}
173 rm -f symtbl.c
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@ \
189 ${ISCLIBS} ${LIBS}
191 lfsr_test@EXEEXT@: lfsr_test.@O@ ${ISCDEPLIBS}
192 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ lfsr_test.@O@ \
193 ${ISCLIBS} ${LIBS}
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@ \
205 ${ISCLIBS} ${LIBS}
207 entropy_test@EXEEXT@: entropy_test.@O@ ${ISCDEPLIBS}
208 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ entropy_test.@O@ \
209 ${ISCLIBS} ${LIBS}
211 entropy2_test@EXEEXT@: entropy2_test.@O@ ${ISCDEPLIBS}
212 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ entropy2_test.@O@ \
213 ${ISCLIBS} ${LIBS}
215 sock_test@EXEEXT@: sock_test.@O@ ${ISCDEPLIBS}
216 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ sock_test.@O@ \
217 ${ISCLIBS} ${LIBS}
219 sym_test@EXEEXT@: sym_test.@O@ ${ISCDEPLIBS}
220 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ sym_test.@O@ \
221 ${ISCLIBS} ${LIBS}
223 task_test@EXEEXT@: task_test.@O@ ${ISCDEPLIBS}
224 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ task_test.@O@ \
225 ${ISCLIBS} ${LIBS}
227 shutdown_test@EXEEXT@: shutdown_test.@O@ ${ISCDEPLIBS}
228 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ shutdown_test.@O@ \
229 ${ISCLIBS} ${LIBS}
231 timer_test@EXEEXT@: timer_test.@O@ ${ISCDEPLIBS}
232 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ timer_test.@O@ \
233 ${ISCLIBS} ${LIBS}
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@ \
249 ${ISCLIBS} ${LIBS}
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@ \
269 ${ISCLIBS} ${LIBS}
271 serial_test@EXEEXT@: serial_test.@O@ ${ISCDEPLIBS}
272 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ serial_test.@O@ \
273 ${ISCLIBS} ${LIBS}
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@ \
281 ${ISCLIBS} ${LIBS}
283 inter_test@EXEEXT@: inter_test.@O@ ${ISCDEPLIBS}
284 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ inter_test.@O@ \
285 ${ISCLIBS} ${LIBS}
287 keyboard_test@EXEEXT@: keyboard_test.@O@ ${ISCDEPLIBS}
288 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ keyboard_test.@O@ \
289 ${ISCLIBS} ${LIBS}
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}
319 distclean::
320 rm -f headerdep_test.sh
322 clean distclean::
323 rm -f ${TARGETS} ${XTARGETS}
324 rm -f t_journal
325 rm -f backtrace_test_symtbl.c
327 check: test
329 test:
330 @for dir in $(SUBDIRS) ;\
331 do \
332 ( cd $$dir; $(MAKE) test ) ;\
333 done