]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bind9/lib/dns/Makefile.in
Update to BIND 9.6.3, the latest from ISC on the 9.6 branch.
[FreeBSD/FreeBSD.git] / contrib / bind9 / lib / dns / Makefile.in
1 # Copyright (C) 2004-2008, 2010  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.163.50.2 2010-06-09 23:48:16 tbox 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_PKCS11@ @USE_GSSAPI@ \
38                 ${USE_ISC_SPNEGO}
39
40 CWARNINGS =
41
42 ISCLIBS =       ../../lib/isc/libisc.@A@
43
44 ISCDEPLIBS =    ../../lib/isc/libisc.@A@
45
46 LIBS =          @LIBS@
47
48 # Alphabetically
49
50 OPENSSLLINKOBJS = openssl_link.@O@ openssldh_link.@O@ openssldsa_link.@O@ \
51                   opensslrsa_link.@O@
52
53 DSTOBJS =       @DST_EXTRA_OBJS@ @OPENSSLLINKOBJS@ \
54                 dst_api.@O@ dst_lib.@O@ dst_parse.@O@ dst_result.@O@ \
55                 gssapi_link.@O@ gssapictx.@O@ hmac_link.@O@ key.@O@ 
56
57 # Alphabetically
58 DNSOBJS =       acache.@O@ acl.@O@ adb.@O@ byaddr.@O@ \
59                 cache.@O@ callbacks.@O@ compress.@O@ \
60                 db.@O@ dbiterator.@O@ dbtable.@O@ diff.@O@ dispatch.@O@ \
61                 dlz.@O@ dnssec.@O@ ds.@O@ forward.@O@ iptable.@O@ journal.@O@ \
62                 keytable.@O@ lib.@O@ log.@O@ lookup.@O@ \
63                 master.@O@ masterdump.@O@ message.@O@ \
64                 name.@O@ ncache.@O@ nsec.@O@ nsec3.@O@ order.@O@ peer.@O@ portlist.@O@ \
65                 rbt.@O@ rbtdb.@O@ rbtdb64.@O@ rcode.@O@ rdata.@O@ \
66                 rdatalist.@O@ \
67                 rdataset.@O@ rdatasetiter.@O@ rdataslab.@O@ request.@O@ \
68                 resolver.@O@ result.@O@ rootns.@O@ sdb.@O@ sdlz.@O@ \
69                 soa.@O@ ssu.@O@ \
70                 stats.@O@ tcpmsg.@O@ time.@O@ timer.@O@ tkey.@O@ \
71                 tsig.@O@ ttl.@O@ validator.@O@ \
72                 version.@O@ view.@O@ xfrin.@O@ zone.@O@ zonekey.@O@ zt.@O@
73
74 OBJS=           ${DNSOBJS} ${OTHEROBJS} ${DSTOBJS}
75
76 # Alphabetically
77 OPENSSLLINKSRCS = openssl_link.c openssldh_link.c \
78                 openssldsa_link.c opensslrsa_link.c
79
80 DSTSRCS =       @DST_EXTRA_SRCS@ @OPENSSLLINKSRCS@ \
81                 dst_api.c dst_lib.c dst_parse.c \
82                 dst_result.c gssapi_link.c gssapictx.c \
83                 hmac_link.c key.c
84
85 DNSSRCS =       acache.c acl.c adb.c byaddr.c \
86                 cache.c callbacks.c compress.c \
87                 db.c dbiterator.c dbtable.c diff.c dispatch.c \
88                 dlz.c dnssec.c ds.c forward.c iptable.c journal.c \
89                 keytable.c lib.c log.c lookup.c \
90                 master.c masterdump.c message.c \
91                 name.c ncache.c nsec.c nsec3.c order.c peer.c portlist.c \
92                 rbt.c rbtdb.c rbtdb64.c rcode.c rdata.c \
93                 rdatalist.c \
94                 rdataset.c rdatasetiter.c rdataslab.c request.c \
95                 resolver.c result.c rootns.c sdb.c sdlz.c \
96                 soa.c ssu.c \
97                 stats.c tcpmsg.c time.c timer.c tkey.c \
98                 tsig.c ttl.c validator.c \
99                 version.c view.c xfrin.c zone.c zonekey.c zt.c ${OTHERSRCS}
100 SRCS = ${DSTSRCS} ${DNSSRCS}
101
102 SUBDIRS =       include 
103 TARGETS =       include/dns/enumtype.h include/dns/enumclass.h \
104                 include/dns/rdatastruct.h timestamp
105
106 DEPENDEXTRA =   ./gen -F include/dns/rdatastruct.h \
107                 -s ${srcdir} -d >> Makefile ;
108
109 @BIND9_MAKE_RULES@
110
111 version.@O@: version.c
112         ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
113                 -DVERSION=\"${VERSION}\" \
114                 -DLIBINTERFACE=${LIBINTERFACE} \
115                 -DLIBREVISION=${LIBREVISION} \
116                 -DLIBAGE=${LIBAGE} \
117                 -c ${srcdir}/version.c
118
119 libdns.@SA@: ${OBJS}
120         ${AR} ${ARFLAGS} $@ ${OBJS}
121         ${RANLIB} $@
122
123 libdns.la: ${OBJS}
124         ${LIBTOOL_MODE_LINK} \
125                 ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libdns.la -rpath ${libdir} \
126                 -version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
127                 ${OBJS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
128
129 timestamp: libdns.@A@
130         touch timestamp
131
132 installdirs:
133         $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
134
135 install:: timestamp installdirs
136         ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libdns.@A@ ${DESTDIR}${libdir}
137
138 clean distclean::
139         rm -f libdns.@A@ timestamp
140         rm -f gen code.h include/dns/enumtype.h include/dns/enumclass.h
141         rm -f include/dns/rdatastruct.h
142
143 newrr::
144         rm -f code.h include/dns/enumtype.h include/dns/enumclass.h
145         rm -f include/dns/rdatastruct.h
146
147 include: include/dns/enumtype.h include/dns/enumclass.h \
148         include/dns/rdatastruct.h
149
150 rdata.@O@: code.h
151
152 include/dns/enumtype.h: gen
153         ./gen -s ${srcdir} -t > $@
154
155 include/dns/enumclass.h: gen
156         ./gen -s ${srcdir} -c > $@
157
158 include/dns/rdatastruct.h: gen \
159                 ${srcdir}/rdata/rdatastructpre.h \
160                 ${srcdir}/rdata/rdatastructsuf.h
161         ./gen -s ${srcdir} -i \
162                 -P ${srcdir}/rdata/rdatastructpre.h \
163                 -S ${srcdir}/rdata/rdatastructsuf.h > $@
164
165 code.h: gen
166         ./gen -s ${srcdir} > code.h
167
168 gen: gen.c
169         ${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
170         ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c ${BUILD_LIBS}
171
172 rbtdb64.@O@: rbtdb.c
173
174 depend: include/dns/enumtype.h include/dns/enumclass.h \
175         include/dns/rdatastruct.h code.h
176 subdirs: include/dns/enumtype.h include/dns/enumclass.h \
177         include/dns/rdatastruct.h code.h
178 ${OBJS}: include/dns/enumtype.h include/dns/enumclass.h \
179         include/dns/rdatastruct.h
180
181 spnego.@O@: spnego_asn1.c spnego.h