]> CyberLeo.Net >> Repos - FreeBSD/releng/9.3.git/blob - contrib/bind9/lib/dns/Makefile.in
Fix BIND remote Denial of Service vulnerability. [SA-16:34]
[FreeBSD/releng/9.3.git] / contrib / bind9 / lib / dns / Makefile.in
1 # Copyright (C) 2004-2013  Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 1998-2003  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.180 2011/10/11 00:09:03 each Exp $
17
18 srcdir =        @srcdir@
19 VPATH =         @srcdir@
20 top_srcdir =    @top_srcdir@
21
22 # Attempt to disable parallel processing.
23 .NOTPARALLEL:
24 .NO_PARALLEL:
25
26 @BIND9_VERSION@
27
28 @LIBDNS_API@
29
30 @BIND9_MAKE_INCLUDES@
31
32 USE_ISC_SPNEGO = @USE_ISC_SPNEGO@
33
34 CINCLUDES =     -I. -Iinclude ${DNS_INCLUDES} \
35                 ${ISC_INCLUDES} @DST_OPENSSL_INC@ @DST_GSSAPI_INC@
36
37 CDEFINES =      -DUSE_MD5 @USE_OPENSSL@ @USE_GSSAPI@ ${USE_ISC_SPNEGO}
38
39 CWARNINGS =
40
41 ISCLIBS =       ../../lib/isc/libisc.@A@
42
43 ISCDEPLIBS =    ../../lib/isc/libisc.@A@
44
45 LIBS =          @LIBS@
46
47 # Alphabetically
48
49 OPENSSLGOSTLINKOBJS = opensslgost_link.@O@
50 OPENSSLLINKOBJS = openssl_link.@O@ openssldh_link.@O@ openssldsa_link.@O@ \
51                   opensslecdsa_link.@O@ @OPENSSLGOSTLINKOBJS@ \
52                   opensslrsa_link.@O@
53
54 DSTOBJS =       @DST_EXTRA_OBJS@ @OPENSSLLINKOBJS@ \
55                 dst_api.@O@ dst_lib.@O@ dst_parse.@O@ dst_result.@O@ \
56                 gssapi_link.@O@ gssapictx.@O@ hmac_link.@O@ key.@O@ 
57
58 RRLOBJS =       rrl.@O@
59
60 # Alphabetically
61 DNSOBJS =       acache.@O@ acl.@O@ adb.@O@ byaddr.@O@ \
62                 cache.@O@ callbacks.@O@ clientinfo.@O@ compress.@O@ \
63                 db.@O@ dbiterator.@O@ dbtable.@O@ diff.@O@ dispatch.@O@ \
64                 dlz.@O@ dns64.@O@ dnssec.@O@ ds.@O@ forward.@O@ iptable.@O@ \
65                 journal.@O@ keydata.@O@ keytable.@O@ \
66                 lib.@O@ log.@O@ lookup.@O@ \
67                 master.@O@ masterdump.@O@ message.@O@ \
68                 name.@O@ ncache.@O@ nsec.@O@ nsec3.@O@ order.@O@ peer.@O@ \
69                 portlist.@O@ private.@O@ \
70                 rbt.@O@ rbtdb.@O@ rbtdb64.@O@ rcode.@O@ rdata.@O@ \
71                 rdatalist.@O@ rdataset.@O@ rdatasetiter.@O@ rdataslab.@O@ \
72                 request.@O@ resolver.@O@ result.@O@ rootns.@O@ \
73                 rpz.@O@ rriterator.@O@ sdb.@O@ \
74                 sdlz.@O@ soa.@O@ ssu.@O@ ssu_external.@O@ \
75                 stats.@O@ tcpmsg.@O@ time.@O@ timer.@O@ tkey.@O@ \
76                 tsec.@O@ tsig.@O@ ttl.@O@ update.@O@ validator.@O@ \
77                 version.@O@ view.@O@ xfrin.@O@ zone.@O@ zonekey.@O@ zt.@O@
78
79 OBJS=           ${DNSOBJS} ${OTHEROBJS} ${DSTOBJS} @RRLLINKOBJS@
80
81 # Alphabetically
82 OPENSSLGOSTLINKSRCS = opensslgost_link.c
83 OPENSSLLINKSRCS = openssl_link.c openssldh_link.c openssldsa_link.c \
84                   opensslecdsa_link.c @OPENSSLGOSTLINKSRCS@ opensslrsa_link.c
85
86 DSTSRCS =       @DST_EXTRA_SRCS@ @OPENSSLLINKSRCS@ \
87                 dst_api.c dst_lib.c dst_parse.c \
88                 dst_result.c gssapi_link.c gssapictx.c \
89                 hmac_link.c key.c
90
91 DNSSRCS =       acache.c acl.c adb.c byaddr.c \
92                 cache.c callbacks.c clientinfo.c compress.c \
93                 db.c dbiterator.c dbtable.c diff.c dispatch.c \
94                 dlz.c dns64.c dnssec.c ds.c forward.c iptable.c journal.c \
95                 keydata.c keytable.c lib.c log.c lookup.c \
96                 master.c masterdump.c message.c \
97                 name.c ncache.c nsec.c nsec3.c order.c peer.c portlist.c \
98                 rbt.c rbtdb.c rbtdb64.c rcode.c rdata.c rdatalist.c \
99                 rdataset.c rdatasetiter.c rdataslab.c request.c \
100                 resolver.c result.c rootns.c rpz.c rriterator.c \
101                 sdb.c sdlz.c soa.c ssu.c ssu_external.c \
102                 stats.c tcpmsg.c time.c timer.c tkey.c \
103                 tsec.c tsig.c ttl.c update.c validator.c \
104                 version.c view.c xfrin.c zone.c zonekey.c zt.c ${OTHERSRCS}
105
106 RRLSRCS =       rrl.c
107
108 SRCS = ${DSTSRCS} ${DNSSRCS} @RRLLINKSRCS@
109
110 SUBDIRS =       include
111 TARGETS =       include/dns/enumtype.h include/dns/enumclass.h \
112                 include/dns/rdatastruct.h timestamp
113 TESTDIRS =      @UNITTESTS@
114
115 DEPENDEXTRA =   ./gen -F include/dns/rdatastruct.h \
116                 -s ${srcdir} -d >> Makefile ;
117
118 @BIND9_MAKE_RULES@
119
120 version.@O@: version.c
121         ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
122                 -DVERSION=\"${VERSION}\" \
123                 -DLIBINTERFACE=${LIBINTERFACE} \
124                 -DLIBREVISION=${LIBREVISION} \
125                 -DLIBAGE=${LIBAGE} \
126                 -c ${srcdir}/version.c
127
128 libdns.@SA@: ${OBJS}
129         ${AR} ${ARFLAGS} $@ ${OBJS}
130         ${RANLIB} $@
131
132 libdns.la: ${OBJS}
133         ${LIBTOOL_MODE_LINK} \
134                 ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libdns.la -rpath ${libdir} \
135                 -version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
136                 ${OBJS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
137
138 timestamp: libdns.@A@
139         touch timestamp
140
141 installdirs:
142         $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
143
144 install:: timestamp installdirs
145         ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libdns.@A@ ${DESTDIR}${libdir}
146
147 clean distclean::
148         rm -f libdns.@A@ timestamp
149         rm -f gen code.h include/dns/enumtype.h include/dns/enumclass.h
150         rm -f include/dns/rdatastruct.h
151
152 newrr::
153         rm -f code.h include/dns/enumtype.h include/dns/enumclass.h
154         rm -f include/dns/rdatastruct.h
155
156 include: include/dns/enumtype.h include/dns/enumclass.h \
157         include/dns/rdatastruct.h
158
159 rdata.@O@: code.h
160
161 include/dns/enumtype.h: gen
162         ./gen -s ${srcdir} -t > $@
163
164 include/dns/enumclass.h: gen
165         ./gen -s ${srcdir} -c > $@
166
167 include/dns/rdatastruct.h: gen \
168                 ${srcdir}/rdata/rdatastructpre.h \
169                 ${srcdir}/rdata/rdatastructsuf.h
170         ./gen -s ${srcdir} -i \
171                 -P ${srcdir}/rdata/rdatastructpre.h \
172                 -S ${srcdir}/rdata/rdatastructsuf.h > $@
173
174 code.h: gen
175         ./gen -s ${srcdir} > code.h
176
177 gen: gen.c
178         ${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
179         ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c ${BUILD_LIBS}
180
181 rbtdb64.@O@: rbtdb.c
182
183 depend: include/dns/enumtype.h include/dns/enumclass.h \
184         include/dns/rdatastruct.h code.h
185 subdirs: include/dns/enumtype.h include/dns/enumclass.h \
186         include/dns/rdatastruct.h code.h
187 ${OBJS}: include/dns/enumtype.h include/dns/enumclass.h \
188         include/dns/rdatastruct.h
189
190 spnego.@O@: spnego_asn1.c spnego.h