1 # Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 2001 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.11 2007/06/19 23:47:16 tbox Exp $
28 # Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
29 # Copyright (C) 1999-2001 Internet Software Consortium.
31 # Permission to use, copy, modify, and/or distribute this software for any
32 # purpose with or without fee is hereby granted, provided that the above
33 # copyright notice and this permission notice appear in all copies.
35 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
36 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
38 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
40 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41 # PERFORMANCE OF THIS SOFTWARE.
43 # $Id: includes.in,v 1.21 2007/06/19 23:47:24 tbox Exp $
45 # Search for machine-generated header files in the build tree,
46 # and for normal headers in the source tree (${top_srcdir}).
47 # We only need to look in OS-specific subdirectories for the
48 # latter case, because there are no machine-generated OS-specific
51 ISC_INCLUDES = -I/home/tridge/project/bind9/lib/isc/include \
52 -I${top_srcdir}/lib/isc \
53 -I${top_srcdir}/lib/isc/include \
54 -I${top_srcdir}/lib/isc/unix/include \
55 -I${top_srcdir}/lib/isc/pthreads/include \
56 -I${top_srcdir}/lib/isc/x86_32/include
58 ISCCC_INCLUDES = -I/home/tridge/project/bind9/lib/isccc/include \
59 -I${top_srcdir}/lib/isccc/include
61 ISCCFG_INCLUDES = -I/home/tridge/project/bind9/lib/isccfg/include \
62 -I${top_srcdir}/lib/isccfg/include
64 DNS_INCLUDES = -I/home/tridge/project/bind9/lib/dns/include \
65 -I${top_srcdir}/lib/dns/include
67 LWRES_INCLUDES = -I/home/tridge/project/bind9/lib/lwres/include \
68 -I${top_srcdir}/lib/lwres/unix/include \
69 -I${top_srcdir}/lib/lwres/include
71 BIND9_INCLUDES = -I/home/tridge/project/bind9/lib/bind9/include \
72 -I${top_srcdir}/lib/bind9/include
75 -I${top_srcdir}/lib/tests/include
77 CINCLUDES = -I. ${BIND9_INCLUDES} ${DNS_INCLUDES} ${ISC_INCLUDES} \
83 ISCLIBS = ../../lib/isc/libisc.la
84 ISCCFGLIBS = ../../lib/isccfg/libisccfg.la
85 DNSLIBS = ../../lib/dns/libdns.la
87 ISCDEPLIBS = ../../lib/isc/libisc.la
88 ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.la
89 DNSDEPLIBS = ../../lib/dns/libdns.la
91 LIBS = -lcap -lpthread -lxml2
96 OBJS = check.lo getaddresses.lo version.lo
99 SRCS = check.c getaddresses.c version.c
103 # Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
104 # Copyright (C) 1998-2003 Internet Software Consortium.
106 # Permission to use, copy, modify, and/or distribute this software for any
107 # purpose with or without fee is hereby granted, provided that the above
108 # copyright notice and this permission notice appear in all copies.
110 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
111 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
112 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
113 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
114 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
115 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
116 # PERFORMANCE OF THIS SOFTWARE.
118 # $Id: rules.in,v 1.64.130.2 2009/01/10 23:46:57 tbox Exp $
121 ### Common Makefile rules for BIND 9.
127 ### Note: paths that vary by Makefile MUST NOT be listed
128 ### here, or they won't get expanded correctly.
130 prefix = /home/tridge/project/bind9/prefix
131 exec_prefix = ${prefix}
132 bindir = ${exec_prefix}/bin
133 sbindir = ${exec_prefix}/sbin
134 includedir = ${prefix}/include
135 libdir = ${exec_prefix}/lib
136 sysconfdir = /etc/bind
139 datarootdir = ${prefix}/share
145 top_builddir = /home/tridge/project/bind9
150 ### Makefile may define:
153 all: subdirs ${TARGETS}
158 ### Makefile may define:
161 ALL_SUBDIRS = ${SUBDIRS} nulldir
164 # We use a single-colon rule so that additional dependencies of
165 # subdirectories can be specified after the inclusion of this file.
166 # The "depend" target is treated the same way.
169 @for i in ${ALL_SUBDIRS}; do \
170 if [ "$$i" != "nulldir" -a -d $$i ]; then \
171 echo "making all in `pwd`/$$i"; \
172 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" all) || exit 1; \
178 install clean distclean maintainer-clean doc docclean man manclean::
179 @for i in ${ALL_SUBDIRS}; do \
180 if [ "$$i" != "nulldir" -a -d $$i ]; then \
181 echo "making $@ in `pwd`/$$i"; \
182 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
189 ### Makefile must define
191 ### Makefile may define
197 ### User may define externally
201 CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
204 STD_CDEFINES = -D_GNU_SOURCE
205 STD_CWARNINGS = -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing
207 BUILD_CC = ccache gcc
208 BUILD_CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
209 BUILD_CPPFLAGS = -D_GNU_SOURCE
211 BUILD_LIBS = -lcap -lpthread -lxml2
216 ALWAYS_INCLUDES = -I${top_builddir}
217 ALWAYS_DEFINES = -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
221 ${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
222 ${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
224 ALL_CFLAGS = ${EXT_CFLAGS} ${ALL_CPPFLAGS} ${CFLAGS} \
225 ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
228 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $<
231 LIBTOOL = $(SHELL) $(top_builddir)/libtool
232 LIBTOOL_MODE_COMPILE = ${LIBTOOL} --mode=compile
233 LIBTOOL_MODE_INSTALL = ${LIBTOOL} --mode=install
234 LIBTOOL_MODE_LINK = ${LIBTOOL} --mode=link
237 MKDEP = ${SHELL} ${top_builddir}/make/mkdep
240 superclean: maintainer-clean
242 clean distclean maintainer-clean::
243 rm -f *.lo *.o *.lo *.la core *.core .depend
246 distclean maintainer-clean::
250 @for i in ${ALL_SUBDIRS}; do \
251 if [ "$$i" != "nulldir" -a -d $$i ]; then \
252 echo "making depend in `pwd`/$$i"; \
253 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
256 @if [ X"${VPATH}" != X ] ; then \
257 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
258 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
259 ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
260 echo ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
261 ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
263 elif [ X"${SRCS}" != X ] ; then \
264 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
265 ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
267 elif [ X"${PSRCS}" != X ] ; then \
268 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
269 ${MKDEP} -vpath ${VPATH} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
273 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
274 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
275 ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
276 echo ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
277 ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
279 elif [ X"${SRCS}" != X ] ; then \
280 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
281 ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
283 elif [ X"${PSRCS}" != X ] ; then \
284 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
285 ${MKDEP} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
304 INSTALL = /usr/bin/install -c
305 INSTALL_PROGRAM = ${INSTALL}
307 INSTALL_SCRIPT = ${INSTALL}
308 INSTALL_DATA = ${INSTALL} -m 644
311 ### Programs used when generating documentation. It's ok for these
312 ### not to exist when not generating documentation.
315 XSLTPROC = /usr/bin/xsltproc --novalid --xinclude --nonet
317 LATEX = /usr/bin/latex
318 PDFLATEX = /usr/bin/pdflatex
323 ### DocBook -> man page
326 .SUFFIXES: .docbook .html .1 .2 .3 .4 .5 .6 .7 .8
329 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-docbook-html.xsl $<
332 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
335 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
338 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
341 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
344 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
347 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
350 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
353 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
355 version.lo: version.c
356 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
357 -DVERSION=\"${VERSION}\" \
358 -DLIBINTERFACE=${LIBINTERFACE} \
359 -DLIBREVISION=${LIBREVISION} \
361 -c ${srcdir}/version.c
364 ${AR} ${ARFLAGS} $@ ${OBJS}
367 libbind9.la: ${OBJS} ${ISCCFGDEPLIBS} ${ISCDEPLIBS} ${DNSDEPLIBS}
368 ${LIBTOOL_MODE_LINK} \
369 ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libbind9.la -rpath ${libdir} \
370 -version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
371 ${OBJS} ${DNSLIBS} ${ISCCFGLIBS} ${ISCLIBS} ${LIBS}
373 timestamp: libbind9.la
377 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
379 install:: timestamp installdirs
380 ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libbind9.la ${DESTDIR}${libdir}
383 rm -f libbind9.la timestamp