1 # Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 2000-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.41 2007/06/19 23:46:59 tbox Exp $
24 # Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
25 # Copyright (C) 1999-2001 Internet Software Consortium.
27 # Permission to use, copy, modify, and/or distribute this software for any
28 # purpose with or without fee is hereby granted, provided that the above
29 # copyright notice and this permission notice appear in all copies.
31 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
32 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
33 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
34 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
35 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
36 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
37 # PERFORMANCE OF THIS SOFTWARE.
39 # $Id: includes.in,v 1.21 2007/06/19 23:47:24 tbox Exp $
41 # Search for machine-generated header files in the build tree,
42 # and for normal headers in the source tree (${top_srcdir}).
43 # We only need to look in OS-specific subdirectories for the
44 # latter case, because there are no machine-generated OS-specific
47 ISC_INCLUDES = -I/home/tridge/project/bind9/lib/isc/include \
48 -I${top_srcdir}/lib/isc \
49 -I${top_srcdir}/lib/isc/include \
50 -I${top_srcdir}/lib/isc/unix/include \
51 -I${top_srcdir}/lib/isc/pthreads/include \
52 -I${top_srcdir}/lib/isc/x86_32/include
54 ISCCC_INCLUDES = -I/home/tridge/project/bind9/lib/isccc/include \
55 -I${top_srcdir}/lib/isccc/include
57 ISCCFG_INCLUDES = -I/home/tridge/project/bind9/lib/isccfg/include \
58 -I${top_srcdir}/lib/isccfg/include
60 DNS_INCLUDES = -I/home/tridge/project/bind9/lib/dns/include \
61 -I${top_srcdir}/lib/dns/include
63 LWRES_INCLUDES = -I/home/tridge/project/bind9/lib/lwres/include \
64 -I${top_srcdir}/lib/lwres/unix/include \
65 -I${top_srcdir}/lib/lwres/include
67 BIND9_INCLUDES = -I/home/tridge/project/bind9/lib/bind9/include \
68 -I${top_srcdir}/lib/bind9/include
71 -I${top_srcdir}/lib/tests/include
73 CINCLUDES = -I${srcdir}/include ${DNS_INCLUDES} ${BIND9_INCLUDES} \
74 ${ISC_INCLUDES} ${LWRES_INCLUDES}
76 CDEFINES = -DVERSION=\"${VERSION}\"
79 ISCCFGLIBS = ../../lib/isccfg/libisccfg.la
80 DNSLIBS = ../../lib/dns/libdns.la -L/usr/lib -lgssapi_krb5 -lcrypto
81 BIND9LIBS = ../../lib/bind9/libbind9.la
82 ISCLIBS = ../../lib/isc/libisc.la
83 LWRESLIBS = ../../lib/lwres/liblwres.la
85 ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.la
86 DNSDEPLIBS = ../../lib/dns/libdns.la
87 BIND9DEPLIBS = ../../lib/bind9/libbind9.la
88 ISCDEPLIBS = ../../lib/isc/libisc.la
89 LWRESDEPLIBS = ../../lib/lwres/liblwres.la
91 DEPLIBS = ${DNSDEPLIBS} ${BIND9DEPLIBS} ${ISCDEPLIBS} ${ISCCFGDEPLIBS} \
94 LIBS = ${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} ${ISCLIBS} \
95 ${ISCCFGLIBS} -lcap -lpthread -lxml2
99 TARGETS = dig host nslookup
101 OBJS = dig.lo dighost.lo host.lo nslookup.lo
105 SRCS = dig.c dighost.c host.c nslookup.c
107 MANPAGES = dig.1 host.1 nslookup.1
109 HTMLPAGES = dig.html host.html nslookup.html
111 MANOBJS = ${MANPAGES} ${HTMLPAGES}
113 # Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
114 # Copyright (C) 1998-2003 Internet Software Consortium.
116 # Permission to use, copy, modify, and/or distribute this software for any
117 # purpose with or without fee is hereby granted, provided that the above
118 # copyright notice and this permission notice appear in all copies.
120 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
121 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
122 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
123 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
124 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
125 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
126 # PERFORMANCE OF THIS SOFTWARE.
128 # $Id: rules.in,v 1.64.130.2 2009/01/10 23:46:57 tbox Exp $
131 ### Common Makefile rules for BIND 9.
137 ### Note: paths that vary by Makefile MUST NOT be listed
138 ### here, or they won't get expanded correctly.
140 prefix = /home/tridge/project/bind9/prefix
141 exec_prefix = ${prefix}
142 bindir = ${exec_prefix}/bin
143 sbindir = ${exec_prefix}/sbin
144 includedir = ${prefix}/include
145 libdir = ${exec_prefix}/lib
146 sysconfdir = /etc/bind
149 datarootdir = ${prefix}/share
155 top_builddir = /home/tridge/project/bind9
160 ### Makefile may define:
163 all: subdirs ${TARGETS}
168 ### Makefile may define:
171 ALL_SUBDIRS = ${SUBDIRS} nulldir
174 # We use a single-colon rule so that additional dependencies of
175 # subdirectories can be specified after the inclusion of this file.
176 # The "depend" target is treated the same way.
179 @for i in ${ALL_SUBDIRS}; do \
180 if [ "$$i" != "nulldir" -a -d $$i ]; then \
181 echo "making all in `pwd`/$$i"; \
182 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" all) || exit 1; \
188 install clean distclean maintainer-clean doc docclean man manclean::
189 @for i in ${ALL_SUBDIRS}; do \
190 if [ "$$i" != "nulldir" -a -d $$i ]; then \
191 echo "making $@ in `pwd`/$$i"; \
192 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
199 ### Makefile must define
201 ### Makefile may define
207 ### User may define externally
211 CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
214 STD_CDEFINES = -D_GNU_SOURCE
215 STD_CWARNINGS = -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing
217 BUILD_CC = ccache gcc
218 BUILD_CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
219 BUILD_CPPFLAGS = -D_GNU_SOURCE
221 BUILD_LIBS = -lcap -lpthread -lxml2
226 ALWAYS_INCLUDES = -I${top_builddir}
227 ALWAYS_DEFINES = -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
231 ${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
232 ${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
234 ALL_CFLAGS = ${EXT_CFLAGS} ${ALL_CPPFLAGS} ${CFLAGS} \
235 ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
238 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $<
241 LIBTOOL = $(SHELL) $(top_builddir)/libtool
242 LIBTOOL_MODE_COMPILE = ${LIBTOOL} --mode=compile
243 LIBTOOL_MODE_INSTALL = ${LIBTOOL} --mode=install
244 LIBTOOL_MODE_LINK = ${LIBTOOL} --mode=link
247 MKDEP = ${SHELL} ${top_builddir}/make/mkdep
250 superclean: maintainer-clean
252 clean distclean maintainer-clean::
253 rm -f *.lo *.o *.lo *.la core *.core .depend
256 distclean maintainer-clean::
260 @for i in ${ALL_SUBDIRS}; do \
261 if [ "$$i" != "nulldir" -a -d $$i ]; then \
262 echo "making depend in `pwd`/$$i"; \
263 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
266 @if [ X"${VPATH}" != X ] ; then \
267 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
268 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
269 ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
270 echo ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
271 ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
273 elif [ X"${SRCS}" != X ] ; then \
274 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
275 ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
277 elif [ X"${PSRCS}" != X ] ; then \
278 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
279 ${MKDEP} -vpath ${VPATH} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
283 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
284 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
285 ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
286 echo ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
287 ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
289 elif [ X"${SRCS}" != X ] ; then \
290 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
291 ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
293 elif [ X"${PSRCS}" != X ] ; then \
294 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
295 ${MKDEP} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
314 INSTALL = /usr/bin/install -c
315 INSTALL_PROGRAM = ${INSTALL}
317 INSTALL_SCRIPT = ${INSTALL}
318 INSTALL_DATA = ${INSTALL} -m 644
321 ### Programs used when generating documentation. It's ok for these
322 ### not to exist when not generating documentation.
325 XSLTPROC = /usr/bin/xsltproc --novalid --xinclude --nonet
327 LATEX = /usr/bin/latex
328 PDFLATEX = /usr/bin/pdflatex
333 ### DocBook -> man page
336 .SUFFIXES: .docbook .html .1 .2 .3 .4 .5 .6 .7 .8
339 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-docbook-html.xsl $<
342 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
345 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
348 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
351 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
354 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
357 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
360 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
363 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
365 dig: dig.lo dighost.lo ${UOBJS} ${DEPLIBS}
366 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
367 dig.lo dighost.lo ${UOBJS} ${LIBS}
369 host: host.lo dighost.lo ${UOBJS} ${DEPLIBS}
370 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
371 host.lo dighost.lo ${UOBJS} ${LIBS}
373 nslookup: nslookup.lo dighost.lo ${UOBJS} ${DEPLIBS}
374 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
375 nslookup.lo dighost.lo ${UOBJS} ${LIBS}
379 docclean manclean maintainer-clean::
382 clean distclean maintainer-clean::
386 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
387 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
389 install:: dig host nslookup installdirs
390 ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
391 dig ${DESTDIR}${bindir}
392 ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
393 host ${DESTDIR}${bindir}
394 ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
395 nslookup ${DESTDIR}${bindir}
396 for m in ${MANPAGES}; do \
397 ${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man1; \