]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/Makefile.am
Merge pull request #8334 from Habbie/dnsscope-nits
[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 bin_PROGRAMS += calidns
103
104 if HAVE_BOOST_GE_148
105 bin_PROGRAMS += \
106 dnsbulktest \
107 dnstcpbench
108 endif
109
110 endif # TOOLS
111
112 if IXFRDIST
113 bin_PROGRAMS += \
114 ixfrdist
115
116 sysconf_DATA += \
117 ixfrdist.example.yml
118 endif
119
120 EXTRA_PROGRAMS = \
121 calidns \
122 comfun \
123 dnsbulktest \
124 dnsdemog \
125 dnsgram \
126 dnspcap2calidns \
127 dnsreplay \
128 dnsscan \
129 dnsscope \
130 dnstcpbench \
131 dnswasher \
132 dumresp \
133 kvresp \
134 ixplore \
135 ixfrdist \
136 pdns_notify \
137 nproxy \
138 nsec3dig \
139 saxfr \
140 stubquery \
141 sdig \
142 speedtest \
143 testrunner \
144 toysdig \
145 tsig-tests \
146 zone2ldap
147
148 pdns_server_SOURCES = \
149 arguments.cc arguments.hh \
150 ascii.hh \
151 auth-carbon.cc \
152 auth-caches.cc auth-caches.hh \
153 auth-packetcache.cc auth-packetcache.hh \
154 auth-querycache.cc auth-querycache.hh \
155 backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \
156 backends/gsql/ssql.hh \
157 base32.cc base32.hh \
158 base64.cc base64.hh \
159 bind-dnssec.schema.sqlite3.sql.h \
160 bindlexer.l \
161 bindparser.cc \
162 cachecleaner.hh \
163 circular_buffer.hh \
164 comment.hh \
165 common_startup.cc common_startup.hh \
166 communicator.cc communicator.hh \
167 dbdnsseckeeper.cc \
168 digests.hh \
169 distributor.hh \
170 dns.cc dns.hh \
171 dns_random.cc dns_random.hh \
172 dnsbackend.cc dnsbackend.hh \
173 dnslabeltext.cc \
174 dnsname.cc dnsname.hh \
175 dnspacket.cc dnspacket.hh \
176 dnsparser.cc \
177 dnsproxy.cc dnsproxy.hh \
178 dnsrecords.cc dnsrecords.hh \
179 dnssecinfra.cc dnssecinfra.hh \
180 dnsseckeeper.hh \
181 dnssecsigner.cc \
182 dnswriter.cc \
183 dynhandler.cc dynhandler.hh \
184 dynlistener.cc dynlistener.hh \
185 dynmessenger.hh \
186 ednsoptions.cc ednsoptions.hh \
187 ednssubnet.cc ednssubnet.hh \
188 gss_context.cc gss_context.hh \
189 iputils.cc iputils.hh \
190 ixfr.cc ixfr.hh \
191 json.cc json.hh \
192 lock.hh \
193 logger.cc logger.hh \
194 lua-base4.cc lua-base4.hh \
195 lua-auth4.cc lua-auth4.hh \
196 mastercommunicator.cc \
197 misc.cc misc.hh \
198 nameserver.cc nameserver.hh \
199 namespaces.hh \
200 nsecrecords.cc \
201 opensslsigners.cc opensslsigners.hh \
202 packetcache.hh \
203 packethandler.cc packethandler.hh \
204 pdnsexception.hh \
205 qtype.cc qtype.hh \
206 rcpgenerator.cc \
207 receiver.cc \
208 resolver.cc resolver.hh \
209 responsestats.cc responsestats.hh responsestats-auth.cc \
210 rfc2136handler.cc \
211 secpoll.cc secpoll.hh \
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 PKCS11
272 pdns_server_SOURCES += pkcs11signers.cc pkcs11signers.hh
273 pdns_server_LDADD += $(P11KIT1_LIBS)
274 endif
275
276 if LUA
277 pdns_server_LDADD += $(LUA_LIBS)
278 endif
279
280 if GSS_TSIG
281 pdns_server_LDADD += $(GSS_LIBS)
282 endif
283
284 pdnsutil_SOURCES = \
285 arguments.cc \
286 auth-caches.cc auth-caches.hh \
287 auth-packetcache.cc auth-packetcache.hh \
288 auth-querycache.cc auth-querycache.hh \
289 backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \
290 backends/gsql/ssql.hh \
291 base32.cc \
292 base64.cc base64.hh \
293 bindlexer.l \
294 bindparser.yy \
295 cachecleaner.hh \
296 circular_buffer.hh \
297 dbdnsseckeeper.cc \
298 dnsbackend.cc \
299 dns.cc \
300 dnslabeltext.cc \
301 dnsname.cc dnsname.hh \
302 dnspacket.cc \
303 dnsparser.cc dnsparser.hh \
304 dns_random.cc \
305 dnsrecords.cc \
306 dnssecinfra.cc dnssecinfra.hh \
307 dnssecsigner.cc \
308 dnswriter.cc dnswriter.hh \
309 dynlistener.cc \
310 ednsoptions.cc ednsoptions.hh \
311 ednssubnet.cc \
312 gss_context.cc gss_context.hh \
313 ipcipher.cc ipcipher.hh \
314 iputils.cc iputils.hh \
315 json.cc \
316 logger.cc \
317 lua-auth4.cc lua-auth4.hh \
318 lua-base4.cc lua-base4.hh \
319 misc.cc misc.hh \
320 nsecrecords.cc \
321 opensslsigners.cc opensslsigners.hh \
322 pdnsutil.cc \
323 qtype.cc \
324 rcpgenerator.cc rcpgenerator.hh \
325 serialtweaker.cc \
326 signingpipe.cc \
327 sillyrecords.cc \
328 sstuff.hh \
329 statbag.cc \
330 stubresolver.cc stubresolver.hh \
331 threadname.hh threadname.cc \
332 tsigutils.hh tsigutils.cc \
333 ueberbackend.cc \
334 unix_utility.cc \
335 zoneparser-tng.cc
336
337 pdnsutil_LDFLAGS = \
338 $(AM_LDFLAGS) \
339 $(DYNLINKFLAGS) \
340 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
341 $(LIBCRYPTO_LDFLAGS)
342
343 EXTRA_pdnsutil_DEPENDENCIES = @moduleobjects@
344 pdnsutil_LDADD = \
345 @moduleobjects@ \
346 @modulelibs@ \
347 $(YAHTTP_LIBS) \
348 $(JSON11_LIBS) \
349 $(LIBDL) \
350 $(BOOST_PROGRAM_OPTIONS_LIBS) \
351 $(LIBCRYPTO_LIBS) \
352 $(IPCRYPT_LIBS)
353
354 if LIBSODIUM
355 pdnsutil_SOURCES += sodiumsigners.cc
356 pdnsutil_LDADD += $(LIBSODIUM_LIBS)
357 endif
358
359 if LIBDECAF
360 pdnsutil_SOURCES += decafsigners.cc
361 pdnsutil_LDADD += $(LIBDECAF_LIBS)
362 endif
363
364 if SQLITE3
365 pdnsutil_SOURCES += ssqlite3.cc ssqlite3.hh
366 pdnsutil_LDADD += $(SQLITE3_LIBS)
367 endif
368
369 if PKCS11
370 pdnsutil_SOURCES += pkcs11signers.cc pkcs11signers.hh
371 pdnsutil_LDADD += $(P11KIT1_LIBS)
372 endif
373
374 if LUA
375 pdnsutil_LDADD += $(LUA_LIBS)
376 endif
377
378 if GSS_TSIG
379 pdnsutil_LDADD += $(GSS_LIBS)
380 endif
381
382 zone2sql_SOURCES = \
383 arguments.cc \
384 base32.cc \
385 base64.cc \
386 bind-dnssec.schema.sqlite3.sql.h \
387 bindlexer.l \
388 bindparser.yy \
389 bindparserclasses.hh \
390 dns.cc \
391 dns_random_urandom.cc \
392 dnsname.cc dnsname.hh \
393 dnslabeltext.cc \
394 dnsparser.cc \
395 dnsrecords.cc \
396 dnswriter.cc \
397 json.cc json.hh \
398 logger.cc \
399 misc.cc \
400 nsecrecords.cc \
401 qtype.cc \
402 rcpgenerator.cc \
403 sillyrecords.cc \
404 statbag.cc \
405 unix_utility.cc \
406 zone2sql.cc \
407 zoneparser-tng.cc
408
409 zone2sql_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
410 zone2sql_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
411
412 zone2json_SOURCES = \
413 arguments.cc \
414 base32.cc \
415 base64.cc \
416 bind-dnssec.schema.sqlite3.sql.h \
417 bindlexer.l \
418 bindparser.yy \
419 bindparserclasses.hh \
420 dnslabeltext.cc \
421 dnsname.cc dnsname.hh \
422 dnsparser.cc \
423 dnsrecords.cc \
424 dnswriter.cc \
425 logger.cc \
426 misc.cc \
427 nsecrecords.cc \
428 qtype.cc \
429 rcpgenerator.cc \
430 sillyrecords.cc \
431 statbag.cc \
432 unix_utility.cc \
433 zone2json.cc \
434 zoneparser-tng.cc
435
436 zone2json_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
437 zone2json_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
438
439 # pkglib_LTLIBRARIES = iputils.la
440 # iputils_la_SOURCES = lua-iputils.cc
441 # iputils_la_LDFLAGS= -module -avoid-version
442
443 if LDAP
444 bin_PROGRAMS += zone2ldap
445 endif
446
447 zone2ldap_SOURCES = \
448 arguments.cc \
449 base32.cc \
450 base64.cc \
451 bind-dnssec.schema.sqlite3.sql.h \
452 bindlexer.l \
453 bindparser.yy \
454 bindparserclasses.hh \
455 dns_random_urandom.cc \
456 dnsname.cc dnsname.hh \
457 dnslabeltext.cc \
458 dnsparser.cc \
459 dnsrecords.cc \
460 dnswriter.cc \
461 logger.cc \
462 misc.cc \
463 nsecrecords.cc \
464 qtype.cc \
465 rcpgenerator.cc \
466 sillyrecords.cc \
467 statbag.cc \
468 unix_utility.cc \
469 zone2ldap.cc \
470 zoneparser-tng.cc
471
472 zone2ldap_LDADD = $(LIBCRYPTO_LIBS)
473 zone2ldap_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
474
475 sdig_SOURCES = \
476 base32.cc \
477 base64.cc base64.hh \
478 dns.cc \
479 dnslabeltext.cc \
480 dnsname.cc dnsname.hh \
481 dnsparser.cc dnsparser.hh \
482 dnsrecords.cc \
483 dnswriter.cc dnswriter.hh \
484 ednssubnet.cc iputils.cc \
485 logger.cc \
486 misc.cc misc.hh \
487 nsecrecords.cc \
488 qtype.cc \
489 rcpgenerator.cc rcpgenerator.hh \
490 sdig.cc \
491 sillyrecords.cc \
492 sstuff.hh \
493 statbag.cc \
494 unix_utility.cc
495
496 sdig_LDADD = $(LIBCRYPTO_LIBS)
497 sdig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
498
499 if HAVE_LIBCURL
500 sdig_SOURCES += minicurl.cc minicurl.hh
501 sdig_LDADD += $(LIBCURL)
502 endif
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 iputils.cc
880
881 speedtest_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
882 speedtest_LDADD = $(LIBCRYPTO_LIBS) \
883 $(RT_LIBS)
884
885 dnswasher_SOURCES = \
886 base64.cc \
887 dnslabeltext.cc \
888 dnsname.hh dnsname.cc \
889 dnsparser.hh \
890 dnspcap.cc dnspcap.hh \
891 dnswasher.cc \
892 dnswriter.hh \
893 ipcipher.cc ipcipher.hh \
894 logger.cc \
895 misc.cc \
896 qtype.cc \
897 statbag.cc \
898 unix_utility.cc
899
900 dnswasher_LDFLAGS = $(AM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
901 dnswasher_LDADD = $(BOOST_PROGRAM_OPTIONS_LIBS) $(LIBCRYPTO_LIBS) $(IPCRYPT_LIBS)
902
903 dnsbulktest_SOURCES = \
904 base32.cc \
905 base64.cc \
906 dnsbulktest.cc \
907 dnslabeltext.cc \
908 dnsname.cc dnsname.hh \
909 dnsparser.cc \
910 dnsrecords.cc \
911 dnswriter.cc \
912 logger.cc \
913 misc.cc \
914 nsecrecords.cc \
915 qtype.cc \
916 rcpgenerator.cc \
917 sillyrecords.cc \
918 statbag.cc \
919 unix_utility.cc
920
921 dnsbulktest_LDFLAGS = \
922 $(AM_LDFLAGS) \
923 $(LIBCRYPTO_LDFLAGS) \
924 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
925
926 dnsbulktest_LDADD = \
927 $(LIBCRYPTO_LIBS) \
928 $(BOOST_PROGRAM_OPTIONS_LIBS)
929
930 comfun_SOURCES = \
931 base32.cc \
932 base64.cc \
933 comfun.cc \
934 dns.cc \
935 dnslabeltext.cc \
936 dnsname.cc dnsname.hh \
937 dnsparser.cc \
938 dnsrecords.cc \
939 dnswriter.cc \
940 logger.cc \
941 misc.cc \
942 nsecrecords.cc \
943 qtype.cc \
944 rcpgenerator.cc \
945 sillyrecords.cc \
946 statbag.cc \
947 unix_utility.cc \
948 zoneparser-tng.cc zoneparser-tng.hh
949
950 comfun_LDFLAGS = \
951 $(AM_LDFLAGS) \
952 $(LIBCRYPTO_LDFLAGS) \
953 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
954
955 comfun_LDADD = \
956 $(LIBCRYPTO_LIBS) \
957 $(BOOST_PROGRAM_OPTIONS_LIBS)
958
959
960 dnsscan_SOURCES = \
961 anadns.hh \
962 base32.cc \
963 base64.cc base64.hh \
964 dnslabeltext.cc \
965 dnsname.cc dnsname.hh \
966 dnsparser.cc dnsparser.hh \
967 dnspcap.cc dnspcap.hh \
968 dnsrecords.cc \
969 dnsscan.cc \
970 dnswriter.cc dnswriter.hh \
971 logger.cc \
972 misc.cc \
973 nsecrecords.cc \
974 qtype.cc \
975 rcpgenerator.cc rcpgenerator.hh \
976 sillyrecords.cc \
977 statbag.cc \
978 unix_utility.cc \
979 utility.hh
980
981 dnsscan_LDFLAGS = \
982 $(AM_LDFLAGS) \
983 $(LIBCRYPTO_LDFLAGS)
984
985 dnsscan_LDADD = $(LIBCRYPTO_LIBS)
986
987 dnsreplay_SOURCES = \
988 anadns.hh \
989 base32.cc \
990 base64.cc base64.hh \
991 dnslabeltext.cc \
992 dnsname.cc dnsname.hh \
993 dnsparser.cc dnsparser.hh \
994 dnspcap.cc dnspcap.hh \
995 dnsrecords.cc \
996 dnsreplay.cc \
997 dnswriter.cc dnswriter.hh \
998 ednsoptions.cc ednsoptions.hh \
999 ednssubnet.cc ednssubnet.hh \
1000 iputils.cc \
1001 logger.cc \
1002 misc.cc \
1003 nsecrecords.cc \
1004 qtype.cc \
1005 rcpgenerator.cc rcpgenerator.hh \
1006 sillyrecords.cc \
1007 statbag.cc \
1008 unix_utility.cc \
1009 utility.hh
1010
1011 dnsreplay_LDFLAGS = \
1012 $(AM_LDFLAGS) \
1013 $(LIBCRYPTO_LDFLAGS) \
1014 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1015
1016 dnsreplay_LDADD = \
1017 $(LIBCRYPTO_LIBS) \
1018 $(BOOST_PROGRAM_OPTIONS_LIBS)
1019
1020 nproxy_SOURCES = \
1021 base32.cc \
1022 base64.cc base64.hh \
1023 dnslabeltext.cc \
1024 dnsname.cc dnsname.hh \
1025 dnsparser.cc dnsparser.hh \
1026 dnsrecords.cc \
1027 dnswriter.cc dnswriter.hh \
1028 logger.cc \
1029 misc.cc \
1030 mplexer.hh \
1031 nproxy.cc \
1032 nsecrecords.cc \
1033 pollmplexer.cc \
1034 qtype.cc \
1035 rcpgenerator.cc rcpgenerator.hh \
1036 sillyrecords.cc \
1037 statbag.cc \
1038 unix_utility.cc
1039
1040 nproxy_LDFLAGS = \
1041 $(AM_LDFLAGS) \
1042 $(LIBCRYPTO_LDFLAGS) \
1043 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1044
1045 nproxy_LDADD = \
1046 $(LIBCRYPTO_LIBS) \
1047 $(BOOST_PROGRAM_OPTIONS_LIBS)
1048
1049 pdns_notify_SOURCES = \
1050 arguments.cc \
1051 base32.cc \
1052 base64.cc base64.hh \
1053 dns.cc \
1054 dnslabeltext.cc \
1055 dnsname.cc dnsname.hh \
1056 dnsparser.cc dnsparser.hh \
1057 dnsrecords.cc \
1058 dnswriter.cc dnswriter.hh \
1059 logger.cc \
1060 misc.cc \
1061 notify.cc \
1062 nsecrecords.cc \
1063 pollmplexer.cc \
1064 qtype.cc \
1065 rcpgenerator.cc rcpgenerator.hh \
1066 sillyrecords.cc \
1067 statbag.cc \
1068 unix_utility.cc \
1069 dns_random.cc
1070
1071 pdns_notify_LDFLAGS = \
1072 $(AM_LDFLAGS) \
1073 $(LIBCRYPTO_LDFLAGS) \
1074 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1075
1076 pdns_notify_LDADD = \
1077 $(LIBCRYPTO_LIBS) \
1078 $(BOOST_PROGRAM_OPTIONS_LIBS)
1079
1080 if LIBSODIUM
1081 pdns_notify_LDADD += $(LIBSODIUM_LIBS)
1082 endif
1083
1084 dnsscope_SOURCES = \
1085 arguments.cc \
1086 base32.cc \
1087 base64.cc base64.hh \
1088 dns.cc \
1089 dnslabeltext.cc \
1090 dnsname.cc dnsname.hh \
1091 dnsparser.cc dnsparser.hh \
1092 dnspcap.cc dnspcap.hh \
1093 dnsrecords.cc \
1094 dnsscope.cc \
1095 dnswriter.cc dnswriter.hh \
1096 histog.hh \
1097 logger.cc \
1098 misc.cc \
1099 nsecrecords.cc \
1100 qtype.cc \
1101 rcpgenerator.cc rcpgenerator.hh \
1102 sillyrecords.cc \
1103 statbag.cc \
1104 statnode.cc statnode.hh \
1105 unix_utility.cc \
1106 utility.hh
1107
1108 dnsscope_LDFLAGS = \
1109 $(AM_LDFLAGS) \
1110 $(LIBCRYPTO_LDFLAGS) \
1111 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1112
1113 dnsscope_LDADD = \
1114 $(LIBCRYPTO_LIBS) \
1115 $(BOOST_PROGRAM_OPTIONS_LIBS)
1116
1117 dnsgram_SOURCES = \
1118 base32.cc \
1119 base64.cc base64.hh \
1120 dnsgram.cc \
1121 dnslabeltext.cc \
1122 dnsname.cc dnsname.hh \
1123 dnsparser.cc dnsparser.hh \
1124 dnspcap.cc dnspcap.hh \
1125 dnsrecords.cc \
1126 dnswriter.cc dnswriter.hh \
1127 logger.cc \
1128 misc.cc \
1129 nsecrecords.cc \
1130 qtype.cc \
1131 rcpgenerator.cc rcpgenerator.hh \
1132 sillyrecords.cc \
1133 statbag.cc \
1134 unix_utility.cc \
1135 utility.hh
1136
1137 dnsgram_LDFLAGS = \
1138 $(AM_LDFLAGS) \
1139 $(LIBCRYPTO_LDFLAGS)
1140
1141 dnsgram_LDADD = \
1142 $(LIBCRYPTO_LIBS)
1143
1144 dnsdemog_SOURCES = \
1145 base32.cc \
1146 base64.cc base64.hh \
1147 dnsdemog.cc \
1148 dnslabeltext.cc \
1149 dnsname.cc dnsname.hh \
1150 dnsparser.cc dnsparser.hh \
1151 dnspcap.cc dnspcap.hh \
1152 dnsrecords.cc \
1153 dnswriter.cc dnswriter.hh \
1154 logger.cc \
1155 misc.cc \
1156 nsecrecords.cc \
1157 qtype.cc \
1158 rcpgenerator.cc rcpgenerator.hh \
1159 sillyrecords.cc \
1160 statbag.cc \
1161 unix_utility.cc \
1162 utility.hh
1163
1164 dnsdemog_LDFLAGS = \
1165 $(AM_LDFLAGS) \
1166 $(LIBCRYPTO_LDFLAGS)
1167
1168 dnsdemog_LDADD = \
1169 $(LIBCRYPTO_LIBS)
1170
1171 dnspcap2calidns_SOURCES = \
1172 base32.cc \
1173 base64.cc base64.hh \
1174 dnslabeltext.cc \
1175 dnsname.cc dnsname.hh \
1176 dnsparser.cc dnsparser.hh \
1177 dnspcap.cc dnspcap.hh \
1178 dnspcap2calidns.cc \
1179 dnsrecords.cc \
1180 dnswriter.cc dnswriter.hh \
1181 ednsoptions.cc ednsoptions.hh \
1182 ednssubnet.cc ednssubnet.hh \
1183 iputils.cc \
1184 logger.cc \
1185 misc.cc \
1186 nsecrecords.cc \
1187 qtype.cc \
1188 rcpgenerator.cc rcpgenerator.hh \
1189 sillyrecords.cc \
1190 statbag.cc \
1191 unix_utility.cc \
1192 utility.hh
1193
1194 dnspcap2calidns_LDFLAGS = \
1195 $(AM_LDFLAGS) \
1196 $(LIBCRYPTO_LDFLAGS) \
1197 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1198
1199 dnspcap2calidns_LDADD = \
1200 $(LIBCRYPTO_LIBS) \
1201 $(BOOST_PROGRAM_OPTIONS_LIBS)
1202
1203 if HAVE_PROTOBUF
1204 if HAVE_PROTOC
1205 bin_PROGRAMS += dnspcap2protobuf
1206
1207 dnsmessage.pb.cc: dnsmessage.proto
1208 $(AM_V_GEN)$(PROTOC) --cpp_out=./ $<
1209
1210 BUILT_SOURCES += dnsmessage.pb.cc
1211 dnspcap2protobuf.$(OBJEXT): dnsmessage.pb.cc
1212
1213 dnspcap2protobuf_SOURCES = \
1214 base32.cc \
1215 base64.cc base64.hh \
1216 dnslabeltext.cc \
1217 dnsname.cc dnsname.hh \
1218 dnsparser.cc dnsparser.hh \
1219 dnspcap.cc dnspcap.hh \
1220 dnspcap2protobuf.cc \
1221 dnsrecords.cc \
1222 dnswriter.cc dnswriter.hh \
1223 gettime.cc gettime.hh \
1224 iputils.cc \
1225 logger.cc \
1226 misc.cc \
1227 nsecrecords.cc \
1228 protobuf.cc protobuf.hh \
1229 qtype.cc \
1230 rcpgenerator.cc rcpgenerator.hh \
1231 sillyrecords.cc \
1232 statbag.cc \
1233 unix_utility.cc \
1234 utility.hh \
1235 uuid-utils.hh uuid-utils.cc
1236
1237 nodist_dnspcap2protobuf_SOURCES=dnsmessage.pb.cc dnsmessage.pb.h
1238
1239 dnspcap2protobuf_LDFLAGS = \
1240 $(AM_LDFLAGS) \
1241 $(LIBCRYPTO_LDFLAGS) \
1242 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1243
1244 dnspcap2protobuf_LDADD = \
1245 $(LIBCRYPTO_LIBS) \
1246 $(PROTOBUF_LIBS) \
1247 $(BOOST_PROGRAM_OPTIONS_LIBS) \
1248 $(RT_LIBS)
1249 endif
1250 endif
1251
1252 pdns.conf-dist: pdns_server
1253 $(AM_V_GEN)./pdns_server --no-config --config 2>/dev/null > $@
1254
1255 testrunner_SOURCES = \
1256 arguments.cc \
1257 auth-caches.cc auth-caches.hh \
1258 auth-packetcache.cc auth-packetcache.hh \
1259 auth-querycache.cc auth-querycache.hh \
1260 base32.cc \
1261 base64.cc \
1262 bindlexer.l \
1263 bindparser.yy \
1264 dbdnsseckeeper.cc \
1265 dns.cc \
1266 dns_random.cc \
1267 dnsbackend.cc \
1268 dnslabeltext.cc \
1269 dnsname.cc \
1270 dnsname.hh \
1271 dnspacket.cc \
1272 dnsparser.hh dnsparser.cc \
1273 dnsrecords.cc \
1274 dnssecinfra.cc \
1275 dnssecsigner.cc \
1276 dnswriter.cc \
1277 ednsoptions.cc ednsoptions.hh \
1278 ednscookies.cc ednscookies.hh \
1279 ednssubnet.cc \
1280 gettime.cc gettime.hh \
1281 gss_context.cc gss_context.hh \
1282 ipcipher.cc ipcipher.hh \
1283 iputils.cc \
1284 ixfr.cc ixfr.hh \
1285 logger.cc \
1286 lua-auth4.hh lua-auth4.cc \
1287 lua-base4.hh lua-base4.cc \
1288 stubresolver.hh stubresolver.cc \
1289 misc.cc \
1290 nameserver.cc \
1291 nsecrecords.cc \
1292 opensslsigners.cc opensslsigners.hh \
1293 pollmplexer.cc \
1294 qtype.cc \
1295 rcpgenerator.cc \
1296 responsestats.cc \
1297 responsestats-auth.cc \
1298 sillyrecords.cc \
1299 statbag.cc \
1300 test-arguments_cc.cc \
1301 test-base32_cc.cc \
1302 test-base64_cc.cc \
1303 test-bindparser_cc.cc \
1304 test-common.hh \
1305 test-dnsrecordcontent.cc \
1306 test-digests_hh.cc \
1307 test-distributor_hh.cc \
1308 test-dns_random_hh.cc \
1309 test-dnsname_cc.cc \
1310 test-dnsparser_cc.cc \
1311 test-dnsparser_hh.cc \
1312 test-dnsrecords_cc.cc \
1313 test-dnswriter_cc.cc \
1314 test-ipcrypt_cc.cc \
1315 test-iputils_hh.cc \
1316 test-ixfr_cc.cc \
1317 test-lock_hh.cc \
1318 test-lua_auth4_cc.cc \
1319 test-misc_hh.cc \
1320 test-mplexer.cc \
1321 test-nameserver_cc.cc \
1322 test-packetcache_cc.cc \
1323 test-packetcache_hh.cc \
1324 test-rcpgenerator_cc.cc \
1325 test-signers.cc \
1326 test-sha_hh.cc \
1327 test-statbag_cc.cc \
1328 test-tsig.cc \
1329 test-zoneparser_tng_cc.cc \
1330 testrunner.cc \
1331 threadname.hh threadname.cc \
1332 tsigverifier.cc tsigverifier.hh \
1333 ueberbackend.cc \
1334 unix_utility.cc \
1335 zoneparser-tng.cc zoneparser-tng.hh
1336
1337 testrunner_LDFLAGS = \
1338 $(AM_LDFLAGS) \
1339 $(LIBCRYPTO_LDFLAGS) \
1340 $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS)
1341
1342 testrunner_LDADD = \
1343 $(LIBCRYPTO_LIBS) \
1344 $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \
1345 $(RT_LIBS) \
1346 $(LUA_LIBS) \
1347 $(LIBDL) \
1348 $(IPCRYPT_LIBS)
1349
1350 if PKCS11
1351 testrunner_SOURCES += pkcs11signers.cc pkcs11signers.hh
1352 testrunner_LDADD += $(P11KIT1_LIBS)
1353 endif
1354
1355 if LIBSODIUM
1356 testrunner_SOURCES += sodiumsigners.cc
1357 testrunner_LDADD += $(LIBSODIUM_LIBS)
1358 endif
1359
1360 if LIBDECAF
1361 testrunner_SOURCES += decafsigners.cc
1362 testrunner_LDADD += $(LIBDECAF_LIBS)
1363 endif
1364
1365 if HAVE_FREEBSD
1366 ixfrdist_SOURCES += kqueuemplexer.cc
1367 testrunner_SOURCES += kqueuemplexer.cc
1368 endif
1369
1370 if HAVE_LINUX
1371 ixfrdist_SOURCES += epollmplexer.cc
1372 testrunner_SOURCES += epollmplexer.cc
1373 endif
1374
1375 if HAVE_SOLARIS
1376 ixfrdist_SOURCES += \
1377 devpollmplexer.cc \
1378 portsmplexer.cc
1379 testrunner_SOURCES += \
1380 devpollmplexer.cc \
1381 portsmplexer.cc
1382 endif
1383
1384 pdns_control_SOURCES = \
1385 arguments.cc \
1386 dynloader.cc \
1387 dynmessenger.cc \
1388 logger.cc \
1389 misc.cc \
1390 qtype.cc \
1391 statbag.cc \
1392 unix_utility.cc \
1393 dnsname.cc \
1394 dnslabeltext.cc
1395
1396 if UNIT_TESTS
1397
1398 if HAVE_BOOST_GE_148
1399 TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message SRCDIR='$(srcdir)'
1400 TESTS=testrunner
1401 else
1402 check-local:
1403 @echo "Unit tests disabled, boost is too old"
1404 endif
1405
1406 else
1407 check-local:
1408 @echo "Unit tests are not enabled"
1409 @echo "Run ./configure --enable-unit-tests"
1410 endif
1411
1412 if FUZZ_TARGETS
1413
1414 LIB_FUZZING_ENGINE ?= standalone_fuzz_target_runner.o
1415
1416 standalone_fuzz_target_runner.o: standalone_fuzz_target_runner.cc
1417
1418 fuzz_targets_programs = \
1419 fuzz_target_dnsdistcache \
1420 fuzz_target_moadnsparser \
1421 fuzz_target_packetcache \
1422 fuzz_target_zoneparsertng
1423
1424 fuzz_targets: $(fuzz_targets_programs)
1425
1426 bin_PROGRAMS += \
1427 $(fuzz_targets_programs)
1428
1429 fuzz_targets_libs = \
1430 $(LIBCRYPTO_LIBS) \
1431 $(LIB_FUZZING_ENGINE)
1432 fuzz_targets_ldflags = \
1433 $(AM_LDFLAGS) \
1434 $(DYNLINKFLAGS) \
1435 $(LIBCRYPTO_LDFLAGS) \
1436 $(FUZZING_LDFLAGS)
1437
1438 # we need the mockup runner to be built, but not linked if a real fuzzing engine is used
1439 fuzz_targets_deps = standalone_fuzz_target_runner.o
1440
1441 fuzz_target_moadnsparser_SOURCES = \
1442 fuzz_moadnsparser.cc \
1443 base32.cc base32.hh \
1444 base64.cc base64.hh \
1445 dnslabeltext.cc \
1446 dnsname.cc dnsname.hh \
1447 dnsparser.cc dnsparser.hh \
1448 dnsrecords.cc dnsrecords.hh \
1449 dnswriter.cc dnswriter.hh \
1450 logger.cc logger.hh \
1451 misc.cc misc.hh \
1452 nsecrecords.cc \
1453 qtype.cc qtype.hh \
1454 rcpgenerator.cc rcpgenerator.hh \
1455 sillyrecords.cc \
1456 statbag.cc statbag.hh \
1457 unix_utility.cc \
1458 utility.hh
1459
1460 fuzz_target_moadnsparser_DEPENDENCIES = $(fuzz_targets_deps)
1461 fuzz_target_moadnsparser_LDFLAGS = $(fuzz_targets_ldflags)
1462 fuzz_target_moadnsparser_LDADD = $(fuzz_targets_libs)
1463
1464 fuzz_target_packetcache_SOURCES = \
1465 fuzz_packetcache.cc \
1466 dnslabeltext.cc \
1467 dnsname.cc dnsname.hh \
1468 ednsoptions.cc ednsoptions.hh \
1469 misc.cc misc.hh \
1470 packetcache.hh \
1471 qtype.cc qtype.hh \
1472 statbag.cc statbag.hh
1473
1474 fuzz_target_packetcache_DEPENDENCIES = $(fuzz_targets_deps)
1475 fuzz_target_packetcache_LDFLAGS = $(fuzz_targets_ldflags)
1476 fuzz_target_packetcache_LDADD = $(fuzz_targets_libs)
1477
1478 fuzz_target_dnsdistcache_SOURCES = \
1479 fuzz_dnsdistcache.cc \
1480 dnsdist-cache.cc dnsdist-cache.hh \
1481 dnsdist-ecs.cc dnsdist-ecs.hh \
1482 dnslabeltext.cc \
1483 dnsname.cc dnsname.hh \
1484 dnsparser.cc dnsparser.hh \
1485 dnswriter.cc dnswriter.hh \
1486 doh.hh \
1487 ednsoptions.cc ednsoptions.hh \
1488 ednssubnet.cc ednssubnet.hh \
1489 iputils.cc iputils.hh \
1490 misc.cc misc.hh \
1491 packetcache.hh \
1492 qtype.cc qtype.hh
1493
1494 fuzz_target_dnsdistcache_DEPENDENCIES = $(fuzz_targets_deps)
1495 fuzz_target_dnsdistcache_LDFLAGS = $(fuzz_targets_ldflags)
1496 fuzz_target_dnsdistcache_LDADD = $(fuzz_targets_libs)
1497
1498 fuzz_target_zoneparsertng_SOURCES = \
1499 fuzz_zoneparsertng.cc \
1500 base32.cc base32.hh \
1501 base64.cc base64.hh \
1502 dnslabeltext.cc \
1503 dnsname.cc dnsname.hh \
1504 dnsparser.cc dnsparser.hh \
1505 dnsrecords.cc dnsrecords.hh \
1506 dnswriter.cc dnswriter.hh \
1507 logger.cc logger.hh \
1508 misc.cc misc.hh \
1509 nsecrecords.cc \
1510 qtype.cc qtype.hh \
1511 rcpgenerator.cc rcpgenerator.hh \
1512 sillyrecords.cc \
1513 statbag.cc statbag.hh \
1514 unix_utility.cc \
1515 utility.hh \
1516 zoneparser-tng.cc zoneparser-tng.hh
1517
1518 fuzz_target_zoneparsertng_DEPENDENCIES = $(fuzz_targets_deps)
1519 fuzz_target_zoneparsertng_LDFLAGS = $(fuzz_targets_ldflags)
1520 fuzz_target_zoneparsertng_LDADD = $(fuzz_targets_libs)
1521
1522 endif
1523
1524 dnslabeltext.cc: dnslabeltext.rl
1525 $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc
1526
1527 bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql
1528 ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g' ; echo ';' ) > $@
1529
1530 # for bindparser.h/hh
1531 .hh.h:
1532 cp $< $@
1533
1534 bindlexer.$(OBJEXT): bindparser.h
1535
1536 curl_verbose = $(curl_verbose_$(V))
1537 curl_verbose_ = $(curl_verbose_$(AM_DEFAULT_VERBOSITY))
1538 curl_verbose_0 = @echo " CURL " $@;
1539 $(srcdir)/effective_tld_names.dat:
1540 $(curl_verbose)if ! curl -s -S https://publicsuffix.org/list/public_suffix_list.dat > $@; then rm -f $@; exit 1; fi
1541
1542 pubsuffix.cc: $(srcdir)/effective_tld_names.dat
1543 $(AM_V_GEN)./mkpubsuffixcc
1544
1545 pdns_recursor rec_control:
1546 @echo "Please build the recursor from the recursordist/ dir"
1547 @exit 1
1548
1549 dnsdist:
1550 @echo "Please build dnsdist from the dnsdistdist/ dir"
1551 @exit 1
1552
1553 if HAVE_SYSTEMD
1554 pdns.service: pdns.service.in
1555 $(AM_V_GEN)sed -e 's![@]sbindir[@]!$(sbindir)!' -e 's![@]service_user[@]!$(service_user)!' -e 's![@]service_group[@]!$(service_group)!' < $< > $@
1556 if !HAVE_SYSTEMD_LOCK_PERSONALITY
1557 $(AM_V_GEN)perl -ni -e 'print unless /^LockPersonality/' $@
1558 endif
1559 if !HAVE_SYSTEMD_PRIVATE_DEVICES
1560 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateDevices/' $@
1561 endif
1562 if !HAVE_SYSTEMD_PRIVATE_TMP
1563 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateTmp/' $@
1564 endif
1565 if !HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS
1566 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectControlGroups/' $@
1567 endif
1568 if !HAVE_SYSTEMD_PROTECT_HOME
1569 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectHome/' $@
1570 endif
1571 if !HAVE_SYSTEMD_PROTECT_KERNEL_MODULES
1572 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelModules/' $@
1573 endif
1574 if !HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES
1575 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelTunables/' $@
1576 endif
1577 if !HAVE_SYSTEMD_PROTECT_SYSTEM
1578 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectSystem/' $@
1579 endif
1580 if !HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES
1581 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictAddressFamilies/' $@
1582 endif
1583 if !HAVE_SYSTEMD_RESTRICT_NAMESPACES
1584 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictNamespaces/' $@
1585 endif
1586 if !HAVE_SYSTEMD_RESTRICT_REALTIME
1587 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictRealtime/' $@
1588 endif
1589 if !HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES
1590 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallArchitectures/' $@
1591 endif
1592 if !HAVE_SYSTEMD_SYSTEM_CALL_FILTER
1593 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallFilter/' $@
1594 endif
1595
1596 pdns@.service: pdns.service
1597 $(AM_V_GEN)sed -e 's!/pdns_server!& --config-name=%i!' \
1598 -e 's!Authoritative Server!& %i!' \
1599 < $< > $@
1600
1601 systemdsystemunitdir = $(SYSTEMD_DIR)
1602
1603 systemdsystemunit_DATA = \
1604 pdns.service \
1605 pdns@.service
1606
1607 CLEANFILES += \
1608 pdns.service \
1609 pdns@.service
1610
1611 if IXFRDIST
1612 ixfrdist.service: ixfrdist.service.in
1613 $(AM_V_GEN)sed -e 's![@]bindir[@]!$(bindir)!' < $< > $@
1614
1615 ixfrdist@.service: ixfrdist.service
1616 $(AM_V_GEN)sed -e 's!/ixfrdist!& --config $(sysconfdir)/ixfrdist-%i.yml!' \
1617 < $< > $@
1618
1619 systemdsystemunit_DATA += \
1620 ixfrdist.service \
1621 ixfrdist@.service
1622 endif # IXFRDIST
1623
1624 CLEANFILES += \
1625 ixfrdist.service \
1626 ixfrdist@.service
1627
1628 endif # HAVE_SYSTEMD