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