1 # Copyright (C) 2004-2014 Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 1998-2002 Internet Software Consortium.
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.
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.
16 # Id: Makefile.in,v 1.116 2011/03/10 23:47:49 tbox Exp
20 top_srcdir
= @top_srcdir@
35 # Add database drivers here.
42 DLZ_DRIVER_DIR
= ${top_srcdir}/contrib
/dlz
/drivers
44 DLZDRIVER_OBJS
= @DLZ_DRIVER_OBJS@
45 DLZDRIVER_SRCS
= @DLZ_DRIVER_SRCS@
46 DLZDRIVER_INCLUDES
= @DLZ_DRIVER_INCLUDES@
47 DLZDRIVER_LIBS
= @DLZ_DRIVER_LIBS@
49 CINCLUDES
= -I
${srcdir}/include -I
${srcdir}/unix
/include -I. \
50 ${LWRES_INCLUDES} ${DNS_INCLUDES} ${BIND9_INCLUDES} \
51 ${ISCCFG_INCLUDES} ${ISCCC_INCLUDES} ${ISC_INCLUDES} \
52 ${DLZDRIVER_INCLUDES} ${DBDRIVER_INCLUDES} @DST_OPENSSL_INC@
54 CDEFINES
= @CONTRIB_DLZ@ @USE_PKCS11@ @PKCS11_ENGINE@ @CRYPTO@
58 DNSLIBS
= ..
/..
/lib
/dns
/libdns.@A@ @DNS_CRYPTO_LIBS@
59 ISCCFGLIBS
= ..
/..
/lib
/isccfg
/libisccfg.@A@
60 ISCCCLIBS
= ..
/..
/lib
/isccc
/libisccc.@A@
61 ISCLIBS
= ..
/..
/lib
/isc
/libisc.@A@
62 ISCNOSYMLIBS
= ..
/..
/lib
/isc
/libisc-nosymtbl.@A@
63 LWRESLIBS
= ..
/..
/lib
/lwres
/liblwres.@A@
64 BIND9LIBS
= ..
/..
/lib
/bind9
/libbind9.@A@
66 DNSDEPLIBS
= ..
/..
/lib
/dns
/libdns.@A@
67 ISCCFGDEPLIBS
= ..
/..
/lib
/isccfg
/libisccfg.@A@
68 ISCCCDEPLIBS
= ..
/..
/lib
/isccc
/libisccc.@A@
69 ISCDEPLIBS
= ..
/..
/lib
/isc
/libisc.@A@
70 LWRESDEPLIBS
= ..
/..
/lib
/lwres
/liblwres.@A@
71 BIND9DEPLIBS
= ..
/..
/lib
/bind9
/libbind9.@A@
73 DEPLIBS
= ${LWRESDEPLIBS} ${DNSDEPLIBS} ${BIND9DEPLIBS} \
74 ${ISCCFGDEPLIBS} ${ISCCCDEPLIBS} ${ISCDEPLIBS}
76 LIBS
= ${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} \
77 ${ISCCFGLIBS} ${ISCCCLIBS} ${ISCLIBS} \
78 ${DLZDRIVER_LIBS} ${DBDRIVER_LIBS} @LIBS@
80 NOSYMLIBS
= ${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} \
81 ${ISCCFGLIBS} ${ISCCCLIBS} ${ISCNOSYMLIBS} \
82 ${DLZDRIVER_LIBS} ${DBDRIVER_LIBS} @LIBS@
86 TARGETS
= named@EXEEXT@ lwresd@EXEEXT@
88 GEOIPLINKOBJS
= geoip.@O@
90 OBJS
= builtin.@O@ client.@O@ config.@O@ control.@O@ \
91 controlconf.@O@ @GEOIPLINKOBJS@ interfacemgr.@O@ \
92 listenlist.@O@ log.@O@ logconf.@O@ main.@O@ notify.@O@ \
93 query.@O@ server.@O@ sortlist.@O@ statschannel.@O@ \
94 tkeyconf.@O@ tsigconf.@O@ update.@O@ xfrout.@O@ \
96 lwaddr.@O@ lwresd.@O@ lwdclient.@O@ lwderror.@O@ lwdgabn.@O@ \
97 lwdgnba.@O@ lwdgrbn.@O@ lwdnoop.@O@ lwsearch.@O@ \
98 ${DLZDRIVER_OBJS} ${DBDRIVER_OBJS}
100 UOBJS
= unix
/os.@O@ unix
/dlz_dlopen_driver.@O@
104 GEOIPLINKSRCS
= geoip.c
106 SRCS
= builtin.c client.c config.c control.c \
107 controlconf.c @GEOIPLINKSRCS@ interfacemgr.c \
108 listenlist.c log.c logconf.c main.c notify.c \
109 query.c server.c sortlist.c statschannel.c \
110 tkeyconf.c tsigconf.c update.c xfrout.c \
112 lwaddr.c lwresd.c lwdclient.c lwderror.c lwdgabn.c \
113 lwdgnba.c lwdgrbn.c lwdnoop.c lwsearch.c \
114 ${DLZDRIVER_SRCS} ${DBDRIVER_SRCS}
116 MANPAGES
= named
.8 lwresd
.8 named.conf
.5
118 HTMLPAGES
= named.html lwresd.html named.conf.html
120 MANOBJS
= ${MANPAGES} ${HTMLPAGES}
125 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
126 -DVERSION
=\"${VERSION}\" \
127 -DPRODUCT
=\"${PRODUCT}\" \
128 -DDESCRIPTION
=\"${DESCRIPTION}\" \
129 -DSRCID
=\"${SRCID}\" \
130 -DCONFIGARGS
="\"${CONFIGARGS}\"" \
131 -DBUILDER
="\"make\"" \
132 -DNS_LOCALSTATEDIR
=\"${localstatedir}\" \
133 -DNS_SYSCONFDIR
=\"${sysconfdir}\" -c
${srcdir}/main.c
136 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
137 -DVERSION
=\"${VERSION}\" \
138 -DSRCID
=\"${SRCID}\" \
139 -DNS_LOCALSTATEDIR
=\"${localstatedir}\" \
140 -DNS_SYSCONFDIR
=\"${sysconfdir}\" \
141 -c
${srcdir}/config.c
143 named@EXEEXT@
: ${OBJS} ${UOBJS} ${DEPLIBS}
144 export MAKE_SYMTABLE
="yes"; \
145 export BASEOBJS
="${OBJS} ${UOBJS}"; \
148 lwresd@EXEEXT@
: named@EXEEXT@
150 @LN@ named@EXEEXT@ lwresd@EXEEXT@
154 docclean manclean maintainer-clean
::
157 clean distclean maintainer-clean
::
158 rm -f
${TARGETS} ${OBJS}
162 bind9.xsl.h
: bind9.xsl
${srcdir}/convertxsl.pl
163 ${PERL} ${srcdir}/convertxsl.pl
< ${srcdir}/bind9.xsl
> bind9.xsl.h
166 statschannel.@O@
: bind9.xsl.h
169 $(SHELL
) ${top_srcdir}/mkinstalldirs
${DESTDIR}${sbindir}
170 $(SHELL
) ${top_srcdir}/mkinstalldirs
${DESTDIR}${mandir}/man5
171 $(SHELL
) ${top_srcdir}/mkinstalldirs
${DESTDIR}${mandir}/man8
173 install:: named@EXEEXT@ lwresd@EXEEXT@
installdirs
174 ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named@EXEEXT@
${DESTDIR}${sbindir}
175 (cd
${DESTDIR}${sbindir}; rm -f lwresd@EXEEXT@
; @LN@ named@EXEEXT@ lwresd@EXEEXT@
)
176 ${INSTALL_DATA} ${srcdir}/named
.8 ${DESTDIR}${mandir}/man8
177 ${INSTALL_DATA} ${srcdir}/lwresd
.8 ${DESTDIR}${mandir}/man8
178 ${INSTALL_DATA} ${srcdir}/named.conf
.5 ${DESTDIR}${mandir}/man5
182 named-symtbl.@O@
: named-symtbl.c
183 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c named-symtbl.c