1 # Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 2000, 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.11 2007/06/19 23:47:13 tbox Exp $
18 # This Makefile is a placeholder. It exists merely to make
19 # sure that its directory gets created in the object directory
20 # tree when doing a build using separate object directories.
26 SUBDIRS = arm misc xsl doxygen
29 # Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
30 # Copyright (C) 1998-2003 Internet Software Consortium.
32 # Permission to use, copy, modify, and/or distribute this software for any
33 # purpose with or without fee is hereby granted, provided that the above
34 # copyright notice and this permission notice appear in all copies.
36 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
37 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
38 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
39 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
40 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
41 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
42 # PERFORMANCE OF THIS SOFTWARE.
44 # $Id: rules.in,v 1.64.130.2 2009/01/10 23:46:57 tbox Exp $
47 ### Common Makefile rules for BIND 9.
53 ### Note: paths that vary by Makefile MUST NOT be listed
54 ### here, or they won't get expanded correctly.
56 prefix = /home/tridge/project/bind9/prefix
57 exec_prefix = ${prefix}
58 bindir = ${exec_prefix}/bin
59 sbindir = ${exec_prefix}/sbin
60 includedir = ${prefix}/include
61 libdir = ${exec_prefix}/lib
62 sysconfdir = /etc/bind
65 datarootdir = ${prefix}/share
71 top_builddir = /home/tridge/project/bind9
76 ### Makefile may define:
79 all: subdirs ${TARGETS}
84 ### Makefile may define:
87 ALL_SUBDIRS = ${SUBDIRS} nulldir
90 # We use a single-colon rule so that additional dependencies of
91 # subdirectories can be specified after the inclusion of this file.
92 # The "depend" target is treated the same way.
95 @for i in ${ALL_SUBDIRS}; do \
96 if [ "$$i" != "nulldir" -a -d $$i ]; then \
97 echo "making all in `pwd`/$$i"; \
98 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" all) || exit 1; \
104 install clean distclean maintainer-clean doc docclean man manclean::
105 @for i in ${ALL_SUBDIRS}; do \
106 if [ "$$i" != "nulldir" -a -d $$i ]; then \
107 echo "making $@ in `pwd`/$$i"; \
108 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
115 ### Makefile must define
117 ### Makefile may define
123 ### User may define externally
127 CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
130 STD_CDEFINES = -D_GNU_SOURCE
131 STD_CWARNINGS = -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing
133 BUILD_CC = ccache gcc
134 BUILD_CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
135 BUILD_CPPFLAGS = -D_GNU_SOURCE
137 BUILD_LIBS = -lcap -lpthread -lxml2
142 ALWAYS_INCLUDES = -I${top_builddir}
143 ALWAYS_DEFINES = -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
147 ${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
148 ${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
150 ALL_CFLAGS = ${EXT_CFLAGS} ${ALL_CPPFLAGS} ${CFLAGS} \
151 ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
154 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $<
157 LIBTOOL = $(SHELL) $(top_builddir)/libtool
158 LIBTOOL_MODE_COMPILE = ${LIBTOOL} --mode=compile
159 LIBTOOL_MODE_INSTALL = ${LIBTOOL} --mode=install
160 LIBTOOL_MODE_LINK = ${LIBTOOL} --mode=link
163 MKDEP = ${SHELL} ${top_builddir}/make/mkdep
166 superclean: maintainer-clean
168 clean distclean maintainer-clean::
169 rm -f *.lo *.o *.lo *.la core *.core .depend
172 distclean maintainer-clean::
176 @for i in ${ALL_SUBDIRS}; do \
177 if [ "$$i" != "nulldir" -a -d $$i ]; then \
178 echo "making depend in `pwd`/$$i"; \
179 (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
182 @if [ X"${VPATH}" != X ] ; then \
183 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
184 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
185 ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
186 echo ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
187 ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
189 elif [ X"${SRCS}" != X ] ; then \
190 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
191 ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
193 elif [ X"${PSRCS}" != X ] ; then \
194 echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
195 ${MKDEP} -vpath ${VPATH} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
199 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
200 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
201 ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
202 echo ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
203 ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
205 elif [ X"${SRCS}" != X ] ; then \
206 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
207 ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
209 elif [ X"${PSRCS}" != X ] ; then \
210 echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
211 ${MKDEP} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
230 INSTALL = /usr/bin/install -c
231 INSTALL_PROGRAM = ${INSTALL}
233 INSTALL_SCRIPT = ${INSTALL}
234 INSTALL_DATA = ${INSTALL} -m 644
237 ### Programs used when generating documentation. It's ok for these
238 ### not to exist when not generating documentation.
241 XSLTPROC = /usr/bin/xsltproc --novalid --xinclude --nonet
243 LATEX = /usr/bin/latex
244 PDFLATEX = /usr/bin/pdflatex
249 ### DocBook -> man page
252 .SUFFIXES: .docbook .html .1 .2 .3 .4 .5 .6 .7 .8
255 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-docbook-html.xsl $<
258 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
261 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
264 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
267 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
270 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
273 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
276 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
279 ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<