Makefile.in 2.51 KB
Newer Older
1
# Copyright (C) 2000-2002, 2004, 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@
14

15
CINCLUDES = -I${srcdir}/include ${ISC_INCLUDES} ${ISCCC_INCLUDES} \
16
	${ISCCFG_INCLUDES} ${DNS_INCLUDES} ${BIND9_INCLUDES}
17

18
CDEFINES =
19 20
CWARNINGS =

21
ISCCFGLIBS =	../../lib/isccfg/libisccfg.@A@
22
ISCCCLIBS =	../../lib/isccc/libisccc.@A@
23
ISCLIBS =	../../lib/isc/libisc.@A@ @ISC_OPENSSL_LIBS@
24
ISCNOSYMLIBS =	../../lib/isc/libisc-nosymtbl.@A@ @ISC_OPENSSL_LIBS@
25
DNSLIBS =	../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
26
BIND9LIBS =	../../lib/bind9/libbind9.@A@
27

28 29
ISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
ISCCCDEPLIBS =	../../lib/isccc/libisccc.@A@
30
ISCDEPLIBS =	../../lib/isc/libisc.@A@
31
DNSDEPLIBS =	../../lib/dns/libdns.@A@
32
BIND9DEPLIBS =	../../lib/bind9/libbind9.@A@
33

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

37
RNDCDEPLIBS =	${ISCCFGDEPLIBS} ${ISCCCDEPLIBS} ${BIND9DEPLIBS} ${DNSDEPLIBS} ${ISCDEPLIBS}
38

39
CONFDEPLIBS =	${DNSDEPLIBS} ${ISCDEPLIBS}
40

41
SRCS=		rndc.c
Mark Andrews's avatar
Mark Andrews committed
42

43
TARGETS =	rndc@EXEEXT@
Mark Andrews's avatar
Mark Andrews committed
44

45
MANPAGES =	rndc.8 rndc.conf.5
46

47
HTMLPAGES =	rndc.html rndc.conf.html
Bob Halley's avatar
Bob Halley committed
48 49

MANOBJS =	${MANPAGES} ${HTMLPAGES}
50

51 52
@BIND9_MAKE_RULES@

53
rndc.@O@: rndc.c
54
	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
55
		-DVERSION=\"${VERSION}\" \
Andreas Gustafsson's avatar
Andreas Gustafsson committed
56
		-DRNDC_CONFFILE=\"${sysconfdir}/rndc.conf\" \
Mark Andrews's avatar
Mark Andrews committed
57
		-DRNDC_KEYFILE=\"${sysconfdir}/rndc.key\" \
58
		-c ${srcdir}/rndc.c
59

Mark Andrews's avatar
Mark Andrews committed
60
rndc@EXEEXT@: rndc.@O@ util.@O@ ${RNDCDEPLIBS}
61
	export BASEOBJS="rndc.@O@ util.@O@"; \
Mark Andrews's avatar
Mark Andrews committed
62
	export LIBS0="${ISCCFGLIBS} ${ISCCCLIBS} ${BIND9LIBS} ${DNSLIBS} ${ISCLIBS}"; \
63
	${FINALBUILDCMD}
64

Bob Halley's avatar
Bob Halley committed
65 66 67 68 69
doc man:: ${MANOBJS}

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

70
installdirs:
71
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
72 73
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man5
74

75
install:: rndc@EXEEXT@ installdirs
76
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} rndc@EXEEXT@ ${DESTDIR}${sbindir}
77 78
	${INSTALL_DATA} ${srcdir}/rndc.8 ${DESTDIR}${mandir}/man8
	${INSTALL_DATA} ${srcdir}/rndc.conf.5 ${DESTDIR}${mandir}/man5
79

Evan Hunt's avatar
Evan Hunt committed
80 81 82 83 84
uninstall::
	rm -f ${DESTDIR}${mandir}/man5/rndc.conf.5
	rm -f ${DESTDIR}${mandir}/man8/rndc.8
	${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${sbindir}/rndc@EXEEXT@

Bob Halley's avatar
Bob Halley committed
85
clean distclean maintainer-clean::
86
	rm -f ${TARGETS}