5 BIND_DIR= ${.CURDIR}/../../../contrib/bind9
7 LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL}
8 SRCDIR= ${BIND_DIR}/lib/dns
10 .include "${LIB_BIND_DIR}/config.mk"
15 SRCS+= acache.c acl.c adb.c byaddr.c \
16 cache.c callbacks.c clientinfo.c compress.c \
17 db.c dbiterator.c dbtable.c diff.c dispatch.c \
18 dlz.c dns64.c dnssec.c ds.c \
19 dst_api.c dst_lib.c dst_parse.c dst_result.c \
21 gssapi_link.c gssapictx.c hmac_link.c \
24 keydata.c keytable.c lib.c log.c lookup.c \
25 master.c masterdump.c message.c \
26 name.c ncache.c nsec.c nsec3.c \
27 openssl_link.c openssldh_link.c \
28 openssldsa_link.c opensslgost_link.c opensslrsa_link.c \
30 order.c peer.c portlist.c private.c \
31 rbt.c rbtdb.c rbtdb64.c rcode.c rdata.c rdatalist.c \
32 rdataset.c rdatasetiter.c rdataslab.c request.c \
33 resolver.c result.c rootns.c rpz.c rriterator.c rrl.c \
34 sdb.c sdlz.c soa.c ssu.c ssu_external.c \
35 stats.c tcpmsg.c time.c timer.c tkey.c \
36 tsec.c tsig.c ttl.c update.c validator.c \
37 version.c view.c xfrin.c zone.c zonekey.c zt.c
39 CFLAGS+= -I${SRCDIR}/include/dst -I${SRCDIR}/include -I${SRCDIR}
41 CFLAGS+= -I${BIND_DIR}/lib/isc/${ISC_ATOMIC_ARCH}/include
43 DPADD= ${CRYPTO_DPADD} ${PTHREAD_DPADD}
44 LDADD= ${CRYPTO_LDADD} ${PTHREAD_LDADD}
46 .if ${MK_BIND_LIBS} != "no"
47 DNSINCS= ${SRCDIR}/include/dns/acache.h \
48 ${SRCDIR}/include/dns/acl.h \
49 ${SRCDIR}/include/dns/adb.h \
50 ${SRCDIR}/include/dns/bit.h \
51 ${SRCDIR}/include/dns/byaddr.h \
52 ${SRCDIR}/include/dns/cache.h \
53 ${SRCDIR}/include/dns/callbacks.h \
54 ${SRCDIR}/include/dns/cert.h \
55 ${SRCDIR}/include/dns/clientinfo.h \
56 ${SRCDIR}/include/dns/compress.h \
57 ${SRCDIR}/include/dns/db.h \
58 ${SRCDIR}/include/dns/dbiterator.h \
59 ${SRCDIR}/include/dns/dbtable.h \
60 ${SRCDIR}/include/dns/diff.h \
61 ${SRCDIR}/include/dns/dispatch.h \
62 ${SRCDIR}/include/dns/dlz.h \
63 ${SRCDIR}/include/dns/dnssec.h \
64 ${SRCDIR}/include/dns/ds.h \
65 ${SRCDIR}/include/dns/events.h \
66 ${SRCDIR}/include/dns/fixedname.h \
67 ${SRCDIR}/include/dns/forward.h \
68 ${SRCDIR}/include/dns/iptable.h \
69 ${SRCDIR}/include/dns/journal.h \
70 ${SRCDIR}/include/dns/keyflags.h \
71 ${SRCDIR}/include/dns/keytable.h \
72 ${SRCDIR}/include/dns/keyvalues.h \
73 ${SRCDIR}/include/dns/lib.h \
74 ${SRCDIR}/include/dns/log.h \
75 ${SRCDIR}/include/dns/lookup.h \
76 ${SRCDIR}/include/dns/master.h \
77 ${SRCDIR}/include/dns/masterdump.h \
78 ${SRCDIR}/include/dns/message.h \
79 ${SRCDIR}/include/dns/name.h \
80 ${SRCDIR}/include/dns/ncache.h \
81 ${SRCDIR}/include/dns/nsec.h \
82 ${SRCDIR}/include/dns/nsec3.h \
83 ${SRCDIR}/include/dns/opcode.h \
84 ${SRCDIR}/include/dns/order.h \
85 ${SRCDIR}/include/dns/peer.h \
86 ${SRCDIR}/include/dns/portlist.h \
87 ${SRCDIR}/include/dns/private.h \
88 ${SRCDIR}/include/dns/rbt.h \
89 ${SRCDIR}/include/dns/rcode.h \
90 ${SRCDIR}/include/dns/rdata.h \
91 ${SRCDIR}/include/dns/rdatasetiter.h \
92 ${SRCDIR}/include/dns/rdataclass.h \
93 ${SRCDIR}/include/dns/rdatalist.h \
94 ${SRCDIR}/include/dns/rdataset.h \
95 ${SRCDIR}/include/dns/rdataslab.h \
96 ${SRCDIR}/include/dns/rdatatype.h \
97 ${SRCDIR}/include/dns/request.h \
98 ${SRCDIR}/include/dns/resolver.h \
99 ${SRCDIR}/include/dns/result.h \
100 ${SRCDIR}/include/dns/rootns.h \
101 ${SRCDIR}/include/dns/rrl.h \
102 ${SRCDIR}/include/dns/sdb.h \
103 ${SRCDIR}/include/dns/sdlz.h \
104 ${SRCDIR}/include/dns/secalg.h \
105 ${SRCDIR}/include/dns/secproto.h \
106 ${SRCDIR}/include/dns/soa.h \
107 ${SRCDIR}/include/dns/ssu.h \
108 ${SRCDIR}/include/dns/stats.h \
109 ${SRCDIR}/include/dns/tcpmsg.h \
110 ${SRCDIR}/include/dns/time.h \
111 ${SRCDIR}/include/dns/timer.h \
112 ${SRCDIR}/include/dns/tkey.h \
113 ${SRCDIR}/include/dns/tsig.h \
114 ${SRCDIR}/include/dns/ttl.h \
115 ${SRCDIR}/include/dns/types.h \
116 ${SRCDIR}/include/dns/update.h \
117 ${SRCDIR}/include/dns/validator.h \
118 ${SRCDIR}/include/dns/version.h \
119 ${SRCDIR}/include/dns/view.h \
120 ${SRCDIR}/include/dns/xfrin.h \
121 ${SRCDIR}/include/dns/zone.h \
122 ${SRCDIR}/include/dns/zonekey.h \
123 ${SRCDIR}/include/dns/zt.h \
128 DNSINCSDIR= ${INCLUDEDIR}/dns
130 DSTINCS= ${SRCDIR}/include/dst/dst.h \
131 ${SRCDIR}/include/dst/gssapi.h \
132 ${SRCDIR}/include/dst/lib.h \
133 ${SRCDIR}/include/dst/result.h
135 DSTINCSDIR= ${INCLUDEDIR}/dst
137 INCSGROUPS= DNSINCS DSTINCS
140 .if defined(MAINTAINER_MODE)
141 generate: ${.CURDIR}/dns/enumtype.h ${.CURDIR}/dns/enumclass.h \
142 ${.CURDIR}/dns/rdatastruct.h ${.CURDIR}/code.h
146 ${.CURDIR}/dns/enumtype.h: gen
147 (cd ${SRCDIR} && ${.OBJDIR}/gen -t) >${.TARGET}
149 ${.CURDIR}/dns/enumclass.h: gen
150 (cd ${SRCDIR} && ${.OBJDIR}/gen -c) >${.TARGET}
152 ${.CURDIR}/dns/rdatastruct.h: gen
153 (cd ${SRCDIR} && ${.OBJDIR}/gen -i -P rdata/rdatastructpre.h \
154 -S rdata/rdatastructsuf.h) >${.TARGET}
156 ${.CURDIR}/code.h: gen
157 (cd ${SRCDIR} && ${.OBJDIR}/gen) >${.TARGET}
160 .include <bsd.lib.mk>