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