Makefile.in 3.11 KB
Newer Older
1
# Copyright (C) 2000-2002, 2004, 2005, 2007, 2009, 2012-2017  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 9 10

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

11
VERSION=@BIND9_VERSION@
12

13
@BIND9_MAKE_INCLUDES@
14

15 16
READLINE_LIB = @READLINE_LIB@

17 18 19
CINCLUDES =	-I${srcdir}/include ${DNS_INCLUDES} \
		${BIND9_INCLUDES} ${ISC_INCLUDES} \
		${LWRES_INCLUDES} ${ISCCFG_INCLUDES} @DST_OPENSSL_INC@
20

21
CDEFINES =	-DVERSION=\"${VERSION}\" @CRYPTO@
22 23
CWARNINGS =

24
ISCCFGLIBS =	../../lib/isccfg/libisccfg.@A@
25
DNSLIBS =	../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
26
BIND9LIBS =	../../lib/bind9/libbind9.@A@
27
ISCLIBS =	../../lib/isc/libisc.@A@ @ISC_OPENSSL_LIBS@
28
ISCNOSYMLIBS =	../../lib/isc/libisc-nosymtbl.@A@ @ISC_OPENSSL_LIBS@
Mark Andrews's avatar
Mark Andrews committed
29
LWRESLIBS =	../../lib/lwres/liblwres.@A@
30

31
ISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
32
DNSDEPLIBS =	../../lib/dns/libdns.@A@
33
BIND9DEPLIBS =	../../lib/bind9/libbind9.@A@
34
ISCDEPLIBS =	../../lib/isc/libisc.@A@
Mark Andrews's avatar
Mark Andrews committed
35
LWRESDEPLIBS =	../../lib/lwres/liblwres.@A@
36

Evan Hunt's avatar
Evan Hunt committed
37
DEPLIBS =	${DNSDEPLIBS} ${BIND9DEPLIBS} ${ISCDEPLIBS} \
38
		${ISCCFGDEPLIBS} ${LWRESDEPLIBS}
39

Evan Hunt's avatar
Evan Hunt committed
40
LIBS =		${LWRESLIBS} ${BIND9LIBS} ${ISCCFGLIBS} \
41
		${ISCLIBS} @IDNLIBS@ @LIBS@
42

Evan Hunt's avatar
Evan Hunt committed
43
NOSYMLIBS =	${LWRESLIBS} ${BIND9LIBS} ${ISCCFGLIBS} \
44
		${ISCNOSYMLIBS} @IDNLIBS@ @LIBS@
45

Michael Sawyer's avatar
Michael Sawyer committed
46
SUBDIRS =
47

Mark Andrews's avatar
Mark Andrews committed
48
TARGETS =	dig@EXEEXT@ host@EXEEXT@ nslookup@EXEEXT@
49

50
OBJS =		dig.@O@ dighost.@O@ host.@O@ nslookup.@O@
51

52
UOBJS =
53

54
SRCS =		dig.c dighost.c host.c nslookup.c
55

Mark Andrews's avatar
Mark Andrews committed
56
MANPAGES =	dig.1 host.1 nslookup.1
57

Mark Andrews's avatar
Mark Andrews committed
58
HTMLPAGES =	dig.html host.html nslookup.html
59 60 61

MANOBJS =	${MANPAGES} ${HTMLPAGES}

62 63
@BIND9_MAKE_RULES@

Mark Andrews's avatar
Mark Andrews committed
64
dig@EXEEXT@: dig.@O@ dighost.@O@ ${UOBJS} ${DEPLIBS}
65
	export BASEOBJS="dig.@O@ dighost.@O@ ${UOBJS}"; \
66
	export LIBS0="${DNSLIBS}"; \
67
	${FINALBUILDCMD}
68

Mark Andrews's avatar
Mark Andrews committed
69
host@EXEEXT@: host.@O@ dighost.@O@ ${UOBJS} ${DEPLIBS}
70
	export BASEOBJS="host.@O@ dighost.@O@ ${UOBJS}"; \
71
	export LIBS0="${DNSLIBS}"; \
72
	${FINALBUILDCMD}
73

Mark Andrews's avatar
Mark Andrews committed
74
nslookup@EXEEXT@: nslookup.@O@ dighost.@O@ ${UOBJS} ${DEPLIBS}
75
	export BASEOBJS="nslookup.@O@ dighost.@O@ ${READLINE_LIB} ${UOBJS}"; \
76
	export LIBS0="${DNSLIBS}"; \
77
	${FINALBUILDCMD}
78

79
doc man:: ${MANOBJS}
80

81 82
docclean manclean maintainer-clean::
	rm -f ${MANOBJS}
83 84

clean distclean maintainer-clean::
85 86 87
	rm -f ${TARGETS}

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

Mark Andrews's avatar
Mark Andrews committed
91
install:: dig@EXEEXT@ host@EXEEXT@ nslookup@EXEEXT@ installdirs
92 93 94 95 96 97
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
		dig@EXEEXT@ ${DESTDIR}${bindir}
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
		host@EXEEXT@ ${DESTDIR}${bindir}
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
		nslookup@EXEEXT@ ${DESTDIR}${bindir}
98 99 100
	for m in ${MANPAGES}; do \
		${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man1; \
		done
Evan Hunt's avatar
Evan Hunt committed
101 102 103 104 105 106 107 108

uninstall::
	for m in ${MANPAGES}; do \
		rm -f ${DESTDIR}${mandir}/man1/$$m ; \
	done
	${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${bindir}/nslookup@EXEEXT@
	${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${bindir}/host@EXEEXT@
	${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${bindir}/dig@EXEEXT@