1 # Copyright (C) 2004, 2006-2008 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.29 2008/08/29 23:47:22 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 = ${LWRES_INCLUDES} ${DNS_INCLUDES} ${BIND9_INCLUDES} \
74 ${ISC_INCLUDES} -I/usr/include
79 LWRESLIBS = ../../lib/lwres/liblwres.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 ISCCFGLIBS = ../../lib/isccfg/libisccfg.la
85 LWRESDEPLIBS = ../../lib/lwres/liblwres.la
86 DNSDEPLIBS = ../../lib/dns/libdns.la
87 BIND9DEPLIBS = ../../lib/bind9/libbind9.la
88 ISCDEPLIBS = ../../lib/isc/libisc.la
89 ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.la
91 DEPLIBS = ${DNSDEPLIBS} ${BIND9DEPLIBS} ${ISCDEPLIBS} ${ISCCFGDEPLIBS}
93 LIBS = ${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} ${ISCLIBS} ${ISCCFGLIBS} -lcap -lpthread -lxml2
105 MANPAGES = nsupdate.1
107 HTMLPAGES = nsupdate.html
109 MANOBJS = ${MANPAGES} ${HTMLPAGES}
111 # Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
112 # Copyright (C) 1998-2003 Internet Software Consortium.
114 # Permission to use, copy, modify, and/or distribute this software for any
115 # purpose with or without fee is hereby granted, provided that the above
116 # copyright notice and this permission notice appear in all copies.
118 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
119 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
120 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
121 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
122 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
123 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
124 # PERFORMANCE OF THIS SOFTWARE.
126 # $Id: rules.in,v 1.64.130.2 2009/01/10 23:46:57 tbox Exp $
129 ### Common Makefile rules for BIND 9.
135 ### Note: paths that vary by Makefile MUST NOT be listed
136 ### here, or they won't get expanded correctly.
138 prefix = /home/tridge/project/bind9/prefix
139 exec_prefix = ${prefix}
140 bindir = ${exec_prefix}/bin
141 sbindir = ${exec_prefix}/sbin
142 includedir = ${prefix}/include
143 libdir = ${exec_prefix}/lib
144 sysconfdir = /etc/bind
147 datarootdir = ${prefix}/share
153 top_builddir = /home/tridge/project/bind9
158 ### Makefile may define:
161 all: subdirs ${TARGETS}
166 ### Makefile may define:
169 ALL_SUBDIRS = ${SUBDIRS} nulldir
172 # We use a single-colon rule so that additional dependencies of
173 # subdirectories can be specified after the inclusion of this file.
174 # The "depend" target is treated the same way.
177 @for i in ${ALL_SUBDIRS}; do \
178 if [ "$$i" != "nulldir" -a -d $$i ]; then \
179 echo "making all in `pwd`/$$i"; \
180 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" all) || exit 1; \
186 install clean distclean maintainer-clean doc docclean man manclean::
187 @for i in ${ALL_SUBDIRS}; do \
188 if [ "$$i" != "nulldir" -a -d $$i ]; then \
189 echo "making $@ in `pwd`/$$i"; \
190 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
197 ### Makefile must define
199 ### Makefile may define
205 ### User may define externally
209 CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
212 STD_CDEFINES = -D_GNU_SOURCE
213 STD_CWARNINGS = -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing
215 BUILD_CC = ccache gcc
216 BUILD_CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
217 BUILD_CPPFLAGS = -D_GNU_SOURCE
219 BUILD_LIBS = -lcap -lpthread -lxml2
224 ALWAYS_INCLUDES = -I${top_builddir}
225 ALWAYS_DEFINES = -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
229 ${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
230 ${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
232 ALL_CFLAGS = ${EXT_CFLAGS} ${ALL_CPPFLAGS} ${CFLAGS} \
233 ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
236 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $<
239 LIBTOOL = $(SHELL) $(top_builddir)/libtool
240 LIBTOOL_MODE_COMPILE = ${LIBTOOL} --mode=compile
241 LIBTOOL_MODE_INSTALL = ${LIBTOOL} --mode=install
242 LIBTOOL_MODE_LINK = ${LIBTOOL} --mode=link
245 MKDEP = ${SHELL} ${top_builddir}/make/mkdep
248 superclean: maintainer-clean
250 clean distclean maintainer-clean::
251 rm -f *.lo *.o *.lo *.la core *.core .depend
254 distclean maintainer-clean::
258 @for i in ${ALL_SUBDIRS}; do \
259 if [ "$$i" != "nulldir" -a -d $$i ]; then \
260 echo "making depend in `pwd`/$$i"; \
261 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
264 @if [ X"${VPATH}" != X ] ; then \
265 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
266 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
267 ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
268 echo ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
269 ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
271 elif [ X"${SRCS}" != X ] ; then \
272 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
273 ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
275 elif [ X"${PSRCS}" != X ] ; then \
276 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
277 ${MKDEP} -vpath ${VPATH} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
281 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
282 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
283 ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
284 echo ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
285 ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
287 elif [ X"${SRCS}" != X ] ; then \
288 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
289 ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
291 elif [ X"${PSRCS}" != X ] ; then \
292 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
293 ${MKDEP} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
312 INSTALL = /usr/bin/install -c
313 INSTALL_PROGRAM = ${INSTALL}
315 INSTALL_SCRIPT = ${INSTALL}
316 INSTALL_DATA = ${INSTALL} -m 644
319 ### Programs used when generating documentation. It's ok for these
320 ### not to exist when not generating documentation.
323 XSLTPROC = /usr/bin/xsltproc --novalid --xinclude --nonet
325 LATEX = /usr/bin/latex
326 PDFLATEX = /usr/bin/pdflatex
331 ### DocBook -> man page
334 .SUFFIXES: .docbook .html .1 .2 .3 .4 .5 .6 .7 .8
337 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-docbook-html.xsl $<
340 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
343 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
346 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
349 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
352 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
355 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
358 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
361 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
363 nsupdate: nsupdate.lo ${UOBJS} ${DEPLIBS}
364 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ nsupdate.lo ${UOBJS} ${LIBS}
368 docclean manclean maintainer-clean::
375 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
376 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
378 install:: nsupdate installdirs
379 ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} nsupdate ${DESTDIR}${bindir}
380 ${INSTALL_DATA} ${srcdir}/nsupdate.1 ${DESTDIR}${mandir}/man1