PageRenderTime 28ms CodeModel.GetById 16ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 1ms

/contrib/bind9/bin/named/Makefile.in

https://bitbucket.org/freebsd/freebsd-head/
Autoconf | 169 lines | 111 code | 40 blank | 18 comment | 0 complexity | 81d1d21a6071e0b8e94ae19ef29fc628 MD5 | raw file
  1# Copyright (C) 2004-2011  Internet Systems Consortium, Inc. ("ISC")
  2# Copyright (C) 1998-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.114.14.2 2011/03/10 23:47:25 tbox Exp $
 17
 18srcdir =	@srcdir@
 19VPATH =		@srcdir@
 20top_srcdir =	@top_srcdir@
 21
 22@BIND9_VERSION@
 23
 24@BIND9_CONFIGARGS@
 25
 26@BIND9_MAKE_INCLUDES@
 27
 28#
 29# Add database drivers here.
 30#
 31DBDRIVER_OBJS =
 32DBDRIVER_SRCS =
 33DBDRIVER_INCLUDES =
 34DBDRIVER_LIBS =
 35
 36DLZ_DRIVER_DIR =	${top_srcdir}/contrib/dlz/drivers
 37
 38DLZDRIVER_OBJS =	@DLZ_DRIVER_OBJS@
 39DLZDRIVER_SRCS =	@DLZ_DRIVER_SRCS@
 40DLZDRIVER_INCLUDES =	@DLZ_DRIVER_INCLUDES@
 41DLZDRIVER_LIBS =	@DLZ_DRIVER_LIBS@
 42
 43CINCLUDES =	-I${srcdir}/include -I${srcdir}/unix/include -I. \
 44		${LWRES_INCLUDES} ${DNS_INCLUDES} ${BIND9_INCLUDES} \
 45		${ISCCFG_INCLUDES} ${ISCCC_INCLUDES} ${ISC_INCLUDES} \
 46		${DLZDRIVER_INCLUDES} ${DBDRIVER_INCLUDES} @DST_OPENSSL_INC@
 47
 48CDEFINES =      @CONTRIB_DLZ@ @USE_PKCS11@ @USE_OPENSSL@
 49
 50CWARNINGS =
 51
 52DNSLIBS =	../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
 53ISCCFGLIBS =	../../lib/isccfg/libisccfg.@A@
 54ISCCCLIBS =	../../lib/isccc/libisccc.@A@
 55ISCLIBS =	../../lib/isc/libisc.@A@
 56ISCNOSYMLIBS =	../../lib/isc/libisc-nosymtbl.@A@
 57LWRESLIBS =	../../lib/lwres/liblwres.@A@
 58BIND9LIBS =	../../lib/bind9/libbind9.@A@
 59
 60DNSDEPLIBS =	../../lib/dns/libdns.@A@
 61ISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
 62ISCCCDEPLIBS =	../../lib/isccc/libisccc.@A@
 63ISCDEPLIBS =	../../lib/isc/libisc.@A@
 64LWRESDEPLIBS =	../../lib/lwres/liblwres.@A@
 65BIND9DEPLIBS =	../../lib/bind9/libbind9.@A@
 66
 67DEPLIBS =	${LWRESDEPLIBS} ${DNSDEPLIBS} ${BIND9DEPLIBS} \
 68		${ISCCFGDEPLIBS} ${ISCCCDEPLIBS} ${ISCDEPLIBS}
 69
 70LIBS =		${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} \
 71		${ISCCFGLIBS} ${ISCCCLIBS} ${ISCLIBS} \
 72		${DLZDRIVER_LIBS} ${DBDRIVER_LIBS} @LIBS@
 73
 74NOSYMLIBS =	${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} \
 75		${ISCCFGLIBS} ${ISCCCLIBS} ${ISCNOSYMLIBS} \
 76		${DLZDRIVER_LIBS} ${DBDRIVER_LIBS} @LIBS@
 77
 78SUBDIRS =	unix
 79
 80TARGETS =	named@EXEEXT@ lwresd@EXEEXT@
 81
 82OBJS =		builtin.@O@ client.@O@ config.@O@ control.@O@ \
 83		controlconf.@O@ interfacemgr.@O@ \
 84		listenlist.@O@ log.@O@ logconf.@O@ main.@O@ notify.@O@ \
 85		query.@O@ server.@O@ sortlist.@O@ statschannel.@O@ \
 86		tkeyconf.@O@ tsigconf.@O@ update.@O@ xfrout.@O@ \
 87		zoneconf.@O@ \
 88		lwaddr.@O@ lwresd.@O@ lwdclient.@O@ lwderror.@O@ lwdgabn.@O@ \
 89		lwdgnba.@O@ lwdgrbn.@O@ lwdnoop.@O@ lwsearch.@O@ \
 90		${DLZDRIVER_OBJS} ${DBDRIVER_OBJS}
 91
 92UOBJS =		unix/os.@O@ unix/dlz_dlopen_driver.@O@
 93
 94SYMOBJS =	symtbl.@O@
 95
 96SRCS =		builtin.c client.c config.c control.c \
 97		controlconf.c interfacemgr.c \
 98		listenlist.c log.c logconf.c main.c notify.c \
 99		query.c server.c sortlist.c statschannel.c symtbl.c symtbl-empty.c \
100		tkeyconf.c tsigconf.c update.c xfrout.c \
101		zoneconf.c \
102		lwaddr.c lwresd.c lwdclient.c lwderror.c lwdgabn.c \
103		lwdgnba.c lwdgrbn.c lwdnoop.c lwsearch.c \
104		${DLZDRIVER_SRCS} ${DBDRIVER_SRCS}
105
106MANPAGES =	named.8 lwresd.8 named.conf.5
107
108HTMLPAGES =	named.html lwresd.html named.conf.html
109
110MANOBJS =	${MANPAGES} ${HTMLPAGES}
111
112@BIND9_MAKE_RULES@
113
114main.@O@: main.c
115	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
116		-DVERSION=\"${VERSION}\" \
117		-DCONFIGARGS="\"${CONFIGARGS}\"" \
118		-DNS_LOCALSTATEDIR=\"${localstatedir}\" \
119		-DNS_SYSCONFDIR=\"${sysconfdir}\" -c ${srcdir}/main.c
120
121bind.keys.h: ${top_srcdir}/bind.keys ${srcdir}/bindkeys.pl
122	${PERL} ${srcdir}/bindkeys.pl < ${top_srcdir}/bind.keys > $@
123
124config.@O@: config.c bind.keys.h
125	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
126		-DVERSION=\"${VERSION}\" \
127		-DNS_LOCALSTATEDIR=\"${localstatedir}\" \
128		-DNS_SYSCONFDIR=\"${sysconfdir}\" \
129		-c ${srcdir}/config.c
130
131named@EXEEXT@: ${OBJS} ${UOBJS} ${DEPLIBS}
132	export MAKE_SYMTABLE="yes"; \
133	export BASEOBJS="${OBJS} ${UOBJS}"; \
134	${FINALBUILDCMD}
135
136lwresd@EXEEXT@: named@EXEEXT@
137	rm -f lwresd@EXEEXT@
138	@LN@ named@EXEEXT@ lwresd@EXEEXT@
139
140doc man:: ${MANOBJS}
141
142docclean manclean maintainer-clean::
143	rm -f ${MANOBJS}
144
145clean distclean maintainer-clean::
146	rm -f ${TARGETS} ${OBJS}
147
148maintainer-clean::
149	rm -f bind.keys.h
150
151bind9.xsl.h: bind9.xsl ${srcdir}/convertxsl.pl
152	${PERL} ${srcdir}/convertxsl.pl < ${srcdir}/bind9.xsl > bind9.xsl.h
153
154depend: bind9.xsl.h
155statschannel.@O@: bind9.xsl.h
156
157installdirs:
158	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
159	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man5
160	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
161
162install:: named@EXEEXT@ lwresd@EXEEXT@ installdirs
163	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named@EXEEXT@ ${DESTDIR}${sbindir}
164	(cd ${DESTDIR}${sbindir}; rm -f lwresd@EXEEXT@; @LN@ named@EXEEXT@ lwresd@EXEEXT@)
165	${INSTALL_DATA} ${srcdir}/named.8 ${DESTDIR}${mandir}/man8
166	${INSTALL_DATA} ${srcdir}/lwresd.8 ${DESTDIR}${mandir}/man8
167	${INSTALL_DATA} ${srcdir}/named.conf.5 ${DESTDIR}${mandir}/man5
168
169@DLZ_DRIVER_RULES@