Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / bind / dist / lib / export / dns / Makefile.in
blobca83d5dfdeba7c29b39451ade971e8d020279e4f
1 # Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
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.
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.
15 # Id: Makefile.in,v 1.4 2009/12/05 23:31:40 each Exp
17 top_srcdir = @top_srcdir@
18 srcdir = @top_srcdir@/lib/dns
19 export_srcdir = @top_srcdir@/lib/export
21 # Attempt to disable parallel processing.
22 .NOTPARALLEL:
23 .NO_PARALLEL:
25 @BIND9_VERSION@
27 @LIBDNS_API@
29 @BIND9_MAKE_INCLUDES@
31 CINCLUDES = -I. -Iinclude ${DNS_INCLUDES} -I${export_srcdir}/isc/include \
32 ${ISC_INCLUDES} @DST_OPENSSL_INC@ @DST_GSSAPI_INC@
34 CDEFINES = -DUSE_MD5 @USE_OPENSSL@ @USE_GSSAPI@
36 CWARNINGS =
38 ISCLIBS = ../isc/libisc.@A@
40 ISCDEPLIBS = ../isc/libisc.@A@
42 LIBS = @LIBS@
44 # Alphabetically
45 DSTOBJS = dst_api.@O@ dst_lib.@O@ dst_parse.@O@ dst_result.@O@ \
46 gssapi_link.@O@ gssapictx.@O@ hmac_link.@O@ key.@O@ \
47 openssl_link.@O@ openssldh_link.@O@ openssldsa_link.@O@ \
48 opensslrsa_link.@O@
50 DNSOBJS = acl.@O@ adb.@O@ byaddr.@O@ \
51 cache.@O@ callbacks.@O@ client.@O@ compress.@O@ \
52 db.@O@ dbiterator.@O@ diff.@O@ dispatch.@O@ dlz.@O@ dnssec.@O@ \
53 ds.@O@ \
54 forward.@O@ iptable.@O@ \
55 keytable.@O@ \
56 lib.@O@ log.@O@ \
57 master.@O@ masterdump.@O@ message.@O@ \
58 name.@O@ ncache.@O@ nsec.@O@ nsec3.@O@ \
59 peer.@O@ portlist.@O@ \
60 rbt.@O@ rbtdb.@O@ rcode.@O@ rdata.@O@ \
61 rdatalist.@O@ rdataset.@O@ rdatasetiter.@O@ rdataslab.@O@ \
62 request.@O@ resolver.@O@ result.@O@ soa.@O@ stats.@O@ \
63 tcpmsg.@O@ time.@O@ tsec.@O@ tsig.@O@ ttl.@O@ \
64 validator.@O@ version.@O@ view.@O@
65 PORTDNSOBJS = ecdb.@O@
67 OBJS= ${DNSOBJS} ${OTHEROBJS} ${DSTOBJS} ${PORTDNSOBJS}
69 # Alphabetically
70 DSTSRCS = dst_api.c dst_lib.c dst_parse.c \
71 dst_result.c gssapi_link.c gssapictx.c \
72 hmac_link.c key.c \
73 openssl_link.c openssldh_link.c \
74 openssldsa_link.c opensslrsa_link.c
76 DNSSRCS = acl.c adb.c byaddr.c \
77 cache.c callbacks.c client.c compress.c \
78 db.c dbiterator.c diff.c dispatch.c dlz.c dnssec.c ds.c \
79 forward.c iptable.c \
80 keytable.c \
81 lib.c log.c \
82 master.c masterdump.c message.c \
83 name.c ncache.c nsec.c nsec3.c \
84 peer.c portlist.c \
85 rbt.c rbtdb.c rcode.c rdata.c \
86 rdatalist.c rdataset.c rdatasetiter.c rdataslab.c \
87 request.c res.c resolver.c result.c soa.c stats.c \
88 tcpmsg.c time.c tsec.c tsig.c ttl.c \
89 validator.c version.c view.c
90 PORTDNSSRCS = ecdb.c
92 SRCS = ${DSTSRCS} ${DNSSRCS} ${PORTDNSSRCS}
94 SUBDIRS = include
95 TARGETS = include/dns/enumtype.h include/dns/enumclass.h \
96 include/dns/rdatastruct.h timestamp
98 DEPENDEXTRA = ./gen -F include/dns/rdatastruct.h \
99 -s ${srcdir} -d >> Makefile ;
101 @BIND9_MAKE_RULES@
103 version.@O@: ${srcdir}/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
111 libdns.@SA@: ${OBJS}
112 ${AR} ${ARFLAGS} $@ ${OBJS}
113 ${RANLIB} $@
115 libdns.la: ${OBJS}
116 ${LIBTOOL_MODE_LINK} \
117 ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libdns.la \
118 -rpath ${export_libdir} \
119 -version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
120 ${OBJS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
122 timestamp: libdns.@A@
123 touch timestamp
125 installdirs:
126 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${export_libdir}
128 install:: timestamp installdirs
129 ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libdns.@A@ \
130 ${DESTDIR}${export_libdir}
132 clean distclean::
133 rm -f libdns.@A@ timestamp
134 rm -f gen code.h include/dns/enumtype.h include/dns/enumclass.h
135 rm -f include/dns/rdatastruct.h
137 newrr::
138 rm -f code.h include/dns/enumtype.h include/dns/enumclass.h
139 rm -f include/dns/rdatastruct.h
141 include: include/dns/enumtype.h include/dns/enumclass.h \
142 include/dns/rdatastruct.h
144 rdata.@O@: code.h
146 include/dns/enumtype.h: gen
147 ./gen -s ${srcdir} -t > $@
149 include/dns/enumclass.h: gen
150 ./gen -s ${srcdir} -c > $@
152 include/dns/rdatastruct.h: gen \
153 ${srcdir}/rdata/rdatastructpre.h \
154 ${srcdir}/rdata/rdatastructsuf.h
155 ./gen -s ${srcdir} -i \
156 -P ${srcdir}/rdata/rdatastructpre.h \
157 -S ${srcdir}/rdata/rdatastructsuf.h > $@
159 code.h: gen
160 ./gen -s ${srcdir} > code.h
162 gen: ${srcdir}/gen.c
163 ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o $@ ${srcdir}/gen.c ${LIBS}
165 #We don't need rbtdb64 for this library
166 #rbtdb64.@O@: rbtdb.c
168 depend: include/dns/enumtype.h include/dns/enumclass.h \
169 include/dns/rdatastruct.h code.h
170 subdirs: include/dns/enumtype.h include/dns/enumclass.h \
171 include/dns/rdatastruct.h code.h
172 ${OBJS}: include/dns/enumtype.h include/dns/enumclass.h \
173 include/dns/rdatastruct.h