PageRenderTime 63ms CodeModel.GetById 54ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/bind9/bin/rndc/Makefile.in

https://bitbucket.org/freebsd/freebsd-head/
Autoconf | 92 lines | 53 code | 24 blank | 15 comment | 0 complexity | e1fcb483454242c4b7d2f3e31d7c5fde MD5 | raw file
 1# Copyright (C) 2004, 2007, 2009  Internet Systems Consortium, Inc. ("ISC")
 2# Copyright (C) 2000-2002  Internet Software Consortium.
 3#
 4# Permission to use, copy, modify, and/or distribute this software for any
 5# purpose with or without fee is hereby granted, provided that the above
 6# copyright notice and this permission notice appear in all copies.
 7#
 8# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
 9# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14# PERFORMANCE OF THIS SOFTWARE.
15
16# $Id: Makefile.in,v 1.49 2009/12/05 23:31:40 each Exp $
17
18srcdir =	@srcdir@
19VPATH =		@srcdir@
20top_srcdir =	@top_srcdir@
21
22@BIND9_VERSION@
23
24@BIND9_MAKE_INCLUDES@
25
26CINCLUDES = -I${srcdir}/include ${ISC_INCLUDES} ${ISCCC_INCLUDES} \
27	${ISCCFG_INCLUDES} ${DNS_INCLUDES} ${BIND9_INCLUDES}
28
29CDEFINES =
30CWARNINGS =
31
32ISCCFGLIBS =	../../lib/isccfg/libisccfg.@A@
33ISCCCLIBS =	../../lib/isccc/libisccc.@A@
34ISCLIBS =	../../lib/isc/libisc.@A@
35ISCNOSYMLIBS =	../../lib/isc/libisc-nosymtbl.@A@
36DNSLIBS =	../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
37BIND9LIBS =	../../lib/bind9/libbind9.@A@
38
39ISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
40ISCCCDEPLIBS =	../../lib/isccc/libisccc.@A@
41ISCDEPLIBS =	../../lib/isc/libisc.@A@
42DNSDEPLIBS =	../../lib/dns/libdns.@A@
43BIND9DEPLIBS =	../../lib/bind9/libbind9.@A@
44
45LIBS =		${ISCLIBS} @LIBS@
46NOSYMLIBS =	${ISCNOSYMLIBS} @LIBS@
47
48RNDCDEPLIBS =	${ISCCFGDEPLIBS} ${ISCCCDEPLIBS} ${BIND9DEPLIBS} ${DNSDEPLIBS} ${ISCDEPLIBS}
49
50CONFDEPLIBS =	${DNSDEPLIBS} ${ISCDEPLIBS}
51
52SRCS=		rndc.c
53
54TARGETS =	rndc@EXEEXT@
55
56MANPAGES =	rndc.8 rndc.conf.5
57
58HTMLPAGES =	rndc.html rndc.conf.html
59
60MANOBJS =	${MANPAGES} ${HTMLPAGES}
61
62@BIND9_MAKE_RULES@
63
64rndc.@O@: rndc.c
65	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
66		-DVERSION=\"${VERSION}\" \
67		-DRNDC_CONFFILE=\"${sysconfdir}/rndc.conf\" \
68		-DRNDC_KEYFILE=\"${sysconfdir}/rndc.key\" \
69		-c ${srcdir}/rndc.c
70
71rndc@EXEEXT@: rndc.@O@ util.@O@ ${RNDCDEPLIBS}
72	export BASEOBJS="rndc.@O@ util.@O@"; \
73	export LIBS0="${ISCCFGLIBS} ${ISCCCLIBS} ${BIND9LIBS} ${DNSLIBS}"; \
74	${FINALBUILDCMD}
75
76doc man:: ${MANOBJS}
77
78docclean manclean maintainer-clean::
79	rm -f ${MANOBJS}
80
81installdirs:
82	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
83	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
84	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man5
85
86install:: rndc@EXEEXT@ installdirs
87	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} rndc@EXEEXT@ ${DESTDIR}${sbindir}
88	${INSTALL_DATA} ${srcdir}/rndc.8 ${DESTDIR}${mandir}/man8
89	${INSTALL_DATA} ${srcdir}/rndc.conf.5 ${DESTDIR}${mandir}/man5
90
91clean distclean maintainer-clean::
92	rm -f ${TARGETS}