bind9/bin/tests/Makefile.in

86 lines
2.3 KiB
Makefile
Raw Normal View History

# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2012-06-28 21:39:47 -04:00
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
1998-12-11 15:10:26 -05:00
1998-12-11 21:00:01 -05:00
srcdir = @srcdir@
VPATH = @srcdir@
top_srcdir = @top_srcdir@
@BIND9_MAKE_INCLUDES@
CINCLUDES = ${DNS_INCLUDES} ${ISC_INCLUDES} ${ISCCFG_INCLUDES} \
@DST_OPENSSL_INC@
CDEFINES = @CRYPTO@
1998-12-11 15:10:26 -05:00
CWARNINGS =
2014-02-11 17:07:54 -05:00
BACKTRACECFLAGS = @BACKTRACECFLAGS@
1998-12-11 15:10:26 -05:00
DNSLIBS = ../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
ISCLIBS = ../../lib/isc/libisc.@A@ @ISC_OPENSSL_LIBS@
ISCNOSYMLIBS = ../../lib/isc/libisc-nosymtbl.@A@ @ISC_OPENSSL_LIBS@
ISCCFGLIBS = ../../lib/isccfg/libisccfg.@A@
1999-07-03 17:07:10 -04:00
DNSDEPLIBS = ../../lib/dns/libdns.@A@
ISCDEPLIBS = ../../lib/isc/libisc.@A@
ISCDEPNOSYMLIBS = ../../lib/isc/libisc-nosymtbl.@A@
ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@
LIBS = @LIBS@
1998-12-11 15:10:26 -05:00
2018-03-01 21:02:34 -05:00
SUBDIRS = system @PKCS11_TOOLS@
TESTDIRS = system
# Test programs that are built by default:
# cfg_test is needed for regenerating doc/misc/options
# makejournal is needed by system tests
# wire_test is needed for fuzz testing
# other opptional test programs have been moved to ./optional
# Alphabetically
2018-03-01 21:02:34 -05:00
XTARGETS = all_tests
TARGETS = cfg_test@EXEEXT@ makejournal@EXEEXT@ \
2018-03-01 21:02:34 -05:00
wire_test@EXEEXT@ @XTARGETS@
SRCS = cfg_test.c makejournal.c wire_test.c
1999-07-13 17:56:59 -04:00
1998-12-11 15:10:26 -05:00
@BIND9_MAKE_RULES@
2018-03-01 21:02:34 -05:00
.NOTPARALLEL:
.PHONY:
all_tests:
echo "making depend in `pwd`/optional"; \
(cd optional; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@)
wire_test@EXEEXT@: wire_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ wire_test.@O@ \
${DNSLIBS} ${ISCLIBS} ${LIBS}
cfg_test@EXEEXT@: cfg_test.@O@ ${ISCCFGDEPLIBS} ${ISCDEPLIBS}
2004-07-20 03:13:43 -04:00
${LIBTOOL_MODE_LINK} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ cfg_test.@O@ \
${ISCCFGLIBS} ${DNSLIBS} ${ISCLIBS} ${LIBS}
makejournal@EXEEXT@: makejournal.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ makejournal.@O@ \
${DNSLIBS} ${ISCLIBS} ${LIBS}
distclean::
rm -f headerdep_test.sh
clean distclean::
rm -f ${TARGETS}
2018-03-01 21:02:34 -05:00
( cd optional; $(MAKE) $@)
1999-10-02 17:16:57 -04:00
check: test
1999-10-06 12:37:34 -04:00
test:
@for dir in $(TESTDIRS) ;\
1999-10-06 12:37:34 -04:00
do \
1999-10-06 20:13:53 -04:00
( cd $$dir; $(MAKE) test ) ;\
1999-10-06 12:37:34 -04:00
done