ignore some files
[tridge/bind9.git] / bin / nsupdate / Makefile
1 # Copyright (C) 2004, 2006-2008  Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 2000-2002  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.29 2008/08/29 23:47:22 tbox Exp $
17
18 srcdir =        .
19
20 top_srcdir =    ../..
21
22 VERSION=9.6.1-P2
23
24 # Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
25 # Copyright (C) 1999-2001  Internet Software Consortium.
26 #
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.
30 #
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.
38
39 # $Id: includes.in,v 1.21 2007/06/19 23:47:24 tbox Exp $
40
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
45 # headers.
46
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
53
54 ISCCC_INCLUDES = -I/home/tridge/project/bind9/lib/isccc/include \
55        -I${top_srcdir}/lib/isccc/include
56
57 ISCCFG_INCLUDES = -I/home/tridge/project/bind9/lib/isccfg/include \
58        -I${top_srcdir}/lib/isccfg/include
59
60 DNS_INCLUDES = -I/home/tridge/project/bind9/lib/dns/include \
61         -I${top_srcdir}/lib/dns/include
62
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
66
67 BIND9_INCLUDES = -I/home/tridge/project/bind9/lib/bind9/include \
68         -I${top_srcdir}/lib/bind9/include
69
70 TEST_INCLUDES = \
71         -I${top_srcdir}/lib/tests/include
72
73 CINCLUDES =     ${LWRES_INCLUDES} ${DNS_INCLUDES} ${BIND9_INCLUDES} \
74                 ${ISC_INCLUDES} -I/usr/include
75
76 CDEFINES =      -DGSSAPI
77 CWARNINGS =
78
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
84
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
90
91 DEPLIBS =       ${DNSDEPLIBS} ${BIND9DEPLIBS} ${ISCDEPLIBS} ${ISCCFGDEPLIBS}
92
93 LIBS =          ${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} ${ISCLIBS} ${ISCCFGLIBS} -lcap -lpthread  -lxml2
94
95 SUBDIRS =
96
97 TARGETS =       nsupdate
98
99 OBJS =          nsupdate.lo
100
101 UOBJS =
102
103 SRCS =          nsupdate.c
104
105 MANPAGES =      nsupdate.1
106
107 HTMLPAGES =     nsupdate.html
108
109 MANOBJS =       ${MANPAGES} ${HTMLPAGES}
110
111 # Copyright (C) 2004-2009  Internet Systems Consortium, Inc. ("ISC")
112 # Copyright (C) 1998-2003  Internet Software Consortium.
113 #
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.
117 #
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.
125
126 # $Id: rules.in,v 1.64.130.2 2009/01/10 23:46:57 tbox Exp $
127
128 ###
129 ### Common Makefile rules for BIND 9.
130 ###
131
132 ###
133 ### Paths
134 ###
135 ### Note: paths that vary by Makefile MUST NOT be listed
136 ### here, or they won't get expanded correctly.
137
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
145 localstatedir = /var
146 mandir =        $/share/man
147 datarootdir =   ${prefix}/share
148
149 DESTDIR =
150
151
152
153 top_builddir =  /home/tridge/project/bind9
154
155 ###
156 ### All
157 ###
158 ### Makefile may define:
159 ###     TARGETS
160
161 all: subdirs ${TARGETS}
162
163 ###
164 ### Subdirectories
165 ###
166 ### Makefile may define:
167 ###     SUBDIRS
168
169 ALL_SUBDIRS = ${SUBDIRS} nulldir
170
171 #
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.
175 #
176 subdirs:
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; \
181                 fi; \
182         done
183
184 install:: all
185
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; \
191                 fi; \
192         done
193
194 ###
195 ### C Programs
196 ###
197 ### Makefile must define
198 ###     CC
199 ### Makefile may define
200 ###     CFLAGS
201 ###     LDFLAGS
202 ###     CINCLUDES
203 ###     CDEFINES
204 ###     CWARNINGS
205 ### User may define externally
206 ###     EXT_CFLAGS
207
208 CC =            ccache gcc
209 CFLAGS =        -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
210 LDFLAGS =       
211 STD_CINCLUDES = 
212 STD_CDEFINES =   -D_GNU_SOURCE
213 STD_CWARNINGS =  -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing
214
215 BUILD_CC = ccache gcc
216 BUILD_CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
217 BUILD_CPPFLAGS =  -D_GNU_SOURCE 
218 BUILD_LDFLAGS = 
219 BUILD_LIBS = -lcap -lpthread  -lxml2
220
221 .SUFFIXES:
222 .SUFFIXES: .c .lo
223
224 ALWAYS_INCLUDES = -I${top_builddir}
225 ALWAYS_DEFINES = -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
226 ALWAYS_WARNINGS =
227
228 ALL_CPPFLAGS = \
229         ${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
230         ${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
231
232 ALL_CFLAGS = ${EXT_CFLAGS} ${ALL_CPPFLAGS} ${CFLAGS} \
233         ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
234
235 .c.lo:
236         ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $<
237
238 SHELL = /bin/bash
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
243 PURIFY = 
244
245 MKDEP = ${SHELL} ${top_builddir}/make/mkdep
246
247 cleandir: distclean
248 superclean: maintainer-clean
249
250 clean distclean maintainer-clean::
251         rm -f *.lo *.o *.lo *.la core *.core .depend
252         rm -rf .libs
253
254 distclean maintainer-clean::
255         rm -f Makefile
256
257 depend:
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; \
262                 fi; \
263         done
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}; \
270                         ${DEPENDEXTRA} \
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}; \
274                         ${DEPENDEXTRA} \
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}; \
278                         ${DEPENDEXTRA} \
279                 fi \
280         else \
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}; \
286                         ${DEPENDEXTRA} \
287                 elif [ X"${SRCS}" != X ] ; then \
288                         echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
289                         ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
290                         ${DEPENDEXTRA} \
291                 elif [ X"${PSRCS}" != X ] ; then \
292                         echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
293                         ${MKDEP} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
294                         ${DEPENDEXTRA} \
295                 fi \
296         fi
297
298 FORCE:
299
300 ###
301 ### Libraries
302 ###
303
304 AR =            /usr/bin/ar
305 ARFLAGS =       cruv
306 RANLIB =        ranlib
307
308 ###
309 ### Installation
310 ###
311
312 INSTALL =               /usr/bin/install -c
313 INSTALL_PROGRAM =       ${INSTALL}
314 LINK_PROGRAM =          ln -s
315 INSTALL_SCRIPT =        ${INSTALL}
316 INSTALL_DATA =          ${INSTALL} -m 644
317
318 ###
319 ### Programs used when generating documentation.  It's ok for these
320 ### not to exist when not generating documentation.
321 ###
322
323 XSLTPROC =              /usr/bin/xsltproc --novalid --xinclude --nonet
324 PERL =                  /usr/bin/perl
325 LATEX =                 /usr/bin/latex
326 PDFLATEX =              /usr/bin/pdflatex
327 W3M =                   /usr/bin/w3m
328
329 ###
330 ### DocBook -> HTML
331 ### DocBook -> man page
332 ###
333
334 .SUFFIXES: .docbook .html .1 .2 .3 .4 .5 .6 .7 .8
335
336 .docbook.html:
337         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-docbook-html.xsl $<
338
339 .docbook.1:
340         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
341
342 .docbook.2:
343         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
344
345 .docbook.3:
346         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
347
348 .docbook.4:
349         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
350
351 .docbook.5:
352         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
353
354 .docbook.6:
355         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
356
357 .docbook.7:
358         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
359
360 .docbook.8:
361         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
362
363 nsupdate: nsupdate.lo ${UOBJS} ${DEPLIBS}
364         ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ nsupdate.lo ${UOBJS} ${LIBS}
365
366 doc man:: ${MANOBJS}
367
368 docclean manclean maintainer-clean::
369         rm -f ${MANOBJS}
370
371 clean distclean::
372         rm -f ${TARGETS}
373
374 installdirs:
375         $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
376         $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
377
378 install:: nsupdate installdirs
379         ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} nsupdate ${DESTDIR}${bindir}
380         ${INSTALL_DATA} ${srcdir}/nsupdate.1 ${DESTDIR}${mandir}/man1