Makefile.in 6.24 KB
Newer Older
1
# Copyright (C) 2009, 2010, 2012-2016  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@
Francis Dupont's avatar
Francis Dupont committed
12

13 14
@BIND9_MAKE_INCLUDES@

15 16 17
CINCLUDES =	${DNS_INCLUDES} ${ISC_INCLUDES} @DST_OPENSSL_INC@ \
		${ISCCFG_INCLUDES} ${LWRES_INCLUDES} \
		${OMAPI_INCLUDES} ${BIND9_INCLUDES}
18

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

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

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

35 36
LIBS =		${ISCLIBS} @LIBS@
NOSYMLIBS =	${ISCNOSYMLIBS} @LIBS@
37

Mark Andrews's avatar
Mark Andrews committed
38
SUBDIRS =
39

Evan Hunt's avatar
Evan Hunt committed
40
DNSTAPTARGETS =	dnstap-read@EXEEXT@
41
NZDTARGETS =	named-nzd2nzf@EXEEXT@
42 43
TARGETS =	arpaname@EXEEXT@ named-journalprint@EXEEXT@ \
		named-rrchecker@EXEEXT@  nsec3hash@EXEEXT@ \
Evan Hunt's avatar
Evan Hunt committed
44
		genrandom@EXEEXT@ isc-hmac-fixup@EXEEXT@ mdig@EXEEXT@ \
45
		@DNSTAPTARGETS@ @NZDTARGETS@
Evan Hunt's avatar
Evan Hunt committed
46 47

DNSTAPSRCS  =	dnstap-read.c
48
NZDSRCS  =	named-nzd2nzf.c
49
SRCS =		arpaname.c named-journalprint.c named-rrchecker.c \
Evan Hunt's avatar
Evan Hunt committed
50
		nsec3hash.c genrandom.c isc-hmac-fixup.c mdig.c \
51
		@DNSTAPSRCS@ @NZDSRCS@
52

53 54 55 56 57 58 59 60
MANPAGES =	arpaname.1 dnstap-read.1 genrandom.8 \
		isc-hmac-fixup.8 mdig.1 named-journalprint.8 \
		named-nzd2nzf.8 named-rrchecker.1 nsec3hash.8

HTMLPAGES =	arpaname.html dnstap-read.html genrandom.html \
		isc-hmac-fixup.html mdig.html named-journalprint.html \
		named-nzd2nzf.html named-rrchecker.html nsec3hash.html

61 62 63 64
MANOBJS =	${MANPAGES} ${HTMLPAGES}

@BIND9_MAKE_RULES@

65
arpaname@EXEEXT@: arpaname.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
Evan Hunt's avatar
Evan Hunt committed
66 67
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} \
		-o $@ arpaname.@O@ ${ISCLIBS} ${LIBS}
68

69
named-journalprint@EXEEXT@: named-journalprint.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
70
	export BASEOBJS="named-journalprint.@O@"; \
71 72
	export LIBS0="${DNSLIBS}"; \
	${FINALBUILDCMD}
73

74
named-rrchecker@EXEEXT@: named-rrchecker.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
75 76 77 78
	export BASEOBJS="named-rrchecker.@O@"; \
	export LIBS0="${DNSLIBS}"; \
	${FINALBUILDCMD}

79
nsec3hash@EXEEXT@: nsec3hash.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
80 81 82
	export BASEOBJS="nsec3hash.@O@"; \
	export LIBS0="${DNSLIBS}"; \
	${FINALBUILDCMD}
83

84
isc-hmac-fixup@EXEEXT@: isc-hmac-fixup.@O@ ${ISCDEPLIBS}
85 86 87 88
	export BASEOBJS="isc-hmac-fixup.@O@"; \
	export LIBS0="${ISCLIBS}"; \
	${FINALBUILDCMD}

89
genrandom@EXEEXT@: genrandom.@O@
Evan Hunt's avatar
Evan Hunt committed
90 91
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} \
		-o $@ genrandom.@O@ @GENRANDOMLIB@ ${LIBS}
92

Francis Dupont's avatar
Francis Dupont committed
93 94 95 96 97
mdig@EXEEXT@: mdig.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} ${BIND9DEPLIBS}
	export BASEOBJS="mdig.@O@"; \
	export LIBS0="${DNSLIBS} ${BIND9LIBS}"; \
	${FINALBUILDCMD}

Evan Hunt's avatar
Evan Hunt committed
98 99 100
dnstap-read@EXEEXT@: dnstap-read.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
	export BASEOBJS="dnstap-read.@O@"; \
	export LIBS0="${DNSLIBS}"; \
101
	${FINALBUILDCMD}
102 103 104 105

named-nzd2nzf@EXEEXT@: named-nzd2nzf.@O@ ${NZDDEPLIBS}
	export BASEOBJS="named-nzd2nzf.@O@"; \
	export LIBS0="${ISCCFGLIBS} ${ISCCCLIBS} ${BIND9LIBS} ${DNSLIBS}"; \
Evan Hunt's avatar
Evan Hunt committed
106 107
	${FINALBUILDCMD}

108 109 110 111 112 113
doc man:: ${MANOBJS}

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

installdirs:
114
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
115
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
116
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
117 118
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8

119 120 121
nzd:
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named-nzd2nzf@EXEEXT@ \
		${DESTDIR}${sbindir}
122
	${INSTALL_DATA} ${srcdir}/named-nzd2nzf.8 ${DESTDIR}${mandir}/man8
123

Evan Hunt's avatar
Evan Hunt committed
124 125
dnstap:
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} dnstap-read@EXEEXT@ \
126 127
		${DESTDIR}${bindir}
	${INSTALL_DATA} ${srcdir}/dnstap-read.1 ${DESTDIR}${mandir}/man1
Evan Hunt's avatar
Evan Hunt committed
128

129
install:: ${TARGETS} installdirs @DNSTAP@ @NZD_TOOLS@
Evan Hunt's avatar
Evan Hunt committed
130
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} arpaname@EXEEXT@ \
131
		${DESTDIR}${bindir}
Evan Hunt's avatar
Evan Hunt committed
132 133 134
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named-journalprint@EXEEXT@ \
		${DESTDIR}${sbindir}
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named-rrchecker@EXEEXT@ \
135
		${DESTDIR}${bindir}
Evan Hunt's avatar
Evan Hunt committed
136 137 138 139 140 141
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} nsec3hash@EXEEXT@ \
		${DESTDIR}${sbindir}
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} genrandom@EXEEXT@ \
		${DESTDIR}${sbindir}
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} isc-hmac-fixup@EXEEXT@ \
		${DESTDIR}${sbindir}
Francis Dupont's avatar
Francis Dupont committed
142
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} mdig@EXEEXT@ \
143
		${DESTDIR}${bindir}
144
	${INSTALL_DATA} ${srcdir}/arpaname.1 ${DESTDIR}${mandir}/man1
145
	${INSTALL_DATA} ${srcdir}/isc-hmac-fixup.8 ${DESTDIR}${mandir}/man8
146
	${INSTALL_DATA} ${srcdir}/named-journalprint.8 ${DESTDIR}${mandir}/man8
Mark Andrews's avatar
Mark Andrews committed
147
	${INSTALL_DATA} ${srcdir}/named-rrchecker.1 ${DESTDIR}${mandir}/man1
148 149
	${INSTALL_DATA} ${srcdir}/nsec3hash.8 ${DESTDIR}${mandir}/man8
	${INSTALL_DATA} ${srcdir}/genrandom.8 ${DESTDIR}${mandir}/man8
Francis Dupont's avatar
Francis Dupont committed
150
	${INSTALL_DATA} ${srcdir}/mdig.1 ${DESTDIR}${mandir}/man1
151

Evan Hunt's avatar
Evan Hunt committed
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
uninstall::
	rm -f ${DESTDIR}${mandir}/man1/mdig.1
	rm -f ${DESTDIR}${mandir}/man8/genrandom.8
	rm -f ${DESTDIR}${mandir}/man8/nsec3hash.8
	rm -f ${DESTDIR}${mandir}/man1/named-rrchecker.1
	rm -f ${DESTDIR}${mandir}/man8/named-journalprint.8
	rm -f ${DESTDIR}${mandir}/man8/isc-hmac-fixup.8
	rm -f ${DESTDIR}${mandir}/man1/arpaname.1
	${LIBTOOL_MODE_UNINSTALL} rm -f \
		${DESTDIR}${bindir}/mdig@EXEEXT@
	${LIBTOOL_MODE_UNINSTALL} rm -f \
		${DESTDIR}${sbindir}/isc-hmac-fixup@EXEEXT@
	${LIBTOOL_MODE_UNINSTALL} rm -f \
		${DESTDIR}${sbindir}/genrandom@EXEEXT@
	${LIBTOOL_MODE_UNINSTALL} rm -f \
		${DESTDIR}${sbindir}/nsec3hash@EXEEXT@
	${LIBTOOL_MODE_UNINSTALL} rm -f \
		${DESTDIR}${bindir}/named-rrchecker@EXEEXT@
	${LIBTOOL_MODE_UNINSTALL} rm -f \
		${DESTDIR}${sbindir}/named-journalprint@EXEEXT@
	${LIBTOOL_MODE_UNINSTALL} rm -f \
		${DESTDIR}${bindir}/arpaname@EXEEXT@
	rm -f ${DESTDIR}${mandir}/man1/dnstap-read.1
	${LIBTOOL_MODE_UNINSTALL} rm -f \
		${DESTDIR}${bindir}/dnstap-read@EXEEXT@
	rm -f ${DESTDIR}${mandir}/man8/named-nzd2nzf.8
	${LIBTOOL_MODE_UNINSTALL} rm -f \
		${DESTDIR}${sbindir}/named-nzd2nzf@EXEEXT@

181 182
clean distclean::
	rm -f ${TARGETS}