# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.29 2009/10/05 12:07:08 fdupont Exp $
-
srcdir = @srcdir@
VPATH = @srcdir@
top_srcdir = @top_srcdir@
SUBDIRS = named rndc dig dnssec tools tests nsupdate \
- check confgen @PYTHON_TOOLS@ @PKCS11_TOOLS@
+ check confgen @PYTHON_TOOLS@ @PKCS11_TOOLS@ tests
TARGETS =
@BIND9_MAKE_RULES@
LIBS = @LIBS@
-SUBDIRS = system optional
+SUBDIRS = system
+TESTDIRS = system
# Test programs that are built by default:
# cfg_test is needed for regenerating doc/misc/options
# other opptional test programs have been moved to ./optional
# Alphabetically
-TARGETS = cfg_test@EXEEXT@ wire_test@EXEEXT@ mdig@EXEEXT@
+XTARGETS = all_tests
+TARGETS = cfg_test@EXEEXT@ mdig@EXEEXT@ wire_test@EXEEXT@ @XTARGETS@
SRCS = cfg_test.c wire_test.c mdig.c
@BIND9_MAKE_RULES@
-all_tests: subdirs
+.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@ \
clean distclean::
rm -f ${TARGETS}
+ ( cd optional; $(MAKE) $@)
check: test
@BIND9_MAKE_RULES@
+subdirs: ${TARGETS}
+
feature-test@EXEEXT@: feature-test.@O@
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ feature-test.@O@ ${ISCLIBS} ${LIBS}
-
# Running the scripts below is bypassed when a separate build directory is
# used.