Makefile.in revision 1.1.1.2 1 # Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2 #
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 #
7 # See the COPYRIGHT file distributed with this work for additional
8 # information regarding copyright ownership.
9
10 srcdir = @srcdir@
11 VPATH = @srcdir@
12 top_srcdir = @top_srcdir@
13
14 VERSION=@BIND9_VERSION@
15
16 @BIND9_MAKE_INCLUDES@
17
18 CINCLUDES = -I${srcdir}/include ${ISC_INCLUDES} ${ISCCC_INCLUDES} \
19 ${ISCCFG_INCLUDES} ${DNS_INCLUDES} ${BIND9_INCLUDES}
20
21 CDEFINES =
22 CWARNINGS =
23
24 ISCCFGLIBS = ../../lib/isccfg/libisccfg.@A@
25 ISCCCLIBS = ../../lib/isccc/libisccc.@A@
26 ISCLIBS = ../../lib/isc/libisc.@A@ @OPENSSL_LIBS@
27 ISCNOSYMLIBS = ../../lib/isc/libisc-nosymtbl.@A@ @OPENSSL_LIBS@
28 DNSLIBS = ../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
29 BIND9LIBS = ../../lib/bind9/libbind9.@A@
30
31 ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@
32 ISCCCDEPLIBS = ../../lib/isccc/libisccc.@A@
33 ISCDEPLIBS = ../../lib/isc/libisc.@A@
34 DNSDEPLIBS = ../../lib/dns/libdns.@A@
35 BIND9DEPLIBS = ../../lib/bind9/libbind9.@A@
36
37 LIBS = ${ISCLIBS} @LIBS@
38 NOSYMLIBS = ${ISCNOSYMLIBS} @LIBS@
39
40 RNDCDEPLIBS = ${ISCCFGDEPLIBS} ${ISCCCDEPLIBS} ${BIND9DEPLIBS} ${DNSDEPLIBS} ${ISCDEPLIBS}
41
42 CONFDEPLIBS = ${DNSDEPLIBS} ${ISCDEPLIBS}
43
44 SRCS= rndc.c
45
46 TARGETS = rndc@EXEEXT@
47
48 MANPAGES = rndc.8 rndc.conf.5
49
50 HTMLPAGES = rndc.html rndc.conf.html
51
52 MANOBJS = ${MANPAGES} ${HTMLPAGES}
53
54 @BIND9_MAKE_RULES@
55
56 rndc.@O@: rndc.c
57 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
58 -DVERSION=\"${VERSION}\" \
59 -DRNDC_CONFFILE=\"${sysconfdir}/rndc.conf\" \
60 -DRNDC_KEYFILE=\"${sysconfdir}/rndc.key\" \
61 -c ${srcdir}/rndc.c
62
63 rndc@EXEEXT@: rndc.@O@ util.@O@ ${RNDCDEPLIBS}
64 export BASEOBJS="rndc.@O@ util.@O@"; \
65 export LIBS0="${ISCCFGLIBS} ${ISCCCLIBS} ${BIND9LIBS} ${DNSLIBS} ${ISCLIBS}"; \
66 ${FINALBUILDCMD}
67
68 doc man:: ${MANOBJS}
69
70 docclean manclean maintainer-clean::
71 rm -f ${MANOBJS}
72
73 installdirs:
74 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
75 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
76 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man5
77
78 install:: rndc@EXEEXT@ installdirs
79 ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} rndc@EXEEXT@ ${DESTDIR}${sbindir}
80 ${INSTALL_DATA} ${srcdir}/rndc.8 ${DESTDIR}${mandir}/man8
81 ${INSTALL_DATA} ${srcdir}/rndc.conf.5 ${DESTDIR}${mandir}/man5
82
83 uninstall::
84 rm -f ${DESTDIR}${mandir}/man5/rndc.conf.5
85 rm -f ${DESTDIR}${mandir}/man8/rndc.8
86 ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${sbindir}/rndc@EXEEXT@
87
88 clean distclean maintainer-clean::
89 rm -f ${TARGETS}
90