Makefile.in 1.32 KB
Newer Older
1
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
Mark Andrews's avatar
Mark Andrews committed
2
#
3 4 5
# 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/.
6 7 8
#
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
Mark Andrews's avatar
Mark Andrews committed
9

10 11 12 13
srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

14
@BIND9_MAKE_INCLUDES@
15

16 17
CINCLUDES =	${TEST_INCLUDES} ${DNS_INCLUDES} \
		${ISC_INCLUDES} @DST_OPENSSL_INC@
18

19
CDEFINES =	@CRYPTO@
20 21
CWARNINGS =

22
DNSLIBS =	../../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
23
ISCLIBS =	../../../lib/isc/libisc.@A@ @ISC_OPENSSL_LIBS@
24
ISCCFGLIBS = 	../../../lib/isccfg/libisccfg.@A@
William King's avatar
William King committed
25

26 27
DNSDEPLIBS =	../../../lib/dns/libdns.@A@
ISCDEPLIBS =	../../../lib/isc/libisc.@A@
28
ISCCFGDEPLIBS = ../../../lib/isccfg/libisccfg.@A@
29

30
DEPLIBS =	${DNSDEPLIBS} ${ISCCFGDEPLIBS} ${ISCDEPLIBS}
31

32
LIBS =		${DNSLIBS} ${ISCCFGLIBS} ${ISCLIBS} @LIBS@
33

William King's avatar
William King committed
34 35
TLIB =		../../../lib/tests/libt_api.@A@

36 37
SRCS =		t_db.c

Mark Andrews's avatar
Mark Andrews committed
38
TARGETS =	t_db@EXEEXT@
39 40 41

@BIND9_MAKE_RULES@

Mark Andrews's avatar
Mark Andrews committed
42
t_db@EXEEXT@: t_db.@O@ ${DEPLIBS} ${TLIB}
43
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ t_db.@O@ ${TLIB} ${LIBS}
44

Mark Andrews's avatar
Mark Andrews committed
45 46
test: t_db@EXEEXT@
	-@./t_db@EXEEXT@ -c @top_srcdir@/t_config -b @srcdir@ -a
47 48 49 50 51 52

testhelp:
	@./t_db -h

clean distclean::
	rm -f ${TARGETS}