]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/Makefile.am
rename ipcrypt/ipcipher
[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 ipcipher.cc ipcipher.hh ../ext/ipcrypt/ipcrypt.c ../ext/ipcrypt/ipcrypt.h \
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 webserver.hh webserver.cc \
645 zoneparser-tng.cc
646
647
648 ixfrdist_LDADD = \
649 $(BOOST_PROGRAM_OPTIONS_LIBS) \
650 $(JSON11_LIBS) \
651 $(LIBCRYPTO_LIBS) \
652 $(YAHTTP_LIBS) \
653 $(YAML_LIBS)
654
655 ixfrdist_LDFLAGS = \
656 $(AM_LDFLAGS) \
657 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
658 $(LIBCRYPTO_LDFLAGS)
659
660 if PKCS11
661 ixfrdist_SOURCES += pkcs11signers.cc pkcs11signers.hh
662 ixfrdist_LDADD += $(P11KIT1_LIBS)
663 endif
664
665 if GSS_TSIG
666 ixfrdist_LDADD += $(GSS_LIBS)
667 endif
668
669
670 ixplore_SOURCES = \
671 arguments.cc \
672 base32.cc \
673 base64.cc base64.hh \
674 dns.cc \
675 dns_random_urandom.cc dns_random.hh \
676 dnslabeltext.cc \
677 dnsname.cc dnsname.hh \
678 dnsparser.cc dnsparser.hh \
679 dnsrecords.cc \
680 dnssecinfra.cc \
681 dnswriter.cc dnswriter.hh \
682 gss_context.cc gss_context.hh \
683 iputils.cc \
684 logger.cc \
685 misc.cc misc.hh \
686 nsecrecords.cc \
687 qtype.cc \
688 rcpgenerator.cc rcpgenerator.hh \
689 resolver.cc \
690 ixfr.cc ixfr.hh \
691 ixfrutils.cc ixfrutils.hh \
692 ixplore.cc \
693 sillyrecords.cc \
694 sstuff.hh \
695 statbag.cc \
696 tsigverifier.cc tsigverifier.hh \
697 unix_utility.cc zoneparser-tng.cc
698
699 ixplore_LDADD = $(LIBCRYPTO_LIBS)
700 ixplore_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
701
702 if PKCS11
703 ixplore_SOURCES += pkcs11signers.cc pkcs11signers.hh
704 ixplore_LDADD += $(P11KIT1_LIBS)
705 endif
706
707 if GSS_TSIG
708 ixplore_LDADD += $(GSS_LIBS)
709 endif
710
711
712 dnstcpbench_SOURCES = \
713 base32.cc \
714 base64.cc base64.hh \
715 dnslabeltext.cc \
716 dnsname.cc dnsname.hh \
717 dnsparser.cc dnsparser.hh \
718 dnsrecords.cc \
719 dnstcpbench.cc \
720 dnswriter.cc dnswriter.hh \
721 iputils.cc \
722 logger.cc \
723 misc.cc misc.hh \
724 nsecrecords.cc \
725 qtype.cc \
726 rcpgenerator.cc rcpgenerator.hh \
727 sillyrecords.cc \
728 sstuff.hh \
729 statbag.cc \
730 threadname.hh threadname.cc \
731 unix_utility.cc
732
733 dnstcpbench_LDFLAGS = \
734 $(AM_LDFLAGS) \
735 $(LIBCRYPTO_LDFLAGS) \
736 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
737
738 dnstcpbench_LDADD = \
739 $(LIBCRYPTO_LIBS) \
740 $(BOOST_PROGRAM_OPTIONS_LIBS)
741
742 nsec3dig_SOURCES = \
743 base32.cc \
744 base64.cc base64.hh \
745 dnsname.cc dnsname.hh \
746 dnslabeltext.cc \
747 dnsparser.cc dnsparser.hh \
748 dnsrecords.cc \
749 dnssecinfra.cc \
750 dnswriter.cc dnswriter.hh \
751 gss_context.cc gss_context.hh \
752 iputils.cc \
753 logger.cc \
754 misc.cc misc.hh \
755 nsec3dig.cc \
756 nsecrecords.cc \
757 qtype.cc \
758 rcpgenerator.cc rcpgenerator.hh \
759 sillyrecords.cc \
760 sstuff.hh \
761 statbag.cc \
762 unix_utility.cc
763
764 nsec3dig_LDADD = $(LIBCRYPTO_LIBS)
765 nsec3dig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
766
767 if PKCS11
768 nsec3dig_SOURCES += pkcs11signers.cc pkcs11signers.hh
769 nsec3dig_LDADD += $(P11KIT1_LIBS)
770 endif
771
772 if GSS_TSIG
773 nsec3dig_LDADD += $(GSS_LIBS)
774 endif
775
776 toysdig_SOURCES = \
777 base32.cc \
778 base64.cc base64.hh \
779 dns_random_urandom.cc \
780 dnsname.cc dnsname.hh \
781 dnslabeltext.cc \
782 dnsparser.cc dnsparser.hh \
783 dnsrecords.cc \
784 dnssecinfra.cc \
785 dnswriter.cc dnswriter.hh \
786 ednssubnet.cc ednssubnet.hh \
787 filterpo.hh \
788 gss_context.cc gss_context.hh \
789 iputils.cc \
790 logger.cc \
791 misc.cc misc.hh \
792 nsecrecords.cc \
793 opensslsigners.cc opensslsigners.hh \
794 qtype.cc \
795 root-dnssec.hh \
796 rcpgenerator.cc rcpgenerator.hh \
797 rec-lua-conf.hh \
798 recursor_cache.hh \
799 sholder.hh \
800 sillyrecords.cc \
801 sortlist.hh \
802 sstuff.hh \
803 statbag.cc \
804 toysdig.cc \
805 unix_utility.cc \
806 validate.cc validate.hh
807
808
809 toysdig_LDFLAGS = $(AM_LDFLAGS) \
810 $(LIBCRYPTO_LDFLAGS)
811 toysdig_LDADD = $(LIBCRYPTO_LIBS)
812
813 if GSS_TSIG
814 toysdig_LDADD += $(GSS_LIBS)
815 endif
816
817 if PKCS11
818 toysdig_SOURCES += pkcs11signers.cc pkcs11signers.hh
819 toysdig_LDADD += $(P11KIT1_LIBS)
820 endif
821
822 tsig_tests_SOURCES = \
823 arguments.cc \
824 base32.cc \
825 base64.cc base64.hh \
826 digests.hh \
827 dns.cc \
828 dns_random_urandom.cc dns_random.hh \
829 dnslabeltext.cc \
830 dnsname.cc dnsname.hh \
831 dnsparser.cc dnsparser.hh \
832 dnsrecords.cc \
833 dnssecinfra.cc \
834 dnswriter.cc dnswriter.hh \
835 gss_context.cc gss_context.hh \
836 logger.cc \
837 misc.cc misc.hh \
838 nsecrecords.cc \
839 qtype.cc \
840 rcpgenerator.cc rcpgenerator.hh \
841 resolver.cc \
842 sillyrecords.cc \
843 sstuff.hh \
844 statbag.cc \
845 tsig-tests.cc \
846 tsigverifier.cc tsigverifier.hh \
847 unix_utility.cc
848
849 tsig_tests_LDADD = $(LIBCRYPTO_LIBS)
850 tsig_tests_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
851
852 if PKCS11
853 tsig_tests_SOURCES += pkcs11signers.cc pkcs11signers.hh
854 tsig_tests_LDADD += $(P11KIT1_LIBS)
855 endif
856
857 if GSS_TSIG
858 tsig_tests_LDADD += $(GSS_LIBS)
859 endif
860
861 speedtest_SOURCES = \
862 base32.cc \
863 base64.cc base64.hh \
864 dnslabeltext.cc \
865 dnsname.cc dnsname.hh \
866 dnsparser.cc dnsparser.hh \
867 dnsrecords.cc \
868 dnswriter.cc dnswriter.hh \
869 logger.cc \
870 misc.cc misc.hh \
871 nsecrecords.cc \
872 qtype.cc \
873 rcpgenerator.cc rcpgenerator.hh \
874 sillyrecords.cc \
875 speedtest.cc \
876 statbag.cc \
877 unix_utility.cc
878
879 speedtest_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
880 speedtest_LDADD = $(LIBCRYPTO_LIBS) \
881 $(RT_LIBS)
882
883 dnswasher_SOURCES = \
884 dnslabeltext.cc \
885 dnsname.hh dnsname.cc \
886 dnsparser.hh \
887 dnspcap.cc dnspcap.hh \
888 dnswasher.cc \
889 dnswriter.hh \
890 logger.cc \
891 misc.cc \
892 qtype.cc \
893 statbag.cc \
894 unix_utility.cc
895
896
897 dnsbulktest_SOURCES = \
898 base32.cc \
899 base64.cc \
900 dnsbulktest.cc \
901 dnslabeltext.cc \
902 dnsname.cc dnsname.hh \
903 dnsparser.cc \
904 dnsrecords.cc \
905 dnswriter.cc \
906 logger.cc \
907 misc.cc \
908 nsecrecords.cc \
909 qtype.cc \
910 rcpgenerator.cc \
911 sillyrecords.cc \
912 statbag.cc \
913 unix_utility.cc
914
915 dnsbulktest_LDFLAGS = \
916 $(AM_LDFLAGS) \
917 $(LIBCRYPTO_LDFLAGS) \
918 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
919
920 dnsbulktest_LDADD = \
921 $(LIBCRYPTO_LIBS) \
922 $(BOOST_PROGRAM_OPTIONS_LIBS)
923
924 comfun_SOURCES = \
925 base32.cc \
926 base64.cc \
927 comfun.cc \
928 dns.cc \
929 dnslabeltext.cc \
930 dnsname.cc dnsname.hh \
931 dnsparser.cc \
932 dnsrecords.cc \
933 dnswriter.cc \
934 logger.cc \
935 misc.cc \
936 nsecrecords.cc \
937 qtype.cc \
938 rcpgenerator.cc \
939 sillyrecords.cc \
940 statbag.cc \
941 unix_utility.cc \
942 zoneparser-tng.cc zoneparser-tng.hh
943
944 comfun_LDFLAGS = \
945 $(AM_LDFLAGS) \
946 $(LIBCRYPTO_LDFLAGS) \
947 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
948
949 comfun_LDADD = \
950 $(LIBCRYPTO_LIBS) \
951 $(BOOST_PROGRAM_OPTIONS_LIBS)
952
953
954 dnsscan_SOURCES = \
955 anadns.hh \
956 base32.cc \
957 base64.cc base64.hh \
958 dnslabeltext.cc \
959 dnsname.cc dnsname.hh \
960 dnsparser.cc dnsparser.hh \
961 dnspcap.cc dnspcap.hh \
962 dnsrecords.cc \
963 dnsscan.cc \
964 dnswriter.cc dnswriter.hh \
965 logger.cc \
966 misc.cc \
967 nsecrecords.cc \
968 qtype.cc \
969 rcpgenerator.cc rcpgenerator.hh \
970 sillyrecords.cc \
971 statbag.cc \
972 unix_utility.cc \
973 utility.hh
974
975 dnsscan_LDFLAGS = \
976 $(AM_LDFLAGS) \
977 $(LIBCRYPTO_LDFLAGS)
978
979 dnsscan_LDADD = $(LIBCRYPTO_LIBS)
980
981 dnsreplay_SOURCES = \
982 anadns.hh \
983 base32.cc \
984 base64.cc base64.hh \
985 dnslabeltext.cc \
986 dnsname.cc dnsname.hh \
987 dnsparser.cc dnsparser.hh \
988 dnspcap.cc dnspcap.hh \
989 dnsrecords.cc \
990 dnsreplay.cc \
991 dnswriter.cc dnswriter.hh \
992 ednsoptions.cc ednsoptions.hh \
993 ednssubnet.cc ednssubnet.hh \
994 iputils.cc \
995 logger.cc \
996 misc.cc \
997 nsecrecords.cc \
998 qtype.cc \
999 rcpgenerator.cc rcpgenerator.hh \
1000 sillyrecords.cc \
1001 statbag.cc \
1002 unix_utility.cc \
1003 utility.hh
1004
1005 dnsreplay_LDFLAGS = \
1006 $(AM_LDFLAGS) \
1007 $(LIBCRYPTO_LDFLAGS) \
1008 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1009
1010 dnsreplay_LDADD = \
1011 $(LIBCRYPTO_LIBS) \
1012 $(BOOST_PROGRAM_OPTIONS_LIBS)
1013
1014 nproxy_SOURCES = \
1015 base32.cc \
1016 base64.cc base64.hh \
1017 dnslabeltext.cc \
1018 dnsname.cc dnsname.hh \
1019 dnsparser.cc dnsparser.hh \
1020 dnsrecords.cc \
1021 dnswriter.cc dnswriter.hh \
1022 logger.cc \
1023 misc.cc \
1024 mplexer.hh \
1025 nproxy.cc \
1026 nsecrecords.cc \
1027 pollmplexer.cc \
1028 qtype.cc \
1029 rcpgenerator.cc rcpgenerator.hh \
1030 sillyrecords.cc \
1031 statbag.cc \
1032 unix_utility.cc
1033
1034 nproxy_LDFLAGS = \
1035 $(AM_LDFLAGS) \
1036 $(LIBCRYPTO_LDFLAGS) \
1037 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1038
1039 nproxy_LDADD = \
1040 $(LIBCRYPTO_LIBS) \
1041 $(BOOST_PROGRAM_OPTIONS_LIBS)
1042
1043 pdns_notify_SOURCES = \
1044 arguments.cc \
1045 base32.cc \
1046 base64.cc base64.hh \
1047 dns.cc \
1048 dnslabeltext.cc \
1049 dnsname.cc dnsname.hh \
1050 dnsparser.cc dnsparser.hh \
1051 dnsrecords.cc \
1052 dnswriter.cc dnswriter.hh \
1053 logger.cc \
1054 misc.cc \
1055 notify.cc \
1056 nsecrecords.cc \
1057 pollmplexer.cc \
1058 qtype.cc \
1059 rcpgenerator.cc rcpgenerator.hh \
1060 sillyrecords.cc \
1061 statbag.cc \
1062 unix_utility.cc \
1063 dns_random.cc
1064
1065 pdns_notify_LDFLAGS = \
1066 $(AM_LDFLAGS) \
1067 $(LIBCRYPTO_LDFLAGS) \
1068 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1069
1070 pdns_notify_LDADD = \
1071 $(LIBCRYPTO_LIBS) \
1072 $(BOOST_PROGRAM_OPTIONS_LIBS)
1073
1074 if LIBSODIUM
1075 pdns_notify_LDADD += $(LIBSODIUM_LIBS)
1076 endif
1077
1078 dnsscope_SOURCES = \
1079 arguments.cc \
1080 base32.cc \
1081 base64.cc base64.hh \
1082 dns.cc \
1083 dnslabeltext.cc \
1084 dnsname.cc dnsname.hh \
1085 dnsparser.cc dnsparser.hh \
1086 dnspcap.cc dnspcap.hh \
1087 dnsrecords.cc \
1088 dnsscope.cc \
1089 dnswriter.cc dnswriter.hh \
1090 histog.hh \
1091 logger.cc \
1092 misc.cc \
1093 nsecrecords.cc \
1094 qtype.cc \
1095 rcpgenerator.cc rcpgenerator.hh \
1096 sillyrecords.cc \
1097 statbag.cc \
1098 statnode.cc statnode.hh \
1099 unix_utility.cc \
1100 utility.hh
1101
1102 dnsscope_LDFLAGS = \
1103 $(AM_LDFLAGS) \
1104 $(LIBCRYPTO_LDFLAGS) \
1105 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1106
1107 dnsscope_LDADD = \
1108 $(LIBCRYPTO_LIBS) \
1109 $(BOOST_PROGRAM_OPTIONS_LIBS)
1110
1111 dnsgram_SOURCES = \
1112 base32.cc \
1113 base64.cc base64.hh \
1114 dnsgram.cc \
1115 dnslabeltext.cc \
1116 dnsname.cc dnsname.hh \
1117 dnsparser.cc dnsparser.hh \
1118 dnspcap.cc dnspcap.hh \
1119 dnsrecords.cc \
1120 dnswriter.cc dnswriter.hh \
1121 logger.cc \
1122 misc.cc \
1123 nsecrecords.cc \
1124 qtype.cc \
1125 rcpgenerator.cc rcpgenerator.hh \
1126 sillyrecords.cc \
1127 statbag.cc \
1128 unix_utility.cc \
1129 utility.hh
1130
1131 dnsgram_LDFLAGS = \
1132 $(AM_LDFLAGS) \
1133 $(LIBCRYPTO_LDFLAGS)
1134
1135 dnsgram_LDADD = \
1136 $(LIBCRYPTO_LIBS)
1137
1138 dnsdemog_SOURCES = \
1139 base32.cc \
1140 base64.cc base64.hh \
1141 dnsdemog.cc \
1142 dnslabeltext.cc \
1143 dnsname.cc dnsname.hh \
1144 dnsparser.cc dnsparser.hh \
1145 dnspcap.cc dnspcap.hh \
1146 dnsrecords.cc \
1147 dnswriter.cc dnswriter.hh \
1148 logger.cc \
1149 misc.cc \
1150 nsecrecords.cc \
1151 qtype.cc \
1152 rcpgenerator.cc rcpgenerator.hh \
1153 sillyrecords.cc \
1154 statbag.cc \
1155 unix_utility.cc \
1156 utility.hh
1157
1158 dnsdemog_LDFLAGS = \
1159 $(AM_LDFLAGS) \
1160 $(LIBCRYPTO_LDFLAGS)
1161
1162 dnsdemog_LDADD = \
1163 $(LIBCRYPTO_LIBS)
1164
1165 dnspcap2calidns_SOURCES = \
1166 base32.cc \
1167 base64.cc base64.hh \
1168 dnslabeltext.cc \
1169 dnsname.cc dnsname.hh \
1170 dnsparser.cc dnsparser.hh \
1171 dnspcap.cc dnspcap.hh \
1172 dnspcap2calidns.cc \
1173 dnsrecords.cc \
1174 dnswriter.cc dnswriter.hh \
1175 ednsoptions.cc ednsoptions.hh \
1176 ednssubnet.cc ednssubnet.hh \
1177 iputils.cc \
1178 logger.cc \
1179 misc.cc \
1180 nsecrecords.cc \
1181 qtype.cc \
1182 rcpgenerator.cc rcpgenerator.hh \
1183 sillyrecords.cc \
1184 statbag.cc \
1185 unix_utility.cc \
1186 utility.hh
1187
1188 dnspcap2calidns_LDFLAGS = \
1189 $(AM_LDFLAGS) \
1190 $(LIBCRYPTO_LDFLAGS) \
1191 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1192
1193 dnspcap2calidns_LDADD = \
1194 $(LIBCRYPTO_LIBS) \
1195 $(BOOST_PROGRAM_OPTIONS_LIBS)
1196
1197 if HAVE_PROTOBUF
1198 if HAVE_PROTOC
1199 bin_PROGRAMS += dnspcap2protobuf
1200
1201 dnsmessage.pb.cc: dnsmessage.proto
1202 $(AM_V_GEN)$(PROTOC) --cpp_out=./ $<
1203
1204 BUILT_SOURCES += dnsmessage.pb.cc
1205 dnspcap2protobuf.$(OBJEXT): dnsmessage.pb.cc
1206
1207 dnspcap2protobuf_SOURCES = \
1208 base32.cc \
1209 base64.cc base64.hh \
1210 dnslabeltext.cc \
1211 dnsname.cc dnsname.hh \
1212 dnsparser.cc dnsparser.hh \
1213 dnspcap.cc dnspcap.hh \
1214 dnspcap2protobuf.cc \
1215 dnsrecords.cc \
1216 dnswriter.cc dnswriter.hh \
1217 gettime.cc gettime.hh \
1218 iputils.cc \
1219 logger.cc \
1220 misc.cc \
1221 nsecrecords.cc \
1222 protobuf.cc protobuf.hh \
1223 qtype.cc \
1224 rcpgenerator.cc rcpgenerator.hh \
1225 sillyrecords.cc \
1226 statbag.cc \
1227 unix_utility.cc \
1228 utility.hh \
1229 uuid-utils.hh uuid-utils.cc
1230
1231 nodist_dnspcap2protobuf_SOURCES=dnsmessage.pb.cc dnsmessage.pb.h
1232
1233 dnspcap2protobuf_LDFLAGS = \
1234 $(AM_LDFLAGS) \
1235 $(LIBCRYPTO_LDFLAGS) \
1236 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1237
1238 dnspcap2protobuf_LDADD = \
1239 $(LIBCRYPTO_LIBS) \
1240 $(PROTOBUF_LIBS) \
1241 $(BOOST_PROGRAM_OPTIONS_LIBS) \
1242 $(RT_LIBS)
1243 endif
1244 endif
1245
1246 pdns.conf-dist: pdns_server
1247 $(AM_V_GEN)./pdns_server --no-config --config 2>/dev/null > $@
1248
1249 testrunner_SOURCES = \
1250 arguments.cc \
1251 auth-caches.cc auth-caches.hh \
1252 auth-packetcache.cc auth-packetcache.hh \
1253 auth-querycache.cc auth-querycache.hh \
1254 base32.cc \
1255 base64.cc \
1256 bindlexer.l \
1257 bindparser.yy \
1258 dbdnsseckeeper.cc \
1259 dns.cc \
1260 dns_random.cc \
1261 dnsbackend.cc \
1262 dnslabeltext.cc \
1263 dnsname.cc \
1264 dnsname.hh \
1265 dnspacket.cc \
1266 dnsparser.hh dnsparser.cc \
1267 dnsrecords.cc \
1268 dnssecinfra.cc \
1269 dnssecsigner.cc \
1270 dnswriter.cc \
1271 ednsoptions.cc ednsoptions.hh \
1272 ednscookies.cc ednscookies.hh \
1273 ednssubnet.cc \
1274 gettime.cc gettime.hh \
1275 gss_context.cc gss_context.hh \
1276 ipcipher.cc ipcipher.hh ../ext/ipcrypt/ipcrypt.c ../ext/ipcrypt/ipcrypt.h \
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-ipcrypt_cc.cc \
1307 test-iputils_hh.cc \
1308 test-ixfr_cc.cc \
1309 test-lock_hh.cc \
1310 test-lua_auth4_cc.cc \
1311 test-misc_hh.cc \
1312 test-nameserver_cc.cc \
1313 test-packetcache_cc.cc \
1314 test-packetcache_hh.cc \
1315 test-rcpgenerator_cc.cc \
1316 test-signers.cc \
1317 test-sha_hh.cc \
1318 test-statbag_cc.cc \
1319 test-tsig.cc \
1320 test-zoneparser_tng_cc.cc \
1321 testrunner.cc \
1322 threadname.hh threadname.cc \
1323 tsigverifier.cc tsigverifier.hh \
1324 ueberbackend.cc \
1325 unix_utility.cc \
1326 zoneparser-tng.cc zoneparser-tng.hh
1327
1328 testrunner_LDFLAGS = \
1329 $(AM_LDFLAGS) \
1330 $(LIBCRYPTO_LDFLAGS) \
1331 $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS)
1332
1333 testrunner_LDADD = \
1334 $(LIBCRYPTO_LIBS) \
1335 $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \
1336 $(RT_LIBS) \
1337 $(LUA_LIBS) \
1338 $(LIBDL)
1339
1340 if PKCS11
1341 testrunner_SOURCES += pkcs11signers.cc pkcs11signers.hh
1342 testrunner_LDADD += $(P11KIT1_LIBS)
1343 endif
1344
1345 if LIBSODIUM
1346 testrunner_SOURCES += sodiumsigners.cc
1347 testrunner_LDADD += $(LIBSODIUM_LIBS)
1348 endif
1349
1350 if LIBDECAF
1351 testrunner_SOURCES += decafsigners.cc
1352 testrunner_LDADD += $(LIBDECAF_LIBS)
1353 endif
1354
1355 pdns_control_SOURCES = \
1356 arguments.cc \
1357 dynloader.cc \
1358 dynmessenger.cc \
1359 logger.cc \
1360 misc.cc \
1361 qtype.cc \
1362 statbag.cc \
1363 unix_utility.cc \
1364 dnsname.cc \
1365 dnslabeltext.cc
1366
1367 if UNIT_TESTS
1368
1369 if HAVE_BOOST_GE_148
1370 TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message SRCDIR='$(srcdir)'
1371 TESTS=testrunner
1372 else
1373 check-local:
1374 @echo "Unit tests disabled, boost is too old"
1375 endif
1376
1377 else
1378 check-local:
1379 @echo "Unit tests are not enabled"
1380 @echo "Run ./configure --enable-unit-tests"
1381 endif
1382
1383 if FUZZ_TARGETS
1384
1385 LIB_FUZZING_ENGINE ?= standalone_fuzz_target_runner.o
1386
1387 standalone_fuzz_target_runner.o: standalone_fuzz_target_runner.cc
1388
1389 fuzz_targets_programs = \
1390 fuzz_target_dnsdistcache \
1391 fuzz_target_moadnsparser \
1392 fuzz_target_packetcache \
1393 fuzz_target_zoneparsertng
1394
1395 fuzz_targets: $(fuzz_targets_programs)
1396
1397 bin_PROGRAMS += \
1398 $(fuzz_targets_programs)
1399
1400 fuzz_targets_libs = \
1401 $(LIBCRYPTO_LIBS) \
1402 $(LIB_FUZZING_ENGINE)
1403 fuzz_targets_ldflags = \
1404 $(AM_LDFLAGS) \
1405 $(DYNLINKFLAGS) \
1406 $(LIBCRYPTO_LDFLAGS) \
1407 $(FUZZING_LDFLAGS)
1408
1409 # we need the mockup runner to be built, but not linked if a real fuzzing engine is used
1410 fuzz_targets_deps = standalone_fuzz_target_runner.o
1411
1412 fuzz_target_moadnsparser_SOURCES = \
1413 fuzz_moadnsparser.cc \
1414 base32.cc base32.hh \
1415 base64.cc base64.hh \
1416 dnslabeltext.cc \
1417 dnsname.cc dnsname.hh \
1418 dnsparser.cc dnsparser.hh \
1419 dnsrecords.cc dnsrecords.hh \
1420 dnswriter.cc dnswriter.hh \
1421 logger.cc logger.hh \
1422 misc.cc misc.hh \
1423 nsecrecords.cc \
1424 qtype.cc qtype.hh \
1425 rcpgenerator.cc rcpgenerator.hh \
1426 sillyrecords.cc \
1427 statbag.cc statbag.hh \
1428 unix_utility.cc \
1429 utility.hh
1430
1431 fuzz_target_moadnsparser_DEPENDENCIES = $(fuzz_targets_deps)
1432 fuzz_target_moadnsparser_LDFLAGS = $(fuzz_targets_ldflags)
1433 fuzz_target_moadnsparser_LDADD = $(fuzz_targets_libs)
1434
1435 fuzz_target_packetcache_SOURCES = \
1436 fuzz_packetcache.cc \
1437 dnslabeltext.cc \
1438 dnsname.cc dnsname.hh \
1439 ednsoptions.cc ednsoptions.hh \
1440 misc.cc misc.hh \
1441 packetcache.hh \
1442 qtype.cc qtype.hh \
1443 statbag.cc statbag.hh
1444
1445 fuzz_target_packetcache_DEPENDENCIES = $(fuzz_targets_deps)
1446 fuzz_target_packetcache_LDFLAGS = $(fuzz_targets_ldflags)
1447 fuzz_target_packetcache_LDADD = $(fuzz_targets_libs)
1448
1449 fuzz_target_dnsdistcache_SOURCES = \
1450 fuzz_dnsdistcache.cc \
1451 dnsdist-cache.cc dnsdist-cache.hh \
1452 dnsdist-ecs.cc dnsdist-ecs.hh \
1453 dnslabeltext.cc \
1454 dnsname.cc dnsname.hh \
1455 dnsparser.cc dnsparser.hh \
1456 dnswriter.cc dnswriter.hh \
1457 ednsoptions.cc ednsoptions.hh \
1458 ednssubnet.cc ednssubnet.hh \
1459 iputils.cc iputils.hh \
1460 misc.cc misc.hh \
1461 packetcache.hh \
1462 qtype.cc qtype.hh
1463
1464 fuzz_target_dnsdistcache_DEPENDENCIES = $(fuzz_targets_deps)
1465 fuzz_target_dnsdistcache_LDFLAGS = $(fuzz_targets_ldflags)
1466 fuzz_target_dnsdistcache_LDADD = $(fuzz_targets_libs)
1467
1468 fuzz_target_zoneparsertng_SOURCES = \
1469 fuzz_zoneparsertng.cc \
1470 base32.cc base32.hh \
1471 base64.cc base64.hh \
1472 dnslabeltext.cc \
1473 dnsname.cc dnsname.hh \
1474 dnsparser.cc dnsparser.hh \
1475 dnsrecords.cc dnsrecords.hh \
1476 dnswriter.cc dnswriter.hh \
1477 logger.cc logger.hh \
1478 misc.cc misc.hh \
1479 nsecrecords.cc \
1480 qtype.cc qtype.hh \
1481 rcpgenerator.cc rcpgenerator.hh \
1482 sillyrecords.cc \
1483 statbag.cc statbag.hh \
1484 unix_utility.cc \
1485 utility.hh \
1486 zoneparser-tng.cc zoneparser-tng.hh
1487
1488 fuzz_target_zoneparsertng_DEPENDENCIES = $(fuzz_targets_deps)
1489 fuzz_target_zoneparsertng_LDFLAGS = $(fuzz_targets_ldflags)
1490 fuzz_target_zoneparsertng_LDADD = $(fuzz_targets_libs)
1491
1492 endif
1493
1494 dnslabeltext.cc: dnslabeltext.rl
1495 $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc
1496
1497 bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql
1498 ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g' ; echo ';' ) > $@
1499
1500 # for bindparser.h/hh
1501 .hh.h:
1502 cp $< $@
1503
1504 bindlexer.$(OBJEXT): bindparser.h
1505
1506 curl_verbose = $(curl_verbose_$(V))
1507 curl_verbose_ = $(curl_verbose_$(AM_DEFAULT_VERBOSITY))
1508 curl_verbose_0 = @echo " CURL " $@;
1509 $(srcdir)/effective_tld_names.dat:
1510 $(curl_verbose)if ! curl -s -S https://publicsuffix.org/list/public_suffix_list.dat > $@; then rm -f $@; exit 1; fi
1511
1512 pubsuffix.cc: $(srcdir)/effective_tld_names.dat
1513 $(AM_V_GEN)./mkpubsuffixcc
1514
1515 pdns_recursor rec_control:
1516 @echo "Please build the recursor from the recursordist/ dir"
1517 @exit 1
1518
1519 dnsdist:
1520 @echo "Please build dnsdist from the dnsdistdist/ dir"
1521 @exit 1
1522
1523 if HAVE_SYSTEMD
1524 pdns.service: pdns.service.in
1525 $(AM_V_GEN)sed -e 's![@]sbindir[@]!$(sbindir)!' < $< > $@
1526 if !HAVE_SYSTEMD_LOCK_PERSONALITY
1527 $(AM_V_GEN)perl -ni -e 'print unless /^LockPersonality/' $@
1528 endif
1529 if !HAVE_SYSTEMD_PRIVATE_DEVICES
1530 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateDevices/' $@
1531 endif
1532 if !HAVE_SYSTEMD_PRIVATE_TMP
1533 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateTmp/' $@
1534 endif
1535 if !HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS
1536 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectControlGroups/' $@
1537 endif
1538 if !HAVE_SYSTEMD_PROTECT_HOME
1539 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectHome/' $@
1540 endif
1541 if !HAVE_SYSTEMD_PROTECT_KERNEL_MODULES
1542 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelModules/' $@
1543 endif
1544 if !HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES
1545 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelTunables/' $@
1546 endif
1547 if !HAVE_SYSTEMD_PROTECT_SYSTEM
1548 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectSystem/' $@
1549 endif
1550 if !HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES
1551 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictAddressFamilies/' $@
1552 endif
1553 if !HAVE_SYSTEMD_RESTRICT_NAMESPACES
1554 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictNamespaces/' $@
1555 endif
1556 if !HAVE_SYSTEMD_RESTRICT_REALTIME
1557 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictRealtime/' $@
1558 endif
1559 if !HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES
1560 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallArchitectures/' $@
1561 endif
1562 if !HAVE_SYSTEMD_SYSTEM_CALL_FILTER
1563 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallFilter/' $@
1564 endif
1565
1566 pdns@.service: pdns.service
1567 $(AM_V_GEN)sed -e 's!/pdns_server!& --config-name=%i!' \
1568 -e 's!Authoritative Server!& %i!' \
1569 < $< > $@
1570
1571 systemdsystemunitdir = $(SYSTEMD_DIR)
1572
1573 systemdsystemunit_DATA = \
1574 pdns.service \
1575 pdns@.service
1576
1577 CLEANFILES += \
1578 pdns.service \
1579 pdns@.service
1580
1581 if IXFRDIST
1582 ixfrdist.service: ixfrdist.service.in
1583 $(AM_V_GEN)sed -e 's![@]bindir[@]!$(bindir)!' < $< > $@
1584
1585 ixfrdist@.service: ixfrdist.service
1586 $(AM_V_GEN)sed -e 's!/ixfrdist!& --config $(sysconfdir)/ixfrdist-%i.yml!' \
1587 < $< > $@
1588
1589 systemdsystemunit_DATA += \
1590 ixfrdist.service \
1591 ixfrdist@.service
1592 endif # IXFRDIST
1593
1594 CLEANFILES += \
1595 ixfrdist.service \
1596 ixfrdist@.service
1597
1598 endif # HAVE_SYSTEMD