ignore some files
[tridge/bind9.git] / lib / bind9 / Makefile
1 # Copyright (C) 2004, 2007  Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 2001  Internet Software Consortium.
3 #
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.
7 #
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.
15
16 # $Id: Makefile.in,v 1.11 2007/06/19 23:47:16 tbox Exp $
17
18 srcdir =        .
19
20 top_srcdir =    ../..
21
22 VERSION=9.6.1-P2
23
24 LIBINTERFACE = 50
25 LIBREVISION = 3
26 LIBAGE = 0
27
28 # Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
29 # Copyright (C) 1999-2001  Internet Software Consortium.
30 #
31 # Permission to use, copy, modify, and/or distribute this software for any
32 # purpose with or without fee is hereby granted, provided that the above
33 # copyright notice and this permission notice appear in all copies.
34 #
35 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
36 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
38 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
40 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41 # PERFORMANCE OF THIS SOFTWARE.
42
43 # $Id: includes.in,v 1.21 2007/06/19 23:47:24 tbox Exp $
44
45 # Search for machine-generated header files in the build tree,
46 # and for normal headers in the source tree (${top_srcdir}).
47 # We only need to look in OS-specific subdirectories for the
48 # latter case, because there are no machine-generated OS-specific
49 # headers.
50
51 ISC_INCLUDES = -I/home/tridge/project/bind9/lib/isc/include \
52         -I${top_srcdir}/lib/isc \
53         -I${top_srcdir}/lib/isc/include \
54         -I${top_srcdir}/lib/isc/unix/include \
55         -I${top_srcdir}/lib/isc/pthreads/include \
56         -I${top_srcdir}/lib/isc/x86_32/include
57
58 ISCCC_INCLUDES = -I/home/tridge/project/bind9/lib/isccc/include \
59        -I${top_srcdir}/lib/isccc/include
60
61 ISCCFG_INCLUDES = -I/home/tridge/project/bind9/lib/isccfg/include \
62        -I${top_srcdir}/lib/isccfg/include
63
64 DNS_INCLUDES = -I/home/tridge/project/bind9/lib/dns/include \
65         -I${top_srcdir}/lib/dns/include
66
67 LWRES_INCLUDES = -I/home/tridge/project/bind9/lib/lwres/include \
68         -I${top_srcdir}/lib/lwres/unix/include \
69         -I${top_srcdir}/lib/lwres/include
70
71 BIND9_INCLUDES = -I/home/tridge/project/bind9/lib/bind9/include \
72         -I${top_srcdir}/lib/bind9/include
73
74 TEST_INCLUDES = \
75         -I${top_srcdir}/lib/tests/include
76
77 CINCLUDES =     -I. ${BIND9_INCLUDES} ${DNS_INCLUDES} ${ISC_INCLUDES} \
78                 ${ISCCFG_INCLUDES}
79
80 CDEFINES =
81 CWARNINGS =
82
83 ISCLIBS =       ../../lib/isc/libisc.la
84 ISCCFGLIBS =    ../../lib/isccfg/libisccfg.la
85 DNSLIBS =    ../../lib/dns/libdns.la
86
87 ISCDEPLIBS =    ../../lib/isc/libisc.la
88 ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.la
89 DNSDEPLIBS =    ../../lib/dns/libdns.la
90
91 LIBS =          -lcap -lpthread  -lxml2
92
93 SUBDIRS =       include
94
95 # Alphabetically
96 OBJS =          check.lo getaddresses.lo version.lo
97
98 # Alphabetically
99 SRCS =          check.c getaddresses.c version.c
100
101 TARGETS =       timestamp
102
103 # Copyright (C) 2004-2009  Internet Systems Consortium, Inc. ("ISC")
104 # Copyright (C) 1998-2003  Internet Software Consortium.
105 #
106 # Permission to use, copy, modify, and/or distribute this software for any
107 # purpose with or without fee is hereby granted, provided that the above
108 # copyright notice and this permission notice appear in all copies.
109 #
110 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
111 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
112 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
113 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
114 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
115 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
116 # PERFORMANCE OF THIS SOFTWARE.
117
118 # $Id: rules.in,v 1.64.130.2 2009/01/10 23:46:57 tbox Exp $
119
120 ###
121 ### Common Makefile rules for BIND 9.
122 ###
123
124 ###
125 ### Paths
126 ###
127 ### Note: paths that vary by Makefile MUST NOT be listed
128 ### here, or they won't get expanded correctly.
129
130 prefix =        /home/tridge/project/bind9/prefix
131 exec_prefix =   ${prefix}
132 bindir =        ${exec_prefix}/bin
133 sbindir =       ${exec_prefix}/sbin
134 includedir =    ${prefix}/include
135 libdir =        ${exec_prefix}/lib
136 sysconfdir =    /etc/bind
137 localstatedir = /var
138 mandir =        $/share/man
139 datarootdir =   ${prefix}/share
140
141 DESTDIR =
142
143
144
145 top_builddir =  /home/tridge/project/bind9
146
147 ###
148 ### All
149 ###
150 ### Makefile may define:
151 ###     TARGETS
152
153 all: subdirs ${TARGETS}
154
155 ###
156 ### Subdirectories
157 ###
158 ### Makefile may define:
159 ###     SUBDIRS
160
161 ALL_SUBDIRS = ${SUBDIRS} nulldir
162
163 #
164 # We use a single-colon rule so that additional dependencies of
165 # subdirectories can be specified after the inclusion of this file.
166 # The "depend" target is treated the same way.
167 #
168 subdirs:
169         @for i in ${ALL_SUBDIRS}; do \
170                 if [ "$$i" != "nulldir" -a -d $$i ]; then \
171                         echo "making all in `pwd`/$$i"; \
172                         (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" all) || exit 1; \
173                 fi; \
174         done
175
176 install:: all
177
178 install clean distclean maintainer-clean doc docclean man manclean::
179         @for i in ${ALL_SUBDIRS}; do \
180                 if [ "$$i" != "nulldir" -a -d $$i ]; then \
181                         echo "making $@ in `pwd`/$$i"; \
182                         (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
183                 fi; \
184         done
185
186 ###
187 ### C Programs
188 ###
189 ### Makefile must define
190 ###     CC
191 ### Makefile may define
192 ###     CFLAGS
193 ###     LDFLAGS
194 ###     CINCLUDES
195 ###     CDEFINES
196 ###     CWARNINGS
197 ### User may define externally
198 ###     EXT_CFLAGS
199
200 CC =            ccache gcc
201 CFLAGS =        -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
202 LDFLAGS =       
203 STD_CINCLUDES = 
204 STD_CDEFINES =   -D_GNU_SOURCE
205 STD_CWARNINGS =  -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing
206
207 BUILD_CC = ccache gcc
208 BUILD_CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
209 BUILD_CPPFLAGS =  -D_GNU_SOURCE 
210 BUILD_LDFLAGS = 
211 BUILD_LIBS = -lcap -lpthread  -lxml2
212
213 .SUFFIXES:
214 .SUFFIXES: .c .lo
215
216 ALWAYS_INCLUDES = -I${top_builddir}
217 ALWAYS_DEFINES = -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
218 ALWAYS_WARNINGS =
219
220 ALL_CPPFLAGS = \
221         ${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
222         ${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
223
224 ALL_CFLAGS = ${EXT_CFLAGS} ${ALL_CPPFLAGS} ${CFLAGS} \
225         ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
226
227 .c.lo:
228         ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $<
229
230 SHELL = /bin/bash
231 LIBTOOL = $(SHELL) $(top_builddir)/libtool
232 LIBTOOL_MODE_COMPILE = ${LIBTOOL} --mode=compile
233 LIBTOOL_MODE_INSTALL = ${LIBTOOL} --mode=install
234 LIBTOOL_MODE_LINK = ${LIBTOOL} --mode=link
235 PURIFY = 
236
237 MKDEP = ${SHELL} ${top_builddir}/make/mkdep
238
239 cleandir: distclean
240 superclean: maintainer-clean
241
242 clean distclean maintainer-clean::
243         rm -f *.lo *.o *.lo *.la core *.core .depend
244         rm -rf .libs
245
246 distclean maintainer-clean::
247         rm -f Makefile
248
249 depend:
250         @for i in ${ALL_SUBDIRS}; do \
251                 if [ "$$i" != "nulldir" -a -d $$i ]; then \
252                         echo "making depend in `pwd`/$$i"; \
253                         (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
254                 fi; \
255         done
256         @if [ X"${VPATH}" != X ] ; then \
257                 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
258                         echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
259                         ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
260                         echo ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
261                         ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
262                         ${DEPENDEXTRA} \
263                 elif [ X"${SRCS}" != X ] ; then \
264                         echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
265                         ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
266                         ${DEPENDEXTRA} \
267                 elif [ X"${PSRCS}" != X ] ; then \
268                         echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
269                         ${MKDEP} -vpath ${VPATH} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
270                         ${DEPENDEXTRA} \
271                 fi \
272         else \
273                 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
274                         echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
275                         ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
276                         echo ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
277                         ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
278                         ${DEPENDEXTRA} \
279                 elif [ X"${SRCS}" != X ] ; then \
280                         echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
281                         ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
282                         ${DEPENDEXTRA} \
283                 elif [ X"${PSRCS}" != X ] ; then \
284                         echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
285                         ${MKDEP} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
286                         ${DEPENDEXTRA} \
287                 fi \
288         fi
289
290 FORCE:
291
292 ###
293 ### Libraries
294 ###
295
296 AR =            /usr/bin/ar
297 ARFLAGS =       cruv
298 RANLIB =        ranlib
299
300 ###
301 ### Installation
302 ###
303
304 INSTALL =               /usr/bin/install -c
305 INSTALL_PROGRAM =       ${INSTALL}
306 LINK_PROGRAM =          ln -s
307 INSTALL_SCRIPT =        ${INSTALL}
308 INSTALL_DATA =          ${INSTALL} -m 644
309
310 ###
311 ### Programs used when generating documentation.  It's ok for these
312 ### not to exist when not generating documentation.
313 ###
314
315 XSLTPROC =              /usr/bin/xsltproc --novalid --xinclude --nonet
316 PERL =                  /usr/bin/perl
317 LATEX =                 /usr/bin/latex
318 PDFLATEX =              /usr/bin/pdflatex
319 W3M =                   /usr/bin/w3m
320
321 ###
322 ### DocBook -> HTML
323 ### DocBook -> man page
324 ###
325
326 .SUFFIXES: .docbook .html .1 .2 .3 .4 .5 .6 .7 .8
327
328 .docbook.html:
329         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-docbook-html.xsl $<
330
331 .docbook.1:
332         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
333
334 .docbook.2:
335         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
336
337 .docbook.3:
338         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
339
340 .docbook.4:
341         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
342
343 .docbook.5:
344         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
345
346 .docbook.6:
347         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
348
349 .docbook.7:
350         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
351
352 .docbook.8:
353         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
354
355 version.lo: version.c
356         ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
357                 -DVERSION=\"${VERSION}\" \
358                 -DLIBINTERFACE=${LIBINTERFACE} \
359                 -DLIBREVISION=${LIBREVISION} \
360                 -DLIBAGE=${LIBAGE} \
361                 -c ${srcdir}/version.c
362
363 libbind9.a: ${OBJS}
364         ${AR} ${ARFLAGS} $@ ${OBJS}
365         ${RANLIB} $@
366
367 libbind9.la: ${OBJS} ${ISCCFGDEPLIBS} ${ISCDEPLIBS} ${DNSDEPLIBS}
368         ${LIBTOOL_MODE_LINK} \
369                 ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libbind9.la -rpath ${libdir} \
370                 -version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
371                 ${OBJS} ${DNSLIBS} ${ISCCFGLIBS} ${ISCLIBS} ${LIBS}
372
373 timestamp: libbind9.la
374         touch timestamp
375
376 installdirs:
377         $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
378
379 install:: timestamp installdirs
380         ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libbind9.la ${DESTDIR}${libdir}
381
382 clean distclean::
383         rm -f libbind9.la timestamp