Makefile.am 15.1 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

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

23 24 25
######################
# Knot DNS Libraries #
######################
26

27 28 29 30 31 32 33 34
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			\
35
	contrib/ucw/LICENSE			\
36
	utils/pykeymgr/pykeymgr.in
37

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

92 93 94 95 96 97 98 99
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

100
libcontrib_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY)
101
libcontrib_la_LDFLAGS  = $(AM_LDFLAGS) $(LDFLAG_EXCLUDE_LIBS)
102

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

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

195
libknot_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(lmdb_CFLAGS)
196 197 198
libknot_la_LDFLAGS  = $(AM_LDFLAGS) $(libknot_VERSION_INFO) $(lmdb_LIBS) \
                      $(LDFLAG_EXCLUDE_LIBS)
libknot_la_LIBADD   = dnssec/libdnssec.la libcontrib.la
199

200
# pkg-config
201
pkgconfig_DATA = knotd.pc libknot.pc
202

203 204
# static: utilities shared
libknotus_la_SOURCES =				\
205 206
	utils/common/cert.c			\
	utils/common/cert.h			\
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
	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			\
223 224
	utils/common/tls.c			\
	utils/common/tls.h			\
225 226 227
	utils/common/token.c			\
	utils/common/token.h

228 229 230 231 232
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)
233

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

398 399 400 401
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) \
402
                       $(liburcu_LIBS)
Jan Včelák's avatar
Jan Včelák committed
403

404 405 406 407 408 409
###################
# Knot DNS Daemon #
###################

if HAVE_DAEMON

410
sbin_PROGRAMS = knotc knotd keymgr
Ondřej Surý's avatar
Ondřej Surý committed
411
sbin_SCRIPTS = utils/pykeymgr/pykeymgr
412
noinst_LTLIBRARIES += libknotd.la libknotus.la
413
CLEAN_FILES = $(sbin_SCRIPTS)
414

415 416 417 418
knotddir = $(includedir)/knot
knotd_HEADERS =					\
	knot/include/module.h

419 420 421 422 423 424 425 426 427 428 429 430 431 432
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

433 434 435 436 437 438 439
keymgr_SOURCES = 				\
	utils/keymgr/bind_privkey.c		\
	utils/keymgr/bind_privkey.h		\
	utils/keymgr/functions.c		\
	utils/keymgr/functions.h		\
	utils/keymgr/main.c

440
knotd_CPPFLAGS  = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(liburcu_CFLAGS)
441
knotd_LDADD     = libknotd.la libcontrib.la $(liburcu_LIBS)
442 443 444 445
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
446
keymgr_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/dnssec/lib/dnssec \
447
                  -I$(srcdir)/dnssec $(gnutls_CFLAGS)
448 449
keymgr_LDADD    = libknotd.la libcontrib.la libknotus.la dnssec/libdnssec.la \
                  dnssec/libshared.la zscanner/libzscanner.la
450

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

455 456
# Create storage and run-time directories
install-data-hook:
457
	$(INSTALL) -d $(DESTDIR)/@config_dir@
458 459
	$(INSTALL) -d $(DESTDIR)/@run_dir@
	$(INSTALL) -d $(DESTDIR)/@storage_dir@
460

461
endif # HAVE_DAEMON
462 463 464 465 466 467 468

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

if HAVE_UTILS

469 470
bin_PROGRAMS = kdig khost knsec3hash knsupdate
if HAVE_DAEMON
471
bin_PROGRAMS += kzonecheck kjournalprint
472
endif # HAVE_DAEMON
473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489

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

490 491 492
knsec3hash_SOURCES =				\
	utils/knsec3hash/knsec3hash.c

493 494 495 496 497 498 499
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

500 501 502 503 504
kzonecheck_SOURCES =				\
	utils/kzonecheck/main.c			\
	utils/kzonecheck/zone_check.c		\
	utils/kzonecheck/zone_check.h

505 506 507
kjournalprint_SOURCES = 			\
	utils/kjournalprint/main.c

508
# bin programs
509
kdig_CPPFLAGS          = $(AM_CPPFLAGS) $(gnutls_CFLAGS)
510
kdig_LDADD             = libknotus.la
511
khost_CPPFLAGS         = $(AM_CPPFLAGS) $(gnutls_CFLAGS)
512
khost_LDADD            = libknotus.la
513
knsupdate_CPPFLAGS     = $(AM_CPPFLAGS) $(gnutls_CFLAGS)
514 515
knsupdate_LDADD        = libknotus.la zscanner/libzscanner.la
knsec3hash_CPPFLAGS    = $(AM_CPPFLAGS) -I$(srcdir)/dnssec -I$(srcdir)/dnssec/lib/dnssec
516
knsec3hash_LDADD       = libknot.la libcontrib.la dnssec/libdnssec.la dnssec/libshared.la
517
kzonecheck_CPPFLAGS    = $(AM_CPPFLAGS)
518
kzonecheck_LDADD       = libknotd.la libcontrib.la
519 520
kjournalprint_CPPFLAGS = $(AM_CPPFLAGS) $(gnutls_CFLAGS)
kjournalprint_LDADD    = libknotd.la libcontrib.la
521 522 523 524 525 526

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

if HAVE_DNSTAP
527 528 529 530
kdig_LDADD          += $(DNSTAP_LIBS) contrib/dnstap/libdnstap.la
khost_LDADD         += $(DNSTAP_LIBS) contrib/dnstap/libdnstap.la
kdig_CPPFLAGS       += $(DNSTAP_CFLAGS)
khost_CPPFLAGS      += $(DNSTAP_CFLAGS)
531 532 533
endif # HAVE_DNSTAP

endif # HAVE_UTILS
534 535

KNOTD_MOD_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY)
536
KNOTD_MOD_LDFLAGS  = $(AM_LDFLAGS) -module -shared -avoid-version
537 538 539 540 541 542 543 544 545 546 547 548 549

pkglibdir = $(module_instdir)
pkglib_LTLIBRARIES =

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/rosedb/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