1libknotd_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(libkqueue_CFLAGS) \
2                       $(liburcu_CFLAGS) $(lmdb_CFLAGS) $(systemd_CFLAGS) \
3                       -DKNOTD_MOD_STATIC
4libknotd_la_LDFLAGS  = $(AM_LDFLAGS) -export-symbols-regex '^knotd_'
5libknotd_la_LIBADD   = $(dlopen_LIBS) $(libkqueue_LIBS) $(pthread_LIBS)
6libknotd_LIBS        = libknotd.la libknot.la libdnssec.la libzscanner.la \
7                       $(libcontrib_LIBS) $(liburcu_LIBS) $(lmdb_LIBS) \
8                       $(systemd_LIBS)
9
10include_libknotddir = $(includedir)/knot
11include_libknotd_HEADERS = \
12	knot/include/module.h
13
14libknotd_la_SOURCES = \
15	knot/catalog/catalog_db.c		\
16	knot/catalog/catalog_db.h		\
17	knot/catalog/catalog_update.c		\
18	knot/catalog/catalog_update.h		\
19	knot/catalog/generate.c			\
20	knot/catalog/generate.h			\
21	knot/catalog/interpret.c		\
22	knot/catalog/interpret.h		\
23	knot/conf/base.c			\
24	knot/conf/base.h			\
25	knot/conf/conf.c			\
26	knot/conf/conf.h			\
27	knot/conf/confdb.c			\
28	knot/conf/confdb.h			\
29	knot/conf/confio.c			\
30	knot/conf/confio.h			\
31	knot/conf/migration.c			\
32	knot/conf/migration.h			\
33	knot/conf/module.h			\
34	knot/conf/module.c			\
35	knot/conf/schema.c			\
36	knot/conf/schema.h			\
37	knot/conf/tools.c			\
38	knot/conf/tools.h			\
39	knot/ctl/commands.c			\
40	knot/ctl/commands.h			\
41	knot/ctl/process.c			\
42	knot/ctl/process.h			\
43	knot/dnssec/context.c			\
44	knot/dnssec/context.h			\
45	knot/dnssec/ds_query.c			\
46	knot/dnssec/ds_query.h			\
47	knot/dnssec/kasp/kasp_db.c		\
48	knot/dnssec/kasp/kasp_db.h		\
49	knot/dnssec/kasp/kasp_zone.c		\
50	knot/dnssec/kasp/kasp_zone.h		\
51	knot/dnssec/kasp/keystate.c		\
52	knot/dnssec/kasp/keystate.h		\
53	knot/dnssec/kasp/keystore.c		\
54	knot/dnssec/kasp/keystore.h		\
55	knot/dnssec/kasp/policy.h		\
56	knot/dnssec/key-events.c		\
57	knot/dnssec/key-events.h		\
58	knot/dnssec/key_records.c		\
59	knot/dnssec/key_records.h		\
60	knot/dnssec/nsec-chain.c		\
61	knot/dnssec/nsec-chain.h		\
62	knot/dnssec/nsec3-chain.c		\
63	knot/dnssec/nsec3-chain.h		\
64	knot/dnssec/policy.c			\
65	knot/dnssec/policy.h			\
66	knot/dnssec/rrset-sign.c		\
67	knot/dnssec/rrset-sign.h		\
68	knot/dnssec/zone-events.c		\
69	knot/dnssec/zone-events.h		\
70	knot/dnssec/zone-keys.c			\
71	knot/dnssec/zone-keys.h			\
72	knot/dnssec/zone-nsec.c			\
73	knot/dnssec/zone-nsec.h			\
74	knot/dnssec/zone-sign.c			\
75	knot/dnssec/zone-sign.h			\
76	knot/events/events.c			\
77	knot/events/events.h			\
78	knot/events/handlers.h			\
79	knot/events/handlers/backup.c		\
80	knot/events/handlers/dnssec.c		\
81	knot/events/handlers/ds_check.c		\
82	knot/events/handlers/ds_push.c		\
83	knot/events/handlers/expire.c		\
84	knot/events/handlers/flush.c		\
85	knot/events/handlers/freeze_thaw.c	\
86	knot/events/handlers/load.c		\
87	knot/events/handlers/notify.c		\
88	knot/events/handlers/nsec3resalt.c	\
89	knot/events/handlers/refresh.c		\
90	knot/events/handlers/update.c		\
91	knot/events/replan.c			\
92	knot/events/replan.h			\
93	knot/nameserver/axfr.c			\
94	knot/nameserver/axfr.h			\
95	knot/nameserver/chaos.c			\
96	knot/nameserver/chaos.h			\
97	knot/nameserver/internet.c		\
98	knot/nameserver/internet.h		\
99	knot/nameserver/ixfr.c			\
100	knot/nameserver/ixfr.h			\
101	knot/nameserver/log.h			\
102	knot/nameserver/notify.c		\
103	knot/nameserver/notify.h		\
104	knot/nameserver/nsec_proofs.c		\
105	knot/nameserver/nsec_proofs.h		\
106	knot/nameserver/process_query.c		\
107	knot/nameserver/process_query.h		\
108	knot/nameserver/query_module.c		\
109	knot/nameserver/query_module.h		\
110	knot/nameserver/tsig_ctx.c		\
111	knot/nameserver/tsig_ctx.h		\
112	knot/nameserver/update.c		\
113	knot/nameserver/update.h		\
114	knot/nameserver/xfr.c			\
115	knot/nameserver/xfr.h			\
116	knot/query/capture.c			\
117	knot/query/capture.h			\
118	knot/query/layer.h			\
119	knot/query/query.c			\
120	knot/query/query.h			\
121	knot/query/requestor.c			\
122	knot/query/requestor.h			\
123	knot/common/evsched.c			\
124	knot/common/evsched.h			\
125	knot/common/fdset.c			\
126	knot/common/fdset.h			\
127	knot/common/log.c			\
128	knot/common/log.h			\
129	knot/common/process.c			\
130	knot/common/process.h			\
131	knot/common/stats.c			\
132	knot/common/stats.h			\
133	knot/common/systemd.c			\
134	knot/common/systemd.h			\
135	knot/common/unreachable.c		\
136	knot/common/unreachable.h		\
137	knot/server/dthreads.c			\
138	knot/server/dthreads.h			\
139	knot/journal/journal_basic.c		\
140	knot/journal/journal_basic.h		\
141	knot/journal/journal_metadata.c		\
142	knot/journal/journal_metadata.h		\
143	knot/journal/journal_read.c		\
144	knot/journal/journal_read.h		\
145	knot/journal/journal_write.c		\
146	knot/journal/journal_write.h		\
147	knot/journal/knot_lmdb.c		\
148	knot/journal/knot_lmdb.h		\
149	knot/journal/serialization.c		\
150	knot/journal/serialization.h		\
151	knot/server/server.c			\
152	knot/server/server.h			\
153	knot/server/tcp-handler.c		\
154	knot/server/tcp-handler.h		\
155	knot/server/udp-handler.c		\
156	knot/server/udp-handler.h		\
157	knot/server/xdp-handler.c		\
158	knot/server/xdp-handler.h		\
159	knot/updates/acl.c			\
160	knot/updates/acl.h			\
161	knot/updates/apply.c			\
162	knot/updates/apply.h			\
163	knot/updates/changesets.c		\
164	knot/updates/changesets.h		\
165	knot/updates/ddns.c			\
166	knot/updates/ddns.h			\
167	knot/updates/zone-update.c		\
168	knot/updates/zone-update.h		\
169	knot/worker/pool.c			\
170	knot/worker/pool.h			\
171	knot/worker/queue.c			\
172	knot/worker/queue.h			\
173	knot/zone/adds_tree.c			\
174	knot/zone/adds_tree.h			\
175	knot/zone/adjust.c			\
176	knot/zone/adjust.h			\
177	knot/zone/backup.c			\
178	knot/zone/backup.h			\
179	knot/zone/backup_dir.c			\
180	knot/zone/backup_dir.h			\
181	knot/zone/contents.c			\
182	knot/zone/contents.h			\
183	knot/zone/digest.c			\
184	knot/zone/digest.h			\
185	knot/zone/measure.h			\
186	knot/zone/measure.c			\
187	knot/zone/node.c			\
188	knot/zone/node.h			\
189	knot/zone/semantic-check.c		\
190	knot/zone/semantic-check.h		\
191	knot/zone/serial.c			\
192	knot/zone/serial.h			\
193	knot/zone/timers.c			\
194	knot/zone/timers.h			\
195	knot/zone/zone-diff.c			\
196	knot/zone/zone-diff.h			\
197	knot/zone/zone-dump.c			\
198	knot/zone/zone-dump.h			\
199	knot/zone/zone-load.c			\
200	knot/zone/zone-load.h			\
201	knot/zone/zone-tree.c			\
202	knot/zone/zone-tree.h			\
203	knot/zone/zone.c			\
204	knot/zone/zone.h			\
205	knot/zone/zonedb-load.c			\
206	knot/zone/zonedb-load.h			\
207	knot/zone/zonedb.c			\
208	knot/zone/zonedb.h			\
209	knot/zone/zonefile.c			\
210	knot/zone/zonefile.h
211
212if HAVE_DAEMON
213noinst_LTLIBRARIES += libknotd.la
214pkgconfig_DATA     += knotd.pc
215endif HAVE_DAEMON
216
217KNOTD_MOD_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY)
218KNOTD_MOD_LDFLAGS  = $(AM_LDFLAGS) -module -shared -avoid-version
219
220pkglibdir = $(module_instdir)
221pkglib_LTLIBRARIES =
222
223include $(srcdir)/knot/modules/cookies/Makefile.inc
224include $(srcdir)/knot/modules/dnsproxy/Makefile.inc
225include $(srcdir)/knot/modules/dnstap/Makefile.inc
226include $(srcdir)/knot/modules/geoip/Makefile.inc
227include $(srcdir)/knot/modules/noudp/Makefile.inc
228include $(srcdir)/knot/modules/onlinesign/Makefile.inc
229include $(srcdir)/knot/modules/probe/Makefile.inc
230include $(srcdir)/knot/modules/queryacl/Makefile.inc
231include $(srcdir)/knot/modules/rrl/Makefile.inc
232include $(srcdir)/knot/modules/stats/Makefile.inc
233include $(srcdir)/knot/modules/synthrecord/Makefile.inc
234include $(srcdir)/knot/modules/whoami/Makefile.inc
235