Makefile.in 2.01 KB
Newer Older
1
# Copyright (C) 2014-2017  Internet Systems Consortium, Inc. ("ISC")
Evan Hunt's avatar
Evan Hunt 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/.
Evan Hunt's avatar
Evan Hunt committed
6 7 8 9 10

srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

11
VERSION=@BIND9_VERSION@
Evan Hunt's avatar
Evan Hunt committed
12 13 14 15

@BIND9_MAKE_INCLUDES@

CINCLUDES =	-I${srcdir}/include ${DNS_INCLUDES} ${ISC_INCLUDES} \
16
		${IRS_INCLUDES} ${ISCCFG_INCLUDES} @DST_OPENSSL_INC@
Evan Hunt's avatar
Evan Hunt committed
17

18 19
CDEFINES =	@CRYPTO@ -DVERSION=\"${VERSION}\" \
		-DSYSCONFDIR=\"${sysconfdir}\"
Evan Hunt's avatar
Evan Hunt committed
20 21 22 23
CWARNINGS =

ISCCFGLIBS =	../../lib/isccfg/libisccfg.@A@
DNSLIBS =	../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
24
ISCNOSYMLIBS =	../../lib/isc/libisc-nosymtbl.@A@ @ISC_OPENSSL_LIBS@
25
ISCLIBS =	../../lib/isc/libisc.@A@ @ISC_OPENSSL_LIBS@
Evan Hunt's avatar
Evan Hunt committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39
IRSLIBS =	../../lib/irs/libirs.@A@

ISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
DNSDEPLIBS =	../../lib/dns/libdns.@A@
ISCDEPLIBS =	../../lib/isc/libisc.@A@
IRSDEPLIBS =	../../lib/irs/libirs.@A@

DEPLIBS =	${DNSDEPLIBS} ${IRSDEPLIBS} ${ISCCFGDEPLIBS} ${ISCDEPLIBS}

LIBS =		${DNSLIBS} ${IRSLIBS} ${ISCCFGLIBS} ${ISCLIBS} @LIBS@
NOSYMLIBS =	${DNSLIBS} ${IRSLIBS} ${ISCCFGLIBS} ${ISCNOSYMLIBS} @LIBS@

SUBDIRS =

40
TARGETS =	delv@EXEEXT@
Evan Hunt's avatar
Evan Hunt committed
41

42
OBJS =		delv.@O@
Evan Hunt's avatar
Evan Hunt committed
43

44
SRCS =		delv.c
Evan Hunt's avatar
Evan Hunt committed
45

46
MANPAGES =	delv.1
Evan Hunt's avatar
Evan Hunt committed
47

48
HTMLPAGES =	delv.html
Evan Hunt's avatar
Evan Hunt committed
49 50 51 52 53

MANOBJS =	${MANPAGES} ${HTMLPAGES}

@BIND9_MAKE_RULES@

54 55
delv@EXEEXT@: delv.@O@ ${DEPLIBS}
	export BASEOBJS="delv.@O@"; \
Evan Hunt's avatar
Evan Hunt committed
56 57 58 59 60 61 62
	export LIBS0="${DNSLIBS}"; \
	${FINALBUILDCMD}

installdirs:
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1

63
install:: delv@EXEEXT@ installdirs
Evan Hunt's avatar
Evan Hunt committed
64
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
65 66
		delv@EXEEXT@ ${DESTDIR}${bindir}
	${INSTALL_DATA} ${srcdir}/delv.1 ${DESTDIR}${mandir}/man1
Evan Hunt's avatar
Evan Hunt committed
67

Evan Hunt's avatar
Evan Hunt committed
68 69 70 71
uninstall::
	rm -f ${DESTDIR}${mandir}/man1/delv.1
	${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${bindir}/delv@EXEEXT@

Evan Hunt's avatar
Evan Hunt committed
72 73 74 75 76 77 78
doc man:: ${MANOBJS}

docclean manclean maintainer-clean::
	rm -f ${MANOBJS}

clean distclean maintainer-clean::
	rm -f ${TARGETS}