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