]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/Makefile.am
Merge remote-tracking branch 'origin/master' into auth-ringbugs
[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
1063 pdns_notify_LDFLAGS = \
1064 $(AM_LDFLAGS) \
1065 $(LIBCRYPTO_LDFLAGS) \
1066 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1067
1068 pdns_notify_LDADD = \
1069 $(LIBCRYPTO_LIBS) \
1070 $(BOOST_PROGRAM_OPTIONS_LIBS)
1071
1072 dnsscope_SOURCES = \
1073 arguments.cc \
1074 base32.cc \
1075 base64.cc base64.hh \
1076 dns.cc \
1077 dnslabeltext.cc \
1078 dnsname.cc dnsname.hh \
1079 dnsparser.cc dnsparser.hh \
1080 dnspcap.cc dnspcap.hh \
1081 dnsrecords.cc \
1082 dnsscope.cc \
1083 dnswriter.cc dnswriter.hh \
1084 histog.hh \
1085 logger.cc \
1086 misc.cc \
1087 nsecrecords.cc \
1088 qtype.cc \
1089 rcpgenerator.cc rcpgenerator.hh \
1090 sillyrecords.cc \
1091 statbag.cc \
1092 statnode.cc statnode.hh \
1093 unix_utility.cc \
1094 utility.hh
1095
1096 dnsscope_LDFLAGS = \
1097 $(AM_LDFLAGS) \
1098 $(LIBCRYPTO_LDFLAGS) \
1099 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1100
1101 dnsscope_LDADD = \
1102 $(LIBCRYPTO_LIBS) \
1103 $(BOOST_PROGRAM_OPTIONS_LIBS)
1104
1105 dnsgram_SOURCES = \
1106 base32.cc \
1107 base64.cc base64.hh \
1108 dnsgram.cc \
1109 dnslabeltext.cc \
1110 dnsname.cc dnsname.hh \
1111 dnsparser.cc dnsparser.hh \
1112 dnspcap.cc dnspcap.hh \
1113 dnsrecords.cc \
1114 dnswriter.cc dnswriter.hh \
1115 logger.cc \
1116 misc.cc \
1117 nsecrecords.cc \
1118 qtype.cc \
1119 rcpgenerator.cc rcpgenerator.hh \
1120 sillyrecords.cc \
1121 statbag.cc \
1122 unix_utility.cc \
1123 utility.hh
1124
1125 dnsgram_LDFLAGS = \
1126 $(AM_LDFLAGS) \
1127 $(LIBCRYPTO_LDFLAGS)
1128
1129 dnsgram_LDADD = \
1130 $(LIBCRYPTO_LIBS)
1131
1132 dnsdemog_SOURCES = \
1133 base32.cc \
1134 base64.cc base64.hh \
1135 dnsdemog.cc \
1136 dnslabeltext.cc \
1137 dnsname.cc dnsname.hh \
1138 dnsparser.cc dnsparser.hh \
1139 dnspcap.cc dnspcap.hh \
1140 dnsrecords.cc \
1141 dnswriter.cc dnswriter.hh \
1142 logger.cc \
1143 misc.cc \
1144 nsecrecords.cc \
1145 qtype.cc \
1146 rcpgenerator.cc rcpgenerator.hh \
1147 sillyrecords.cc \
1148 statbag.cc \
1149 unix_utility.cc \
1150 utility.hh
1151
1152 dnsdemog_LDFLAGS = \
1153 $(AM_LDFLAGS) \
1154 $(LIBCRYPTO_LDFLAGS)
1155
1156 dnsdemog_LDADD = \
1157 $(LIBCRYPTO_LIBS)
1158
1159 dnspcap2calidns_SOURCES = \
1160 base32.cc \
1161 base64.cc base64.hh \
1162 dnslabeltext.cc \
1163 dnsname.cc dnsname.hh \
1164 dnsparser.cc dnsparser.hh \
1165 dnspcap.cc dnspcap.hh \
1166 dnspcap2calidns.cc \
1167 dnsrecords.cc \
1168 dnswriter.cc dnswriter.hh \
1169 ednsoptions.cc ednsoptions.hh \
1170 ednssubnet.cc ednssubnet.hh \
1171 iputils.cc \
1172 logger.cc \
1173 misc.cc \
1174 nsecrecords.cc \
1175 qtype.cc \
1176 rcpgenerator.cc rcpgenerator.hh \
1177 sillyrecords.cc \
1178 statbag.cc \
1179 unix_utility.cc \
1180 utility.hh
1181
1182 dnspcap2calidns_LDFLAGS = \
1183 $(AM_LDFLAGS) \
1184 $(LIBCRYPTO_LDFLAGS) \
1185 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1186
1187 dnspcap2calidns_LDADD = \
1188 $(LIBCRYPTO_LIBS) \
1189 $(BOOST_PROGRAM_OPTIONS_LIBS)
1190
1191 if HAVE_PROTOBUF
1192 if HAVE_PROTOC
1193 bin_PROGRAMS += dnspcap2protobuf
1194
1195 dnsmessage.pb.cc: dnsmessage.proto
1196 $(AM_V_GEN)$(PROTOC) --cpp_out=./ $<
1197
1198 BUILT_SOURCES += dnsmessage.pb.cc
1199 dnspcap2protobuf.$(OBJEXT): dnsmessage.pb.cc
1200
1201 dnspcap2protobuf_SOURCES = \
1202 base32.cc \
1203 base64.cc base64.hh \
1204 dnslabeltext.cc \
1205 dnsname.cc dnsname.hh \
1206 dnsparser.cc dnsparser.hh \
1207 dnspcap.cc dnspcap.hh \
1208 dnspcap2protobuf.cc \
1209 dnsrecords.cc \
1210 dnswriter.cc dnswriter.hh \
1211 gettime.cc gettime.hh \
1212 iputils.cc \
1213 logger.cc \
1214 misc.cc \
1215 nsecrecords.cc \
1216 protobuf.cc protobuf.hh \
1217 qtype.cc \
1218 rcpgenerator.cc rcpgenerator.hh \
1219 sillyrecords.cc \
1220 statbag.cc \
1221 unix_utility.cc \
1222 utility.hh \
1223 uuid-utils.hh uuid-utils.cc
1224
1225 nodist_dnspcap2protobuf_SOURCES=dnsmessage.pb.cc dnsmessage.pb.h
1226
1227 dnspcap2protobuf_LDFLAGS = \
1228 $(AM_LDFLAGS) \
1229 $(LIBCRYPTO_LDFLAGS) \
1230 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1231
1232 dnspcap2protobuf_LDADD = \
1233 $(LIBCRYPTO_LIBS) \
1234 $(PROTOBUF_LIBS) \
1235 $(BOOST_PROGRAM_OPTIONS_LIBS) \
1236 $(RT_LIBS)
1237 endif
1238 endif
1239
1240 pdns.conf-dist: pdns_server
1241 $(AM_V_GEN)./pdns_server --no-config --config 2>/dev/null > $@
1242
1243 testrunner_SOURCES = \
1244 arguments.cc \
1245 auth-caches.cc auth-caches.hh \
1246 auth-packetcache.cc auth-packetcache.hh \
1247 auth-querycache.cc auth-querycache.hh \
1248 base32.cc \
1249 base64.cc \
1250 bindlexer.l \
1251 bindparser.yy \
1252 dbdnsseckeeper.cc \
1253 dns.cc \
1254 dns_random.cc \
1255 dnsbackend.cc \
1256 dnslabeltext.cc \
1257 dnsname.cc \
1258 dnsname.hh \
1259 dnspacket.cc \
1260 dnsparser.hh dnsparser.cc \
1261 dnsrecords.cc \
1262 dnssecinfra.cc \
1263 dnssecsigner.cc \
1264 dnswriter.cc \
1265 ednsoptions.cc ednsoptions.hh \
1266 ednscookies.cc ednscookies.hh \
1267 ednssubnet.cc \
1268 gettime.cc gettime.hh \
1269 gss_context.cc gss_context.hh \
1270 iputils.cc \
1271 ixfr.cc ixfr.hh \
1272 logger.cc \
1273 lua-auth4.hh lua-auth4.cc \
1274 lua-base4.hh lua-base4.cc \
1275 stubresolver.hh stubresolver.cc \
1276 misc.cc \
1277 nameserver.cc \
1278 nsecrecords.cc \
1279 opensslsigners.cc opensslsigners.hh \
1280 qtype.cc \
1281 rcpgenerator.cc \
1282 responsestats.cc \
1283 responsestats-auth.cc \
1284 sillyrecords.cc \
1285 statbag.cc \
1286 test-arguments_cc.cc \
1287 test-base32_cc.cc \
1288 test-base64_cc.cc \
1289 test-bindparser_cc.cc \
1290 test-common.hh \
1291 test-dnsrecordcontent.cc \
1292 test-digests_hh.cc \
1293 test-distributor_hh.cc \
1294 test-dns_random_hh.cc \
1295 test-dnsname_cc.cc \
1296 test-dnsparser_cc.cc \
1297 test-dnsparser_hh.cc \
1298 test-dnsrecords_cc.cc \
1299 test-iputils_hh.cc \
1300 test-ixfr_cc.cc \
1301 test-lock_hh.cc \
1302 test-lua_auth4_cc.cc \
1303 test-misc_hh.cc \
1304 test-nameserver_cc.cc \
1305 test-packetcache_cc.cc \
1306 test-packetcache_hh.cc \
1307 test-rcpgenerator_cc.cc \
1308 test-signers.cc \
1309 test-sha_hh.cc \
1310 test-statbag_cc.cc \
1311 test-tsig.cc \
1312 test-zoneparser_tng_cc.cc \
1313 testrunner.cc \
1314 threadname.hh threadname.cc \
1315 tsigverifier.cc tsigverifier.hh \
1316 ueberbackend.cc \
1317 unix_utility.cc \
1318 zoneparser-tng.cc zoneparser-tng.hh
1319
1320 testrunner_LDFLAGS = \
1321 $(AM_LDFLAGS) \
1322 $(LIBCRYPTO_LDFLAGS) \
1323 $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS)
1324
1325 testrunner_LDADD = \
1326 $(LIBCRYPTO_LIBS) \
1327 $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \
1328 $(RT_LIBS) \
1329 $(LUA_LIBS) \
1330 $(LIBDL)
1331
1332 if PKCS11
1333 testrunner_SOURCES += pkcs11signers.cc pkcs11signers.hh
1334 testrunner_LDADD += $(P11KIT1_LIBS)
1335 endif
1336
1337 if LIBSODIUM
1338 testrunner_SOURCES += sodiumsigners.cc
1339 testrunner_LDADD += $(LIBSODIUM_LIBS)
1340 endif
1341
1342 if LIBDECAF
1343 testrunner_SOURCES += decafsigners.cc
1344 testrunner_LDADD += $(LIBDECAF_LIBS)
1345 endif
1346
1347 pdns_control_SOURCES = \
1348 arguments.cc \
1349 dynloader.cc \
1350 dynmessenger.cc \
1351 logger.cc \
1352 misc.cc \
1353 qtype.cc \
1354 statbag.cc \
1355 unix_utility.cc \
1356 dnsname.cc \
1357 dnslabeltext.cc
1358
1359 if UNIT_TESTS
1360
1361 if HAVE_BOOST_GE_148
1362 TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message SRCDIR='$(srcdir)'
1363 TESTS=testrunner
1364 else
1365 check-local:
1366 @echo "Unit tests disabled, boost is too old"
1367 endif
1368
1369 else
1370 check-local:
1371 @echo "Unit tests are not enabled"
1372 @echo "Run ./configure --enable-unit-tests"
1373 endif
1374
1375 if FUZZ_TARGETS
1376
1377 LIB_FUZZING_ENGINE ?= standalone_fuzz_target_runner.o
1378
1379 standalone_fuzz_target_runner.o: standalone_fuzz_target_runner.cc
1380
1381 fuzz_targets_programs = \
1382 fuzz_target_dnsdistcache \
1383 fuzz_target_moadnsparser \
1384 fuzz_target_packetcache \
1385 fuzz_target_zoneparsertng
1386
1387 fuzz_targets: $(fuzz_targets_programs)
1388
1389 bin_PROGRAMS += \
1390 $(fuzz_targets_programs)
1391
1392 fuzz_targets_libs = \
1393 $(LIBCRYPTO_LIBS) \
1394 $(LIB_FUZZING_ENGINE)
1395 fuzz_targets_ldflags = \
1396 $(AM_LDFLAGS) \
1397 $(DYNLINKFLAGS) \
1398 $(LIBCRYPTO_LDFLAGS) \
1399 $(FUZZING_LDFLAGS)
1400
1401 # we need the mockup runner to be built, but not linked if a real fuzzing engine is used
1402 fuzz_targets_deps = standalone_fuzz_target_runner.o
1403
1404 fuzz_target_moadnsparser_SOURCES = \
1405 fuzz_moadnsparser.cc \
1406 base32.cc base32.hh \
1407 base64.cc base64.hh \
1408 dnslabeltext.cc \
1409 dnsname.cc dnsname.hh \
1410 dnsparser.cc dnsparser.hh \
1411 dnsrecords.cc dnsrecords.hh \
1412 dnswriter.cc dnswriter.hh \
1413 logger.cc logger.hh \
1414 misc.cc misc.hh \
1415 nsecrecords.cc \
1416 qtype.cc qtype.hh \
1417 rcpgenerator.cc rcpgenerator.hh \
1418 sillyrecords.cc \
1419 statbag.cc statbag.hh \
1420 unix_utility.cc \
1421 utility.hh
1422
1423 fuzz_target_moadnsparser_DEPENDENCIES = $(fuzz_targets_deps)
1424 fuzz_target_moadnsparser_LDFLAGS = $(fuzz_targets_ldflags)
1425 fuzz_target_moadnsparser_LDADD = $(fuzz_targets_libs)
1426
1427 fuzz_target_packetcache_SOURCES = \
1428 fuzz_packetcache.cc \
1429 dnslabeltext.cc \
1430 dnsname.cc dnsname.hh \
1431 ednsoptions.cc ednsoptions.hh \
1432 misc.cc misc.hh \
1433 packetcache.hh \
1434 qtype.cc qtype.hh \
1435 statbag.cc statbag.hh
1436
1437 fuzz_target_packetcache_DEPENDENCIES = $(fuzz_targets_deps)
1438 fuzz_target_packetcache_LDFLAGS = $(fuzz_targets_ldflags)
1439 fuzz_target_packetcache_LDADD = $(fuzz_targets_libs)
1440
1441 fuzz_target_dnsdistcache_SOURCES = \
1442 fuzz_dnsdistcache.cc \
1443 dnsdist-cache.cc dnsdist-cache.hh \
1444 dnsdist-ecs.cc dnsdist-ecs.hh \
1445 dnslabeltext.cc \
1446 dnsname.cc dnsname.hh \
1447 dnsparser.cc dnsparser.hh \
1448 dnswriter.cc dnswriter.hh \
1449 ednsoptions.cc ednsoptions.hh \
1450 ednssubnet.cc ednssubnet.hh \
1451 iputils.cc iputils.hh \
1452 misc.cc misc.hh \
1453 packetcache.hh \
1454 qtype.cc qtype.hh
1455
1456 fuzz_target_dnsdistcache_DEPENDENCIES = $(fuzz_targets_deps)
1457 fuzz_target_dnsdistcache_LDFLAGS = $(fuzz_targets_ldflags)
1458 fuzz_target_dnsdistcache_LDADD = $(fuzz_targets_libs)
1459
1460 fuzz_target_zoneparsertng_SOURCES = \
1461 fuzz_zoneparsertng.cc \
1462 base32.cc base32.hh \
1463 base64.cc base64.hh \
1464 dnslabeltext.cc \
1465 dnsname.cc dnsname.hh \
1466 dnsparser.cc dnsparser.hh \
1467 dnsrecords.cc dnsrecords.hh \
1468 dnswriter.cc dnswriter.hh \
1469 logger.cc logger.hh \
1470 misc.cc misc.hh \
1471 nsecrecords.cc \
1472 qtype.cc qtype.hh \
1473 rcpgenerator.cc rcpgenerator.hh \
1474 sillyrecords.cc \
1475 statbag.cc statbag.hh \
1476 unix_utility.cc \
1477 utility.hh \
1478 zoneparser-tng.cc zoneparser-tng.hh
1479
1480 fuzz_target_zoneparsertng_DEPENDENCIES = $(fuzz_targets_deps)
1481 fuzz_target_zoneparsertng_LDFLAGS = $(fuzz_targets_ldflags)
1482 fuzz_target_zoneparsertng_LDADD = $(fuzz_targets_libs)
1483
1484 endif
1485
1486 dnslabeltext.cc: dnslabeltext.rl
1487 $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc
1488
1489 bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql
1490 ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g' ; echo ';' ) > $@
1491
1492 # for bindparser.h/hh
1493 .hh.h:
1494 cp $< $@
1495
1496 bindlexer.$(OBJEXT): bindparser.h
1497
1498 curl_verbose = $(curl_verbose_$(V))
1499 curl_verbose_ = $(curl_verbose_$(AM_DEFAULT_VERBOSITY))
1500 curl_verbose_0 = @echo " CURL " $@;
1501 $(srcdir)/effective_tld_names.dat:
1502 $(curl_verbose)if ! curl -s -S https://publicsuffix.org/list/public_suffix_list.dat > $@; then rm -f $@; exit 1; fi
1503
1504 pubsuffix.cc: $(srcdir)/effective_tld_names.dat
1505 $(AM_V_GEN)./mkpubsuffixcc
1506
1507 pdns_recursor rec_control:
1508 @echo "Please build the recursor from the recursordist/ dir"
1509 @exit 1
1510
1511 dnsdist:
1512 @echo "Please build dnsdist from the dnsdistdist/ dir"
1513 @exit 1
1514
1515 if HAVE_SYSTEMD
1516 pdns.service: pdns.service.in
1517 $(AM_V_GEN)sed -e 's![@]sbindir[@]!$(sbindir)!' < $< > $@
1518 if !HAVE_SYSTEMD_LOCK_PERSONALITY
1519 $(AM_V_GEN)perl -ni -e 'print unless /^LockPersonality/' $@
1520 endif
1521 if !HAVE_SYSTEMD_PRIVATE_DEVICES
1522 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateDevices/' $@
1523 endif
1524 if !HAVE_SYSTEMD_PRIVATE_TMP
1525 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateTmp/' $@
1526 endif
1527 if !HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS
1528 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectControlGroups/' $@
1529 endif
1530 if !HAVE_SYSTEMD_PROTECT_HOME
1531 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectHome/' $@
1532 endif
1533 if !HAVE_SYSTEMD_PROTECT_KERNEL_MODULES
1534 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelModules/' $@
1535 endif
1536 if !HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES
1537 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelTunables/' $@
1538 endif
1539 if !HAVE_SYSTEMD_PROTECT_SYSTEM
1540 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectSystem/' $@
1541 endif
1542 if !HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES
1543 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictAddressFamilies/' $@
1544 endif
1545 if !HAVE_SYSTEMD_RESTRICT_NAMESPACES
1546 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictNamespaces/' $@
1547 endif
1548 if !HAVE_SYSTEMD_RESTRICT_REALTIME
1549 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictRealtime/' $@
1550 endif
1551 if !HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES
1552 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallArchitectures/' $@
1553 endif
1554 if !HAVE_SYSTEMD_SYSTEM_CALL_FILTER
1555 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallFilter/' $@
1556 endif
1557
1558 pdns@.service: pdns.service
1559 $(AM_V_GEN)sed -e 's!/pdns_server!& --config-name=%i!' \
1560 -e 's!Authoritative Server!& %i!' \
1561 < $< > $@
1562
1563 systemdsystemunitdir = $(SYSTEMD_DIR)
1564
1565 systemdsystemunit_DATA = \
1566 pdns.service \
1567 pdns@.service
1568
1569 CLEANFILES += \
1570 pdns.service \
1571 pdns@.service
1572
1573 if IXFRDIST
1574 ixfrdist.service: ixfrdist.service.in
1575 $(AM_V_GEN)sed -e 's![@]bindir[@]!$(bindir)!' < $< > $@
1576
1577 ixfrdist@.service: ixfrdist.service
1578 $(AM_V_GEN)sed -e 's!/ixfrdist!& --config $(sysconfdir)/ixfrdist-%i.yml!' \
1579 < $< > $@
1580
1581 systemdsystemunit_DATA += \
1582 ixfrdist.service \
1583 ixfrdist@.service
1584 endif # IXFRDIST
1585
1586 CLEANFILES += \
1587 ixfrdist.service \
1588 ixfrdist@.service
1589
1590 endif # HAVE_SYSTEMD