ignore some files
[tridge/bind9.git] / lib / tests / include / tests / Makefile
1 # Copyright (C) 2004, 2007  Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 1999-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.9 2007/06/19 23:47:24 tbox Exp $
17
18 srcdir =        .
19
20 top_srcdir =    ../../../..
21
22 VERSION=9.6.1-P2
23
24 SUBDIRS =
25 TARGETS =
26
27 # Copyright (C) 2004-2009  Internet Systems Consortium, Inc. ("ISC")
28 # Copyright (C) 1998-2003  Internet Software Consortium.
29 #
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.
33 #
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.
41
42 # $Id: rules.in,v 1.64.130.2 2009/01/10 23:46:57 tbox Exp $
43
44 ###
45 ### Common Makefile rules for BIND 9.
46 ###
47
48 ###
49 ### Paths
50 ###
51 ### Note: paths that vary by Makefile MUST NOT be listed
52 ### here, or they won't get expanded correctly.
53
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
61 localstatedir = /var
62 mandir =        $/share/man
63 datarootdir =   ${prefix}/share
64
65 DESTDIR =
66
67
68
69 top_builddir =  /home/tridge/project/bind9
70
71 ###
72 ### All
73 ###
74 ### Makefile may define:
75 ###     TARGETS
76
77 all: subdirs ${TARGETS}
78
79 ###
80 ### Subdirectories
81 ###
82 ### Makefile may define:
83 ###     SUBDIRS
84
85 ALL_SUBDIRS = ${SUBDIRS} nulldir
86
87 #
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.
91 #
92 subdirs:
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; \
97                 fi; \
98         done
99
100 install:: all
101
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; \
107                 fi; \
108         done
109
110 ###
111 ### C Programs
112 ###
113 ### Makefile must define
114 ###     CC
115 ### Makefile may define
116 ###     CFLAGS
117 ###     LDFLAGS
118 ###     CINCLUDES
119 ###     CDEFINES
120 ###     CWARNINGS
121 ### User may define externally
122 ###     EXT_CFLAGS
123
124 CC =            ccache gcc
125 CFLAGS =        -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
126 LDFLAGS =       
127 STD_CINCLUDES = 
128 STD_CDEFINES =   -D_GNU_SOURCE
129 STD_CWARNINGS =  -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing
130
131 BUILD_CC = ccache gcc
132 BUILD_CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
133 BUILD_CPPFLAGS =  -D_GNU_SOURCE 
134 BUILD_LDFLAGS = 
135 BUILD_LIBS = -lcap -lpthread  -lxml2
136
137 .SUFFIXES:
138 .SUFFIXES: .c .lo
139
140 ALWAYS_INCLUDES = -I${top_builddir}
141 ALWAYS_DEFINES = -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
142 ALWAYS_WARNINGS =
143
144 ALL_CPPFLAGS = \
145         ${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
146         ${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
147
148 ALL_CFLAGS = ${EXT_CFLAGS} ${ALL_CPPFLAGS} ${CFLAGS} \
149         ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
150
151 .c.lo:
152         ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $<
153
154 SHELL = /bin/bash
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
159 PURIFY = 
160
161 MKDEP = ${SHELL} ${top_builddir}/make/mkdep
162
163 cleandir: distclean
164 superclean: maintainer-clean
165
166 clean distclean maintainer-clean::
167         rm -f *.lo *.o *.lo *.la core *.core .depend
168         rm -rf .libs
169
170 distclean maintainer-clean::
171         rm -f Makefile
172
173 depend:
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; \
178                 fi; \
179         done
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}; \
186                         ${DEPENDEXTRA} \
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}; \
190                         ${DEPENDEXTRA} \
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}; \
194                         ${DEPENDEXTRA} \
195                 fi \
196         else \
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}; \
202                         ${DEPENDEXTRA} \
203                 elif [ X"${SRCS}" != X ] ; then \
204                         echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
205                         ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
206                         ${DEPENDEXTRA} \
207                 elif [ X"${PSRCS}" != X ] ; then \
208                         echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
209                         ${MKDEP} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
210                         ${DEPENDEXTRA} \
211                 fi \
212         fi
213
214 FORCE:
215
216 ###
217 ### Libraries
218 ###
219
220 AR =            /usr/bin/ar
221 ARFLAGS =       cruv
222 RANLIB =        ranlib
223
224 ###
225 ### Installation
226 ###
227
228 INSTALL =               /usr/bin/install -c
229 INSTALL_PROGRAM =       ${INSTALL}
230 LINK_PROGRAM =          ln -s
231 INSTALL_SCRIPT =        ${INSTALL}
232 INSTALL_DATA =          ${INSTALL} -m 644
233
234 ###
235 ### Programs used when generating documentation.  It's ok for these
236 ### not to exist when not generating documentation.
237 ###
238
239 XSLTPROC =              /usr/bin/xsltproc --novalid --xinclude --nonet
240 PERL =                  /usr/bin/perl
241 LATEX =                 /usr/bin/latex
242 PDFLATEX =              /usr/bin/pdflatex
243 W3M =                   /usr/bin/w3m
244
245 ###
246 ### DocBook -> HTML
247 ### DocBook -> man page
248 ###
249
250 .SUFFIXES: .docbook .html .1 .2 .3 .4 .5 .6 .7 .8
251
252 .docbook.html:
253         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-docbook-html.xsl $<
254
255 .docbook.1:
256         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
257
258 .docbook.2:
259         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
260
261 .docbook.3:
262         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
263
264 .docbook.4:
265         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
266
267 .docbook.5:
268         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
269
270 .docbook.6:
271         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
272
273 .docbook.7:
274         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
275
276 .docbook.8:
277         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<