1 # Copyright (C) 2004-2012 Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 1998-2003 Internet Software Consortium.
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.
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.
20 top_srcdir = @top_srcdir@
22 # Attempt to disable parallel processing.
32 USE_ISC_SPNEGO = @USE_ISC_SPNEGO@
34 CINCLUDES = -I. -Iinclude ${DNS_INCLUDES} \
35 ${ISC_INCLUDES} @DST_OPENSSL_INC@ @DST_GSSAPI_INC@
37 CDEFINES = -DUSE_MD5 @USE_OPENSSL@ @USE_GSSAPI@ ${USE_ISC_SPNEGO}
41 ISCLIBS = ../../lib/isc/libisc.@A@
43 ISCDEPLIBS = ../../lib/isc/libisc.@A@
49 OPENSSLLINKOBJS = openssl_link.@O@ openssldh_link.@O@ openssldsa_link.@O@ \
50 opensslecdsa_link.@O@ opensslgost_link.@O@ \
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@
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@ dns64.@O@ dnssec.@O@ ds.@O@ forward.@O@ iptable.@O@ \
62 journal.@O@ keydata.@O@ keytable.@O@ \
63 lib.@O@ log.@O@ lookup.@O@ \
64 master.@O@ masterdump.@O@ message.@O@ \
65 name.@O@ ncache.@O@ nsec.@O@ nsec3.@O@ order.@O@ peer.@O@ \
66 portlist.@O@ private.@O@ \
67 rbt.@O@ rbtdb.@O@ rbtdb64.@O@ rcode.@O@ rdata.@O@ \
68 rdatalist.@O@ rdataset.@O@ rdatasetiter.@O@ rdataslab.@O@ \
69 request.@O@ resolver.@O@ result.@O@ rootns.@O@ rpz.@O@ \
70 rriterator.@O@ sdb.@O@ \
71 sdlz.@O@ soa.@O@ ssu.@O@ ssu_external.@O@ \
72 stats.@O@ tcpmsg.@O@ time.@O@ timer.@O@ tkey.@O@ \
73 tsec.@O@ tsig.@O@ ttl.@O@ validator.@O@ \
74 version.@O@ view.@O@ xfrin.@O@ zone.@O@ zonekey.@O@ zt.@O@
76 OBJS= ${DNSOBJS} ${OTHEROBJS} ${DSTOBJS}
79 OPENSSLLINKSRCS = openssl_link.c openssldh_link.c openssldsa_link.c \
80 opensslecdsa_link.c opensslgost_link.c opensslrsa_link.c
82 DSTSRCS = @DST_EXTRA_SRCS@ @OPENSSLLINKSRCS@ \
83 dst_api.c dst_lib.c dst_parse.c \
84 dst_result.c gssapi_link.c gssapictx.c \
87 DNSSRCS = acache.c acl.c adb.c byaddr.c \
88 cache.c callbacks.c compress.c \
89 db.c dbiterator.c dbtable.c diff.c dispatch.c \
90 dlz.c dns64.c dnssec.c ds.c forward.c iptable.c journal.c \
91 keydata.c keytable.c lib.c log.c lookup.c \
92 master.c masterdump.c message.c \
93 name.c ncache.c nsec.c nsec3.c order.c peer.c portlist.c \
94 rbt.c rbtdb.c rbtdb64.c rcode.c rdata.c rdatalist.c \
95 rdataset.c rdatasetiter.c rdataslab.c request.c \
96 resolver.c result.c rootns.c rpz.c rriterator.c \
97 sdb.c sdlz.c soa.c ssu.c ssu_external.c \
98 stats.c tcpmsg.c time.c timer.c tkey.c \
99 tsec.c tsig.c ttl.c validator.c \
100 version.c view.c xfrin.c zone.c zonekey.c zt.c ${OTHERSRCS}
102 SRCS = ${DSTSRCS} ${DNSSRCS}
105 TARGETS = include/dns/enumtype.h include/dns/enumclass.h \
106 include/dns/rdatastruct.h timestamp
107 TESTDIRS = @UNITTESTS@
109 DEPENDEXTRA = ./gen -F include/dns/rdatastruct.h \
110 -s ${srcdir} -d >> Makefile ;
114 version.@O@: version.c
115 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
116 -DVERSION=\"${VERSION}\" \
117 -DLIBINTERFACE=${LIBINTERFACE} \
118 -DLIBREVISION=${LIBREVISION} \
120 -c ${srcdir}/version.c
123 ${AR} ${ARFLAGS} $@ ${OBJS}
127 ${LIBTOOL_MODE_LINK} \
128 ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libdns.la -rpath ${libdir} \
129 -version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
130 ${OBJS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
132 timestamp: libdns.@A@
136 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
138 install:: timestamp installdirs
139 ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libdns.@A@ ${DESTDIR}${libdir}
142 rm -f libdns.@A@ timestamp
143 rm -f gen code.h include/dns/enumtype.h include/dns/enumclass.h
144 rm -f include/dns/rdatastruct.h
147 rm -f code.h include/dns/enumtype.h include/dns/enumclass.h
148 rm -f include/dns/rdatastruct.h
150 include: include/dns/enumtype.h include/dns/enumclass.h \
151 include/dns/rdatastruct.h
155 include/dns/enumtype.h: gen
156 ./gen -s ${srcdir} -t > $@
158 include/dns/enumclass.h: gen
159 ./gen -s ${srcdir} -c > $@
161 include/dns/rdatastruct.h: gen \
162 ${srcdir}/rdata/rdatastructpre.h \
163 ${srcdir}/rdata/rdatastructsuf.h
164 ./gen -s ${srcdir} -i \
165 -P ${srcdir}/rdata/rdatastructpre.h \
166 -S ${srcdir}/rdata/rdatastructsuf.h > $@
169 ./gen -s ${srcdir} > code.h
172 ${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
173 ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c ${BUILD_LIBS}
177 depend: include/dns/enumtype.h include/dns/enumclass.h \
178 include/dns/rdatastruct.h code.h
179 subdirs: include/dns/enumtype.h include/dns/enumclass.h \
180 include/dns/rdatastruct.h code.h
181 ${OBJS}: include/dns/enumtype.h include/dns/enumclass.h \
182 include/dns/rdatastruct.h
184 spnego.@O@: spnego_asn1.c spnego.h