1 # Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 1999-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.9 2007/06/19 23:47:24 tbox Exp $
20 top_srcdir = ../../../..
27 # Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
28 # Copyright (C) 1998-2003 Internet Software Consortium.
30 # Permission to use, copy, modify, and/or distribute this software for any
31 # purpose with or without fee is hereby granted, provided that the above
32 # copyright notice and this permission notice appear in all copies.
34 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
35 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
36 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
37 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
38 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
39 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
40 # PERFORMANCE OF THIS SOFTWARE.
42 # $Id: rules.in,v 1.64.130.2 2009/01/10 23:46:57 tbox Exp $
45 ### Common Makefile rules for BIND 9.
51 ### Note: paths that vary by Makefile MUST NOT be listed
52 ### here, or they won't get expanded correctly.
54 prefix = /home/tridge/project/bind9/prefix
55 exec_prefix = ${prefix}
56 bindir = ${exec_prefix}/bin
57 sbindir = ${exec_prefix}/sbin
58 includedir = ${prefix}/include
59 libdir = ${exec_prefix}/lib
60 sysconfdir = /etc/bind
63 datarootdir = ${prefix}/share
69 top_builddir = /home/tridge/project/bind9
74 ### Makefile may define:
77 all: subdirs ${TARGETS}
82 ### Makefile may define:
85 ALL_SUBDIRS = ${SUBDIRS} nulldir
88 # We use a single-colon rule so that additional dependencies of
89 # subdirectories can be specified after the inclusion of this file.
90 # The "depend" target is treated the same way.
93 @for i in ${ALL_SUBDIRS}; do \
94 if [ "$$i" != "nulldir" -a -d $$i ]; then \
95 echo "making all in `pwd`/$$i"; \
96 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" all) || exit 1; \
102 install clean distclean maintainer-clean doc docclean man manclean::
103 @for i in ${ALL_SUBDIRS}; do \
104 if [ "$$i" != "nulldir" -a -d $$i ]; then \
105 echo "making $@ in `pwd`/$$i"; \
106 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
113 ### Makefile must define
115 ### Makefile may define
121 ### User may define externally
125 CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
128 STD_CDEFINES = -D_GNU_SOURCE
129 STD_CWARNINGS = -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing
131 BUILD_CC = ccache gcc
132 BUILD_CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
133 BUILD_CPPFLAGS = -D_GNU_SOURCE
135 BUILD_LIBS = -lcap -lpthread -lxml2
140 ALWAYS_INCLUDES = -I${top_builddir}
141 ALWAYS_DEFINES = -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
145 ${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
146 ${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
148 ALL_CFLAGS = ${EXT_CFLAGS} ${ALL_CPPFLAGS} ${CFLAGS} \
149 ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
152 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $<
155 LIBTOOL = $(SHELL) $(top_builddir)/libtool
156 LIBTOOL_MODE_COMPILE = ${LIBTOOL} --mode=compile
157 LIBTOOL_MODE_INSTALL = ${LIBTOOL} --mode=install
158 LIBTOOL_MODE_LINK = ${LIBTOOL} --mode=link
161 MKDEP = ${SHELL} ${top_builddir}/make/mkdep
164 superclean: maintainer-clean
166 clean distclean maintainer-clean::
167 rm -f *.lo *.o *.lo *.la core *.core .depend
170 distclean maintainer-clean::
174 @for i in ${ALL_SUBDIRS}; do \
175 if [ "$$i" != "nulldir" -a -d $$i ]; then \
176 echo "making depend in `pwd`/$$i"; \
177 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
180 @if [ X"${VPATH}" != X ] ; then \
181 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
182 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
183 ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
184 echo ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
185 ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
187 elif [ X"${SRCS}" != X ] ; then \
188 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
189 ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
191 elif [ X"${PSRCS}" != X ] ; then \
192 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
193 ${MKDEP} -vpath ${VPATH} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
197 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
198 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
199 ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
200 echo ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
201 ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
203 elif [ X"${SRCS}" != X ] ; then \
204 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
205 ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
207 elif [ X"${PSRCS}" != X ] ; then \
208 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
209 ${MKDEP} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
228 INSTALL = /usr/bin/install -c
229 INSTALL_PROGRAM = ${INSTALL}
231 INSTALL_SCRIPT = ${INSTALL}
232 INSTALL_DATA = ${INSTALL} -m 644
235 ### Programs used when generating documentation. It's ok for these
236 ### not to exist when not generating documentation.
239 XSLTPROC = /usr/bin/xsltproc --novalid --xinclude --nonet
241 LATEX = /usr/bin/latex
242 PDFLATEX = /usr/bin/pdflatex
247 ### DocBook -> man page
250 .SUFFIXES: .docbook .html .1 .2 .3 .4 .5 .6 .7 .8
253 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-docbook-html.xsl $<
256 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
259 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
262 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
265 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
268 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
271 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
274 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
277 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<