xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/Makefile.in (revision cef8759bd76c1b621f8eab8faa6f208faabc2e15)
1# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2#
3# This Source Code Form is subject to the terms of the Mozilla Public
4# License, v. 2.0. If a copy of the MPL was not distributed with this
5# file, You can obtain one at http://mozilla.org/MPL/2.0/.
6#
7# See the COPYRIGHT file distributed with this work for additional
8# information regarding copyright ownership.
9
10srcdir =	@srcdir@
11VPATH =		@srcdir@
12top_srcdir =	@top_srcdir@
13
14VERSION=@BIND9_VERSION@
15
16@BIND9_MAKE_INCLUDES@
17
18SUBDIRS =	dlzexternal dyndb pipelined rndc rpz rsabigexponent tkey
19
20CINCLUDES =	${ISC_INCLUDES} ${DNS_INCLUDES}
21
22CDEFINES =	@USE_GSSAPI@ @CONTRIB_DLZ@
23CWARNINGS =
24
25ISCLIBS =	../../../lib/isc/libisc.@A@ @NO_LIBTOOL_ISCLIBS@
26
27ISCDEPLIBS =
28
29DEPLIBS =
30
31LIBS =		@LIBS@
32
33OBJS =		feature-test.@O@
34SRCS =		feature-test.c
35
36TARGETS =	feature-test@EXEEXT@
37
38@BIND9_MAKE_RULES@
39
40subdirs: ${TARGETS}
41
42feature-test@EXEEXT@: feature-test.@O@
43	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ feature-test.@O@ ${ISCLIBS} ${LIBS}
44
45# Running the scripts below is bypassed when a separate build directory is
46# used.
47
48# Produce intermediate makefile that assigns unique port numbers to each
49# parallel test.  The start port number of 5,000 is arbitrary - it must just
50# be greater than the highest privileged port, 1024.
51#
52# Test names need to be sanitized because Solaris make does not like
53# underscores in target names and requires explicit differentiation
54# between a target name and a directory name (.PHONY is not supported).
55
56.PHONY: parallel.mk
57
58parallel.mk:
59	$(SHELL) parallel.sh > parallel.mk
60
61# Targets to run the tests.
62
63test: parallel.mk subdirs
64	@$(MAKE) -f parallel.mk check
65	@$(SHELL) ./runsequential.sh
66	@$(SHELL) ./testsummary.sh
67
68check: test
69
70# Other targets:
71#
72# testclean - delete files generated by running tests.
73# clean     - testclean + also delete files built for the tests by "make".
74# distclean - clean + also delete test-related files generated by "configure".
75
76testclean clean distclean::
77	if test -f ./cleanall.sh; then $(SHELL) ./cleanall.sh; fi
78	rm -f systests.output
79	rm -f random.data
80	rm -f parallel.mk
81
82clean distclean::
83	rm -f ${TARGETS}
84	rm -f ${OBJS}
85
86distclean::
87	rm -f conf.sh
88
89installdirs:
90
91install::
92
93uninstall::
94