Makefile.am 14.9 KB
Newer Older
1
ACLOCAL_AMFLAGS = -I $(top_srcdir)/m4
Daniel Salzman's avatar
Daniel Salzman committed
2
SUBDIRS = zscanner dnssec contrib/dnstap .
3

4 5 6 7 8
.PHONY: check-compile
check-compile:
	$(MAKE) $(AM_MAKEFLAGS) -C zscanner $@
	$(MAKE) $(AM_MAKEFLAGS) -C dnssec $@

9
lib_LTLIBRARIES =				\
10
	libknot.la
11
noinst_LTLIBRARIES = 				\
12
	libcontrib.la				\
13
	libknot-yparser.la
14

15
AM_CPPFLAGS = \
Daniel Salzman's avatar
Daniel Salzman committed
16 17 18
	-include $(top_builddir)/src/config.h	\
	-DCONFIG_DIR='"${config_dir}"'		\
	-DSTORAGE_DIR='"${storage_dir}"'	\
19
	-DRUN_DIR='"${run_dir}"'		\
Ondřej Surý's avatar
Ondřej Surý committed
20
	-I$(srcdir)/dnssec/lib
21

22 23 24
######################
# Knot DNS Libraries #
######################
25

26 27 28 29 30 31 32 33 34 35
EXTRA_DIST =					\
	contrib/licenses/0BSD			\
	contrib/licenses/LGPL-2.0		\
	contrib/licenses/MIT			\
	contrib/licenses/OLDAP-2.8		\
	contrib/lmdb/LICENSE			\
	contrib/murmurhash3/LICENSE		\
	contrib/openbsd/LICENSE			\
	contrib/ucw/LICENSE

36 37
# static: libcontrib sources
libcontrib_la_SOURCES = 			\
38
	contrib/asan.h				\
39
	contrib/base32hex.c			\
40
	contrib/base32hex.h			\
41
	contrib/base64.c			\
42
	contrib/base64.h			\
43
	contrib/endian.h			\
44 45
	contrib/files.c				\
	contrib/files.h				\
46 47 48
	contrib/fnv/fnv.h			\
	contrib/fnv/hash_64a.c			\
	contrib/fnv/longlong.h			\
49
	contrib/getline.c			\
50
	contrib/getline.h			\
51
	contrib/hat-trie/hat-trie.h		\
52
	contrib/hhash.c				\
53
	contrib/hhash.h				\
54
	contrib/macros.h			\
55
	contrib/mempattern.c			\
56
	contrib/mempattern.h			\
57
	contrib/net.c				\
58
	contrib/net.h				\
59
	contrib/print.c				\
60
	contrib/print.h				\
61 62
	contrib/qp-trie/qp.c			\
	contrib/qp-trie/qp.h			\
63
	contrib/sockaddr.c			\
64
	contrib/sockaddr.h			\
65
	contrib/string.c			\
66
	contrib/string.h			\
67
	contrib/strtonum.h			\
68
	contrib/time.h				\
69
	contrib/tolower.h			\
70
	contrib/trim.h				\
71
	contrib/wire.h				\
72
	contrib/wire_ctx.h			\
73
	contrib/murmurhash3/murmurhash3.c	\
74
	contrib/murmurhash3/murmurhash3.h	\
75
	contrib/openbsd/strlcat.c		\
76
	contrib/openbsd/strlcat.h		\
77
	contrib/openbsd/strlcpy.c		\
78
	contrib/openbsd/strlcpy.h		\
79 80
	contrib/ucw/array-sort.h		\
	contrib/ucw/binsearch.h			\
81
	contrib/ucw/heap.c			\
82
	contrib/ucw/heap.h			\
83
	contrib/ucw/lists.c			\
84
	contrib/ucw/lists.h			\
85
	contrib/ucw/mempool.c			\
86 87
	contrib/ucw/mempool.h

88 89 90 91 92 93 94 95
if !HAVE_LMDB
libcontrib_la_SOURCES +=			\
	contrib/lmdb/lmdb.h			\
	contrib/lmdb/mdb.c			\
	contrib/lmdb/midl.c			\
	contrib/lmdb/midl.h
endif !HAVE_LMDB

96 97 98 99 100 101 102 103 104 105 106 107 108
# static: libknot-yparser sources
libknot_yparser_la_SOURCES = 			\
	libknot/yparser/yparser.c		\
	libknot/yparser/yparser.h		\
	libknot/yparser/ypbody.c		\
	libknot/yparser/ypformat.c		\
	libknot/yparser/ypformat.h		\
	libknot/yparser/ypscheme.c		\
	libknot/yparser/ypscheme.h		\
	libknot/yparser/yptrafo.c		\
	libknot/yparser/yptrafo.h

# libknot headers
109
libknot_ladir = $(includedir)
Jan Včelák's avatar
Jan Včelák committed
110
nobase_libknot_la_HEADERS =			\
111
	libknot/attribute.h			\
112
	libknot/binary.h			\
113
	libknot/codes.h				\
114
	libknot/consts.h			\
115
	libknot/control/control.h		\
116
	libknot/cookies/alg-fnv64.h		\
117 118
	libknot/cookies/client.h		\
	libknot/cookies/server.h		\
119
	libknot/descriptor.h			\
120
	libknot/dname.h				\
121
	libknot/errcode.h			\
122
	libknot/error.h				\
123
	libknot/libknot.h			\
124
	libknot/lookup.h			\
125
	libknot/mm_ctx.h			\
126 127 128
	libknot/db/db.h				\
	libknot/db/db_lmdb.h			\
	libknot/db/db_trie.h			\
129 130
	libknot/packet/compr.h			\
	libknot/packet/pkt.h			\
131
	libknot/packet/rrset-wire.h		\
132
	libknot/packet/wire.h			\
Daniel Salzman's avatar
Daniel Salzman committed
133 134 135 136
	libknot/rdata.h				\
	libknot/rdataset.h			\
	libknot/rrset-dump.h			\
	libknot/rrset.h				\
137
	libknot/rrtype/aaaa.h			\
138
	libknot/rrtype/dnskey.h			\
139
	libknot/rrtype/ds.h			\
140 141
	libknot/rrtype/naptr.h			\
	libknot/rrtype/nsec.h			\
142
	libknot/rrtype/nsec3.h			\
Daniel Salzman's avatar
Daniel Salzman committed
143
	libknot/rrtype/nsec3param.h		\
144
	libknot/rrtype/opt.h			\
145
	libknot/rrtype/opt-cookie.h		\
Daniel Salzman's avatar
Daniel Salzman committed
146
	libknot/rrtype/rdname.h			\
147 148 149
	libknot/rrtype/rrsig.h			\
	libknot/rrtype/soa.h			\
	libknot/rrtype/tsig.h			\
150
	libknot/rrtype/txt.h			\
151
	libknot/tsig-op.h			\
152 153
	libknot/tsig.h				\
	libknot/version.h
154

155
# dynamic: libknot sources
156 157
libknot_la_SOURCES =				\
	libknot/binary.c			\
158
	libknot/codes.c				\
159
	libknot/control/control.c		\
160
	libknot/cookies/alg-fnv64.c		\
161 162
	libknot/cookies/client.c		\
	libknot/cookies/server.c		\
163 164
	libknot/descriptor.c			\
	libknot/dname.c				\
165
	libknot/error.c				\
166 167
	libknot/db/db_lmdb.c			\
	libknot/db/db_trie.c			\
168 169 170
	libknot/packet/compr.c			\
	libknot/packet/pkt.c			\
	libknot/packet/rrset-wire.c		\
171
	libknot/packet/wire.c			\
172 173 174 175
	libknot/rdata.c				\
	libknot/rdataset.c			\
	libknot/rrset-dump.c			\
	libknot/rrset.c				\
176
	libknot/rrtype/aaaa.c			\
177
	libknot/rrtype/dnskey.c			\
178
	libknot/rrtype/ds.c			\
179
	libknot/rrtype/naptr.c			\
180 181 182
	libknot/rrtype/nsec3.c			\
	libknot/rrtype/nsec3param.c		\
	libknot/rrtype/opt.c			\
183
	libknot/rrtype/opt-cookie.c		\
184 185
	libknot/rrtype/rrsig.c			\
	libknot/rrtype/soa.c			\
186
	libknot/rrtype/tsig.c			\
187
	libknot/tsig-op.c			\
188
	libknot/tsig.c				\
189 190
	$(nobase_libknot_la_HEADERS)

191
libknot_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(lmdb_CFLAGS)
192
libknot_la_CFLAGS = $(AM_CFLAGS)
193
libknot_la_LDFLAGS = $(AM_LDFLAGS) $(libknot_VERSION_INFO) $(lmdb_LIBS) $(LDFLAG_EXCLUDE_LIBS)
194
libknot_la_LIBADD = dnssec/libdnssec.la libcontrib.la
195

196
# pkg-config
197
pkgconfig_DATA = libknot.pc
198

199 200
# static: utilities shared
libknotus_la_SOURCES =				\
201 202
	utils/common/cert.c			\
	utils/common/cert.h			\
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
	utils/common/exec.c			\
	utils/common/exec.h			\
	utils/common/hex.c			\
	utils/common/hex.h			\
	utils/common/lookup.c			\
	utils/common/lookup.h			\
	utils/common/msg.c			\
	utils/common/msg.h			\
	utils/common/netio.c			\
	utils/common/netio.h			\
	utils/common/params.c			\
	utils/common/params.h			\
	utils/common/resolv.c			\
	utils/common/resolv.h			\
	utils/common/sign.c			\
	utils/common/sign.h			\
219 220
	utils/common/tls.c			\
	utils/common/tls.h			\
221 222 223
	utils/common/token.c			\
	utils/common/token.h

224
libknotus_la_CPPFLAGS = $(AM_CPPFLAGS) $(libidn_CFLAGS) $(libedit_CFLAGS) $(gnutls_CFLAGS)
225 226 227
libknotus_la_LDFLAGS = $(AM_LDFLAGS) $(libidn_LIBS)
libknotus_la_LIBADD = libcontrib.la libknot.la

228
libknotd_la_SOURCES =				\
229 230
	knot/conf/base.c			\
	knot/conf/base.h			\
231 232 233 234
	knot/conf/conf.c			\
	knot/conf/conf.h			\
	knot/conf/confdb.c			\
	knot/conf/confdb.h			\
235 236
	knot/conf/confio.c			\
	knot/conf/confio.h			\
237 238 239 240
	knot/conf/scheme.c			\
	knot/conf/scheme.h			\
	knot/conf/tools.c			\
	knot/conf/tools.h			\
Daniel Salzman's avatar
Daniel Salzman committed
241 242
	knot/ctl/commands.c			\
	knot/ctl/commands.h			\
243 244
	knot/ctl/process.c			\
	knot/ctl/process.h			\
245 246
	knot/dnssec/context.c			\
	knot/dnssec/context.h			\
247 248 249 250
	knot/dnssec/nsec-chain.c		\
	knot/dnssec/nsec-chain.h		\
	knot/dnssec/nsec3-chain.c		\
	knot/dnssec/nsec3-chain.h		\
251 252
	knot/dnssec/policy.c			\
	knot/dnssec/policy.h			\
253 254
	knot/dnssec/rrset-sign.c		\
	knot/dnssec/rrset-sign.h		\
255 256 257 258 259 260 261 262
	knot/dnssec/zone-events.c		\
	knot/dnssec/zone-events.h		\
	knot/dnssec/zone-keys.c			\
	knot/dnssec/zone-keys.h			\
	knot/dnssec/zone-nsec.c			\
	knot/dnssec/zone-nsec.h			\
	knot/dnssec/zone-sign.c			\
	knot/dnssec/zone-sign.h			\
263 264 265 266 267 268 269 270 271 272 273 274
	knot/events/events.c			\
	knot/events/events.h			\
	knot/events/handlers.h			\
	knot/events/handlers/dnssec.c		\
	knot/events/handlers/expire.c		\
	knot/events/handlers/flush.c		\
	knot/events/handlers/load.c		\
	knot/events/handlers/notify.c		\
	knot/events/handlers/refresh.c		\
	knot/events/handlers/update.c		\
	knot/events/replan.c			\
	knot/events/replan.h			\
275 276 277 278 279 280
	knot/modules/dnsproxy/dnsproxy.c	\
	knot/modules/dnsproxy/dnsproxy.h	\
	knot/modules/noudp/noudp.c		\
	knot/modules/noudp/noudp.h		\
	knot/modules/online_sign/online_sign.c	\
	knot/modules/online_sign/online_sign.h	\
281 282
	knot/modules/online_sign/nsec_next.c	\
	knot/modules/online_sign/nsec_next.h	\
283 284 285 286
	knot/modules/synth_record/synth_record.c\
	knot/modules/synth_record/synth_record.h\
	knot/modules/whoami/whoami.c		\
	knot/modules/whoami/whoami.h		\
287 288
	knot/nameserver/axfr.c			\
	knot/nameserver/axfr.h			\
Daniel Salzman's avatar
Daniel Salzman committed
289 290
	knot/nameserver/chaos.c			\
	knot/nameserver/chaos.h			\
291 292 293 294
	knot/nameserver/internet.c		\
	knot/nameserver/internet.h		\
	knot/nameserver/ixfr.c			\
	knot/nameserver/ixfr.h			\
295
	knot/nameserver/log.h			\
Daniel Salzman's avatar
Daniel Salzman committed
296 297
	knot/nameserver/notify.c		\
	knot/nameserver/notify.h		\
298 299
	knot/nameserver/nsec_proofs.c		\
	knot/nameserver/nsec_proofs.h		\
Daniel Salzman's avatar
Daniel Salzman committed
300 301
	knot/nameserver/process_query.c		\
	knot/nameserver/process_query.h		\
302 303
	knot/nameserver/query_module.c		\
	knot/nameserver/query_module.h		\
304 305
	knot/nameserver/tsig_ctx.c		\
	knot/nameserver/tsig_ctx.h		\
Daniel Salzman's avatar
Daniel Salzman committed
306 307
	knot/nameserver/update.c		\
	knot/nameserver/update.h		\
308 309
	knot/query/capture.c			\
	knot/query/capture.h			\
310 311
	knot/query/layer.c			\
	knot/query/layer.h			\
312 313
	knot/query/query.c			\
	knot/query/query.h			\
314 315
	knot/query/requestor.c			\
	knot/query/requestor.h			\
316 317 318 319
	knot/common/evsched.c			\
	knot/common/evsched.h			\
	knot/common/fdset.c			\
	knot/common/fdset.h			\
320 321
	knot/common/log.c			\
	knot/common/log.h			\
322 323
	knot/common/process.c			\
	knot/common/process.h			\
324 325
	knot/common/ref.c			\
	knot/common/ref.h			\
326
	knot/server/dthreads.c			\
327
	knot/server/dthreads.h			\
Jan Kadlec's avatar
Jan Kadlec committed
328
	knot/server/journal.c			\
329 330 331
	knot/server/journal.h			\
	knot/server/rrl.c			\
	knot/server/rrl.h			\
Daniel Salzman's avatar
Daniel Salzman committed
332 333
	knot/server/serialization.c		\
	knot/server/serialization.h		\
334
	knot/server/server.c			\
335 336
	knot/server/server.h			\
	knot/server/tcp-handler.c		\
337
	knot/server/tcp-handler.h		\
338 339
	knot/server/udp-handler.c		\
	knot/server/udp-handler.h		\
340 341
	knot/updates/acl.c			\
	knot/updates/acl.h			\
Daniel Salzman's avatar
Daniel Salzman committed
342 343
	knot/updates/apply.c			\
	knot/updates/apply.h			\
344
	knot/updates/changesets.c		\
345
	knot/updates/changesets.h		\
346
	knot/updates/ddns.c			\
347
	knot/updates/ddns.h			\
348 349
	knot/updates/zone-update.c		\
	knot/updates/zone-update.h		\
350 351 352 353
	knot/worker/pool.c			\
	knot/worker/pool.h			\
	knot/worker/queue.c			\
	knot/worker/queue.h			\
354 355
	knot/zone/contents.c			\
	knot/zone/contents.h			\
356 357
	knot/zone/node.c			\
	knot/zone/node.h			\
358 359
	knot/zone/semantic-check.c		\
	knot/zone/semantic-check.h		\
360 361
	knot/zone/serial.c			\
	knot/zone/serial.h			\
362 363
	knot/zone/timers.c			\
	knot/zone/timers.h			\
364 365
	knot/zone/zone-diff.c			\
	knot/zone/zone-diff.h			\
366 367
	knot/zone/zone-dump.c			\
	knot/zone/zone-dump.h			\
Daniel Salzman's avatar
Daniel Salzman committed
368 369
	knot/zone/zone-load.c			\
	knot/zone/zone-load.h			\
370 371
	knot/zone/zone-tree.c			\
	knot/zone/zone-tree.h			\
372 373
	knot/zone/zone.c			\
	knot/zone/zone.h			\
374 375
	knot/zone/zonedb-load.c			\
	knot/zone/zonedb-load.h			\
Daniel Salzman's avatar
Daniel Salzman committed
376 377
	knot/zone/zonedb.c			\
	knot/zone/zonedb.h			\
378 379
	knot/zone/zonefile.c			\
	knot/zone/zonefile.h
380

381
libknotd_la_CPPFLAGS  = $(AM_CPPFLAGS) $(systemd_CFLAGS) $(liburcu_CFLAGS) $(lmdb_CFLAGS)
382
libknotd_la_LDFLAGS = $(AM_LDFLAGS) $(systemd_LIBS) $(liburcu_LIBS)
383
libknotd_la_LIBADD = libknot.la libknot-yparser.la zscanner/libzscanner.la $(liburcu_LIBS)
Jan Včelák's avatar
Jan Včelák committed
384

385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441
###################
# Knot DNS Daemon #
###################

if HAVE_DAEMON

sbin_PROGRAMS = keymgr knotc knotd
libexec_PROGRAMS = knot1to2
noinst_LTLIBRARIES += libknotd.la libknotus.la

EXTRA_DIST += 					\
	utils/knot1to2/cf-lex.l			\
	utils/knot1to2/cf-parse.y

keymgr_SOURCES =				\
	utils/keymgr/cmdparse/command.c		\
	utils/keymgr/cmdparse/command.h		\
	utils/keymgr/cmdparse/match.h		\
	utils/keymgr/cmdparse/parameter.c	\
	utils/keymgr/cmdparse/parameter.h	\
	utils/keymgr/cmdparse/value.c		\
	utils/keymgr/cmdparse/value.h		\
	utils/keymgr/legacy/key.c		\
	utils/keymgr/legacy/key.h		\
	utils/keymgr/legacy/privkey.c		\
	utils/keymgr/legacy/privkey.h		\
	utils/keymgr/legacy/pubkey.c		\
	utils/keymgr/legacy/pubkey.h		\
	utils/keymgr/options.c			\
	utils/keymgr/options.h			\
	utils/keymgr/keymgr.c

knotc_SOURCES =					\
	utils/knotc/commands.c			\
	utils/knotc/commands.h			\
	utils/knotc/estimator.c			\
	utils/knotc/estimator.h			\
	utils/knotc/interactive.c		\
	utils/knotc/interactive.h		\
	utils/knotc/process.c			\
	utils/knotc/process.h			\
	utils/knotc/main.c

knotd_SOURCES =					\
	utils/knotd/main.c

knot1to2_SOURCES =				\
	utils/knot1to2/cf-lex.c			\
	utils/knot1to2/cf-parse.tab.c		\
	utils/knot1to2/cf-parse.tab.h		\
	utils/knot1to2/extra.c			\
	utils/knot1to2/extra.h			\
	utils/knot1to2/includes.c		\
	utils/knot1to2/includes.h		\
	utils/knot1to2/main.c			\
	utils/knot1to2/scheme.h

442
keymgr_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/dnssec/lib/dnssec -I$(srcdir)/dnssec $(gnutls_CFLAGS)
443 444
keymgr_LDADD = libknotd.la libknotus.la dnssec/libdnssec.la dnssec/libshared.la \
               zscanner/libzscanner.la $(gnutls_LIBS)
445
knotd_CPPFLAGS = $(AM_CPPFLAGS) $(liburcu_CFLAGS)
446
knotd_LDADD = libknotd.la libcontrib.la $(liburcu_LIBS)
447
knotc_CPPFLAGS = $(AM_CPPFLAGS) $(libedit_CFLAGS)
448
knotc_LDADD = libknotd.la libknotus.la $(libedit_LIBS)
449
knot1to2_LDADD = libcontrib.la
450

451 452 453
####################################
# Optional Knot DNS Daemon modules #
####################################
454

455
if HAVE_DNSTAP
456
libknotd_la_SOURCES +=				\
457 458
	knot/modules/dnstap/dnstap.c		\
	knot/modules/dnstap/dnstap.h
459
libknotd_la_CPPFLAGS += $(DNSTAP_CFLAGS)
Daniel Salzman's avatar
Daniel Salzman committed
460
libknotd_la_LIBADD += $(DNSTAP_LIBS) contrib/dnstap/libdnstap.la
461
endif # HAVE_DNSTAP
462

463
if HAVE_ROSEDB
464
libknotd_la_SOURCES +=				\
465 466
	knot/modules/rosedb/rosedb.c		\
	knot/modules/rosedb/rosedb.h
467
endif # HAVE_ROSEDB
468

469 470
# Create storage and run-time directories
install-data-hook:
471
	$(INSTALL) -d $(DESTDIR)/@config_dir@
472 473
	$(INSTALL) -d $(DESTDIR)/@run_dir@
	$(INSTALL) -d $(DESTDIR)/@storage_dir@
474

475
endif # HAVE_DAEMON
476 477 478 479 480 481 482

######################
# Knot DNS Utilities #
######################

if HAVE_UTILS

483
bin_PROGRAMS = kdig khost knsec3hash knsupdate kzonecheck kjournalprint
484 485 486
if !HAVE_DAEMON
noinst_LTLIBRARIES += libknotd.la
endif
487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503

kdig_SOURCES =					\
	utils/kdig/kdig_exec.c			\
	utils/kdig/kdig_exec.h			\
	utils/kdig/kdig_main.c			\
	utils/kdig/kdig_params.c		\
	utils/kdig/kdig_params.h

khost_SOURCES =					\
	utils/kdig/kdig_exec.c			\
	utils/kdig/kdig_exec.h			\
	utils/kdig/kdig_params.c		\
	utils/kdig/kdig_params.h		\
	utils/khost/khost_main.c		\
	utils/khost/khost_params.c		\
	utils/khost/khost_params.h

504
knsec3hash_SOURCES =				\
505
	dnssec/shared/print.h			\
506 507
	utils/knsec3hash/knsec3hash.c

508 509 510 511 512 513 514
knsupdate_SOURCES =				\
	utils/knsupdate/knsupdate_exec.c	\
	utils/knsupdate/knsupdate_exec.h	\
	utils/knsupdate/knsupdate_main.c	\
	utils/knsupdate/knsupdate_params.c	\
	utils/knsupdate/knsupdate_params.h

515 516 517 518 519
kzonecheck_SOURCES =				\
	utils/kzonecheck/main.c			\
	utils/kzonecheck/zone_check.c		\
	utils/kzonecheck/zone_check.h

520 521 522
kjournalprint_SOURCES = 			\
	utils/kjournalprint/main.c

523
# bin programs
524 525 526 527 528 529 530 531
kdig_CPPFLAGS          = $(AM_CPPFLAGS) $(gnutls_CFLAGS)
kdig_LDADD             = $(libidn_LIBS) libknotus.la
khost_CPPFLAGS         = $(AM_CPPFLAGS) $(gnutls_CFLAGS)
khost_LDADD            = $(libidn_LIBS) libknotus.la
knsupdate_CPPFLAGS     = $(AM_CPPFLAGS) $(gnutls_CFLAGS)
knsupdate_LDADD        = zscanner/libzscanner.la libknotus.la
knsec3hash_CPPFLAGS    = $(AM_CPPFLAGS) -I$(srcdir)/dnssec/lib/dnssec -I$(srcdir)/dnssec
knsec3hash_LDADD       = dnssec/libdnssec.la dnssec/libshared.la
532
kzonecheck_LDADD       = libknotd.la libcontrib.la
533
kjournalprint_CPPFLAGS = $(AM_CPPFLAGS) $(gnutls_CFLAGS)
534
kjournalprint_LDADD    = $(libidn_LIBS) libknotd.la libcontrib.la
535 536 537 538 539 540

#######################################
# Optional Knot DNS Utilities modules #
#######################################

if HAVE_DNSTAP
541 542 543 544
kdig_LDADD     += $(DNSTAP_LIBS) contrib/dnstap/libdnstap.la
khost_LDADD    += $(DNSTAP_LIBS) contrib/dnstap/libdnstap.la
kdig_CPPFLAGS  += $(DNSTAP_CFLAGS)
khost_CPPFLAGS += $(DNSTAP_CFLAGS)
545 546 547 548
endif # HAVE_DNSTAP

if HAVE_ROSEDB
bin_PROGRAMS += rosedb_tool
549
rosedb_tool_SOURCES = knot/modules/rosedb/rosedb_tool.c
550
rosedb_tool_LDADD = libknotd.la libcontrib.la
551 552
rosedb_tool_CFLAGS = $(AM_CFLAGS) $(lmdb_CFLAGS) $(DNSTAP_CFLAGS)
rosedb_tool_LDFLAGS = $(AM_LDFLAGS) $(lmdb_LIBS)
553 554 555
endif # HAVE_ROSEDB

endif # HAVE_UTILS