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