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