]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/bind9/lib/export/dns/Makefile.in
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / bind9 / lib / export / dns / Makefile.in
1 # Copyright (C) 2009-2012  Internet Systems Consortium, Inc. ("ISC")
2 #
3 # Permission to use, copy, modify, and/or distribute this software for any
4 # purpose with or without fee is hereby granted, provided that the above
5 # copyright notice and this permission notice appear in all copies.
6 #
7 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
10 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
12 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13 # PERFORMANCE OF THIS SOFTWARE.
14
15 # $Id$
16
17 top_srcdir =    @top_srcdir@
18 srcdir =        @top_srcdir@/lib/dns
19 export_srcdir = @top_srcdir@/lib/export
20
21 # Attempt to disable parallel processing.
22 .NOTPARALLEL:
23 .NO_PARALLEL:
24
25 @BIND9_VERSION@
26
27 @LIBDNS_API@
28
29 @BIND9_MAKE_INCLUDES@
30
31 CINCLUDES =     -I. -Iinclude ${DNS_INCLUDES} -I${export_srcdir}/isc/include \
32                 ${ISC_INCLUDES} @DST_OPENSSL_INC@ @DST_GSSAPI_INC@
33
34 CDEFINES =      -DUSE_MD5 @USE_OPENSSL@ @USE_GSSAPI@
35
36 CWARNINGS =
37
38 ISCLIBS =       ../isc/libisc.@A@
39
40 ISCDEPLIBS =    ../isc/libisc.@A@
41
42 LIBS =          @LIBS@
43
44 # Alphabetically
45
46 OPENSSLLINKOBJS = openssl_link.@O@ openssldh_link.@O@ openssldsa_link.@O@ \
47                 opensslecdsa_link.@O@ opensslgost_link.@O@ opensslrsa_link.@O@
48
49 DSTOBJS =       @OPENSSLLINKOBJS@ \
50                 dst_api.@O@ dst_lib.@O@ dst_parse.@O@ dst_result.@O@ \
51                 gssapi_link.@O@ gssapictx.@O@ hmac_link.@O@ key.@O@
52
53 DNSOBJS =       acl.@O@ adb.@O@ byaddr.@O@ \
54                 cache.@O@ callbacks.@O@ client.@O@ compress.@O@ \
55                 db.@O@ dbiterator.@O@ diff.@O@ dispatch.@O@ dlz.@O@ dnssec.@O@ \
56                 ds.@O@ \
57                 forward.@O@ iptable.@O@ \
58                 keytable.@O@ \
59                 lib.@O@ log.@O@ \
60                 master.@O@ masterdump.@O@ message.@O@ \
61                 name.@O@ ncache.@O@ nsec.@O@ nsec3.@O@ \
62                 peer.@O@ portlist.@O@ \
63                 rbt.@O@ rbtdb.@O@ rcode.@O@ rdata.@O@ \
64                 rdatalist.@O@ rdataset.@O@ rdatasetiter.@O@ rdataslab.@O@ \
65                 request.@O@ resolver.@O@ result.@O@ soa.@O@ stats.@O@ \
66                 tcpmsg.@O@ time.@O@ tsec.@O@ tsig.@O@ ttl.@O@ \
67                 validator.@O@ version.@O@ view.@O@
68 PORTDNSOBJS =   ecdb.@O@
69
70 OBJS=           ${DNSOBJS} ${OTHEROBJS} ${DSTOBJS} ${PORTDNSOBJS}
71
72 # Alphabetically
73
74 OPENSSLLINKSRCS = openssl_link.c openssldh_link.c openssldsa_link.c \
75                 opensslecdsa_link.c opensslgost_link.c opensslrsa_link.c
76
77 DSTSRCS =       @OPENSSLLINKSRCS@ \
78                 dst_api.c dst_lib.c dst_parse.c \
79                 dst_result.c gssapi_link.c gssapictx.c \
80                 hmac_link.c key.c 
81
82 DNSSRCS =       acl.c adb.c byaddr.c \
83                 cache.c callbacks.c client.c compress.c \
84                 db.c dbiterator.c diff.c dispatch.c dlz.c dnssec.c ds.c \
85                 forward.c iptable.c \
86                 keytable.c \
87                 lib.c log.c \
88                 master.c masterdump.c message.c \
89                 name.c ncache.c nsec.c nsec3.c \
90                 peer.c portlist.c \
91                 rbt.c rbtdb.c rcode.c rdata.c \
92                 rdatalist.c rdataset.c rdatasetiter.c rdataslab.c \
93                 request.c res.c resolver.c result.c soa.c stats.c \
94                 tcpmsg.c time.c tsec.c tsig.c ttl.c \
95                 validator.c version.c view.c
96 PORTDNSSRCS =   ecdb.c
97
98 SRCS = ${DSTSRCS} ${DNSSRCS} ${PORTDNSSRCS}
99
100 SUBDIRS =       include
101 TARGETS =       include/dns/enumtype.h include/dns/enumclass.h \
102                 include/dns/rdatastruct.h timestamp
103
104 DEPENDEXTRA =   ./gen -F include/dns/rdatastruct.h \
105                 -s ${srcdir} -d >> Makefile ;
106
107 @BIND9_MAKE_RULES@
108
109 version.@O@: ${srcdir}/version.c
110         ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
111                 -DVERSION=\"${VERSION}\" \
112                 -DLIBINTERFACE=${LIBINTERFACE} \
113                 -DLIBREVISION=${LIBREVISION} \
114                 -DLIBAGE=${LIBAGE} \
115                 -c ${srcdir}/version.c
116
117 libdns.@SA@: ${OBJS}
118         ${AR} ${ARFLAGS} $@ ${OBJS}
119         ${RANLIB} $@
120
121 libdns.la: ${OBJS}
122         ${LIBTOOL_MODE_LINK} \
123                 ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libdns.la \
124                 -rpath ${export_libdir} \
125                 -version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
126                 ${OBJS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
127
128 timestamp: libdns.@A@
129         touch timestamp
130
131 installdirs:
132         $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${export_libdir}
133
134 install:: timestamp installdirs
135         ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libdns.@A@ \
136         ${DESTDIR}${export_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: ${srcdir}/gen.c
169         ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o $@ ${srcdir}/gen.c ${LIBS}
170
171 #We don't need rbtdb64 for this library
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