1include $(top_srcdir)/Makefile.top 2 3lib_LTLIBRARIES = libdns.la 4 5nodist_libdns_ladir = $(includedir)/dns 6nodist_libdns_la_HEADERS = \ 7 include/dns/enumclass.h \ 8 include/dns/enumtype.h \ 9 include/dns/rdatastruct.h 10 11nodist_libdns_la_SOURCES = \ 12 $(nodist_libdns_la_HEADERS) \ 13 code.h 14 15BUILT_SOURCES = \ 16 $(nodist_libdns_la_SOURCES) 17 18CLEANFILES = \ 19 $(nodist_libdns_la_SOURCES) \ 20 gen$(BUILD_EXEEXT) 21 22gen$(BUILD_EXEEXT): gen.c 23 $(CC_FOR_BUILD) -g -I. $(srcdir)/gen.c -o $@ 24 25EXTRA_DIST = \ 26 dnstap.proto \ 27 gen.c \ 28 rdata/* 29 30include/dns/enumtype.h: gen Makefile 31 mkdir -p include/dns 32 $(builddir)/gen -s $(srcdir) -t > $@ 33 34include/dns/enumclass.h: gen Makefile 35 mkdir -p include/dns 36 $(builddir)/gen -s $(srcdir) -c > $@ 37 38include/dns/rdatastruct.h: gen rdata/rdatastructpre.h rdata/rdatastructsuf.h Makefile 39 mkdir -p include/dns 40 $(builddir)/gen -s $(srcdir) -i \ 41 -P $(srcdir)/rdata/rdatastructpre.h \ 42 -S $(srcdir)/rdata/rdatastructsuf.h > $@ 43 44code.h: gen Makefile 45 $(builddir)/gen -s $(srcdir) > $@ 46 47libdns_ladir = $(includedir)/dns 48libdns_la_HEADERS = \ 49 include/dns/acl.h \ 50 include/dns/adb.h \ 51 include/dns/badcache.h \ 52 include/dns/bit.h \ 53 include/dns/byaddr.h \ 54 include/dns/cache.h \ 55 include/dns/callbacks.h \ 56 include/dns/catz.h \ 57 include/dns/cert.h \ 58 include/dns/client.h \ 59 include/dns/clientinfo.h \ 60 include/dns/compress.h \ 61 include/dns/db.h \ 62 include/dns/dbiterator.h \ 63 include/dns/diff.h \ 64 include/dns/dispatch.h \ 65 include/dns/dlz.h \ 66 include/dns/dlz_dlopen.h \ 67 include/dns/dns64.h \ 68 include/dns/dnsrps.h \ 69 include/dns/dnssec.h \ 70 include/dns/ds.h \ 71 include/dns/dsdigest.h \ 72 include/dns/dnstap.h \ 73 include/dns/dyndb.h \ 74 include/dns/ecs.h \ 75 include/dns/edns.h \ 76 include/dns/events.h \ 77 include/dns/fixedname.h \ 78 include/dns/forward.h \ 79 include/dns/geoip.h \ 80 include/dns/ipkeylist.h \ 81 include/dns/iptable.h \ 82 include/dns/journal.h \ 83 include/dns/kasp.h \ 84 include/dns/keydata.h \ 85 include/dns/keyflags.h \ 86 include/dns/keymgr.h \ 87 include/dns/keytable.h \ 88 include/dns/keyvalues.h \ 89 include/dns/librpz.h \ 90 include/dns/lookup.h \ 91 include/dns/log.h \ 92 include/dns/master.h \ 93 include/dns/masterdump.h \ 94 include/dns/message.h \ 95 include/dns/name.h \ 96 include/dns/ncache.h \ 97 include/dns/nsec.h \ 98 include/dns/nsec3.h \ 99 include/dns/nta.h \ 100 include/dns/opcode.h \ 101 include/dns/order.h \ 102 include/dns/peer.h \ 103 include/dns/private.h \ 104 include/dns/rbt.h \ 105 include/dns/rcode.h \ 106 include/dns/rdata.h \ 107 include/dns/rdataclass.h \ 108 include/dns/rdatalist.h \ 109 include/dns/rdataset.h \ 110 include/dns/rdatasetiter.h \ 111 include/dns/rdataslab.h \ 112 include/dns/rdatatype.h \ 113 include/dns/request.h \ 114 include/dns/resolver.h \ 115 include/dns/result.h \ 116 include/dns/rootns.h \ 117 include/dns/rpz.h \ 118 include/dns/rriterator.h \ 119 include/dns/rrl.h \ 120 include/dns/sdb.h \ 121 include/dns/sdlz.h \ 122 include/dns/secalg.h \ 123 include/dns/secproto.h \ 124 include/dns/soa.h \ 125 include/dns/ssu.h \ 126 include/dns/stats.h \ 127 include/dns/time.h \ 128 include/dns/transport.h \ 129 include/dns/tkey.h \ 130 include/dns/tsec.h \ 131 include/dns/tsig.h \ 132 include/dns/ttl.h \ 133 include/dns/types.h \ 134 include/dns/update.h \ 135 include/dns/validator.h \ 136 include/dns/view.h \ 137 include/dns/xfrin.h \ 138 include/dns/zone.h \ 139 include/dns/zonekey.h \ 140 include/dns/zoneverify.h \ 141 include/dns/zt.h 142 143dstdir = $(includedir)/dst 144dst_HEADERS = \ 145 include/dst/dst.h \ 146 include/dst/gssapi.h 147 148libdns_la_SOURCES = \ 149 $(libdns_la_HEADERS) \ 150 $(dst_HEADERS) \ 151 acl.c \ 152 adb.c \ 153 badcache.c \ 154 byaddr.c \ 155 cache.c \ 156 callbacks.c \ 157 catz.c \ 158 clientinfo.c \ 159 compress.c \ 160 db.c \ 161 dbiterator.c \ 162 diff.c \ 163 dispatch.c \ 164 dlz.c \ 165 dns64.c \ 166 dnsrps.c \ 167 dnssec.c \ 168 ds.c \ 169 dst_api.c \ 170 dst_internal.h \ 171 dst_openssl.h \ 172 dst_parse.c \ 173 dst_parse.h \ 174 dyndb.c \ 175 ecs.c \ 176 fixedname.c \ 177 forward.c \ 178 gssapictx.c \ 179 hmac_link.c \ 180 ipkeylist.c \ 181 iptable.c \ 182 journal.c \ 183 kasp.c \ 184 key.c \ 185 keydata.c \ 186 keymgr.c \ 187 keytable.c \ 188 log.c \ 189 lookup.c \ 190 master.c \ 191 masterdump.c \ 192 message.c \ 193 name.c \ 194 ncache.c \ 195 nsec.c \ 196 nsec3.c \ 197 nta.c \ 198 openssl_link.c \ 199 openssl_shim.c \ 200 openssl_shim.h \ 201 openssldh_link.c \ 202 opensslecdsa_link.c \ 203 openssleddsa_link.c \ 204 opensslrsa_link.c \ 205 order.c \ 206 peer.c \ 207 private.c \ 208 rbt.c \ 209 rbtdb.h \ 210 rbtdb.c \ 211 rcode.c \ 212 rdata.c \ 213 rdatalist.c \ 214 rdataset.c \ 215 rdatasetiter.c \ 216 rdataslab.c \ 217 request.c \ 218 resolver.c \ 219 result.c \ 220 rootns.c \ 221 rpz.c \ 222 rrl.c \ 223 rriterator.c \ 224 sdb.c \ 225 sdlz.c \ 226 soa.c \ 227 ssu.c \ 228 ssu_external.c \ 229 stats.c \ 230 time.c \ 231 transport.c \ 232 tkey.c \ 233 tsec.c \ 234 tsig.c \ 235 ttl.c \ 236 update.c \ 237 validator.c \ 238 view.c \ 239 xfrin.c \ 240 zone.c \ 241 zoneverify.c \ 242 zonekey.c \ 243 zt.c \ 244 client.c \ 245 rdatalist_p.h \ 246 tsig_p.h \ 247 zone_p.h 248 249if HAVE_GSSAPI 250libdns_la_SOURCES += \ 251 gssapi_link.c 252endif 253 254if HAVE_GEOIP2 255libdns_la_SOURCES += \ 256 geoip2.c 257endif 258 259libdns_la_CPPFLAGS = \ 260 $(AM_CPPFLAGS) \ 261 $(LIBDNS_CFLAGS) \ 262 $(LIBISC_CFLAGS) \ 263 $(LIBUV_CFLAGS) \ 264 $(OPENSSL_CFLAGS) 265 266libdns_la_LDFLAGS = \ 267 $(AM_LDFLAGS) \ 268 -release "$(PACKAGE_VERSION)" 269 270libdns_la_LIBADD = \ 271 $(LIBISC_LIBS) \ 272 $(LIBUV_LIBS) \ 273 $(OPENSSL_LIBS) 274 275if HAVE_JSON_C 276libdns_la_CPPFLAGS += \ 277 $(JSON_C_CFLAGS) 278 279libdns_la_LIBADD += \ 280 $(JSON_C_LIBS) 281endif HAVE_JSON_C 282 283if HAVE_LIBXML2 284libdns_la_CPPFLAGS += \ 285 $(LIBXML2_CFLAGS) 286 287libdns_la_LIBADD += \ 288 $(LIBXML2_LIBS) 289endif HAVE_LIBXML2 290 291if HAVE_GSSAPI 292libdns_la_CPPFLAGS += \ 293 $(GSSAPI_CFLAGS) \ 294 $(KRB5_CFLAGS) 295libdns_la_LIBADD += \ 296 $(GSSAPI_LIBS) \ 297 $(KRB5_LIBS) 298endif 299 300if HAVE_GEOIP2 301libdns_la_CPPFLAGS += \ 302 $(MAXMINDDB_CFLAGS) 303libdns_la_LIBADD += \ 304 $(MAXMINDDB_LIBS) 305endif 306 307if HAVE_DNSTAP 308nodist_libdns_la_SOURCES += \ 309 dnstap.pb-c.h \ 310 dnstap.pb-c.c 311 312libdns_la_SOURCES += \ 313 dnstap.c 314 315dnstap.pb-c.h dnstap.pb-c.c: dnstap.proto 316 $(PROTOC_C) --proto_path=$(srcdir) --c_out=. dnstap.proto 317 318libdns_la_CPPFLAGS += $(DNSTAP_CFLAGS) 319libdns_la_LIBADD += $(DNSTAP_LIBS) 320endif 321 322if HAVE_LMDB 323libdns_la_CPPFLAGS += $(LMDB_CFLAGS) 324libdns_la_LIBADD += $(LMDB_LIBS) 325endif 326