Makefile.am 14.3 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 $@

Daniel Salzman's avatar
Daniel Salzman committed
9
lib_LTLIBRARIES =				\
10
	libknot.la
11
noinst_LTLIBRARIES = 				\
12
	libcontrib.la
13

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

Ondřej Surý's avatar
Ondřej Surý committed
23 24 25
######################
# Knot DNS Libraries #
######################
26

Daniel Salzman's avatar
Daniel Salzman committed
27 28
EXTRA_DIST =					\
	contrib/licenses/0BSD			\
29
	contrib/licenses/BSD-3-Clause		\
Daniel Salzman's avatar
Daniel Salzman committed
30 31 32 33
	contrib/licenses/LGPL-2.0		\
	contrib/licenses/OLDAP-2.8		\
	contrib/lmdb/LICENSE			\
	contrib/openbsd/LICENSE			\
34
	contrib/ucw/LICENSE			\
35
	utils/pykeymgr/pykeymgr.in
Daniel Salzman's avatar
Daniel Salzman committed
36

37 38
# static: libcontrib sources
libcontrib_la_SOURCES = 			\
39
	contrib/asan.h				\
40
	contrib/base32hex.c			\
41
	contrib/base32hex.h			\
42
	contrib/base64.c			\
43
	contrib/base64.h			\
44
	contrib/ctype.h				\
Libor Peltan's avatar
Libor Peltan committed
45
	contrib/dynarray.h			\
46 47
	contrib/files.c				\
	contrib/files.h				\
48
	contrib/getline.c			\
49
	contrib/getline.h			\
50
	contrib/macros.h			\
51
	contrib/mempattern.c			\
52
	contrib/mempattern.h			\
53
	contrib/net.c				\
54
	contrib/net.h				\
55 56
	contrib/qp-trie/trie.c			\
	contrib/qp-trie/trie.h			\
57
	contrib/sockaddr.c			\
58
	contrib/sockaddr.h			\
59
	contrib/string.c			\
60
	contrib/string.h			\
61
	contrib/strtonum.h			\
62
	contrib/time.c				\
63
	contrib/time.h				\
64
	contrib/tolower.h			\
65
	contrib/trim.h				\
66
	contrib/wire_ctx.h			\
67 68
	contrib/openbsd/siphash.c		\
	contrib/openbsd/siphash.h		\
69
	contrib/openbsd/strlcat.c		\
70
	contrib/openbsd/strlcat.h		\
71
	contrib/openbsd/strlcpy.c		\
72
	contrib/openbsd/strlcpy.h		\
73 74
	contrib/ucw/array-sort.h		\
	contrib/ucw/binsearch.h			\
75
	contrib/ucw/heap.c			\
76
	contrib/ucw/heap.h			\
77
	contrib/ucw/lists.c			\
78
	contrib/ucw/lists.h			\
79
	contrib/ucw/mempool.c			\
80 81
	contrib/ucw/mempool.h

82 83 84 85 86 87 88 89
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

90
libcontrib_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY)
91
libcontrib_la_LDFLAGS  = $(AM_LDFLAGS) $(LDFLAG_EXCLUDE_LIBS)
92

93
# libknot headers
94
libknot_ladir = $(includedir)
Jan Včelák's avatar
Jan Včelák committed
95
nobase_libknot_la_HEADERS =			\
96
	libknot/attribute.h			\
97
	libknot/codes.h				\
98
	libknot/consts.h			\
99
	libknot/control/control.h		\
Daniel Salzman's avatar
Daniel Salzman committed
100
	libknot/cookies.h			\
Lubos Slovak's avatar
Lubos Slovak committed
101
	libknot/descriptor.h			\
102
	libknot/dname.h				\
103
	libknot/endian.h			\
Lubos Slovak's avatar
Lubos Slovak committed
104
	libknot/errcode.h			\
105
	libknot/error.h				\
106
	libknot/libknot.h			\
107
	libknot/lookup.h			\
108
	libknot/mm_ctx.h			\
109 110 111
	libknot/db/db.h				\
	libknot/db/db_lmdb.h			\
	libknot/db/db_trie.h			\
112 113
	libknot/packet/compr.h			\
	libknot/packet/pkt.h			\
Lubos Slovak's avatar
Lubos Slovak committed
114
	libknot/packet/rrset-wire.h		\
115
	libknot/packet/wire.h			\
Daniel Salzman's avatar
Daniel Salzman committed
116 117 118 119
	libknot/rdata.h				\
	libknot/rdataset.h			\
	libknot/rrset-dump.h			\
	libknot/rrset.h				\
120
	libknot/rrtype/dnskey.h			\
121
	libknot/rrtype/ds.h			\
122 123
	libknot/rrtype/naptr.h			\
	libknot/rrtype/nsec.h			\
124
	libknot/rrtype/nsec3.h			\
Daniel Salzman's avatar
Daniel Salzman committed
125
	libknot/rrtype/nsec3param.h		\
Lubos Slovak's avatar
Lubos Slovak committed
126
	libknot/rrtype/opt.h			\
Daniel Salzman's avatar
Daniel Salzman committed
127
	libknot/rrtype/rdname.h			\
128 129 130
	libknot/rrtype/rrsig.h			\
	libknot/rrtype/soa.h			\
	libknot/rrtype/tsig.h			\
131
	libknot/tsig-op.h			\
132
	libknot/tsig.h				\
133
	libknot/wire.h				\
134 135
	libknot/yparser/yparser.h		\
	libknot/yparser/ypformat.h		\
136
	libknot/yparser/ypschema.h		\
137
	libknot/yparser/yptrafo.h		\
138
	libknot/version.h
139

140
# dynamic: libknot sources
141
libknot_la_SOURCES =				\
142
	libknot/codes.c				\
143
	libknot/control/control.c		\
Daniel Salzman's avatar
Daniel Salzman committed
144
	libknot/cookies.c			\
145 146
	libknot/descriptor.c			\
	libknot/dname.c				\
147
	libknot/error.c				\
148 149
	libknot/db/db_lmdb.c			\
	libknot/db/db_trie.c			\
150 151 152 153 154
	libknot/packet/pkt.c			\
	libknot/packet/rrset-wire.c		\
	libknot/rdataset.c			\
	libknot/rrset-dump.c			\
	libknot/rrset.c				\
155
	libknot/rrtype/naptr.c			\
156 157
	libknot/rrtype/opt.c			\
	libknot/rrtype/tsig.c			\
158
	libknot/tsig-op.c			\
159
	libknot/tsig.c				\
160 161 162
	libknot/yparser/yparser.c		\
	libknot/yparser/ypbody.c		\
	libknot/yparser/ypformat.c		\
163
	libknot/yparser/ypschema.c		\
164
	libknot/yparser/yptrafo.c		\
165 166
	$(nobase_libknot_la_HEADERS)

167
libknot_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(lmdb_CFLAGS)
168 169 170
libknot_la_LDFLAGS  = $(AM_LDFLAGS) $(libknot_VERSION_INFO) $(lmdb_LIBS) \
                      $(LDFLAG_EXCLUDE_LIBS)
libknot_la_LIBADD   = dnssec/libdnssec.la libcontrib.la
171

Ondřej Surý's avatar
Ondřej Surý committed
172
# pkg-config
173
pkgconfig_DATA = knotd.pc libknot.pc
Ondřej Surý's avatar
Ondřej Surý committed
174

175 176
# static: utilities shared
libknotus_la_SOURCES =				\
177 178
	utils/common/cert.c			\
	utils/common/cert.h			\
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
	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			\
195 196
	utils/common/tls.c			\
	utils/common/tls.h			\
197 198 199
	utils/common/token.c			\
	utils/common/token.h

200 201 202 203 204
libknotus_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(libidn2_LIBS) \
                        $(libidn_CFLAGS) $(libedit_CFLAGS) $(gnutls_CFLAGS)
libknotus_la_LDFLAGS  = $(AM_LDFLAGS) $(LDFLAG_EXCLUDE_LIBS)
libknotus_la_LIBADD   = libcontrib.la libknot.la $(libidn2_LIBS) $(libidn_LIBS) \
                        $(libedit_LIBS) $(gnutls_LIBS)
205

206
libknotd_la_SOURCES =				\
207 208
	knot/conf/base.c			\
	knot/conf/base.h			\
209 210 211 212
	knot/conf/conf.c			\
	knot/conf/conf.h			\
	knot/conf/confdb.c			\
	knot/conf/confdb.h			\
Daniel Salzman's avatar
Daniel Salzman committed
213 214
	knot/conf/confio.c			\
	knot/conf/confio.h			\
215 216
	knot/conf/migration.c			\
	knot/conf/migration.h			\
217 218
	knot/conf/module.h			\
	knot/conf/module.c			\
219 220
	knot/conf/schema.c			\
	knot/conf/schema.h			\
221 222
	knot/conf/tools.c			\
	knot/conf/tools.h			\
Daniel Salzman's avatar
Daniel Salzman committed
223 224
	knot/ctl/commands.c			\
	knot/ctl/commands.h			\
225 226
	knot/ctl/process.c			\
	knot/ctl/process.h			\
227 228
	knot/dnssec/context.c			\
	knot/dnssec/context.h			\
229 230
	knot/dnssec/ds_query.c			\
	knot/dnssec/ds_query.h			\
231 232 233 234
	knot/dnssec/kasp/kasp_db.c		\
	knot/dnssec/kasp/kasp_db.h		\
	knot/dnssec/kasp/kasp_zone.c		\
	knot/dnssec/kasp/kasp_zone.h		\
235 236 237 238
	knot/dnssec/kasp/keystate.c		\
	knot/dnssec/kasp/keystate.h		\
	knot/dnssec/kasp/keystore.c		\
	knot/dnssec/kasp/keystore.h		\
239
	knot/dnssec/kasp/policy.h		\
240 241
	knot/dnssec/key-events.c		\
	knot/dnssec/key-events.h		\
242 243 244 245
	knot/dnssec/nsec-chain.c		\
	knot/dnssec/nsec-chain.h		\
	knot/dnssec/nsec3-chain.c		\
	knot/dnssec/nsec3-chain.h		\
Jan Včelák's avatar
Jan Včelák committed
246 247
	knot/dnssec/policy.c			\
	knot/dnssec/policy.h			\
248 249
	knot/dnssec/rrset-sign.c		\
	knot/dnssec/rrset-sign.h		\
250 251 252 253 254 255 256 257
	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			\
258 259 260 261 262 263
	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		\
264
	knot/events/handlers/freeze_thaw.c	\
265 266
	knot/events/handlers/load.c		\
	knot/events/handlers/notify.c		\
267
	knot/events/handlers/nsec3resalt.c	\
268 269
	knot/events/handlers/refresh.c		\
	knot/events/handlers/update.c		\
270
	knot/events/handlers/parent_ds_query.c	\
271 272
	knot/events/log.c			\
	knot/events/log.h			\
273 274
	knot/events/replan.c			\
	knot/events/replan.h			\
275 276
	knot/nameserver/axfr.c			\
	knot/nameserver/axfr.h			\
Daniel Salzman's avatar
Daniel Salzman committed
277 278
	knot/nameserver/chaos.c			\
	knot/nameserver/chaos.h			\
279 280 281 282
	knot/nameserver/internet.c		\
	knot/nameserver/internet.h		\
	knot/nameserver/ixfr.c			\
	knot/nameserver/ixfr.h			\
283
	knot/nameserver/log.h			\
Daniel Salzman's avatar
Daniel Salzman committed
284 285
	knot/nameserver/notify.c		\
	knot/nameserver/notify.h		\
286 287
	knot/nameserver/nsec_proofs.c		\
	knot/nameserver/nsec_proofs.h		\
Daniel Salzman's avatar
Daniel Salzman committed
288 289
	knot/nameserver/process_query.c		\
	knot/nameserver/process_query.h		\
290 291
	knot/nameserver/query_module.c		\
	knot/nameserver/query_module.h		\
292 293
	knot/nameserver/tsig_ctx.c		\
	knot/nameserver/tsig_ctx.h		\
Daniel Salzman's avatar
Daniel Salzman committed
294 295
	knot/nameserver/update.c		\
	knot/nameserver/update.h		\
Jan Včelák's avatar
Jan Včelák committed
296 297
	knot/nameserver/xfr.c			\
	knot/nameserver/xfr.h			\
298 299
	knot/query/capture.c			\
	knot/query/capture.h			\
300
	knot/query/layer.h			\
301 302
	knot/query/query.c			\
	knot/query/query.h			\
303 304
	knot/query/requestor.c			\
	knot/query/requestor.h			\
305 306 307 308
	knot/common/evsched.c			\
	knot/common/evsched.h			\
	knot/common/fdset.c			\
	knot/common/fdset.h			\
309 310
	knot/common/log.c			\
	knot/common/log.h			\
311 312
	knot/common/process.c			\
	knot/common/process.h			\
313 314
	knot/common/ref.c			\
	knot/common/ref.h			\
315 316
	knot/common/stats.c			\
	knot/common/stats.h			\
317
	knot/server/dthreads.c			\
318
	knot/server/dthreads.h			\
319 320 321 322
	knot/journal/journal.c			\
	knot/journal/journal.h			\
	knot/journal/serialization.c		\
	knot/journal/serialization.h		\
323
	knot/server/server.c			\
324 325
	knot/server/server.h			\
	knot/server/tcp-handler.c		\
326
	knot/server/tcp-handler.h		\
327 328
	knot/server/udp-handler.c		\
	knot/server/udp-handler.h		\
Jan Včelák's avatar
Jan Včelák committed
329 330
	knot/updates/acl.c			\
	knot/updates/acl.h			\
Daniel Salzman's avatar
Daniel Salzman committed
331 332
	knot/updates/apply.c			\
	knot/updates/apply.h			\
333
	knot/updates/changesets.c		\
334
	knot/updates/changesets.h		\
335
	knot/updates/ddns.c			\
336
	knot/updates/ddns.h			\
337 338
	knot/updates/zone-update.c		\
	knot/updates/zone-update.h		\
339 340 341 342
	knot/worker/pool.c			\
	knot/worker/pool.h			\
	knot/worker/queue.c			\
	knot/worker/queue.h			\
343 344
	knot/zone/contents.c			\
	knot/zone/contents.h			\
345 346
	knot/zone/node.c			\
	knot/zone/node.h			\
347 348
	knot/zone/semantic-check.c		\
	knot/zone/semantic-check.h		\
349 350
	knot/zone/serial.c			\
	knot/zone/serial.h			\
351 352
	knot/zone/timers.c			\
	knot/zone/timers.h			\
353 354
	knot/zone/zone-diff.c			\
	knot/zone/zone-diff.h			\
355 356
	knot/zone/zone-dump.c			\
	knot/zone/zone-dump.h			\
Daniel Salzman's avatar
Daniel Salzman committed
357 358
	knot/zone/zone-load.c			\
	knot/zone/zone-load.h			\
359 360
	knot/zone/zone-tree.c			\
	knot/zone/zone-tree.h			\
361 362
	knot/zone/zone.c			\
	knot/zone/zone.h			\
363 364
	knot/zone/zonedb-load.c			\
	knot/zone/zonedb-load.h			\
Daniel Salzman's avatar
Daniel Salzman committed
365 366
	knot/zone/zonedb.c			\
	knot/zone/zonedb.h			\
367 368
	knot/zone/zonefile.c			\
	knot/zone/zonefile.h
369

370 371 372 373
libknotd_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(systemd_CFLAGS) \
                       $(liburcu_CFLAGS) -DKNOTD_MOD_STATIC
libknotd_la_LDFLAGS  = $(AM_LDFLAGS) -export-symbols-regex '^knotd_'
libknotd_la_LIBADD   = libknot.la zscanner/libzscanner.la $(systemd_LIBS) \
374
                       $(liburcu_LIBS)
Jan Včelák's avatar
Jan Včelák committed
375

376 377 378 379 380 381
###################
# Knot DNS Daemon #
###################

if HAVE_DAEMON

Daniel Salzman's avatar
Daniel Salzman committed
382
sbin_PROGRAMS = knotc knotd keymgr
Ondřej Surý's avatar
Ondřej Surý committed
383
sbin_SCRIPTS = utils/pykeymgr/pykeymgr
384
noinst_LTLIBRARIES += libknotd.la libknotus.la
385
CLEAN_FILES = $(sbin_SCRIPTS)
386

387 388 389 390
knotddir = $(includedir)/knot
knotd_HEADERS =					\
	knot/include/module.h

391 392 393 394 395 396 397 398 399 400 401 402 403 404
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

Daniel Salzman's avatar
Daniel Salzman committed
405 406 407 408 409 410 411
keymgr_SOURCES = 				\
	utils/keymgr/bind_privkey.c		\
	utils/keymgr/bind_privkey.h		\
	utils/keymgr/functions.c		\
	utils/keymgr/functions.h		\
	utils/keymgr/main.c

412
knotd_CPPFLAGS  = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(liburcu_CFLAGS)
Daniel Salzman's avatar
Daniel Salzman committed
413
knotd_LDADD     = libknotd.la libcontrib.la $(liburcu_LIBS)
414 415 416 417
knotd_LDFLAGS   = $(AM_LDFLAGS) -rdynamic
knotc_CPPFLAGS  = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(libedit_CFLAGS)
knotc_LDADD     = libknotd.la libcontrib.la libknotus.la $(libedit_LIBS)
knotc_LDFLAGS   = $(AM_LDFLAGS) -rdynamic
418
keymgr_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/dnssec/lib/dnssec \
Daniel Salzman's avatar
Daniel Salzman committed
419
                  -I$(srcdir)/dnssec $(gnutls_CFLAGS)
420 421
keymgr_LDADD    = libknotd.la libcontrib.la libknotus.la dnssec/libdnssec.la \
                  dnssec/libshared.la zscanner/libzscanner.la
422

Ondřej Surý's avatar
Ondřej Surý committed
423 424 425
####################################
# Optional Knot DNS Daemon modules #
####################################
426

427 428
# Create storage and run-time directories
install-data-hook:
429
	$(INSTALL) -d $(DESTDIR)/@config_dir@
430 431
	$(INSTALL) -d $(DESTDIR)/@run_dir@
	$(INSTALL) -d $(DESTDIR)/@storage_dir@
Ondřej Surý's avatar
Ondřej Surý committed
432

433
endif # HAVE_DAEMON
Ondřej Surý's avatar
Ondřej Surý committed
434 435 436 437 438 439 440

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

if HAVE_UTILS

441 442
bin_PROGRAMS = kdig khost knsec3hash knsupdate
if HAVE_DAEMON
Daniel Salzman's avatar
Daniel Salzman committed
443
bin_PROGRAMS += kzonecheck kjournalprint
444
endif # HAVE_DAEMON
Ondřej Surý's avatar
Ondřej Surý committed
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461

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

462 463 464
knsec3hash_SOURCES =				\
	utils/knsec3hash/knsec3hash.c

Ondřej Surý's avatar
Ondřej Surý committed
465 466 467 468 469 470 471
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

472 473 474 475 476
kzonecheck_SOURCES =				\
	utils/kzonecheck/main.c			\
	utils/kzonecheck/zone_check.c		\
	utils/kzonecheck/zone_check.h

477 478 479
kjournalprint_SOURCES = 			\
	utils/kjournalprint/main.c

Ondřej Surý's avatar
Ondřej Surý committed
480
# bin programs
481
kdig_CPPFLAGS          = $(AM_CPPFLAGS) $(gnutls_CFLAGS)
482
kdig_LDADD             = libknotus.la
483
khost_CPPFLAGS         = $(AM_CPPFLAGS) $(gnutls_CFLAGS)
484
khost_LDADD            = libknotus.la
485
knsupdate_CPPFLAGS     = $(AM_CPPFLAGS) $(gnutls_CFLAGS)
486 487
knsupdate_LDADD        = libknotus.la zscanner/libzscanner.la
knsec3hash_CPPFLAGS    = $(AM_CPPFLAGS) -I$(srcdir)/dnssec -I$(srcdir)/dnssec/lib/dnssec
488
knsec3hash_LDADD       = libknot.la libcontrib.la dnssec/libdnssec.la dnssec/libshared.la
489
kzonecheck_CPPFLAGS    = $(AM_CPPFLAGS)
490
kzonecheck_LDADD       = libknotd.la libcontrib.la
491 492
kjournalprint_CPPFLAGS = $(AM_CPPFLAGS) $(gnutls_CFLAGS)
kjournalprint_LDADD    = libknotd.la libcontrib.la
Ondřej Surý's avatar
Ondřej Surý committed
493 494 495 496 497 498

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

if HAVE_DNSTAP
499 500 501 502
kdig_LDADD          += $(DNSTAP_LIBS) contrib/dnstap/libdnstap.la
khost_LDADD         += $(DNSTAP_LIBS) contrib/dnstap/libdnstap.la
kdig_CPPFLAGS       += $(DNSTAP_CFLAGS)
khost_CPPFLAGS      += $(DNSTAP_CFLAGS)
Ondřej Surý's avatar
Ondřej Surý committed
503 504 505
endif # HAVE_DNSTAP

endif # HAVE_UTILS
506 507

KNOTD_MOD_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY)
508
KNOTD_MOD_LDFLAGS  = $(AM_LDFLAGS) -module -shared -avoid-version
509 510 511 512

pkglibdir = $(module_instdir)
pkglib_LTLIBRARIES =

513
include $(srcdir)/knot/modules/cookies/Makefile.inc
514 515 516 517 518 519 520 521
include $(srcdir)/knot/modules/dnsproxy/Makefile.inc
include $(srcdir)/knot/modules/dnstap/Makefile.inc
include $(srcdir)/knot/modules/noudp/Makefile.inc
include $(srcdir)/knot/modules/onlinesign/Makefile.inc
include $(srcdir)/knot/modules/rrl/Makefile.inc
include $(srcdir)/knot/modules/stats/Makefile.inc
include $(srcdir)/knot/modules/synthrecord/Makefile.inc
include $(srcdir)/knot/modules/whoami/Makefile.inc