ignore some files
[tridge/bind9.git] / lib / isccc / include / 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.5 2007/06/19 23:47:22 tbox Exp $
17
18 srcdir =        .
19
20 top_srcdir =    ../../..
21
22 SUBDIRS =       isccc
23 TARGETS =
24
25 # Copyright (C) 2004-2009  Internet Systems Consortium, Inc. ("ISC")
26 # Copyright (C) 1998-2003  Internet Software Consortium.
27 #
28 # Permission to use, copy, modify, and/or distribute this software for any
29 # purpose with or without fee is hereby granted, provided that the above
30 # copyright notice and this permission notice appear in all copies.
31 #
32 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
33 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
34 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
35 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
36 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
37 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
38 # PERFORMANCE OF THIS SOFTWARE.
39
40 # $Id: rules.in,v 1.64.130.2 2009/01/10 23:46:57 tbox Exp $
41
42 ###
43 ### Common Makefile rules for BIND 9.
44 ###
45
46 ###
47 ### Paths
48 ###
49 ### Note: paths that vary by Makefile MUST NOT be listed
50 ### here, or they won't get expanded correctly.
51
52 prefix =        /home/tridge/project/bind9/prefix
53 exec_prefix =   ${prefix}
54 bindir =        ${exec_prefix}/bin
55 sbindir =       ${exec_prefix}/sbin
56 includedir =    ${prefix}/include
57 libdir =        ${exec_prefix}/lib
58 sysconfdir =    /etc/bind
59 localstatedir = /var
60 mandir =        $/share/man
61 datarootdir =   ${prefix}/share
62
63 DESTDIR =
64
65
66
67 top_builddir =  /home/tridge/project/bind9
68
69 ###
70 ### All
71 ###
72 ### Makefile may define:
73 ###     TARGETS
74
75 all: subdirs ${TARGETS}
76
77 ###
78 ### Subdirectories
79 ###
80 ### Makefile may define:
81 ###     SUBDIRS
82
83 ALL_SUBDIRS = ${SUBDIRS} nulldir
84
85 #
86 # We use a single-colon rule so that additional dependencies of
87 # subdirectories can be specified after the inclusion of this file.
88 # The "depend" target is treated the same way.
89 #
90 subdirs:
91         @for i in ${ALL_SUBDIRS}; do \
92                 if [ "$$i" != "nulldir" -a -d $$i ]; then \
93                         echo "making all in `pwd`/$$i"; \
94                         (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" all) || exit 1; \
95                 fi; \
96         done
97
98 install:: all
99
100 install clean distclean maintainer-clean doc docclean man manclean::
101         @for i in ${ALL_SUBDIRS}; do \
102                 if [ "$$i" != "nulldir" -a -d $$i ]; then \
103                         echo "making $@ in `pwd`/$$i"; \
104                         (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
105                 fi; \
106         done
107
108 ###
109 ### C Programs
110 ###
111 ### Makefile must define
112 ###     CC
113 ### Makefile may define
114 ###     CFLAGS
115 ###     LDFLAGS
116 ###     CINCLUDES
117 ###     CDEFINES
118 ###     CWARNINGS
119 ### User may define externally
120 ###     EXT_CFLAGS
121
122 CC =            ccache gcc
123 CFLAGS =        -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
124 LDFLAGS =       
125 STD_CINCLUDES = 
126 STD_CDEFINES =   -D_GNU_SOURCE
127 STD_CWARNINGS =  -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing
128
129 BUILD_CC = ccache gcc
130 BUILD_CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
131 BUILD_CPPFLAGS =  -D_GNU_SOURCE 
132 BUILD_LDFLAGS = 
133 BUILD_LIBS = -lcap -lpthread  -lxml2
134
135 .SUFFIXES:
136 .SUFFIXES: .c .lo
137
138 ALWAYS_INCLUDES = -I${top_builddir}
139 ALWAYS_DEFINES = -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
140 ALWAYS_WARNINGS =
141
142 ALL_CPPFLAGS = \
143         ${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
144         ${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
145
146 ALL_CFLAGS = ${EXT_CFLAGS} ${ALL_CPPFLAGS} ${CFLAGS} \
147         ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
148
149 .c.lo:
150         ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $<
151
152 SHELL = /bin/bash
153 LIBTOOL = $(SHELL) $(top_builddir)/libtool
154 LIBTOOL_MODE_COMPILE = ${LIBTOOL} --mode=compile
155 LIBTOOL_MODE_INSTALL = ${LIBTOOL} --mode=install
156 LIBTOOL_MODE_LINK = ${LIBTOOL} --mode=link
157 PURIFY = 
158
159 MKDEP = ${SHELL} ${top_builddir}/make/mkdep
160
161 cleandir: distclean
162 superclean: maintainer-clean
163
164 clean distclean maintainer-clean::
165         rm -f *.lo *.o *.lo *.la core *.core .depend
166         rm -rf .libs
167
168 distclean maintainer-clean::
169         rm -f Makefile
170
171 depend:
172         @for i in ${ALL_SUBDIRS}; do \
173                 if [ "$$i" != "nulldir" -a -d $$i ]; then \
174                         echo "making depend in `pwd`/$$i"; \
175                         (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
176                 fi; \
177         done
178         @if [ X"${VPATH}" != X ] ; then \
179                 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
180                         echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
181                         ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
182                         echo ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
183                         ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
184                         ${DEPENDEXTRA} \
185                 elif [ X"${SRCS}" != X ] ; then \
186                         echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
187                         ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
188                         ${DEPENDEXTRA} \
189                 elif [ X"${PSRCS}" != X ] ; then \
190                         echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
191                         ${MKDEP} -vpath ${VPATH} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
192                         ${DEPENDEXTRA} \
193                 fi \
194         else \
195                 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
196                         echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
197                         ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
198                         echo ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
199                         ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
200                         ${DEPENDEXTRA} \
201                 elif [ X"${SRCS}" != X ] ; then \
202                         echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
203                         ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
204                         ${DEPENDEXTRA} \
205                 elif [ X"${PSRCS}" != X ] ; then \
206                         echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
207                         ${MKDEP} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
208                         ${DEPENDEXTRA} \
209                 fi \
210         fi
211
212 FORCE:
213
214 ###
215 ### Libraries
216 ###
217
218 AR =            /usr/bin/ar
219 ARFLAGS =       cruv
220 RANLIB =        ranlib
221
222 ###
223 ### Installation
224 ###
225
226 INSTALL =               /usr/bin/install -c
227 INSTALL_PROGRAM =       ${INSTALL}
228 LINK_PROGRAM =          ln -s
229 INSTALL_SCRIPT =        ${INSTALL}
230 INSTALL_DATA =          ${INSTALL} -m 644
231
232 ###
233 ### Programs used when generating documentation.  It's ok for these
234 ### not to exist when not generating documentation.
235 ###
236
237 XSLTPROC =              /usr/bin/xsltproc --novalid --xinclude --nonet
238 PERL =                  /usr/bin/perl
239 LATEX =                 /usr/bin/latex
240 PDFLATEX =              /usr/bin/pdflatex
241 W3M =                   /usr/bin/w3m
242
243 ###
244 ### DocBook -> HTML
245 ### DocBook -> man page
246 ###
247
248 .SUFFIXES: .docbook .html .1 .2 .3 .4 .5 .6 .7 .8
249
250 .docbook.html:
251         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-docbook-html.xsl $<
252
253 .docbook.1:
254         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
255
256 .docbook.2:
257         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
258
259 .docbook.3:
260         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
261
262 .docbook.4:
263         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
264
265 .docbook.5:
266         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
267
268 .docbook.6:
269         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
270
271 .docbook.7:
272         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
273
274 .docbook.8:
275         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<