2018-02-23 03:53:12 -05:00
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2012-06-28 21:39:47 -04:00
|
|
|
#
|
2016-06-27 00:56:38 -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/.
|
2018-02-23 03:53:12 -05:00
|
|
|
#
|
|
|
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
|
|
|
# information regarding copyright ownership.
|
2004-03-05 00:14:21 -05:00
|
|
|
|
2000-12-14 20:40:40 -05:00
|
|
|
srcdir = @srcdir@
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
top_srcdir = @top_srcdir@
|
2000-06-22 18:00:42 -04:00
|
|
|
|
2016-10-27 21:05:19 -04:00
|
|
|
VERSION=@BIND9_VERSION@
|
|
|
|
|
|
2001-09-20 11:17:07 -04:00
|
|
|
@BIND9_MAKE_INCLUDES@
|
2000-12-14 20:40:40 -05:00
|
|
|
|
2017-09-11 14:53:42 -04:00
|
|
|
SUBDIRS = dlzexternal dyndb pipelined rndc rpz rsabigexponent tkey
|
2016-10-27 21:05:19 -04:00
|
|
|
|
2016-10-31 19:53:37 -04:00
|
|
|
CINCLUDES = ${ISC_INCLUDES} ${DNS_INCLUDES}
|
2016-10-27 21:05:19 -04:00
|
|
|
|
2019-01-30 09:12:54 -05:00
|
|
|
CDEFINES = @USE_GSSAPI@ @CONTRIB_DLZ@
|
2016-10-27 21:05:19 -04:00
|
|
|
CWARNINGS =
|
|
|
|
|
|
|
|
|
|
DNSLIBS =
|
2019-06-24 08:06:56 -04:00
|
|
|
ISCLIBS = ../../../lib/isc/libisc.@A@ ${OPENSSL_LIBS} ${JSON_C_LIBS} ${LIBXML2_LIBS}
|
2016-10-27 21:05:19 -04:00
|
|
|
|
|
|
|
|
DNSDEPLIBS =
|
|
|
|
|
ISCDEPLIBS =
|
|
|
|
|
|
|
|
|
|
DEPLIBS =
|
|
|
|
|
|
|
|
|
|
LIBS = @LIBS@
|
|
|
|
|
|
|
|
|
|
OBJS = feature-test.@O@
|
|
|
|
|
SRCS = feature-test.c
|
|
|
|
|
|
|
|
|
|
TARGETS = feature-test@EXEEXT@
|
2000-06-08 20:09:11 -04:00
|
|
|
|
|
|
|
|
@BIND9_MAKE_RULES@
|
|
|
|
|
|
2018-03-01 21:02:34 -05:00
|
|
|
subdirs: ${TARGETS}
|
|
|
|
|
|
2016-10-27 21:05:19 -04:00
|
|
|
feature-test@EXEEXT@: feature-test.@O@
|
2016-10-31 19:53:37 -04:00
|
|
|
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ feature-test.@O@ ${ISCLIBS} ${LIBS}
|
2016-10-27 21:05:19 -04:00
|
|
|
|
2017-12-14 12:17:28 -05:00
|
|
|
# Running the scripts below is bypassed when a separate build directory is
|
2017-11-17 08:21:05 -05:00
|
|
|
# used.
|
|
|
|
|
|
|
|
|
|
# Produce intermediate makefile that assigns unique port numbers to each
|
2017-12-14 14:13:48 -05:00
|
|
|
# parallel test. The start port number of 5,000 is arbitrary - it must just
|
2018-01-25 06:29:31 -05:00
|
|
|
# be greater than the highest privileged port, 1024.
|
2018-01-29 06:08:41 -05:00
|
|
|
#
|
|
|
|
|
# Test names need to be sanitized because Solaris make does not like
|
|
|
|
|
# underscores in target names and requires explicit differentiation
|
|
|
|
|
# between a target name and a directory name (.PHONY is not supported).
|
2017-11-17 08:21:05 -05:00
|
|
|
|
2018-02-20 18:43:27 -05:00
|
|
|
.PHONY: parallel.mk
|
|
|
|
|
|
2017-11-17 08:21:05 -05:00
|
|
|
parallel.mk:
|
2019-01-26 13:36:47 -05:00
|
|
|
$(SHELL) parallel.sh > parallel.mk
|
2017-11-17 08:21:05 -05:00
|
|
|
|
2017-11-23 05:02:15 -05:00
|
|
|
# Targets to run the tests.
|
2017-11-17 08:21:05 -05:00
|
|
|
|
2017-12-20 09:53:07 -05:00
|
|
|
test: parallel.mk subdirs
|
2017-12-15 10:56:33 -05:00
|
|
|
@$(MAKE) -f parallel.mk check
|
2018-02-21 08:59:33 -05:00
|
|
|
@$(SHELL) ./runsequential.sh -r
|
2017-11-23 05:02:15 -05:00
|
|
|
@$(SHELL) ./testsummary.sh
|
2017-10-18 11:20:20 -04:00
|
|
|
|
2017-11-17 08:21:05 -05:00
|
|
|
check: test
|
2017-10-18 07:00:15 -04:00
|
|
|
|
2017-11-24 07:50:19 -05:00
|
|
|
# Other targets:
|
|
|
|
|
#
|
2017-12-20 09:53:07 -05:00
|
|
|
# testclean - delete files generated by running tests.
|
|
|
|
|
# clean - testclean + also delete files built for the tests by "make".
|
|
|
|
|
# distclean - clean + also delete test-related files generated by "configure".
|
2000-06-20 19:57:45 -04:00
|
|
|
|
2008-09-23 22:46:23 -04:00
|
|
|
testclean clean distclean::
|
2017-11-23 05:02:15 -05:00
|
|
|
if test -f ./cleanall.sh; then $(SHELL) ./cleanall.sh; fi
|
2011-11-01 14:35:53 -04:00
|
|
|
rm -f systests.output
|
2014-01-20 19:08:09 -05:00
|
|
|
rm -f random.data
|
2017-11-17 08:21:05 -05:00
|
|
|
rm -f parallel.mk
|
2017-11-24 07:50:19 -05:00
|
|
|
|
|
|
|
|
clean distclean::
|
2016-10-27 21:05:19 -04:00
|
|
|
rm -f ${TARGETS}
|
|
|
|
|
rm -f ${OBJS}
|
2000-06-08 20:09:11 -04:00
|
|
|
|
2000-07-27 21:37:05 -04:00
|
|
|
distclean::
|
|
|
|
|
rm -f conf.sh
|
|
|
|
|
|
2000-06-08 20:44:12 -04:00
|
|
|
installdirs:
|
|
|
|
|
|
|
|
|
|
install::
|
2016-11-01 22:17:07 -04:00
|
|
|
|
|
|
|
|
uninstall::
|