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