1# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2#
3# SPDX-License-Identifier: MPL-2.0
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0.  If a copy of the MPL was not distributed with this
7# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8#
9# See the COPYRIGHT file distributed with this work for additional
10# information regarding copyright ownership.
11
12srcdir =	@srcdir@
13VPATH =		@srcdir@
14top_srcdir =	@top_srcdir@
15
16# Attempt to disable parallel processing.
17.NOTPARALLEL:
18.NO_PARALLEL:
19
20VERSION=@BIND9_VERSION@
21
22@BIND9_MAKE_INCLUDES@
23
24CINCLUDES =	-I. -Iinclude ${ISCCC_INCLUDES} ${ISC_INCLUDES} @CMOCKA_CFLAGS@
25CDEFINES =
26
27ISCLIBS =	../../isc/libisc.@A@
28ISCDEPLIBS =	../../isc/libisc.@A@
29ISCCCLIBS =	../libisccc.@A@
30ISCCCDEPLIBS =	../libisccc.@A@
31
32LIBS =		@LIBS@ @CMOCKA_LIBS@
33
34OBJS =
35SRCS =		result_test.c
36SUBDIRS =
37TARGETS =	result_test@EXEEXT@
38
39@BIND9_MAKE_RULES@
40
41result_test@EXEEXT@: result_test.@O@ ${ISCDEPLIBS} ${ISCCCDEPLIBS}
42	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} \
43		${LDFLAGS} -o $@ result_test.@O@ \
44		${ISCCCLIBS} ${ISCLIBS} ${LIBS}
45
46unit::
47	sh ${top_builddir}/unit/unittest.sh
48
49clean distclean::
50	rm -f ${TARGETS}
51	rm -f atf.out
52