Makefile.in 3.26 KB
Newer Older
1
# Copyright (C) 2000-2007, 2009, 2012, 2014-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/.
Mark Andrews's avatar
Mark Andrews committed
6 7 8 9 10

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

11
VERSION=@BIND9_VERSION@
12

13
@BIND9_MAKE_INCLUDES@
Mark Andrews's avatar
Mark Andrews committed
14

15
CINCLUDES =	${BIND9_INCLUDES} ${DNS_INCLUDES} ${ISCCFG_INCLUDES} \
16
		${ISC_INCLUDES} @DST_OPENSSL_INC@
Mark Andrews's avatar
Mark Andrews committed
17

18
CDEFINES = 	@CRYPTO@ -DNAMED_CONFFILE=\"${sysconfdir}/named.conf\"
Mark Andrews's avatar
Mark Andrews committed
19 20
CWARNINGS =

21
DNSLIBS =	../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
22
ISCCFGLIBS =	../../lib/isccfg/libisccfg.@A@
23
ISCLIBS =	../../lib/isc/libisc.@A@ @ISC_OPENSSL_LIBS@
24
ISCNOSYMLIBS =	../../lib/isc/libisc-nosymtbl.@A@ @ISC_OPENSSL_LIBS@
25
BIND9LIBS =	../../lib/bind9/libbind9.@A@
Mark Andrews's avatar
Mark Andrews committed
26 27

DNSDEPLIBS =	../../lib/dns/libdns.@A@
28
ISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
Mark Andrews's avatar
Mark Andrews committed
29
ISCDEPLIBS =	../../lib/isc/libisc.@A@
30
BIND9DEPLIBS =	../../lib/bind9/libbind9.@A@
Mark Andrews's avatar
Mark Andrews committed
31

32 33
LIBS =		${ISCLIBS} @LIBS@
NOSYMLIBS =	${ISCNOSYMLIBS} @LIBS@
Mark Andrews's avatar
Mark Andrews committed
34

Mark Andrews's avatar
cleanup  
Mark Andrews committed
35
SUBDIRS =
Mark Andrews's avatar
Mark Andrews committed
36 37

# Alphabetically
Mark Andrews's avatar
Mark Andrews committed
38
TARGETS =	named-checkconf@EXEEXT@ named-checkzone@EXEEXT@
Mark Andrews's avatar
Mark Andrews committed
39 40

# Alphabetically
41
SRCS =		named-checkconf.c named-checkzone.c check-tool.c
Mark Andrews's avatar
Mark Andrews committed
42

43 44
MANPAGES =	named-checkconf.8 named-checkzone.8

45 46 47 48
HTMLPAGES =	named-checkconf.html named-checkzone.html

MANOBJS =	${MANPAGES} ${HTMLPAGES}

Mark Andrews's avatar
Mark Andrews committed
49 50
@BIND9_MAKE_RULES@

51
named-checkconf.@O@: named-checkconf.c
52 53
	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
		-DVERSION=\"${VERSION}\" \
54 55 56
		-c ${srcdir}/named-checkconf.c

named-checkzone.@O@: named-checkzone.c
57 58
	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
		-DVERSION=\"${VERSION}\" \
59 60
		-c ${srcdir}/named-checkzone.c

Mark Andrews's avatar
Mark Andrews committed
61
named-checkconf@EXEEXT@: named-checkconf.@O@ check-tool.@O@ ${ISCDEPLIBS} \
62
		${DNSDEPLIBS} ${ISCCFGDEPLIBS} ${BIND9DEPLIBS}
63
	export BASEOBJS="named-checkconf.@O@ check-tool.@O@"; \
64
	export LIBS0="${BIND9LIBS} ${ISCCFGLIBS} ${DNSLIBS}"; \
65
	${FINALBUILDCMD}
Mark Andrews's avatar
cleanup  
Mark Andrews committed
66

67
named-checkzone@EXEEXT@: named-checkzone.@O@ check-tool.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
68
	export BASEOBJS="named-checkzone.@O@ check-tool.@O@"; \
69
	export LIBS0="${ISCCFGLIBS} ${DNSLIBS}"; \
70
	${FINALBUILDCMD}
71

72 73 74 75
doc man:: ${MANOBJS}

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

installdirs:
78
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
79
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
80

Mark Andrews's avatar
Mark Andrews committed
81
install:: named-checkconf@EXEEXT@ named-checkzone@EXEEXT@ installdirs
82 83
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named-checkconf@EXEEXT@ ${DESTDIR}${sbindir}
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named-checkzone@EXEEXT@ ${DESTDIR}${sbindir}
Mark Andrews's avatar
Mark Andrews committed
84
	(cd ${DESTDIR}${sbindir}; rm -f named-compilezone@EXEEXT@; ${LINK_PROGRAM} named-checkzone@EXEEXT@ named-compilezone@EXEEXT@)
85
	for m in ${MANPAGES}; do ${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man8; done
Mark Andrews's avatar
Mark Andrews committed
86
	(cd ${DESTDIR}${mandir}/man8; rm -f named-compilezone.8; ${LINK_PROGRAM} named-checkzone.8 named-compilezone.8)
87

Evan Hunt's avatar
Evan Hunt committed
88 89 90 91 92 93 94
uninstall::
	rm -f ${DESTDIR}${mandir}/man8/named-compilezone.8
	for m in ${MANPAGES}; do rm -f ${DESTDIR}${mandir}/man8/$$m ; done
	rm -f ${DESTDIR}${sbindir}/named-compilezone@EXEEXT@
	${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${sbindir}/named-checkconf@EXEEXT@
	${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${sbindir}/named-checkzone@EXEEXT@

95
clean distclean::
Mark Andrews's avatar
Mark Andrews committed
96
	rm -f ${TARGETS} r1.htm