1 # Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 1999-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.28 2007/06/19 23:47:00 tbox Exp $
22 # Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
23 # Copyright (C) 1999-2001 Internet Software Consortium.
25 # Permission to use, copy, modify, and/or distribute this software for any
26 # purpose with or without fee is hereby granted, provided that the above
27 # copyright notice and this permission notice appear in all copies.
29 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
30 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
31 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
32 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
33 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
34 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
35 # PERFORMANCE OF THIS SOFTWARE.
37 # $Id: includes.in,v 1.21 2007/06/19 23:47:24 tbox Exp $
39 # Search for machine-generated header files in the build tree,
40 # and for normal headers in the source tree (${top_srcdir}).
41 # We only need to look in OS-specific subdirectories for the
42 # latter case, because there are no machine-generated OS-specific
45 ISC_INCLUDES = -I/home/tridge/project/bind9/lib/isc/include \
46 -I${top_srcdir}/lib/isc \
47 -I${top_srcdir}/lib/isc/include \
48 -I${top_srcdir}/lib/isc/unix/include \
49 -I${top_srcdir}/lib/isc/pthreads/include \
50 -I${top_srcdir}/lib/isc/x86_32/include
52 ISCCC_INCLUDES = -I/home/tridge/project/bind9/lib/isccc/include \
53 -I${top_srcdir}/lib/isccc/include
55 ISCCFG_INCLUDES = -I/home/tridge/project/bind9/lib/isccfg/include \
56 -I${top_srcdir}/lib/isccfg/include
58 DNS_INCLUDES = -I/home/tridge/project/bind9/lib/dns/include \
59 -I${top_srcdir}/lib/dns/include
61 LWRES_INCLUDES = -I/home/tridge/project/bind9/lib/lwres/include \
62 -I${top_srcdir}/lib/lwres/unix/include \
63 -I${top_srcdir}/lib/lwres/include
65 BIND9_INCLUDES = -I/home/tridge/project/bind9/lib/bind9/include \
66 -I${top_srcdir}/lib/bind9/include
69 -I${top_srcdir}/lib/tests/include
71 CINCLUDES = ${TEST_INCLUDES} ${DNS_INCLUDES} ${ISC_INCLUDES}
76 # Note that we do not want to use libtool for libt_api
77 DNSLIBS = ../../../lib/dns/libdns.la -L/usr/lib -lgssapi_krb5 -lcrypto
78 ISCLIBS = ../../../lib/isc/libisc.la
80 DNSDEPLIBS = ../../../lib/dns/libdns.la
81 ISCDEPLIBS = ../../../lib/isc/libisc.la
83 DEPLIBS = ${DNSDEPLIBS} ${ISCDEPLIBS}
85 LIBS = ${DNSLIBS} ${ISCLIBS} -lcap -lpthread -lxml2
87 TLIB = ../../../lib/tests/libt_api.la
93 # Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
94 # Copyright (C) 1998-2003 Internet Software Consortium.
96 # Permission to use, copy, modify, and/or distribute this software for any
97 # purpose with or without fee is hereby granted, provided that the above
98 # copyright notice and this permission notice appear in all copies.
100 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
101 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
102 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
103 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
104 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
105 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
106 # PERFORMANCE OF THIS SOFTWARE.
108 # $Id: rules.in,v 1.64.130.2 2009/01/10 23:46:57 tbox Exp $
111 ### Common Makefile rules for BIND 9.
117 ### Note: paths that vary by Makefile MUST NOT be listed
118 ### here, or they won't get expanded correctly.
120 prefix = /home/tridge/project/bind9/prefix
121 exec_prefix = ${prefix}
122 bindir = ${exec_prefix}/bin
123 sbindir = ${exec_prefix}/sbin
124 includedir = ${prefix}/include
125 libdir = ${exec_prefix}/lib
126 sysconfdir = /etc/bind
129 datarootdir = ${prefix}/share
135 top_builddir = /home/tridge/project/bind9
140 ### Makefile may define:
143 all: subdirs ${TARGETS}
148 ### Makefile may define:
151 ALL_SUBDIRS = ${SUBDIRS} nulldir
154 # We use a single-colon rule so that additional dependencies of
155 # subdirectories can be specified after the inclusion of this file.
156 # The "depend" target is treated the same way.
159 @for i in ${ALL_SUBDIRS}; do \
160 if [ "$$i" != "nulldir" -a -d $$i ]; then \
161 echo "making all in `pwd`/$$i"; \
162 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" all) || exit 1; \
168 install clean distclean maintainer-clean doc docclean man manclean::
169 @for i in ${ALL_SUBDIRS}; do \
170 if [ "$$i" != "nulldir" -a -d $$i ]; then \
171 echo "making $@ in `pwd`/$$i"; \
172 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
179 ### Makefile must define
181 ### Makefile may define
187 ### User may define externally
191 CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
194 STD_CDEFINES = -D_GNU_SOURCE
195 STD_CWARNINGS = -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing
197 BUILD_CC = ccache gcc
198 BUILD_CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
199 BUILD_CPPFLAGS = -D_GNU_SOURCE
201 BUILD_LIBS = -lcap -lpthread -lxml2
206 ALWAYS_INCLUDES = -I${top_builddir}
207 ALWAYS_DEFINES = -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
211 ${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
212 ${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
214 ALL_CFLAGS = ${EXT_CFLAGS} ${ALL_CPPFLAGS} ${CFLAGS} \
215 ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
218 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $<
221 LIBTOOL = $(SHELL) $(top_builddir)/libtool
222 LIBTOOL_MODE_COMPILE = ${LIBTOOL} --mode=compile
223 LIBTOOL_MODE_INSTALL = ${LIBTOOL} --mode=install
224 LIBTOOL_MODE_LINK = ${LIBTOOL} --mode=link
227 MKDEP = ${SHELL} ${top_builddir}/make/mkdep
230 superclean: maintainer-clean
232 clean distclean maintainer-clean::
233 rm -f *.lo *.o *.lo *.la core *.core .depend
236 distclean maintainer-clean::
240 @for i in ${ALL_SUBDIRS}; do \
241 if [ "$$i" != "nulldir" -a -d $$i ]; then \
242 echo "making depend in `pwd`/$$i"; \
243 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
246 @if [ X"${VPATH}" != X ] ; then \
247 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
248 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
249 ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
250 echo ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
251 ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
253 elif [ X"${SRCS}" != X ] ; then \
254 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
255 ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
257 elif [ X"${PSRCS}" != X ] ; then \
258 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
259 ${MKDEP} -vpath ${VPATH} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
263 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
264 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
265 ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
266 echo ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
267 ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
269 elif [ X"${SRCS}" != X ] ; then \
270 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
271 ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
273 elif [ X"${PSRCS}" != X ] ; then \
274 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
275 ${MKDEP} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
294 INSTALL = /usr/bin/install -c
295 INSTALL_PROGRAM = ${INSTALL}
297 INSTALL_SCRIPT = ${INSTALL}
298 INSTALL_DATA = ${INSTALL} -m 644
301 ### Programs used when generating documentation. It's ok for these
302 ### not to exist when not generating documentation.
305 XSLTPROC = /usr/bin/xsltproc --novalid --xinclude --nonet
307 LATEX = /usr/bin/latex
308 PDFLATEX = /usr/bin/pdflatex
313 ### DocBook -> man page
316 .SUFFIXES: .docbook .html .1 .2 .3 .4 .5 .6 .7 .8
319 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-docbook-html.xsl $<
322 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
325 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
328 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
331 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
334 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
337 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
340 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
343 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
345 t_rbt: t_rbt.lo ${DEPLIBS} ${TLIB}
346 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ t_rbt.lo ${TLIB} ${LIBS}
349 -@./t_rbt -c ../../../t_config -b . -a