]>
Commit | Line | Data |
---|---|---|
23448838 | 1 | JSON11_LIBS = $(top_builddir)/ext/json11/libjson11.la |
a0d8a0f0 | 2 | ARC4RANDOM_LIBS = $(top_builddir)/ext/arc4random/libarc4random.la |
5938c49f | 3 | |
c57747c8 | 4 | AM_CPPFLAGS += \ |
bf6dc747 | 5 | -I$(top_srcdir)/ext/json11 \ |
f76ef2b9 | 6 | $(YAHTTP_CFLAGS) \ |
45a1349b | 7 | $(LIBEDIT_CFLAGS) \ |
74d83458 | 8 | $(LIBCRYPTO_INCLUDES) \ |
f2d45260 | 9 | $(SYSTEMD_CFLAGS) \ |
565715ed | 10 | $(YAML_CFLAGS) \ |
311f2683 PD |
11 | -I$(top_srcdir)/ext/protozero/include \ |
12 | -DBOOST_CONTAINER_USE_STD_EXCEPTIONS | |
c57747c8 RK |
13 | |
14 | AM_CXXFLAGS = \ | |
15 | -DSYSCONFDIR=\"$(sysconfdir)\" \ | |
16 | -DPKGLIBDIR=\"$(pkglibdir)\" \ | |
f76ef2b9 | 17 | -DLOCALSTATEDIR=\"$(socketdir)\" |
e53a4bf6 | 18 | |
b2053c28 RK |
19 | AM_LDFLAGS = \ |
20 | $(PROGRAM_LDFLAGS) \ | |
b2504b29 | 21 | $(LIBCRYPTO_LIBS) \ |
a0d8a0f0 | 22 | $(ARC4RANDOM_LIBS) \ |
b2053c28 RK |
23 | $(THREADFLAGS) |
24 | ||
2a4f2b86 | 25 | AM_LFLAGS = -i |
e53a4bf6 | 26 | AM_YFLAGS = -d --verbose --debug |
cc8915f3 | 27 | |
8daea594 AT |
28 | if PKCS11 |
29 | AM_CPPFLAGS += $(P11KIT1_CFLAGS) | |
30 | endif | |
31 | ||
9d6da5d7 RK |
32 | if SQLITE3 |
33 | AM_CPPFLAGS += $(SQLITE3_CFLAGS) | |
34 | endif | |
35 | ||
6e312f87 RK |
36 | if LUA |
37 | AM_CPPFLAGS +=$(LUA_CFLAGS) | |
38 | endif | |
39 | ||
b08f1315 OM |
40 | if GSS_TSIG |
41 | AM_CPPFLAGS +=$(GSS_CFLAGS) | |
42 | endif | |
43 | ||
917db12a RG |
44 | if LIBSODIUM |
45 | AM_CPPFLAGS +=$(LIBSODIUM_CFLAGS) | |
46 | endif | |
47 | ||
e59df15b FM |
48 | if LIBDECAF |
49 | AM_CPPFLAGS += $(LIBDECAF_CFLAGS) | |
50 | endif | |
51 | ||
c57747c8 RK |
52 | EXTRA_DIST = \ |
53 | dnslabeltext.rl \ | |
54 | dnslabeltext.cc \ | |
ee2ba7b2 | 55 | dnsmessage.proto \ |
c57747c8 | 56 | inflighter.cc \ |
aeb68567 | 57 | bindparser.hh \ |
1dd6c3a3 | 58 | named.conf.parsertest \ |
b14d512f | 59 | pdns.service.in \ |
07048927 | 60 | ixfrdist.service.in \ |
1415809d | 61 | ixfrdist.example.yml \ |
07048927 CHB |
62 | lua-record.cc \ |
63 | minicurl.cc \ | |
917f686a | 64 | minicurl.hh \ |
cabda036 | 65 | standalone_fuzz_target_runner.cc \ |
917f686a KF |
66 | api-swagger.yaml \ |
67 | api-swagger.json \ | |
68 | requirements.txt \ | |
98508251 KF |
69 | incfiles \ |
70 | convert-yaml-to-json.py | |
c57747c8 | 71 | |
c57747c8 RK |
72 | BUILT_SOURCES = \ |
73 | bind-dnssec.schema.sqlite3.sql.h \ | |
aeb68567 | 74 | bindparser.hh \ |
917f686a KF |
75 | dnslabeltext.cc \ |
76 | apidocfiles.h | |
c57747c8 | 77 | |
366c610a | 78 | CLEANFILES = \ |
366c610a RK |
79 | *.gcda \ |
80 | *.gcno \ | |
81 | *.gcov \ | |
82 | backends/gsql/gsqlbackend.gcda \ | |
83 | backends/gsql/gsqlbackend.gcno \ | |
8a1cf612 | 84 | backends/gsql/gsqlbackend.gcov \ |
917f686a | 85 | pdns.conf-dist \ |
88fb80c7 KF |
86 | apidocfiles.h |
87 | ||
88 | if !HAVE_API_SWAGGER_JSON | |
89 | # don't clean these files if they were present | |
90 | # at 'configure' time (e.g. from a source dist) | |
91 | CLEANFILES += \ | |
917f686a KF |
92 | api-swagger.yaml \ |
93 | api-swagger.json | |
88fb80c7 | 94 | endif |
917f686a KF |
95 | |
96 | # use a $(wildcard) wrapper here to allow build to proceed if output | |
97 | # file is present but input file is not (e.g. in a dist tarball) | |
2250b53a | 98 | api-swagger.yaml: $(wildcard ${srcdir}/../docs/http-api/swagger/authoritative-api-swagger.yaml) |
917f686a KF |
99 | cp $< $@ |
100 | ||
98508251 | 101 | if HAVE_VENV |
fc7e2034 | 102 | api-swagger.json: api-swagger.yaml requirements.txt |
98508251 KF |
103 | $(PYTHON) -m venv .venv |
104 | .venv/bin/pip install -U pip setuptools setuptools-git wheel | |
2250b53a CH |
105 | .venv/bin/pip install -r ${srcdir}/requirements.txt |
106 | .venv/bin/python ${srcdir}/convert-yaml-to-json.py $< $@ | |
98508251 | 107 | else # if HAVE_VENV |
917f686a KF |
108 | if !HAVE_API_SWAGGER_JSON |
109 | api-swagger.json: | |
98508251 | 110 | echo "You need Python 3 and the 'venv' module to generate the JSON API document" |
917f686a KF |
111 | exit 1 |
112 | endif | |
113 | endif | |
114 | ||
115 | apidocfiles.h: api-swagger.yaml api-swagger.json | |
2250b53a CH |
116 | $(AM_V_GEN)$(srcdir)/incfiles $^ > $@.tmp |
117 | @mv $@.tmp $@ | |
20af48f2 | 118 | |
c57747c8 | 119 | sysconf_DATA = pdns.conf-dist |
12c86877 | 120 | |
c57747c8 RK |
121 | sbin_PROGRAMS = pdns_server |
122 | bin_PROGRAMS = \ | |
123 | pdns_control \ | |
fd5076c8 | 124 | pdnsutil \ |
c57747c8 | 125 | zone2sql \ |
c57747c8 | 126 | zone2json |
5b26bda1 PD |
127 | |
128 | if TOOLS | |
c57747c8 | 129 | bin_PROGRAMS += \ |
53ea4fab | 130 | dnsgram \ |
52ebf44e | 131 | dnspcap2calidns \ |
471c63d0 | 132 | dnspcap2protobuf \ |
c57747c8 RK |
133 | dnsreplay \ |
134 | dnsscan \ | |
135 | dnsscope \ | |
c57747c8 | 136 | dnswasher \ |
34eb951c | 137 | dumresp \ |
a4437033 | 138 | pdns_notify \ |
0cad3084 | 139 | nproxy \ |
c57747c8 | 140 | nsec3dig \ |
1801fa62 | 141 | saxfr \ |
6ee22c5e | 142 | stubquery \ |
aea0480e | 143 | ixplore \ |
1801fa62 | 144 | sdig |
4ab95bea | 145 | |
4ab95bea | 146 | bin_PROGRAMS += calidns |
4ab95bea | 147 | |
6cedc26d RG |
148 | if HAVE_BOOST_GE_148 |
149 | bin_PROGRAMS += \ | |
150 | dnsbulktest \ | |
151 | dnstcpbench | |
152 | endif | |
153 | ||
ca28add0 PL |
154 | endif # TOOLS |
155 | ||
156 | if IXFRDIST | |
157 | bin_PROGRAMS += \ | |
158 | ixfrdist | |
1415809d PL |
159 | |
160 | sysconf_DATA += \ | |
161 | ixfrdist.example.yml | |
2ead7159 BH |
162 | endif |
163 | ||
c57747c8 | 164 | EXTRA_PROGRAMS = \ |
7d8a5de7 | 165 | calidns \ |
ca12836d | 166 | comfun \ |
c57747c8 RK |
167 | dnsbulktest \ |
168 | dnsdemog \ | |
c57747c8 | 169 | dnsgram \ |
52ebf44e | 170 | dnspcap2calidns \ |
471c63d0 | 171 | dnspcap2protobuf \ |
c57747c8 RK |
172 | dnsreplay \ |
173 | dnsscan \ | |
174 | dnsscope \ | |
175 | dnstcpbench \ | |
176 | dnswasher \ | |
c1e527e3 | 177 | dumresp \ |
fba1e944 | 178 | kvresp \ |
aea0480e | 179 | ixplore \ |
a2670f5e | 180 | ixfrdist \ |
a4437033 | 181 | pdns_notify \ |
c57747c8 RK |
182 | nproxy \ |
183 | nsec3dig \ | |
c57747c8 | 184 | saxfr \ |
6ee22c5e | 185 | stubquery \ |
c57747c8 RK |
186 | sdig \ |
187 | speedtest \ | |
188 | testrunner \ | |
c57747c8 | 189 | tsig-tests \ |
9bc0d00a | 190 | zone2ldap |
c57747c8 RK |
191 | |
192 | pdns_server_SOURCES = \ | |
193 | arguments.cc arguments.hh \ | |
bf269e28 | 194 | auth-caches.cc auth-caches.hh \ |
1c81cda0 | 195 | auth-carbon.cc \ |
ddeea7a6 | 196 | auth-catalogzone.cc auth-catalogzone.hh \ |
8cb70f23 | 197 | auth-main.cc auth-main.hh \ |
bf269e28 | 198 | auth-packetcache.cc auth-packetcache.hh \ |
a01b2204 | 199 | auth-primarycommunicator.cc \ |
bf269e28 | 200 | auth-querycache.cc auth-querycache.hh \ |
a01b2204 | 201 | auth-secondarycommunicator.cc \ |
1f0fb39a | 202 | auth-zonecache.cc auth-zonecache.hh \ |
1c81cda0 | 203 | axfr-retriever.cc axfr-retriever.hh \ |
c57747c8 RK |
204 | backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \ |
205 | backends/gsql/ssql.hh \ | |
206 | base32.cc base32.hh \ | |
207 | base64.cc base64.hh \ | |
208 | bind-dnssec.schema.sqlite3.sql.h \ | |
45a82484 | 209 | bindlexer.l \ |
c57747c8 | 210 | bindparser.cc \ |
b2c3da47 | 211 | burtle.hh \ |
c57747c8 | 212 | cachecleaner.hh \ |
9f6a31ff | 213 | circular_buffer.hh \ |
c57747c8 | 214 | comment.hh \ |
c57747c8 | 215 | communicator.cc communicator.hh \ |
460a6daa | 216 | coverage.cc coverage.hh \ |
40422f78 | 217 | credentials.cc credentials.hh \ |
c57747c8 | 218 | dbdnsseckeeper.cc \ |
bfcdbc13 | 219 | digests.hh \ |
c57747c8 RK |
220 | distributor.hh \ |
221 | dns.cc dns.hh \ | |
a0d8a0f0 | 222 | dns_random.hh \ |
c57747c8 RK |
223 | dnsbackend.cc dnsbackend.hh \ |
224 | dnslabeltext.cc \ | |
d926c0da | 225 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
226 | dnspacket.cc dnspacket.hh \ |
227 | dnsparser.cc \ | |
228 | dnsproxy.cc dnsproxy.hh \ | |
13c30de7 | 229 | dnsrecords.cc dnsrecords.hh \ |
c57747c8 RK |
230 | dnssecinfra.cc dnssecinfra.hh \ |
231 | dnsseckeeper.hh \ | |
232 | dnssecsigner.cc \ | |
233 | dnswriter.cc \ | |
234 | dynhandler.cc dynhandler.hh \ | |
235 | dynlistener.cc dynlistener.hh \ | |
236 | dynmessenger.hh \ | |
37063755 | 237 | ednscookies.cc ednscookies.hh \ |
bf269e28 | 238 | ednsoptions.cc ednsoptions.hh \ |
c57747c8 | 239 | ednssubnet.cc ednssubnet.hh \ |
3a52d52f | 240 | gettime.cc gettime.hh \ |
5e8d94f1 | 241 | gss_context.cc gss_context.hh \ |
56f827ac | 242 | histogram.hh \ |
3e3f0358 | 243 | iputils.cc iputils.hh \ |
cd189f24 | 244 | ixfr.cc ixfr.hh \ |
c57747c8 RK |
245 | json.cc json.hh \ |
246 | lock.hh \ | |
247 | logger.cc logger.hh \ | |
ebaffe64 | 248 | logging.hh \ |
0ecc1158 | 249 | lua-auth4.cc lua-auth4.hh \ |
1c81cda0 | 250 | lua-base4.cc lua-base4.hh \ |
c57747c8 RK |
251 | misc.cc misc.hh \ |
252 | nameserver.cc nameserver.hh \ | |
253 | namespaces.hh \ | |
32fbb2ab | 254 | noinitvector.hh \ |
c57747c8 | 255 | nsecrecords.cc \ |
04c74848 | 256 | opensslsigners.cc opensslsigners.hh \ |
bf269e28 | 257 | packetcache.hh \ |
c57747c8 RK |
258 | packethandler.cc packethandler.hh \ |
259 | pdnsexception.hh \ | |
4172a5b2 | 260 | proxy-protocol.cc proxy-protocol.hh \ |
c57747c8 | 261 | qtype.cc qtype.hh \ |
20829585 | 262 | query-local-address.hh query-local-address.cc \ |
c8c88ac1 | 263 | rcpgenerator.cc \ |
c57747c8 | 264 | resolver.cc resolver.hh \ |
b552d7b1 | 265 | responsestats.cc responsestats.hh responsestats-auth.cc \ |
c57747c8 | 266 | rfc2136handler.cc \ |
199631c6 | 267 | secpoll-auth.cc secpoll-auth.hh \ |
1c81cda0 | 268 | secpoll.cc secpoll.hh \ |
c57747c8 RK |
269 | serialtweaker.cc \ |
270 | sha.hh \ | |
bbec1961 | 271 | shuffle.cc shuffle.hh \ |
c57747c8 RK |
272 | signingpipe.cc signingpipe.hh \ |
273 | sillyrecords.cc \ | |
553fe7cb | 274 | stat_t.hh \ |
c57747c8 | 275 | statbag.cc statbag.hh \ |
24317c7f | 276 | stubresolver.cc stubresolver.hh \ |
1c81cda0 | 277 | svc-records.cc svc-records.hh \ |
c57747c8 | 278 | tcpreceiver.cc tcpreceiver.hh \ |
519f5484 | 279 | threadname.hh threadname.cc \ |
59fa9228 | 280 | tkey.cc \ |
1886a4b3 | 281 | trusted-notification-proxy.hh trusted-notification-proxy.cc \ |
1c81cda0 PL |
282 | tsigutils.hh tsigutils.cc \ |
283 | tsigverifier.cc tsigverifier.hh \ | |
c57747c8 RK |
284 | ueberbackend.cc ueberbackend.hh \ |
285 | unix_semaphore.cc \ | |
286 | unix_utility.cc \ | |
287 | utility.hh \ | |
1c81cda0 | 288 | uuid-utils.hh uuid-utils.cc \ |
c57747c8 | 289 | version.cc version.hh \ |
d4cd065a | 290 | views.hh \ |
c57747c8 RK |
291 | webserver.cc webserver.hh \ |
292 | ws-api.cc ws-api.hh \ | |
293 | ws-auth.cc ws-auth.hh \ | |
294 | zoneparser-tng.cc | |
295 | ||
c57747c8 | 296 | pdns_server_LDFLAGS = \ |
b2053c28 | 297 | $(AM_LDFLAGS) \ |
04c74848 | 298 | $(DYNLINKFLAGS) \ |
74d83458 | 299 | $(LIBCRYPTO_LDFLAGS) |
c57747c8 | 300 | |
1184810a | 301 | EXTRA_pdns_server_DEPENDENCIES = @moduleobjects@ |
c57747c8 RK |
302 | pdns_server_LDADD = \ |
303 | @moduleobjects@ \ | |
304 | @modulelibs@ \ | |
305 | $(LIBDL) \ | |
5938c49f | 306 | $(YAHTTP_LIBS) \ |
04c74848 | 307 | $(JSON11_LIBS) \ |
74d83458 | 308 | $(LIBCRYPTO_LIBS) \ |
8900e2e3 CHB |
309 | $(SYSTEMD_LIBS) |
310 | ||
311 | if HAVE_LUA_RECORDS | |
312 | pdns_server_SOURCES += lua-record.cc minicurl.cc minicurl.hh | |
313 | pdns_server_LDADD += $(LIBCURL) | |
314 | endif | |
01804b2f | 315 | |
d4f29089 KM |
316 | if LIBSODIUM |
317 | pdns_server_SOURCES += sodiumsigners.cc | |
318 | pdns_server_LDADD += $(LIBSODIUM_LIBS) | |
319 | endif | |
320 | ||
21a8834a KM |
321 | if LIBDECAF |
322 | pdns_server_SOURCES += decafsigners.cc | |
323 | pdns_server_LDADD += $(LIBDECAF_LIBS) | |
324 | endif | |
325 | ||
32869e14 PD |
326 | if SQLITE3 |
327 | pdns_server_SOURCES += ssqlite3.cc ssqlite3.hh | |
9d6da5d7 | 328 | pdns_server_LDADD += $(SQLITE3_LIBS) |
32869e14 | 329 | endif |
1b8e5e6f | 330 | |
8daea594 AT |
331 | if PKCS11 |
332 | pdns_server_SOURCES += pkcs11signers.cc pkcs11signers.hh | |
333 | pdns_server_LDADD += $(P11KIT1_LIBS) | |
334 | endif | |
335 | ||
6e312f87 RK |
336 | if LUA |
337 | pdns_server_LDADD += $(LUA_LIBS) | |
338 | endif | |
339 | ||
b08f1315 OM |
340 | if GSS_TSIG |
341 | pdns_server_LDADD += $(GSS_LIBS) | |
342 | endif | |
343 | ||
fd5076c8 | 344 | pdnsutil_SOURCES = \ |
c57747c8 | 345 | arguments.cc \ |
bf269e28 | 346 | auth-caches.cc auth-caches.hh \ |
ddeea7a6 | 347 | auth-catalogzone.cc auth-catalogzone.hh \ |
bf269e28 RG |
348 | auth-packetcache.cc auth-packetcache.hh \ |
349 | auth-querycache.cc auth-querycache.hh \ | |
1f0fb39a | 350 | auth-zonecache.cc auth-zonecache.hh \ |
c57747c8 RK |
351 | backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \ |
352 | backends/gsql/ssql.hh \ | |
353 | base32.cc \ | |
354 | base64.cc base64.hh \ | |
45a82484 RK |
355 | bindlexer.l \ |
356 | bindparser.yy \ | |
c57747c8 | 357 | cachecleaner.hh \ |
9f6a31ff | 358 | circular_buffer.hh \ |
40422f78 | 359 | credentials.cc credentials.hh \ |
c57747c8 | 360 | dbdnsseckeeper.cc \ |
c57747c8 | 361 | dns.cc \ |
1c81cda0 | 362 | dnsbackend.cc \ |
c57747c8 | 363 | dnslabeltext.cc \ |
d926c0da | 364 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
365 | dnspacket.cc \ |
366 | dnsparser.cc dnsparser.hh \ | |
c57747c8 RK |
367 | dnsrecords.cc \ |
368 | dnssecinfra.cc dnssecinfra.hh \ | |
369 | dnssecsigner.cc \ | |
370 | dnswriter.cc dnswriter.hh \ | |
371 | dynlistener.cc \ | |
7e02f20e | 372 | ednscookies.cc ednscookies.hh \ |
bf269e28 | 373 | ednsoptions.cc ednsoptions.hh \ |
c57747c8 | 374 | ednssubnet.cc \ |
3a52d52f | 375 | gettime.cc gettime.hh \ |
b08f1315 | 376 | gss_context.cc gss_context.hh \ |
496151cf | 377 | ipcipher.cc ipcipher.hh \ |
fad1b31d | 378 | iputils.cc iputils.hh \ |
c57747c8 RK |
379 | json.cc \ |
380 | logger.cc \ | |
542febb3 AT |
381 | lua-auth4.cc lua-auth4.hh \ |
382 | lua-base4.cc lua-base4.hh \ | |
c57747c8 RK |
383 | misc.cc misc.hh \ |
384 | nsecrecords.cc \ | |
04c74848 | 385 | opensslsigners.cc opensslsigners.hh \ |
fd5076c8 | 386 | pdnsutil.cc \ |
c57747c8 | 387 | qtype.cc \ |
c57747c8 RK |
388 | rcpgenerator.cc rcpgenerator.hh \ |
389 | serialtweaker.cc \ | |
bbec1961 | 390 | shuffle.cc shuffle.hh \ |
c57747c8 RK |
391 | signingpipe.cc \ |
392 | sillyrecords.cc \ | |
393 | sstuff.hh \ | |
394 | statbag.cc \ | |
542febb3 | 395 | stubresolver.cc stubresolver.hh \ |
1c81cda0 | 396 | svc-records.cc svc-records.hh \ |
519f5484 | 397 | threadname.hh threadname.cc \ |
ac5298aa | 398 | tsigutils.hh tsigutils.cc \ |
c57747c8 RK |
399 | ueberbackend.cc \ |
400 | unix_utility.cc \ | |
ba731a42 | 401 | uuid-utils.hh uuid-utils.cc \ |
e7029d79 | 402 | validate.hh \ |
e21df721 | 403 | zonemd.hh zonemd.cc \ |
c57747c8 RK |
404 | zoneparser-tng.cc |
405 | ||
fd5076c8 | 406 | pdnsutil_LDFLAGS = \ |
b2053c28 | 407 | $(AM_LDFLAGS) \ |
c57747c8 | 408 | $(DYNLINKFLAGS) \ |
04c74848 | 409 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \ |
74d83458 | 410 | $(LIBCRYPTO_LDFLAGS) |
c57747c8 | 411 | |
1184810a | 412 | EXTRA_pdnsutil_DEPENDENCIES = @moduleobjects@ |
fd5076c8 | 413 | pdnsutil_LDADD = \ |
c57747c8 RK |
414 | @moduleobjects@ \ |
415 | @modulelibs@ \ | |
5938c49f | 416 | $(YAHTTP_LIBS) \ |
04c74848 | 417 | $(JSON11_LIBS) \ |
23448838 RK |
418 | $(LIBDL) \ |
419 | $(BOOST_PROGRAM_OPTIONS_LIBS) \ | |
496151cf RG |
420 | $(LIBCRYPTO_LIBS) \ |
421 | $(IPCRYPT_LIBS) | |
c57747c8 | 422 | |
d4f29089 | 423 | if LIBSODIUM |
fd5076c8 PL |
424 | pdnsutil_SOURCES += sodiumsigners.cc |
425 | pdnsutil_LDADD += $(LIBSODIUM_LIBS) | |
d4f29089 KM |
426 | endif |
427 | ||
21a8834a KM |
428 | if LIBDECAF |
429 | pdnsutil_SOURCES += decafsigners.cc | |
430 | pdnsutil_LDADD += $(LIBDECAF_LIBS) | |
431 | endif | |
432 | ||
4771024d | 433 | if SQLITE3 |
fd5076c8 PL |
434 | pdnsutil_SOURCES += ssqlite3.cc ssqlite3.hh |
435 | pdnsutil_LDADD += $(SQLITE3_LIBS) | |
4771024d RK |
436 | endif |
437 | ||
4771024d | 438 | if PKCS11 |
fd5076c8 PL |
439 | pdnsutil_SOURCES += pkcs11signers.cc pkcs11signers.hh |
440 | pdnsutil_LDADD += $(P11KIT1_LIBS) | |
4771024d RK |
441 | endif |
442 | ||
542febb3 AT |
443 | if LUA |
444 | pdnsutil_LDADD += $(LUA_LIBS) | |
445 | endif | |
446 | ||
b08f1315 OM |
447 | if GSS_TSIG |
448 | pdnsutil_LDADD += $(GSS_LIBS) | |
449 | endif | |
450 | ||
c57747c8 RK |
451 | zone2sql_SOURCES = \ |
452 | arguments.cc \ | |
453 | base32.cc \ | |
454 | base64.cc \ | |
455 | bind-dnssec.schema.sqlite3.sql.h \ | |
456 | bindlexer.l \ | |
457 | bindparser.yy \ | |
458 | bindparserclasses.hh \ | |
459 | dns.cc \ | |
c57747c8 | 460 | dnslabeltext.cc \ |
1c81cda0 | 461 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
462 | dnsparser.cc \ |
463 | dnsrecords.cc \ | |
464 | dnswriter.cc \ | |
465 | json.cc json.hh \ | |
466 | logger.cc \ | |
467 | misc.cc \ | |
468 | nsecrecords.cc \ | |
469 | qtype.cc \ | |
470 | rcpgenerator.cc \ | |
471 | sillyrecords.cc \ | |
472 | statbag.cc \ | |
1c81cda0 | 473 | svc-records.cc svc-records.hh \ |
c57747c8 RK |
474 | unix_utility.cc \ |
475 | zone2sql.cc \ | |
476 | zoneparser-tng.cc | |
477 | ||
74d83458 PL |
478 | zone2sql_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS) |
479 | zone2sql_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS) | |
c57747c8 RK |
480 | |
481 | zone2json_SOURCES = \ | |
482 | arguments.cc \ | |
483 | base32.cc \ | |
484 | base64.cc \ | |
485 | bind-dnssec.schema.sqlite3.sql.h \ | |
486 | bindlexer.l \ | |
487 | bindparser.yy \ | |
488 | bindparserclasses.hh \ | |
489 | dnslabeltext.cc \ | |
d926c0da | 490 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
491 | dnsparser.cc \ |
492 | dnsrecords.cc \ | |
493 | dnswriter.cc \ | |
494 | logger.cc \ | |
495 | misc.cc \ | |
496 | nsecrecords.cc \ | |
497 | qtype.cc \ | |
498 | rcpgenerator.cc \ | |
499 | sillyrecords.cc \ | |
500 | statbag.cc \ | |
1c81cda0 | 501 | svc-records.cc svc-records.hh \ |
c57747c8 RK |
502 | unix_utility.cc \ |
503 | zone2json.cc \ | |
504 | zoneparser-tng.cc | |
505 | ||
74d83458 PL |
506 | zone2json_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS) |
507 | zone2json_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS) | |
c57747c8 | 508 | |
b0ed8f1a | 509 | # pkglib_LTLIBRARIES = iputils.la |
c8c88ac1 | 510 | # iputils_la_SOURCES = lua-iputils.cc |
b0ed8f1a | 511 | # iputils_la_LDFLAGS= -module -avoid-version |
512 | ||
b63843d9 RK |
513 | if LDAP |
514 | bin_PROGRAMS += zone2ldap | |
515 | endif | |
516 | ||
c57747c8 RK |
517 | zone2ldap_SOURCES = \ |
518 | arguments.cc \ | |
519 | base32.cc \ | |
520 | base64.cc \ | |
521 | bind-dnssec.schema.sqlite3.sql.h \ | |
522 | bindlexer.l \ | |
523 | bindparser.yy \ | |
524 | bindparserclasses.hh \ | |
c57747c8 | 525 | dnslabeltext.cc \ |
1c81cda0 | 526 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
527 | dnsparser.cc \ |
528 | dnsrecords.cc \ | |
529 | dnswriter.cc \ | |
530 | logger.cc \ | |
531 | misc.cc \ | |
532 | nsecrecords.cc \ | |
533 | qtype.cc \ | |
534 | rcpgenerator.cc \ | |
535 | sillyrecords.cc \ | |
536 | statbag.cc \ | |
1c81cda0 | 537 | svc-records.cc svc-records.hh \ |
c57747c8 RK |
538 | unix_utility.cc \ |
539 | zone2ldap.cc \ | |
540 | zoneparser-tng.cc | |
541 | ||
74d83458 PL |
542 | zone2ldap_LDADD = $(LIBCRYPTO_LIBS) |
543 | zone2ldap_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS) | |
e53a4bf6 | 544 | |
b08f1315 OM |
545 | if GSS_TSIG |
546 | zone2ldap_LDADD += $(GSS_LIBS) | |
547 | endif | |
548 | ||
c57747c8 RK |
549 | sdig_SOURCES = \ |
550 | base32.cc \ | |
551 | base64.cc base64.hh \ | |
a7d9ffb3 | 552 | dns.cc \ |
c57747c8 | 553 | dnslabeltext.cc \ |
d926c0da | 554 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
555 | dnsparser.cc dnsparser.hh \ |
556 | dnsrecords.cc \ | |
557 | dnswriter.cc dnswriter.hh \ | |
3a7571e7 | 558 | dolog.hh \ |
92e3654a | 559 | ednsextendederror.cc ednsextendederror.hh \ |
4ba0ebc5 | 560 | ednssubnet.cc iputils.cc \ |
fcff37fa | 561 | libssl.cc libssl.hh \ |
c57747c8 RK |
562 | logger.cc \ |
563 | misc.cc misc.hh \ | |
564 | nsecrecords.cc \ | |
463ec5fd | 565 | proxy-protocol.cc proxy-protocol.hh \ |
c57747c8 RK |
566 | qtype.cc \ |
567 | rcpgenerator.cc rcpgenerator.hh \ | |
568 | sdig.cc \ | |
569 | sillyrecords.cc \ | |
570 | sstuff.hh \ | |
571 | statbag.cc \ | |
1c81cda0 | 572 | svc-records.cc svc-records.hh \ |
fcff37fa | 573 | tcpiohandler.cc tcpiohandler.hh \ |
f33f80ba | 574 | unix_utility.cc |
c57747c8 | 575 | |
fcff37fa | 576 | sdig_CPPFLAGS = $(AM_CPPFLAGS) |
f33f80ba | 577 | sdig_LDADD = $(LIBCRYPTO_LIBS) |
74d83458 | 578 | sdig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS) |
48836055 | 579 | |
f33f80ba PD |
580 | if HAVE_LIBCURL |
581 | sdig_SOURCES += minicurl.cc minicurl.hh | |
582 | sdig_LDADD += $(LIBCURL) | |
583 | endif | |
584 | ||
fcff37fa O |
585 | if HAVE_DNS_OVER_TLS |
586 | ||
587 | if HAVE_GNUTLS | |
588 | sdig_CPPFLAGS += $(GNUTLS_CFLAGS) | |
589 | sdig_LDADD += -lgnutls | |
590 | endif | |
591 | ||
592 | if HAVE_LIBSSL | |
593 | sdig_CPPFLAGS += $(LIBSSL_CFLAGS) | |
594 | sdig_LDADD += $(LIBSSL_LIBS) | |
595 | endif | |
596 | ||
597 | if LIBSODIUM | |
598 | sdig_CPPFLAGS +=$(LIBSODIUM_CFLAGS) | |
599 | sdig_LDADD += $(LIBSODIUM_LIBS) | |
600 | endif | |
601 | ||
602 | endif | |
603 | ||
7d8a5de7 | 604 | calidns_SOURCES = \ |
605 | base32.cc \ | |
606 | base64.cc base64.hh \ | |
607 | calidns.cc \ | |
a0d8a0f0 | 608 | dns_random.hh \ |
7d8a5de7 | 609 | dnslabeltext.cc \ |
d926c0da | 610 | dnsname.cc dnsname.hh \ |
7d8a5de7 | 611 | dnsparser.cc dnsparser.hh \ |
612 | dnsrecords.cc \ | |
613 | dnswriter.cc dnswriter.hh \ | |
a7f7d29f RG |
614 | ednsoptions.cc ednsoptions.hh \ |
615 | ednssubnet.cc ednssubnet.hh \ | |
c1e527e3 | 616 | iputils.cc \ |
7d8a5de7 | 617 | logger.cc \ |
618 | misc.cc misc.hh \ | |
619 | nsecrecords.cc \ | |
620 | qtype.cc \ | |
621 | rcpgenerator.cc rcpgenerator.hh \ | |
622 | sillyrecords.cc \ | |
623 | sstuff.hh \ | |
624 | statbag.cc \ | |
1c81cda0 | 625 | svc-records.cc svc-records.hh \ |
7d8a5de7 | 626 | unix_utility.cc |
627 | ||
c7c8bdee PL |
628 | calidns_LDADD = $(LIBCRYPTO_LIBS) \ |
629 | $(BOOST_PROGRAM_OPTIONS_LIBS) | |
630 | calidns_LDFLAGS = $(AM_LDFLAGS) $(THREADFLAGS) $(LIBCRYPTO_LDFLAGS) \ | |
631 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) | |
7d8a5de7 | 632 | |
c1e527e3 | 633 | dumresp_SOURCES = \ |
dd9a15db PL |
634 | dnslabeltext.cc \ |
635 | dnsname.cc dnsname.hh \ | |
c1e527e3 | 636 | dumresp.cc \ |
665821e1 | 637 | iputils.cc iputils.hh \ |
c1e527e3 | 638 | logger.cc \ |
639 | misc.cc misc.hh \ | |
1c81cda0 | 640 | qtype.cc \ |
c1e527e3 | 641 | statbag.cc \ |
1c81cda0 | 642 | unix_utility.cc |
c1e527e3 | 643 | |
5a366cae OM |
644 | dumresp_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS) |
645 | ||
fba1e944 | 646 | kvresp_SOURCES = \ |
647 | dnslabeltext.cc dnsname.cc dnsname.hh \ | |
648 | kvresp.cc \ | |
649 | logger.cc \ | |
650 | misc.cc misc.hh \ | |
1c81cda0 | 651 | qtype.cc \ |
fba1e944 | 652 | statbag.cc \ |
1c81cda0 | 653 | unix_utility.cc |
7d8a5de7 | 654 | |
6ee22c5e PD |
655 | stubquery_SOURCES = \ |
656 | arguments.cc arguments.hh \ | |
657 | base32.cc \ | |
658 | base64.cc \ | |
6ee22c5e PD |
659 | dnslabeltext.cc \ |
660 | dnsname.cc \ | |
661 | dnsparser.cc \ | |
662 | dnsrecords.cc \ | |
663 | dnswriter.cc \ | |
50e2abc0 | 664 | ednsoptions.cc ednsoptions.hh \ |
665 | ednssubnet.cc ednssubnet.hh \ | |
68b17575 | 666 | iputils.cc \ |
6ee22c5e PD |
667 | logger.cc \ |
668 | misc.cc \ | |
669 | nsecrecords.cc \ | |
670 | qtype.cc \ | |
671 | rcpgenerator.cc \ | |
672 | sillyrecords.cc \ | |
673 | statbag.cc \ | |
6ee22c5e | 674 | stubquery.cc \ |
1c81cda0 PL |
675 | stubresolver.cc stubresolver.hh \ |
676 | svc-records.cc svc-records.hh \ | |
6ee22c5e PD |
677 | unix_utility.cc |
678 | ||
74d83458 PL |
679 | stubquery_LDADD = $(LIBCRYPTO_LIBS) |
680 | stubquery_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS) | |
6ee22c5e | 681 | |
c57747c8 RK |
682 | saxfr_SOURCES = \ |
683 | base32.cc \ | |
684 | base64.cc base64.hh \ | |
a0d8a0f0 | 685 | dns_random.hh \ |
c57747c8 | 686 | dnslabeltext.cc \ |
d926c0da | 687 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
688 | dnsparser.cc dnsparser.hh \ |
689 | dnsrecords.cc \ | |
690 | dnssecinfra.cc \ | |
691 | dnswriter.cc dnswriter.hh \ | |
b08f1315 | 692 | gss_context.cc gss_context.hh \ |
73ba5999 | 693 | iputils.cc \ |
c57747c8 RK |
694 | logger.cc \ |
695 | misc.cc misc.hh \ | |
696 | nsecrecords.cc \ | |
697 | qtype.cc \ | |
698 | rcpgenerator.cc rcpgenerator.hh \ | |
699 | saxfr.cc \ | |
700 | sillyrecords.cc \ | |
701 | sstuff.hh \ | |
702 | statbag.cc \ | |
1c81cda0 | 703 | svc-records.cc svc-records.hh \ |
c57747c8 | 704 | unix_utility.cc |
12c86877 | 705 | |
74d83458 PL |
706 | saxfr_LDADD = $(LIBCRYPTO_LIBS) |
707 | saxfr_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS) | |
3f6fa55d | 708 | |
70f0f8c4 | 709 | if PKCS11 |
c8c88ac1 | 710 | saxfr_SOURCES += pkcs11signers.cc pkcs11signers.hh |
70f0f8c4 AT |
711 | saxfr_LDADD += $(P11KIT1_LIBS) |
712 | endif | |
df82962d | 713 | |
b08f1315 OM |
714 | if GSS_TSIG |
715 | saxfr_LDADD += $(GSS_LIBS) | |
716 | endif | |
717 | ||
a2670f5e PL |
718 | ixfrdist_SOURCES = \ |
719 | arguments.cc \ | |
146ada65 CHB |
720 | auth-caches.cc auth-caches.hh \ |
721 | auth-packetcache.cc auth-packetcache.hh \ | |
722 | auth-querycache.cc auth-querycache.hh \ | |
723 | auth-zonecache.cc auth-zonecache.hh \ | |
1c81cda0 | 724 | axfr-retriever.cc \ |
a2670f5e PL |
725 | base32.cc \ |
726 | base64.cc base64.hh \ | |
40422f78 | 727 | credentials.cc credentials.hh \ |
a2670f5e | 728 | dns.cc \ |
a0d8a0f0 | 729 | dns_random.hh \ |
146ada65 | 730 | dnsbackend.cc \ |
a2670f5e PL |
731 | dnslabeltext.cc \ |
732 | dnsname.cc dnsname.hh \ | |
146ada65 | 733 | dnspacket.cc dnspacket.hh \ |
a2670f5e PL |
734 | dnsparser.cc dnsparser.hh \ |
735 | dnsrecords.cc \ | |
736 | dnssecinfra.cc \ | |
737 | dnswriter.cc dnswriter.hh \ | |
146ada65 CHB |
738 | ednscookies.cc ednscookies.hh \ |
739 | ednsextendederror.cc ednsextendederror.hh \ | |
740 | ednsoptions.cc ednsoptions.hh \ | |
741 | ednssubnet.cc ednssubnet.hh \ | |
b08f1315 | 742 | gss_context.cc gss_context.hh \ |
4f80c4e0 | 743 | iputils.hh iputils.cc \ |
aff1f1fd | 744 | ixfr.cc ixfr.hh \ |
ef9ebc82 | 745 | ixfrdist-stats.hh ixfrdist-stats.cc \ |
d5c9e1cb | 746 | ixfrdist-web.hh ixfrdist-web.cc \ |
1c81cda0 PL |
747 | ixfrdist.cc \ |
748 | ixfrutils.cc ixfrutils.hh \ | |
1361013e | 749 | logger.cc logger.hh\ |
a2670f5e | 750 | misc.cc misc.hh \ |
aff1f1fd | 751 | mplexer.hh \ |
a2670f5e | 752 | nsecrecords.cc \ |
1c81cda0 | 753 | pollmplexer.cc \ |
a2670f5e | 754 | qtype.cc \ |
1c81cda0 | 755 | query-local-address.hh query-local-address.cc \ |
a2670f5e PL |
756 | rcpgenerator.cc rcpgenerator.hh \ |
757 | resolver.cc \ | |
146ada65 | 758 | shuffle.cc shuffle.hh \ |
a2670f5e PL |
759 | sillyrecords.cc \ |
760 | sstuff.hh \ | |
761 | statbag.cc \ | |
1c81cda0 | 762 | svc-records.cc svc-records.hh \ |
519f5484 | 763 | threadname.hh threadname.cc \ |
a2670f5e | 764 | tsigverifier.cc tsigverifier.hh \ |
146ada65 | 765 | ueberbackend.cc ueberbackend.hh \ |
d5c9e1cb | 766 | unix_utility.cc \ |
f6149229 | 767 | uuid-utils.hh uuid-utils.cc \ |
d5c9e1cb PL |
768 | webserver.hh webserver.cc \ |
769 | zoneparser-tng.cc | |
770 | ||
a2670f5e PL |
771 | ixfrdist_LDADD = \ |
772 | $(BOOST_PROGRAM_OPTIONS_LIBS) \ | |
d5c9e1cb | 773 | $(JSON11_LIBS) \ |
f1f8ff25 | 774 | $(LIBDL) \ |
f2d45260 | 775 | $(LIBCRYPTO_LIBS) \ |
d5c9e1cb | 776 | $(YAHTTP_LIBS) \ |
f2d45260 | 777 | $(YAML_LIBS) |
a2670f5e PL |
778 | |
779 | ixfrdist_LDFLAGS = \ | |
780 | $(AM_LDFLAGS) \ | |
781 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \ | |
782 | $(LIBCRYPTO_LDFLAGS) | |
783 | ||
40422f78 RG |
784 | if LIBSODIUM |
785 | ixfrdist_LDADD += $(LIBSODIUM_LIBS) | |
786 | endif | |
787 | ||
a2670f5e PL |
788 | if PKCS11 |
789 | ixfrdist_SOURCES += pkcs11signers.cc pkcs11signers.hh | |
790 | ixfrdist_LDADD += $(P11KIT1_LIBS) | |
791 | endif | |
792 | ||
b08f1315 OM |
793 | if GSS_TSIG |
794 | ixfrdist_LDADD += $(GSS_LIBS) | |
795 | endif | |
796 | ||
797 | ||
aea0480e | 798 | ixplore_SOURCES = \ |
18ca5fa4 | 799 | arguments.cc \ |
1c81cda0 | 800 | axfr-retriever.cc \ |
aea0480e | 801 | base32.cc \ |
802 | base64.cc base64.hh \ | |
18ca5fa4 | 803 | dns.cc \ |
a0d8a0f0 | 804 | dns_random.hh \ |
aea0480e | 805 | dnslabeltext.cc \ |
806 | dnsname.cc dnsname.hh \ | |
807 | dnsparser.cc dnsparser.hh \ | |
808 | dnsrecords.cc \ | |
809 | dnssecinfra.cc \ | |
810 | dnswriter.cc dnswriter.hh \ | |
50e2abc0 | 811 | ednsoptions.cc ednsoptions.hh \ |
812 | ednssubnet.cc ednssubnet.hh \ | |
018778e5 | 813 | gss_context.cc gss_context.hh \ |
68b17575 | 814 | iputils.cc \ |
1c81cda0 PL |
815 | ixfr.cc ixfr.hh \ |
816 | ixfrutils.cc ixfrutils.hh \ | |
817 | ixplore.cc \ | |
aea0480e | 818 | logger.cc \ |
aea0480e | 819 | misc.cc misc.hh \ |
820 | nsecrecords.cc \ | |
821 | qtype.cc \ | |
1c81cda0 | 822 | query-local-address.hh query-local-address.cc \ |
aea0480e | 823 | rcpgenerator.cc rcpgenerator.hh \ |
18ca5fa4 | 824 | resolver.cc \ |
aea0480e | 825 | sillyrecords.cc \ |
826 | sstuff.hh \ | |
827 | statbag.cc \ | |
1c81cda0 | 828 | svc-records.cc svc-records.hh \ |
60a1c204 | 829 | tsigverifier.cc tsigverifier.hh \ |
7cc1c350 | 830 | unix_utility.cc zoneparser-tng.cc |
aea0480e | 831 | |
74d83458 PL |
832 | ixplore_LDADD = $(LIBCRYPTO_LIBS) |
833 | ixplore_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS) | |
b08f1315 OM |
834 | if GSS_TSIG |
835 | ixplore_LDADD += $(GSS_LIBS) | |
836 | endif | |
aea0480e | 837 | |
51465d00 | 838 | if PKCS11 |
839 | ixplore_SOURCES += pkcs11signers.cc pkcs11signers.hh | |
840 | ixplore_LDADD += $(P11KIT1_LIBS) | |
841 | endif | |
842 | ||
c57747c8 RK |
843 | dnstcpbench_SOURCES = \ |
844 | base32.cc \ | |
845 | base64.cc base64.hh \ | |
846 | dnslabeltext.cc \ | |
d926c0da | 847 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
848 | dnsparser.cc dnsparser.hh \ |
849 | dnsrecords.cc \ | |
850 | dnstcpbench.cc \ | |
851 | dnswriter.cc dnswriter.hh \ | |
68b17575 | 852 | iputils.cc \ |
c57747c8 RK |
853 | logger.cc \ |
854 | misc.cc misc.hh \ | |
855 | nsecrecords.cc \ | |
856 | qtype.cc \ | |
857 | rcpgenerator.cc rcpgenerator.hh \ | |
858 | sillyrecords.cc \ | |
859 | sstuff.hh \ | |
860 | statbag.cc \ | |
1c81cda0 | 861 | svc-records.cc svc-records.hh \ |
519f5484 | 862 | threadname.hh threadname.cc \ |
c57747c8 RK |
863 | unix_utility.cc |
864 | ||
48836055 | 865 | dnstcpbench_LDFLAGS = \ |
b2053c28 | 866 | $(AM_LDFLAGS) \ |
74d83458 | 867 | $(LIBCRYPTO_LDFLAGS) \ |
48836055 KM |
868 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) |
869 | ||
870 | dnstcpbench_LDADD = \ | |
74d83458 | 871 | $(LIBCRYPTO_LIBS) \ |
48836055 | 872 | $(BOOST_PROGRAM_OPTIONS_LIBS) |
c57747c8 | 873 | |
c57747c8 RK |
874 | nsec3dig_SOURCES = \ |
875 | base32.cc \ | |
876 | base64.cc base64.hh \ | |
877 | dnslabeltext.cc \ | |
1c81cda0 | 878 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
879 | dnsparser.cc dnsparser.hh \ |
880 | dnsrecords.cc \ | |
881 | dnssecinfra.cc \ | |
882 | dnswriter.cc dnswriter.hh \ | |
b08f1315 | 883 | gss_context.cc gss_context.hh \ |
73ba5999 | 884 | iputils.cc \ |
c57747c8 RK |
885 | logger.cc \ |
886 | misc.cc misc.hh \ | |
887 | nsec3dig.cc \ | |
888 | nsecrecords.cc \ | |
889 | qtype.cc \ | |
890 | rcpgenerator.cc rcpgenerator.hh \ | |
891 | sillyrecords.cc \ | |
892 | sstuff.hh \ | |
893 | statbag.cc \ | |
1c81cda0 | 894 | svc-records.cc svc-records.hh \ |
c57747c8 RK |
895 | unix_utility.cc |
896 | ||
b08f1315 | 897 | |
74d83458 PL |
898 | nsec3dig_LDADD = $(LIBCRYPTO_LIBS) |
899 | nsec3dig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS) | |
54ebc117 | 900 | |
b08f1315 OM |
901 | if GSS_TSIG |
902 | nsec3dig_LDADD += $(GSS_LIBS) | |
903 | endif | |
904 | ||
70f0f8c4 | 905 | if PKCS11 |
c8c88ac1 | 906 | nsec3dig_SOURCES += pkcs11signers.cc pkcs11signers.hh |
70f0f8c4 AT |
907 | nsec3dig_LDADD += $(P11KIT1_LIBS) |
908 | endif | |
e79e8a5b | 909 | |
c57747c8 RK |
910 | tsig_tests_SOURCES = \ |
911 | arguments.cc \ | |
1c81cda0 | 912 | axfr-retriever.cc \ |
c57747c8 RK |
913 | base32.cc \ |
914 | base64.cc base64.hh \ | |
bfcdbc13 | 915 | digests.hh \ |
c57747c8 | 916 | dns.cc \ |
a0d8a0f0 | 917 | dns_random.hh \ |
c57747c8 | 918 | dnslabeltext.cc \ |
d926c0da | 919 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
920 | dnsparser.cc dnsparser.hh \ |
921 | dnsrecords.cc \ | |
922 | dnssecinfra.cc \ | |
923 | dnswriter.cc dnswriter.hh \ | |
b08f1315 | 924 | gss_context.cc gss_context.hh \ |
20829585 | 925 | iputils.cc \ |
c57747c8 RK |
926 | logger.cc \ |
927 | misc.cc misc.hh \ | |
928 | nsecrecords.cc \ | |
929 | qtype.cc \ | |
1c81cda0 | 930 | query-local-address.cc \ |
c57747c8 RK |
931 | rcpgenerator.cc rcpgenerator.hh \ |
932 | resolver.cc \ | |
933 | sillyrecords.cc \ | |
934 | sstuff.hh \ | |
935 | statbag.cc \ | |
1c81cda0 | 936 | svc-records.cc svc-records.hh \ |
c57747c8 | 937 | tsig-tests.cc \ |
60a1c204 | 938 | tsigverifier.cc tsigverifier.hh \ |
c57747c8 RK |
939 | unix_utility.cc |
940 | ||
74d83458 PL |
941 | tsig_tests_LDADD = $(LIBCRYPTO_LIBS) |
942 | tsig_tests_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS) | |
9feed75b | 943 | |
70f0f8c4 | 944 | if PKCS11 |
c8c88ac1 | 945 | tsig_tests_SOURCES += pkcs11signers.cc pkcs11signers.hh |
70f0f8c4 AT |
946 | tsig_tests_LDADD += $(P11KIT1_LIBS) |
947 | endif | |
948 | ||
c57747c8 | 949 | speedtest_SOURCES = \ |
c675a221 | 950 | arguments.cc arguments.hh \ |
c57747c8 RK |
951 | base32.cc \ |
952 | base64.cc base64.hh \ | |
11227477 | 953 | credentials.cc credentials.hh \ |
a0d8a0f0 | 954 | dns_random.hh \ |
c57747c8 | 955 | dnslabeltext.cc \ |
d926c0da | 956 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
957 | dnsparser.cc dnsparser.hh \ |
958 | dnsrecords.cc \ | |
1f8b930e | 959 | dnssecinfra.cc dnssecinfra.hh \ |
c57747c8 | 960 | dnswriter.cc dnswriter.hh \ |
b08f1315 | 961 | gss_context.cc gss_context.hh \ |
1c81cda0 | 962 | iputils.cc \ |
c57747c8 RK |
963 | logger.cc \ |
964 | misc.cc misc.hh \ | |
965 | nsecrecords.cc \ | |
966 | qtype.cc \ | |
967 | rcpgenerator.cc rcpgenerator.hh \ | |
968 | sillyrecords.cc \ | |
969 | speedtest.cc \ | |
970 | statbag.cc \ | |
1c81cda0 | 971 | svc-records.cc svc-records.hh \ |
b2024afc FM |
972 | unix_utility.cc \ |
973 | uuid-utils.cc | |
c57747c8 | 974 | |
74d83458 PL |
975 | speedtest_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS) |
976 | speedtest_LDADD = $(LIBCRYPTO_LIBS) \ | |
bcd17c71 | 977 | $(RT_LIBS) |
48836055 | 978 | |
c57747c8 | 979 | dnswasher_SOURCES = \ |
152b0801 | 980 | base64.cc \ |
857a2101 PL |
981 | dnslabeltext.cc \ |
982 | dnsname.hh dnsname.cc \ | |
c57747c8 RK |
983 | dnsparser.hh \ |
984 | dnspcap.cc dnspcap.hh \ | |
985 | dnswasher.cc \ | |
857a2101 | 986 | dnswriter.hh \ |
496151cf | 987 | ipcipher.cc ipcipher.hh \ |
c57747c8 RK |
988 | logger.cc \ |
989 | misc.cc \ | |
990 | qtype.cc \ | |
991 | statbag.cc \ | |
992 | unix_utility.cc | |
993 | ||
b2024afc FM |
994 | dnswasher_LDFLAGS = $(AM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(LIBCRYPTO_LDFLAGS) |
995 | dnswasher_LDADD = $(BOOST_PROGRAM_OPTIONS_LIBS) $(LIBCRYPTO_LIBS) $(IPCRYPT_LIBS) | |
c57747c8 RK |
996 | |
997 | dnsbulktest_SOURCES = \ | |
1c81cda0 | 998 | arguments.cc arguments.hh \ |
c57747c8 RK |
999 | base32.cc \ |
1000 | base64.cc \ | |
a0d8a0f0 | 1001 | dns_random.hh \ |
c57747c8 RK |
1002 | dnsbulktest.cc \ |
1003 | dnslabeltext.cc \ | |
d926c0da | 1004 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
1005 | dnsparser.cc \ |
1006 | dnsrecords.cc \ | |
1007 | dnswriter.cc \ | |
014516a0 | 1008 | iputils.cc iputils.hh \ |
c57747c8 RK |
1009 | logger.cc \ |
1010 | misc.cc \ | |
1011 | nsecrecords.cc \ | |
1012 | qtype.cc \ | |
1013 | rcpgenerator.cc \ | |
1014 | sillyrecords.cc \ | |
1015 | statbag.cc \ | |
1c81cda0 PL |
1016 | svc-records.cc svc-records.hh \ |
1017 | unix_utility.cc | |
c57747c8 RK |
1018 | |
1019 | dnsbulktest_LDFLAGS = \ | |
b2053c28 | 1020 | $(AM_LDFLAGS) \ |
74d83458 | 1021 | $(LIBCRYPTO_LDFLAGS) \ |
94ac5f34 | 1022 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) |
c57747c8 | 1023 | |
48836055 | 1024 | dnsbulktest_LDADD = \ |
74d83458 | 1025 | $(LIBCRYPTO_LIBS) \ |
48836055 | 1026 | $(BOOST_PROGRAM_OPTIONS_LIBS) |
c57747c8 | 1027 | |
ca12836d | 1028 | comfun_SOURCES = \ |
1029 | base32.cc \ | |
1030 | base64.cc \ | |
1031 | comfun.cc \ | |
1032 | dns.cc \ | |
1033 | dnslabeltext.cc \ | |
1034 | dnsname.cc dnsname.hh \ | |
1035 | dnsparser.cc \ | |
1036 | dnsrecords.cc \ | |
1037 | dnswriter.cc \ | |
1038 | logger.cc \ | |
1039 | misc.cc \ | |
1040 | nsecrecords.cc \ | |
1041 | qtype.cc \ | |
1042 | rcpgenerator.cc \ | |
1043 | sillyrecords.cc \ | |
1044 | statbag.cc \ | |
1c81cda0 | 1045 | svc-records.cc svc-records.hh \ |
ca12836d | 1046 | unix_utility.cc \ |
1047 | zoneparser-tng.cc zoneparser-tng.hh | |
1048 | ||
1049 | comfun_LDFLAGS = \ | |
1050 | $(AM_LDFLAGS) \ | |
74d83458 | 1051 | $(LIBCRYPTO_LDFLAGS) \ |
ca12836d | 1052 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) |
1053 | ||
1054 | comfun_LDADD = \ | |
74d83458 | 1055 | $(LIBCRYPTO_LIBS) \ |
ca12836d | 1056 | $(BOOST_PROGRAM_OPTIONS_LIBS) |
1057 | ||
1058 | ||
c57747c8 RK |
1059 | dnsscan_SOURCES = \ |
1060 | anadns.hh \ | |
1061 | base32.cc \ | |
1062 | base64.cc base64.hh \ | |
1063 | dnslabeltext.cc \ | |
d926c0da | 1064 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
1065 | dnsparser.cc dnsparser.hh \ |
1066 | dnspcap.cc dnspcap.hh \ | |
1067 | dnsrecords.cc \ | |
1068 | dnsscan.cc \ | |
1069 | dnswriter.cc dnswriter.hh \ | |
1070 | logger.cc \ | |
1071 | misc.cc \ | |
1072 | nsecrecords.cc \ | |
1073 | qtype.cc \ | |
1074 | rcpgenerator.cc rcpgenerator.hh \ | |
1075 | sillyrecords.cc \ | |
1076 | statbag.cc \ | |
1c81cda0 | 1077 | svc-records.cc svc-records.hh \ |
c57747c8 RK |
1078 | unix_utility.cc \ |
1079 | utility.hh | |
1080 | ||
e12ba08e CH |
1081 | dnsscan_LDFLAGS = \ |
1082 | $(AM_LDFLAGS) \ | |
74d83458 | 1083 | $(LIBCRYPTO_LDFLAGS) |
e12ba08e | 1084 | |
74d83458 | 1085 | dnsscan_LDADD = $(LIBCRYPTO_LIBS) |
48836055 | 1086 | |
c57747c8 RK |
1087 | dnsreplay_SOURCES = \ |
1088 | anadns.hh \ | |
1089 | base32.cc \ | |
1090 | base64.cc base64.hh \ | |
1091 | dnslabeltext.cc \ | |
d926c0da | 1092 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
1093 | dnsparser.cc dnsparser.hh \ |
1094 | dnspcap.cc dnspcap.hh \ | |
1095 | dnsrecords.cc \ | |
1096 | dnsreplay.cc \ | |
1097 | dnswriter.cc dnswriter.hh \ | |
976ec823 | 1098 | ednsoptions.cc ednsoptions.hh \ |
bf269e28 | 1099 | ednssubnet.cc ednssubnet.hh \ |
4ba0ebc5 | 1100 | iputils.cc \ |
c57747c8 RK |
1101 | logger.cc \ |
1102 | misc.cc \ | |
1103 | nsecrecords.cc \ | |
1104 | qtype.cc \ | |
1105 | rcpgenerator.cc rcpgenerator.hh \ | |
1106 | sillyrecords.cc \ | |
1107 | statbag.cc \ | |
1c81cda0 | 1108 | svc-records.cc svc-records.hh \ |
c57747c8 RK |
1109 | unix_utility.cc \ |
1110 | utility.hh | |
1111 | ||
1112 | dnsreplay_LDFLAGS = \ | |
b2053c28 | 1113 | $(AM_LDFLAGS) \ |
74d83458 | 1114 | $(LIBCRYPTO_LDFLAGS) \ |
94ac5f34 | 1115 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) |
c57747c8 | 1116 | |
48836055 | 1117 | dnsreplay_LDADD = \ |
74d83458 | 1118 | $(LIBCRYPTO_LIBS) \ |
48836055 | 1119 | $(BOOST_PROGRAM_OPTIONS_LIBS) |
c57747c8 RK |
1120 | |
1121 | nproxy_SOURCES = \ | |
1122 | base32.cc \ | |
1123 | base64.cc base64.hh \ | |
1124 | dnslabeltext.cc \ | |
d926c0da | 1125 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
1126 | dnsparser.cc dnsparser.hh \ |
1127 | dnsrecords.cc \ | |
1128 | dnswriter.cc dnswriter.hh \ | |
1129 | logger.cc \ | |
1130 | misc.cc \ | |
1131 | mplexer.hh \ | |
1132 | nproxy.cc \ | |
1133 | nsecrecords.cc \ | |
926444e2 | 1134 | pollmplexer.cc \ |
c57747c8 RK |
1135 | qtype.cc \ |
1136 | rcpgenerator.cc rcpgenerator.hh \ | |
c57747c8 RK |
1137 | sillyrecords.cc \ |
1138 | statbag.cc \ | |
1c81cda0 | 1139 | svc-records.cc svc-records.hh \ |
c57747c8 RK |
1140 | unix_utility.cc |
1141 | ||
1142 | nproxy_LDFLAGS = \ | |
b2053c28 | 1143 | $(AM_LDFLAGS) \ |
74d83458 | 1144 | $(LIBCRYPTO_LDFLAGS) \ |
94ac5f34 | 1145 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) |
c57747c8 | 1146 | |
48836055 | 1147 | nproxy_LDADD = \ |
74d83458 | 1148 | $(LIBCRYPTO_LIBS) \ |
48836055 | 1149 | $(BOOST_PROGRAM_OPTIONS_LIBS) |
c57747c8 | 1150 | |
a4437033 | 1151 | pdns_notify_SOURCES = \ |
c57747c8 RK |
1152 | arguments.cc \ |
1153 | base32.cc \ | |
1154 | base64.cc base64.hh \ | |
1155 | dns.cc \ | |
1156 | dnslabeltext.cc \ | |
d926c0da | 1157 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
1158 | dnsparser.cc dnsparser.hh \ |
1159 | dnsrecords.cc \ | |
1160 | dnswriter.cc dnswriter.hh \ | |
1161 | logger.cc \ | |
1162 | misc.cc \ | |
1163 | notify.cc \ | |
1164 | nsecrecords.cc \ | |
926444e2 | 1165 | pollmplexer.cc \ |
c57747c8 RK |
1166 | qtype.cc \ |
1167 | rcpgenerator.cc rcpgenerator.hh \ | |
c57747c8 RK |
1168 | sillyrecords.cc \ |
1169 | statbag.cc \ | |
1c81cda0 PL |
1170 | svc-records.cc svc-records.hh \ |
1171 | unix_utility.cc | |
c57747c8 | 1172 | |
a4437033 | 1173 | pdns_notify_LDFLAGS = \ |
b2053c28 | 1174 | $(AM_LDFLAGS) \ |
74d83458 | 1175 | $(LIBCRYPTO_LDFLAGS) \ |
94ac5f34 | 1176 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) |
c57747c8 | 1177 | |
a4437033 | 1178 | pdns_notify_LDADD = \ |
74d83458 | 1179 | $(LIBCRYPTO_LIBS) \ |
48836055 | 1180 | $(BOOST_PROGRAM_OPTIONS_LIBS) |
c57747c8 | 1181 | |
df136790 OM |
1182 | if LIBSODIUM |
1183 | pdns_notify_LDADD += $(LIBSODIUM_LIBS) | |
d720eb8a | 1184 | dnsbulktest_LDADD += $(LIBSODIUM_LIBS) |
df136790 OM |
1185 | endif |
1186 | ||
c57747c8 RK |
1187 | dnsscope_SOURCES = \ |
1188 | arguments.cc \ | |
1189 | base32.cc \ | |
1190 | base64.cc base64.hh \ | |
1191 | dns.cc \ | |
1192 | dnslabeltext.cc \ | |
d926c0da | 1193 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
1194 | dnsparser.cc dnsparser.hh \ |
1195 | dnspcap.cc dnspcap.hh \ | |
1196 | dnsrecords.cc \ | |
1197 | dnsscope.cc \ | |
1198 | dnswriter.cc dnswriter.hh \ | |
2b962740 | 1199 | histog.hh \ |
c57747c8 RK |
1200 | logger.cc \ |
1201 | misc.cc \ | |
1202 | nsecrecords.cc \ | |
1203 | qtype.cc \ | |
1204 | rcpgenerator.cc rcpgenerator.hh \ | |
1205 | sillyrecords.cc \ | |
1206 | statbag.cc \ | |
ffe60430 | 1207 | statnode.cc statnode.hh \ |
1c81cda0 | 1208 | svc-records.cc svc-records.hh \ |
c57747c8 RK |
1209 | unix_utility.cc \ |
1210 | utility.hh | |
1211 | ||
1212 | dnsscope_LDFLAGS = \ | |
b2053c28 | 1213 | $(AM_LDFLAGS) \ |
74d83458 | 1214 | $(LIBCRYPTO_LDFLAGS) \ |
94ac5f34 | 1215 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) |
c57747c8 | 1216 | |
48836055 | 1217 | dnsscope_LDADD = \ |
74d83458 | 1218 | $(LIBCRYPTO_LIBS) \ |
48836055 | 1219 | $(BOOST_PROGRAM_OPTIONS_LIBS) |
c57747c8 RK |
1220 | |
1221 | dnsgram_SOURCES = \ | |
1222 | base32.cc \ | |
1223 | base64.cc base64.hh \ | |
1224 | dnsgram.cc \ | |
1225 | dnslabeltext.cc \ | |
d926c0da | 1226 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
1227 | dnsparser.cc dnsparser.hh \ |
1228 | dnspcap.cc dnspcap.hh \ | |
1229 | dnsrecords.cc \ | |
1230 | dnswriter.cc dnswriter.hh \ | |
1231 | logger.cc \ | |
1232 | misc.cc \ | |
1233 | nsecrecords.cc \ | |
1234 | qtype.cc \ | |
1235 | rcpgenerator.cc rcpgenerator.hh \ | |
1236 | sillyrecords.cc \ | |
1237 | statbag.cc \ | |
1c81cda0 | 1238 | svc-records.cc svc-records.hh \ |
c57747c8 RK |
1239 | unix_utility.cc \ |
1240 | utility.hh | |
1241 | ||
e12ba08e CH |
1242 | dnsgram_LDFLAGS = \ |
1243 | $(AM_LDFLAGS) \ | |
74d83458 | 1244 | $(LIBCRYPTO_LDFLAGS) |
e12ba08e CH |
1245 | |
1246 | dnsgram_LDADD = \ | |
74d83458 | 1247 | $(LIBCRYPTO_LIBS) |
48836055 | 1248 | |
c57747c8 RK |
1249 | dnsdemog_SOURCES = \ |
1250 | base32.cc \ | |
1251 | base64.cc base64.hh \ | |
1252 | dnsdemog.cc \ | |
1253 | dnslabeltext.cc \ | |
d926c0da | 1254 | dnsname.cc dnsname.hh \ |
c57747c8 RK |
1255 | dnsparser.cc dnsparser.hh \ |
1256 | dnspcap.cc dnspcap.hh \ | |
1257 | dnsrecords.cc \ | |
1258 | dnswriter.cc dnswriter.hh \ | |
1259 | logger.cc \ | |
1260 | misc.cc \ | |
1261 | nsecrecords.cc \ | |
1262 | qtype.cc \ | |
1263 | rcpgenerator.cc rcpgenerator.hh \ | |
1264 | sillyrecords.cc \ | |
1265 | statbag.cc \ | |
1c81cda0 | 1266 | svc-records.cc svc-records.hh \ |
c57747c8 RK |
1267 | unix_utility.cc \ |
1268 | utility.hh | |
1269 | ||
e12ba08e CH |
1270 | dnsdemog_LDFLAGS = \ |
1271 | $(AM_LDFLAGS) \ | |
74d83458 | 1272 | $(LIBCRYPTO_LDFLAGS) |
e12ba08e CH |
1273 | |
1274 | dnsdemog_LDADD = \ | |
74d83458 | 1275 | $(LIBCRYPTO_LIBS) |
48836055 | 1276 | |
52ebf44e RG |
1277 | dnspcap2calidns_SOURCES = \ |
1278 | base32.cc \ | |
1279 | base64.cc base64.hh \ | |
1280 | dnslabeltext.cc \ | |
1281 | dnsname.cc dnsname.hh \ | |
1282 | dnsparser.cc dnsparser.hh \ | |
1283 | dnspcap.cc dnspcap.hh \ | |
1284 | dnspcap2calidns.cc \ | |
1285 | dnsrecords.cc \ | |
1286 | dnswriter.cc dnswriter.hh \ | |
1287 | ednsoptions.cc ednsoptions.hh \ | |
1288 | ednssubnet.cc ednssubnet.hh \ | |
1289 | iputils.cc \ | |
1290 | logger.cc \ | |
1291 | misc.cc \ | |
1292 | nsecrecords.cc \ | |
1293 | qtype.cc \ | |
1294 | rcpgenerator.cc rcpgenerator.hh \ | |
1295 | sillyrecords.cc \ | |
1296 | statbag.cc \ | |
1c81cda0 | 1297 | svc-records.cc svc-records.hh \ |
52ebf44e RG |
1298 | unix_utility.cc \ |
1299 | utility.hh | |
1300 | ||
1301 | dnspcap2calidns_LDFLAGS = \ | |
1302 | $(AM_LDFLAGS) \ | |
1303 | $(LIBCRYPTO_LDFLAGS) \ | |
1304 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) | |
1305 | ||
1306 | dnspcap2calidns_LDADD = \ | |
1307 | $(LIBCRYPTO_LIBS) \ | |
1308 | $(BOOST_PROGRAM_OPTIONS_LIBS) | |
1309 | ||
f483cc6d RG |
1310 | dnspcap2protobuf_SOURCES = \ |
1311 | base32.cc \ | |
1312 | base64.cc base64.hh \ | |
1313 | dnslabeltext.cc \ | |
f483cc6d RG |
1314 | dnsname.cc dnsname.hh \ |
1315 | dnsparser.cc dnsparser.hh \ | |
1316 | dnspcap.cc dnspcap.hh \ | |
1317 | dnspcap2protobuf.cc \ | |
1318 | dnsrecords.cc \ | |
1319 | dnswriter.cc dnswriter.hh \ | |
d9d3f9c1 | 1320 | gettime.cc gettime.hh \ |
99c99f2b | 1321 | iputils.cc \ |
f483cc6d RG |
1322 | logger.cc \ |
1323 | misc.cc \ | |
1324 | nsecrecords.cc \ | |
471c63d0 | 1325 | protozero.cc protozero.hh \ |
f483cc6d RG |
1326 | qtype.cc \ |
1327 | rcpgenerator.cc rcpgenerator.hh \ | |
1328 | sillyrecords.cc \ | |
1329 | statbag.cc \ | |
1c81cda0 | 1330 | svc-records.cc svc-records.hh \ |
f483cc6d | 1331 | unix_utility.cc \ |
d61aa945 RG |
1332 | utility.hh \ |
1333 | uuid-utils.hh uuid-utils.cc | |
f483cc6d RG |
1334 | |
1335 | dnspcap2protobuf_LDFLAGS = \ | |
1336 | $(AM_LDFLAGS) \ | |
74d83458 | 1337 | $(LIBCRYPTO_LDFLAGS) \ |
f483cc6d RG |
1338 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) |
1339 | ||
1340 | dnspcap2protobuf_LDADD = \ | |
74d83458 | 1341 | $(LIBCRYPTO_LIBS) \ |
4a4fcdcb RG |
1342 | $(BOOST_PROGRAM_OPTIONS_LIBS) \ |
1343 | $(RT_LIBS) | |
f483cc6d | 1344 | |
70463abb | 1345 | pdns.conf-dist: pdns_server |
99bb3530 | 1346 | $(AM_V_GEN)./pdns_server --config=default > $@ |
70463abb | 1347 | |
c57747c8 RK |
1348 | testrunner_SOURCES = \ |
1349 | arguments.cc \ | |
bf269e28 RG |
1350 | auth-caches.cc auth-caches.hh \ |
1351 | auth-packetcache.cc auth-packetcache.hh \ | |
1352 | auth-querycache.cc auth-querycache.hh \ | |
1f0fb39a | 1353 | auth-zonecache.cc auth-zonecache.hh \ |
c57747c8 RK |
1354 | base32.cc \ |
1355 | base64.cc \ | |
45a82484 RK |
1356 | bindlexer.l \ |
1357 | bindparser.yy \ | |
cd93bea9 | 1358 | channel.cc channel.hh \ |
3a338f79 | 1359 | credentials.cc credentials.hh \ |
22de9dc8 | 1360 | dbdnsseckeeper.cc \ |
c57747c8 | 1361 | dns.cc \ |
3971cf53 | 1362 | dnsbackend.cc \ |
c57747c8 | 1363 | dnslabeltext.cc \ |
34eb951c PL |
1364 | dnsname.cc \ |
1365 | dnsname.hh \ | |
c57747c8 | 1366 | dnspacket.cc \ |
4ee48a74 | 1367 | dnsparser.hh dnsparser.cc \ |
c57747c8 RK |
1368 | dnsrecords.cc \ |
1369 | dnssecinfra.cc \ | |
22de9dc8 | 1370 | dnssecsigner.cc \ |
c57747c8 | 1371 | dnswriter.cc \ |
09b9075e | 1372 | ednscookies.cc ednscookies.hh \ |
1c81cda0 | 1373 | ednsoptions.cc ednsoptions.hh \ |
c57747c8 | 1374 | ednssubnet.cc \ |
85c7ca75 | 1375 | gettime.cc gettime.hh \ |
018778e5 | 1376 | gss_context.cc gss_context.hh \ |
56f827ac | 1377 | histogram.hh \ |
496151cf | 1378 | ipcipher.cc ipcipher.hh \ |
443fd8f4 | 1379 | iputils.cc \ |
e503653f | 1380 | ixfr.cc ixfr.hh \ |
c57747c8 | 1381 | logger.cc \ |
0a578d9d AT |
1382 | lua-auth4.hh lua-auth4.cc \ |
1383 | lua-base4.hh lua-base4.cc \ | |
c57747c8 RK |
1384 | misc.cc \ |
1385 | nameserver.cc \ | |
1386 | nsecrecords.cc \ | |
620d4801 | 1387 | opensslsigners.cc opensslsigners.hh \ |
9674edb2 | 1388 | pollmplexer.cc \ |
530e3e1a | 1389 | proxy-protocol.cc proxy-protocol.hh \ |
c57747c8 RK |
1390 | qtype.cc \ |
1391 | rcpgenerator.cc \ | |
a263cb47 | 1392 | responsestats-auth.cc \ |
553fe7cb | 1393 | responsestats.cc responsestats.hh \ |
bbec1961 | 1394 | shuffle.cc shuffle.hh \ |
c57747c8 | 1395 | sillyrecords.cc \ |
553fe7cb | 1396 | stat_t.hh \ |
c57747c8 | 1397 | statbag.cc \ |
1c81cda0 PL |
1398 | stubresolver.hh stubresolver.cc \ |
1399 | svc-records.cc svc-records.hh \ | |
8954859e | 1400 | test-arguments_cc.cc \ |
1f0fb39a | 1401 | test-auth-zonecache_cc.cc \ |
c57747c8 RK |
1402 | test-base32_cc.cc \ |
1403 | test-base64_cc.cc \ | |
1404 | test-bindparser_cc.cc \ | |
cd93bea9 | 1405 | test-channel.cc \ |
e503653f | 1406 | test-common.hh \ |
a60fc30c | 1407 | test-communicator_hh.cc \ |
3a338f79 | 1408 | test-credentials_cc.cc \ |
bfcdbc13 | 1409 | test-digests_hh.cc \ |
491d03d7 | 1410 | test-distributor_hh.cc \ |
c57747c8 | 1411 | test-dns_random_hh.cc \ |
34eb951c | 1412 | test-dnsname_cc.cc \ |
47698274 | 1413 | test-dnsparser_cc.cc \ |
4ee48a74 | 1414 | test-dnsparser_hh.cc \ |
1c81cda0 | 1415 | test-dnsrecordcontent.cc \ |
c57747c8 | 1416 | test-dnsrecords_cc.cc \ |
d26fa315 | 1417 | test-dnswriter_cc.cc \ |
37063755 | 1418 | test-ednscookie_cc.cc \ |
7d280342 | 1419 | test-ipcrypt_cc.cc \ |
c57747c8 | 1420 | test-iputils_hh.cc \ |
e503653f | 1421 | test-ixfr_cc.cc \ |
43bce230 | 1422 | test-lock_hh.cc \ |
0a578d9d | 1423 | test-lua_auth4_cc.cc \ |
a51b35e1 | 1424 | test-luawrapper.cc \ |
c57747c8 | 1425 | test-misc_hh.cc \ |
9674edb2 | 1426 | test-mplexer.cc \ |
c57747c8 | 1427 | test-nameserver_cc.cc \ |
fbe23e18 | 1428 | test-packetcache_cc.cc \ |
08b02366 | 1429 | test-packetcache_hh.cc \ |
530e3e1a | 1430 | test-proxy_protocol_cc.cc \ |
c57747c8 | 1431 | test-rcpgenerator_cc.cc \ |
34eb951c | 1432 | test-sha_hh.cc \ |
77ea4f4c | 1433 | test-signers.cc \ |
1566533a | 1434 | test-statbag_cc.cc \ |
77ea4f4c | 1435 | test-svc_records_cc.cc \ |
1886a4b3 | 1436 | test-trusted-notification-proxy_cc.cc \ |
ea3816cf | 1437 | test-tsig.cc \ |
b51bb9a2 | 1438 | test-ueberbackend_cc.cc \ |
35eb2fcf | 1439 | test-webserver_cc.cc \ |
eafa87e6 | 1440 | test-zonemd_cc.cc \ |
c57747c8 RK |
1441 | test-zoneparser_tng_cc.cc \ |
1442 | testrunner.cc \ | |
dc825c63 | 1443 | threadname.hh threadname.cc \ |
1886a4b3 | 1444 | trusted-notification-proxy.cc \ |
e503653f | 1445 | tsigverifier.cc tsigverifier.hh \ |
b51bb9a2 | 1446 | ueberbackend.cc ueberbackend.hh \ |
34eb951c | 1447 | unix_utility.cc \ |
35eb2fcf | 1448 | uuid-utils.cc \ |
e7029d79 | 1449 | validate.hh \ |
35eb2fcf | 1450 | webserver.cc \ |
eafa87e6 | 1451 | zonemd.cc zonemd.hh \ |
e5408f0b | 1452 | zoneparser-tng.cc zoneparser-tng.hh |
c57747c8 RK |
1453 | |
1454 | testrunner_LDFLAGS = \ | |
b2053c28 | 1455 | $(AM_LDFLAGS) \ |
74d83458 | 1456 | $(LIBCRYPTO_LDFLAGS) \ |
b2024afc | 1457 | $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS) |
c57747c8 RK |
1458 | |
1459 | testrunner_LDADD = \ | |
74d83458 | 1460 | $(LIBCRYPTO_LIBS) \ |
3971cf53 | 1461 | $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \ |
6136b0a1 | 1462 | $(RT_LIBS) \ |
0a578d9d | 1463 | $(LUA_LIBS) \ |
496151cf | 1464 | $(LIBDL) \ |
35eb2fcf OM |
1465 | $(IPCRYPT_LIBS) \ |
1466 | $(YAHTTP_LIBS) \ | |
1467 | $(JSON11_LIBS) | |
9bacbe09 | 1468 | |
b08f1315 OM |
1469 | if GSS_TSIG |
1470 | testrunner_LDADD += $(GSS_LIBS) | |
770bceb8 | 1471 | speedtest_LDADD += $(GSS_LIBS) |
b08f1315 OM |
1472 | endif |
1473 | ||
8daea594 AT |
1474 | if PKCS11 |
1475 | testrunner_SOURCES += pkcs11signers.cc pkcs11signers.hh | |
1476 | testrunner_LDADD += $(P11KIT1_LIBS) | |
8f21878a PD |
1477 | speedtest_SOURCES += pkcs11signers.cc pkcs11signers.hh |
1478 | speedtest_LDADD += $(P11KIT1_LIBS) | |
8daea594 AT |
1479 | endif |
1480 | ||
22de9dc8 PD |
1481 | if LIBSODIUM |
1482 | testrunner_SOURCES += sodiumsigners.cc | |
1483 | testrunner_LDADD += $(LIBSODIUM_LIBS) | |
11227477 | 1484 | speedtest_LDADD += $(LIBSODIUM_LIBS) |
22de9dc8 PD |
1485 | endif |
1486 | ||
2b7da695 KM |
1487 | if LIBDECAF |
1488 | testrunner_SOURCES += decafsigners.cc | |
1489 | testrunner_LDADD += $(LIBDECAF_LIBS) | |
1490 | endif | |
1491 | ||
9674edb2 RG |
1492 | if HAVE_FREEBSD |
1493 | ixfrdist_SOURCES += kqueuemplexer.cc | |
1494 | testrunner_SOURCES += kqueuemplexer.cc | |
1495 | endif | |
1496 | ||
51b5346a O |
1497 | if HAVE_OPENBSD |
1498 | ixfrdist_SOURCES += kqueuemplexer.cc | |
1499 | testrunner_SOURCES += kqueuemplexer.cc | |
1500 | endif | |
1501 | ||
9674edb2 RG |
1502 | if HAVE_LINUX |
1503 | ixfrdist_SOURCES += epollmplexer.cc | |
1504 | testrunner_SOURCES += epollmplexer.cc | |
1505 | endif | |
1506 | ||
1507 | if HAVE_SOLARIS | |
1508 | ixfrdist_SOURCES += \ | |
1509 | devpollmplexer.cc \ | |
1510 | portsmplexer.cc | |
1511 | testrunner_SOURCES += \ | |
1512 | devpollmplexer.cc \ | |
1513 | portsmplexer.cc | |
1514 | endif | |
1515 | ||
c57747c8 RK |
1516 | pdns_control_SOURCES = \ |
1517 | arguments.cc \ | |
1c81cda0 PL |
1518 | dnslabeltext.cc \ |
1519 | dnsname.cc \ | |
c57747c8 RK |
1520 | dynloader.cc \ |
1521 | dynmessenger.cc \ | |
1522 | logger.cc \ | |
1523 | misc.cc \ | |
1524 | qtype.cc \ | |
1525 | statbag.cc \ | |
1c81cda0 | 1526 | unix_utility.cc |
c57747c8 | 1527 | |
ee32ea00 RG |
1528 | pdns_control_LDFLAGS = \ |
1529 | $(AM_LDFLAGS) \ | |
1530 | $(LIBCRYPTO_LDFLAGS) | |
1531 | ||
efaeb353 OM |
1532 | noinst_PROGRAMS = speedtest |
1533 | ||
b553fa9d | 1534 | if UNIT_TESTS |
efaeb353 | 1535 | noinst_PROGRAMS += testrunner |
855aacc3 | 1536 | if HAVE_BOOST_GE_148 |
63117673 | 1537 | TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message BOOST_TEST_RANDOM=1 SRCDIR='$(srcdir)' |
1e3ee833 | 1538 | TESTS=testrunner |
855aacc3 PL |
1539 | else |
1540 | check-local: | |
1541 | @echo "Unit tests disabled, boost is too old" | |
1542 | endif | |
1543 | ||
cf1125cf | 1544 | else |
e24ea477 | 1545 | check-local: |
cf1125cf | 1546 | @echo "Unit tests are not enabled" |
e24ea477 | 1547 | @echo "Run ./configure --enable-unit-tests" |
b553fa9d | 1548 | endif |
1e3ee833 | 1549 | |
af6f3d53 RG |
1550 | if FUZZ_TARGETS |
1551 | ||
1552 | LIB_FUZZING_ENGINE ?= standalone_fuzz_target_runner.o | |
1553 | ||
1554 | standalone_fuzz_target_runner.o: standalone_fuzz_target_runner.cc | |
1555 | ||
5909c0e1 | 1556 | fuzz_targets_programs = \ |
5909c0e1 RG |
1557 | fuzz_target_moadnsparser \ |
1558 | fuzz_target_packetcache \ | |
aa5a2a6f | 1559 | fuzz_target_proxyprotocol \ |
43445d84 RG |
1560 | fuzz_target_dnslabeltext_parseRFC1035CharString \ |
1561 | fuzz_target_yahttp \ | |
1562 | fuzz_target_zoneparsertng | |
5909c0e1 | 1563 | |
4644f237 | 1564 | fuzz_targets: $(ARC4RANDOM_LIBS) $(fuzz_targets_programs) |
5909c0e1 | 1565 | |
af6f3d53 | 1566 | bin_PROGRAMS += \ |
5909c0e1 | 1567 | $(fuzz_targets_programs) |
af6f3d53 RG |
1568 | |
1569 | fuzz_targets_libs = \ | |
1570 | $(LIBCRYPTO_LIBS) \ | |
1571 | $(LIB_FUZZING_ENGINE) | |
1572 | fuzz_targets_ldflags = \ | |
1573 | $(AM_LDFLAGS) \ | |
1574 | $(DYNLINKFLAGS) \ | |
1575 | $(LIBCRYPTO_LDFLAGS) \ | |
1576 | $(FUZZING_LDFLAGS) | |
1577 | ||
1578 | # we need the mockup runner to be built, but not linked if a real fuzzing engine is used | |
1579 | fuzz_targets_deps = standalone_fuzz_target_runner.o | |
1580 | ||
5909c0e1 | 1581 | fuzz_target_moadnsparser_SOURCES = \ |
af6f3d53 RG |
1582 | base32.cc base32.hh \ |
1583 | base64.cc base64.hh \ | |
1584 | dnslabeltext.cc \ | |
1585 | dnsname.cc dnsname.hh \ | |
1586 | dnsparser.cc dnsparser.hh \ | |
1587 | dnsrecords.cc dnsrecords.hh \ | |
1588 | dnswriter.cc dnswriter.hh \ | |
1c81cda0 | 1589 | fuzz_moadnsparser.cc \ |
af6f3d53 RG |
1590 | logger.cc logger.hh \ |
1591 | misc.cc misc.hh \ | |
1592 | nsecrecords.cc \ | |
1593 | qtype.cc qtype.hh \ | |
1594 | rcpgenerator.cc rcpgenerator.hh \ | |
1595 | sillyrecords.cc \ | |
1596 | statbag.cc statbag.hh \ | |
1c81cda0 | 1597 | svc-records.cc svc-records.hh \ |
af6f3d53 RG |
1598 | unix_utility.cc \ |
1599 | utility.hh | |
1600 | ||
5909c0e1 RG |
1601 | fuzz_target_moadnsparser_DEPENDENCIES = $(fuzz_targets_deps) |
1602 | fuzz_target_moadnsparser_LDFLAGS = $(fuzz_targets_ldflags) | |
1603 | fuzz_target_moadnsparser_LDADD = $(fuzz_targets_libs) | |
af6f3d53 | 1604 | |
5909c0e1 | 1605 | fuzz_target_packetcache_SOURCES = \ |
af6f3d53 RG |
1606 | dnslabeltext.cc \ |
1607 | dnsname.cc dnsname.hh \ | |
1608 | ednsoptions.cc ednsoptions.hh \ | |
1c81cda0 | 1609 | fuzz_packetcache.cc \ |
af6f3d53 RG |
1610 | misc.cc misc.hh \ |
1611 | packetcache.hh \ | |
7bd62b83 | 1612 | qtype.cc qtype.hh \ |
1c81cda0 PL |
1613 | statbag.cc statbag.hh \ |
1614 | svc-records.cc svc-records.hh | |
af6f3d53 | 1615 | |
5909c0e1 RG |
1616 | fuzz_target_packetcache_DEPENDENCIES = $(fuzz_targets_deps) |
1617 | fuzz_target_packetcache_LDFLAGS = $(fuzz_targets_ldflags) | |
1618 | fuzz_target_packetcache_LDADD = $(fuzz_targets_libs) | |
af6f3d53 | 1619 | |
aa5a2a6f RG |
1620 | fuzz_target_proxyprotocol_SOURCES = \ |
1621 | fuzz_proxyprotocol.cc \ | |
1622 | iputils.hh \ | |
1623 | proxy-protocol.cc \ | |
1624 | proxy-protocol.hh | |
1625 | ||
1626 | fuzz_target_proxyprotocol_DEPENDENCIES = $(fuzz_targets_deps) | |
1627 | fuzz_target_proxyprotocol_LDFLAGS = $(fuzz_targets_ldflags) | |
1628 | fuzz_target_proxyprotocol_LDADD = $(fuzz_targets_libs) | |
1629 | ||
43445d84 RG |
1630 | fuzz_target_yahttp_SOURCES = \ |
1631 | fuzz_yahttp.cc | |
1632 | ||
1633 | fuzz_target_yahttp_DEPENDENCIES = $(fuzz_targets_deps) | |
1634 | fuzz_target_yahttp_LDFLAGS = $(fuzz_targets_ldflags) | |
1635 | fuzz_target_yahttp_LDADD = $(fuzz_targets_libs) \ | |
1636 | $(YAHTTP_LIBS) | |
1637 | ||
5909c0e1 | 1638 | fuzz_target_zoneparsertng_SOURCES = \ |
af6f3d53 RG |
1639 | base32.cc base32.hh \ |
1640 | base64.cc base64.hh \ | |
1641 | dnslabeltext.cc \ | |
1642 | dnsname.cc dnsname.hh \ | |
1643 | dnsparser.cc dnsparser.hh \ | |
1644 | dnsrecords.cc dnsrecords.hh \ | |
1645 | dnswriter.cc dnswriter.hh \ | |
1c81cda0 | 1646 | fuzz_zoneparsertng.cc \ |
af6f3d53 RG |
1647 | logger.cc logger.hh \ |
1648 | misc.cc misc.hh \ | |
1649 | nsecrecords.cc \ | |
1650 | qtype.cc qtype.hh \ | |
1651 | rcpgenerator.cc rcpgenerator.hh \ | |
1652 | sillyrecords.cc \ | |
1653 | statbag.cc statbag.hh \ | |
1c81cda0 | 1654 | svc-records.cc svc-records.hh \ |
af6f3d53 RG |
1655 | unix_utility.cc \ |
1656 | utility.hh \ | |
1657 | zoneparser-tng.cc zoneparser-tng.hh | |
1658 | ||
5909c0e1 RG |
1659 | fuzz_target_zoneparsertng_DEPENDENCIES = $(fuzz_targets_deps) |
1660 | fuzz_target_zoneparsertng_LDFLAGS = $(fuzz_targets_ldflags) | |
1661 | fuzz_target_zoneparsertng_LDADD = $(fuzz_targets_libs) | |
af6f3d53 | 1662 | |
6b53d042 PL |
1663 | fuzz_target_dnslabeltext_parseRFC1035CharString_SOURCES = \ |
1664 | dnslabeltext.cc \ | |
1665 | fuzz_dnslabeltext_parseRFC1035CharString.cc | |
1666 | ||
1667 | fuzz_target_dnslabeltext_parseRFC1035CharString_DEPENDENCIES = $(fuzz_targets_deps) | |
1668 | fuzz_target_dnslabeltext_parseRFC1035CharString_LDFLAGS = $(fuzz_targets_ldflags) | |
1669 | fuzz_target_dnslabeltext_parseRFC1035CharString_LDADD = $(fuzz_targets_libs) | |
1670 | ||
af6f3d53 RG |
1671 | endif |
1672 | ||
bac8f21b | 1673 | dnslabeltext.cc: dnslabeltext.rl |
c1479ae2 | 1674 | $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc |
20af48f2 | 1675 | |
fd9f80de | 1676 | bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql |
f2c11a8b | 1677 | ( echo '#pragma once'; echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g' ; echo ';' ) > $@ |
fd9f80de | 1678 | |
aeb68567 | 1679 | bindlexer.$(OBJEXT): bindparser.hh |
c18960f7 | 1680 | |
45c97f75 PD |
1681 | pdns_recursor rec_control: |
1682 | @echo "Please build the recursor from the recursordist/ dir" | |
1683 | @exit 1 | |
1684 | ||
1685 | dnsdist: | |
1686 | @echo "Please build dnsdist from the dnsdistdist/ dir" | |
1687 | @exit 1 | |
c5ce3658 PL |
1688 | |
1689 | if HAVE_SYSTEMD | |
1690 | pdns.service: pdns.service.in | |
f3d65532 | 1691 | $(AM_V_GEN)sed -e 's![@]sbindir[@]!$(sbindir)!' -e 's![@]service_user[@]!$(service_user)!' -e 's![@]service_group[@]!$(service_group)!' < $< > $@ |
7bbaae11 | 1692 | if !HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV |
42bc9fae | 1693 | if HAVE_SYSTEMD_PERCENT_T |
7bbaae11 PL |
1694 | $(AM_V_GEN)sed -e 's!/pdns_server!& --socket-dir=%t/pdns!' -i $@ |
1695 | endif | |
42bc9fae | 1696 | endif |
a3dfb540 | 1697 | if !HAVE_SYSTEMD_LOCK_PERSONALITY |
6992cb2d | 1698 | $(AM_V_GEN)perl -ni -e 'print unless /^LockPersonality/' $@ |
a3dfb540 RG |
1699 | endif |
1700 | if !HAVE_SYSTEMD_PRIVATE_DEVICES | |
6992cb2d | 1701 | $(AM_V_GEN)perl -ni -e 'print unless /^PrivateDevices/' $@ |
a3dfb540 RG |
1702 | endif |
1703 | if !HAVE_SYSTEMD_PRIVATE_TMP | |
6992cb2d | 1704 | $(AM_V_GEN)perl -ni -e 'print unless /^PrivateTmp/' $@ |
a3dfb540 | 1705 | endif |
3d559c55 RG |
1706 | if !HAVE_SYSTEMD_PRIVATE_USERS |
1707 | $(AM_V_GEN)perl -ni -e 'print unless /^PrivateUsers/' $@ | |
1708 | endif | |
1709 | if !HAVE_SYSTEMD_PROTECT_CLOCK | |
1710 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectClock/' $@ | |
1711 | endif | |
a3dfb540 | 1712 | if !HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS |
6992cb2d | 1713 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectControlGroups/' $@ |
a3dfb540 RG |
1714 | endif |
1715 | if !HAVE_SYSTEMD_PROTECT_HOME | |
6992cb2d | 1716 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectHome/' $@ |
a3dfb540 | 1717 | endif |
3d559c55 RG |
1718 | if !HAVE_SYSTEMD_PROTECT_HOSTNAME |
1719 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectHostname/' $@ | |
1720 | endif | |
1721 | if !HAVE_SYSTEMD_PROTECT_KERNEL_LOGS | |
1722 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelLogs/' $@ | |
1723 | endif | |
a3dfb540 | 1724 | if !HAVE_SYSTEMD_PROTECT_KERNEL_MODULES |
6992cb2d | 1725 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelModules/' $@ |
a3dfb540 RG |
1726 | endif |
1727 | if !HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES | |
6992cb2d | 1728 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelTunables/' $@ |
a3dfb540 RG |
1729 | endif |
1730 | if !HAVE_SYSTEMD_PROTECT_SYSTEM | |
6992cb2d | 1731 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectSystem/' $@ |
a3dfb540 RG |
1732 | endif |
1733 | if !HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES | |
6992cb2d | 1734 | $(AM_V_GEN)perl -ni -e 'print unless /^RestrictAddressFamilies/' $@ |
a3dfb540 RG |
1735 | endif |
1736 | if !HAVE_SYSTEMD_RESTRICT_NAMESPACES | |
6992cb2d | 1737 | $(AM_V_GEN)perl -ni -e 'print unless /^RestrictNamespaces/' $@ |
a3dfb540 RG |
1738 | endif |
1739 | if !HAVE_SYSTEMD_RESTRICT_REALTIME | |
6992cb2d | 1740 | $(AM_V_GEN)perl -ni -e 'print unless /^RestrictRealtime/' $@ |
a3dfb540 | 1741 | endif |
3d559c55 RG |
1742 | if !HAVE_SYSTEMD_RESTRICT_SUIDSGID |
1743 | $(AM_V_GEN)perl -ni -e 'print unless /^RestrictSUIDSGID/' $@ | |
1744 | endif | |
a3dfb540 | 1745 | if !HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES |
6992cb2d | 1746 | $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallArchitectures/' $@ |
a3dfb540 RG |
1747 | endif |
1748 | if !HAVE_SYSTEMD_SYSTEM_CALL_FILTER | |
6992cb2d | 1749 | $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallFilter/' $@ |
a3dfb540 | 1750 | endif |
3a0c3b68 PL |
1751 | if !HAVE_SYSTEMD_PROTECT_PROC |
1752 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectProc/' $@ | |
1753 | endif | |
77a8401f PL |
1754 | if !HAVE_SYSTEMD_PRIVATE_IPC |
1755 | $(AM_V_GEN)perl -ni -e 'print unless /^PrivateIPC/' $@ | |
1756 | endif | |
1757 | if !HAVE_SYSTEMD_REMOVE_IPC | |
1758 | $(AM_V_GEN)perl -ni -e 'print unless /^RemoveIPC/' $@ | |
1759 | endif | |
c5ce3658 | 1760 | |
e281d725 PL |
1761 | pdns@.service: pdns.service |
1762 | $(AM_V_GEN)sed -e 's!/pdns_server!& --config-name=%i!' \ | |
1763 | -e 's!Authoritative Server!& %i!' \ | |
1bdc31fd | 1764 | -e 's!SyslogIdentifier=.*!&-%i!' \ |
e281d725 | 1765 | < $< > $@ |
42bc9fae O |
1766 | if HAVE_SYSTEMD_PERCENT_T |
1767 | $(AM_V_GEN)sed -e 's!RuntimeDirectory=.*!&-%i!' -i $@ | |
7bbaae11 PL |
1768 | if !HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV |
1769 | $(AM_V_GEN)sed -e 's!--socket-dir=[^ ]\+!&-%i !' -i $@ | |
1770 | endif | |
42bc9fae | 1771 | endif |
e281d725 | 1772 | |
c5ce3658 PL |
1773 | systemdsystemunitdir = $(SYSTEMD_DIR) |
1774 | ||
1775 | systemdsystemunit_DATA = \ | |
e281d725 PL |
1776 | pdns.service \ |
1777 | pdns@.service | |
b14d512f | 1778 | |
50169e30 CH |
1779 | CLEANFILES += \ |
1780 | pdns.service \ | |
1781 | pdns@.service | |
1782 | ||
ca28add0 | 1783 | if IXFRDIST |
b14d512f PL |
1784 | ixfrdist.service: ixfrdist.service.in |
1785 | $(AM_V_GEN)sed -e 's![@]bindir[@]!$(bindir)!' < $< > $@ | |
ddf3fafa RG |
1786 | if !HAVE_SYSTEMD_LOCK_PERSONALITY |
1787 | $(AM_V_GEN)perl -ni -e 'print unless /^LockPersonality/' $@ | |
1788 | endif | |
1789 | if !HAVE_SYSTEMD_PRIVATE_DEVICES | |
1790 | $(AM_V_GEN)perl -ni -e 'print unless /^PrivateDevices/' $@ | |
1791 | endif | |
1792 | if !HAVE_SYSTEMD_PRIVATE_TMP | |
1793 | $(AM_V_GEN)perl -ni -e 'print unless /^PrivateTmp/' $@ | |
1794 | endif | |
1795 | if !HAVE_SYSTEMD_PRIVATE_USERS | |
1796 | $(AM_V_GEN)perl -ni -e 'print unless /^PrivateUsers/' $@ | |
1797 | endif | |
1798 | if !HAVE_SYSTEMD_PROTECT_CLOCK | |
1799 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectClock/' $@ | |
1800 | endif | |
1801 | if !HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS | |
1802 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectControlGroups/' $@ | |
1803 | endif | |
1804 | if !HAVE_SYSTEMD_PROTECT_HOME | |
1805 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectHome/' $@ | |
1806 | endif | |
1807 | if !HAVE_SYSTEMD_PROTECT_HOSTNAME | |
1808 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectHostname/' $@ | |
1809 | endif | |
1810 | if !HAVE_SYSTEMD_PROTECT_KERNEL_LOGS | |
1811 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelLogs/' $@ | |
1812 | endif | |
1813 | if !HAVE_SYSTEMD_PROTECT_KERNEL_MODULES | |
1814 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelModules/' $@ | |
1815 | endif | |
1816 | if !HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES | |
1817 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelTunables/' $@ | |
1818 | endif | |
1819 | if !HAVE_SYSTEMD_PROTECT_SYSTEM | |
1820 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectSystem/' $@ | |
1821 | endif | |
1822 | if !HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES | |
1823 | $(AM_V_GEN)perl -ni -e 'print unless /^RestrictAddressFamilies/' $@ | |
1824 | endif | |
1825 | if !HAVE_SYSTEMD_RESTRICT_NAMESPACES | |
1826 | $(AM_V_GEN)perl -ni -e 'print unless /^RestrictNamespaces/' $@ | |
1827 | endif | |
1828 | if !HAVE_SYSTEMD_RESTRICT_REALTIME | |
1829 | $(AM_V_GEN)perl -ni -e 'print unless /^RestrictRealtime/' $@ | |
1830 | endif | |
1831 | if !HAVE_SYSTEMD_RESTRICT_SUIDSGID | |
1832 | $(AM_V_GEN)perl -ni -e 'print unless /^RestrictSUIDSGID/' $@ | |
1833 | endif | |
1834 | if !HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES | |
1835 | $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallArchitectures/' $@ | |
1836 | endif | |
1837 | if !HAVE_SYSTEMD_SYSTEM_CALL_FILTER | |
1838 | $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallFilter/' $@ | |
1839 | endif | |
3a0c3b68 PL |
1840 | if !HAVE_SYSTEMD_PROTECT_PROC |
1841 | $(AM_V_GEN)perl -ni -e 'print unless /^ProtectProc/' $@ | |
1842 | endif | |
846806cd PL |
1843 | if !HAVE_SYSTEMD_MEMORY_DENY_WRITE_EXECUTE |
1844 | $(AM_V_GEN)perl -ni -e 'print unless /^MemoryDenyWriteExecute/' $@ | |
1845 | endif | |
77a8401f PL |
1846 | if !HAVE_SYSTEMD_PRIVATE_IPC |
1847 | $(AM_V_GEN)perl -ni -e 'print unless /^PrivateIPC/' $@ | |
1848 | endif | |
1849 | if !HAVE_SYSTEMD_REMOVE_IPC | |
1850 | $(AM_V_GEN)perl -ni -e 'print unless /^RemoveIPC/' $@ | |
1851 | endif | |
b14d512f | 1852 | |
0a7eb290 PL |
1853 | ixfrdist@.service: ixfrdist.service |
1854 | $(AM_V_GEN)sed -e 's!/ixfrdist!& --config $(sysconfdir)/ixfrdist-%i.yml!' \ | |
1855 | < $< > $@ | |
1856 | ||
b14d512f | 1857 | systemdsystemunit_DATA += \ |
0a7eb290 PL |
1858 | ixfrdist.service \ |
1859 | ixfrdist@.service | |
ca28add0 | 1860 | endif # IXFRDIST |
b14d512f | 1861 | |
50169e30 | 1862 | CLEANFILES += \ |
0a7eb290 PL |
1863 | ixfrdist.service \ |
1864 | ixfrdist@.service | |
50169e30 | 1865 | |
b14d512f | 1866 | endif # HAVE_SYSTEMD |