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.21 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} ${ISC_INCLUDES}
76 ISCLIBS = ../../../lib/isc/libisc.la
77 TAPIDEPLIBS = ../../../lib/tests/libt_api.la
79 ISCDEPLIBS = ../../../lib/isc/libisc.la
80 TAPILIBS = ../../../lib/tests/libt_api.la
82 DEPLIBS = ${TAPIDEPLIBS} ${ISCDEPLIBS}
84 LIBS = ${TAPILIBS} ${ISCLIBS} -lcap -lpthread -lxml2
90 # Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
91 # Copyright (C) 1998-2003 Internet Software Consortium.
93 # Permission to use, copy, modify, and/or distribute this software for any
94 # purpose with or without fee is hereby granted, provided that the above
95 # copyright notice and this permission notice appear in all copies.
97 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
98 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
99 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
100 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
101 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
102 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
103 # PERFORMANCE OF THIS SOFTWARE.
105 # $Id: rules.in,v 1.64.130.2 2009/01/10 23:46:57 tbox Exp $
108 ### Common Makefile rules for BIND 9.
114 ### Note: paths that vary by Makefile MUST NOT be listed
115 ### here, or they won't get expanded correctly.
117 prefix = /home/tridge/project/bind9/prefix
118 exec_prefix = ${prefix}
119 bindir = ${exec_prefix}/bin
120 sbindir = ${exec_prefix}/sbin
121 includedir = ${prefix}/include
122 libdir = ${exec_prefix}/lib
123 sysconfdir = /etc/bind
126 datarootdir = ${prefix}/share
132 top_builddir = /home/tridge/project/bind9
137 ### Makefile may define:
140 all: subdirs ${TARGETS}
145 ### Makefile may define:
148 ALL_SUBDIRS = ${SUBDIRS} nulldir
151 # We use a single-colon rule so that additional dependencies of
152 # subdirectories can be specified after the inclusion of this file.
153 # The "depend" target is treated the same way.
156 @for i in ${ALL_SUBDIRS}; do \
157 if [ "$$i" != "nulldir" -a -d $$i ]; then \
158 echo "making all in `pwd`/$$i"; \
159 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" all) || exit 1; \
165 install clean distclean maintainer-clean doc docclean man manclean::
166 @for i in ${ALL_SUBDIRS}; do \
167 if [ "$$i" != "nulldir" -a -d $$i ]; then \
168 echo "making $@ in `pwd`/$$i"; \
169 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
176 ### Makefile must define
178 ### Makefile may define
184 ### User may define externally
188 CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
191 STD_CDEFINES = -D_GNU_SOURCE
192 STD_CWARNINGS = -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing
194 BUILD_CC = ccache gcc
195 BUILD_CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
196 BUILD_CPPFLAGS = -D_GNU_SOURCE
198 BUILD_LIBS = -lcap -lpthread -lxml2
203 ALWAYS_INCLUDES = -I${top_builddir}
204 ALWAYS_DEFINES = -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
208 ${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
209 ${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
211 ALL_CFLAGS = ${EXT_CFLAGS} ${ALL_CPPFLAGS} ${CFLAGS} \
212 ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
215 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $<
218 LIBTOOL = $(SHELL) $(top_builddir)/libtool
219 LIBTOOL_MODE_COMPILE = ${LIBTOOL} --mode=compile
220 LIBTOOL_MODE_INSTALL = ${LIBTOOL} --mode=install
221 LIBTOOL_MODE_LINK = ${LIBTOOL} --mode=link
224 MKDEP = ${SHELL} ${top_builddir}/make/mkdep
227 superclean: maintainer-clean
229 clean distclean maintainer-clean::
230 rm -f *.lo *.o *.lo *.la core *.core .depend
233 distclean maintainer-clean::
237 @for i in ${ALL_SUBDIRS}; do \
238 if [ "$$i" != "nulldir" -a -d $$i ]; then \
239 echo "making depend in `pwd`/$$i"; \
240 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
243 @if [ X"${VPATH}" != X ] ; then \
244 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
245 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
246 ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
247 echo ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
248 ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
250 elif [ X"${SRCS}" != X ] ; then \
251 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
252 ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
254 elif [ X"${PSRCS}" != X ] ; then \
255 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
256 ${MKDEP} -vpath ${VPATH} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
260 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
261 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
262 ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
263 echo ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
264 ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
266 elif [ X"${SRCS}" != X ] ; then \
267 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
268 ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
270 elif [ X"${PSRCS}" != X ] ; then \
271 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
272 ${MKDEP} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
291 INSTALL = /usr/bin/install -c
292 INSTALL_PROGRAM = ${INSTALL}
294 INSTALL_SCRIPT = ${INSTALL}
295 INSTALL_DATA = ${INSTALL} -m 644
298 ### Programs used when generating documentation. It's ok for these
299 ### not to exist when not generating documentation.
302 XSLTPROC = /usr/bin/xsltproc --novalid --xinclude --nonet
304 LATEX = /usr/bin/latex
305 PDFLATEX = /usr/bin/pdflatex
310 ### DocBook -> man page
313 .SUFFIXES: .docbook .html .1 .2 .3 .4 .5 .6 .7 .8
316 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-docbook-html.xsl $<
319 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.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 $<
342 t_sockaddr: t_sockaddr.lo ${DEPLIBS}
343 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ t_sockaddr.lo ${LIBS}
346 -@./t_sockaddr -b . -a