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