]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/Makefile.am
b2b-migrate did not open a transaction, breaking it for lmdb
[thirdparty/pdns.git] / pdns / Makefile.am
1 JSON11_LIBS = $(top_builddir)/ext/json11/libjson11.la
2
3 AM_CPPFLAGS += \
4 -I$(top_srcdir)/ext/json11 \
5 $(YAHTTP_CFLAGS) \
6 $(LIBEDIT_CFLAGS) \
7 $(LIBCRYPTO_INCLUDES) \
8 $(SYSTEMD_CFLAGS) \
9 $(YAML_CFLAGS)
10
11 AM_CXXFLAGS = \
12 -DSYSCONFDIR=\"$(sysconfdir)\" \
13 -DPKGLIBDIR=\"$(pkglibdir)\" \
14 -DLOCALSTATEDIR=\"$(socketdir)\"
15
16 AM_LDFLAGS = \
17 $(PROGRAM_LDFLAGS) \
18 $(THREADFLAGS)
19
20 AM_LFLAGS = -i
21 AM_YFLAGS = -d --verbose --debug
22
23 if PKCS11
24 AM_CPPFLAGS += $(P11KIT1_CFLAGS)
25 endif
26
27 if SQLITE3
28 AM_CPPFLAGS += $(SQLITE3_CFLAGS)
29 endif
30
31 if LUA
32 AM_CPPFLAGS +=$(LUA_CFLAGS)
33 endif
34
35 if GSS_TSIG
36 AM_CPPFLAGS +=$(GSS_CFLAGS)
37 endif
38
39 if LIBSODIUM
40 AM_CPPFLAGS +=$(LIBSODIUM_CFLAGS)
41 endif
42
43 EXTRA_DIST = \
44 dnslabeltext.rl \
45 dnslabeltext.cc \
46 dnsmessage.proto \
47 effective_tld_names.dat \
48 mtasker.cc \
49 inflighter.cc \
50 bind-dnssec.schema.sqlite3.sql \
51 bindparser.h \
52 named.conf.parsertest \
53 pdns.service.in \
54 ixfrdist.service.in \
55 ixfrdist.example.yml \
56 lua-record.cc \
57 minicurl.cc \
58 minicurl.hh
59
60 BUILT_SOURCES = \
61 bind-dnssec.schema.sqlite3.sql.h \
62 bindparser.h \
63 dnslabeltext.cc
64
65 CLEANFILES = \
66 *.gcda \
67 *.gcno \
68 *.gcov \
69 backends/gsql/gsqlbackend.gcda \
70 backends/gsql/gsqlbackend.gcno \
71 backends/gsql/gsqlbackend.gcov \
72 dnsmessage.pb.cc dnsmessage.pb.h \
73 pdns.conf-dist
74
75 noinst_SCRIPTS = pdns.init
76 sysconf_DATA = pdns.conf-dist
77
78 sbin_PROGRAMS = pdns_server
79 bin_PROGRAMS = \
80 pdns_control \
81 pdnsutil \
82 zone2sql \
83 zone2json
84
85 if TOOLS
86 bin_PROGRAMS += \
87 dnsgram \
88 dnspcap2calidns \
89 dnsreplay \
90 dnsscan \
91 dnsscope \
92 dnswasher \
93 dumresp \
94 pdns_notify \
95 nproxy \
96 nsec3dig \
97 saxfr \
98 stubquery \
99 ixplore \
100 sdig
101
102 if HAVE_RECVMMSG
103 bin_PROGRAMS += calidns
104 endif
105
106 if HAVE_BOOST_GE_148
107 bin_PROGRAMS += \
108 dnsbulktest \
109 dnstcpbench
110 endif
111
112 endif # TOOLS
113
114 if IXFRDIST
115 bin_PROGRAMS += \
116 ixfrdist
117
118 sysconf_DATA += \
119 ixfrdist.example.yml
120 endif
121
122 EXTRA_PROGRAMS = \
123 calidns \
124 comfun \
125 dnsbulktest \
126 dnsdemog \
127 dnsgram \
128 dnspcap2calidns \
129 dnsreplay \
130 dnsscan \
131 dnsscope \
132 dnstcpbench \
133 dnswasher \
134 dumresp \
135 kvresp \
136 ixplore \
137 ixfrdist \
138 pdns_notify \
139 nproxy \
140 nsec3dig \
141 saxfr \
142 stubquery \
143 sdig \
144 speedtest \
145 testrunner \
146 toysdig \
147 tsig-tests \
148 zone2ldap
149
150 pdns_server_SOURCES = \
151 arguments.cc arguments.hh \
152 ascii.hh \
153 auth-carbon.cc \
154 auth-caches.cc auth-caches.hh \
155 auth-packetcache.cc auth-packetcache.hh \
156 auth-querycache.cc auth-querycache.hh \
157 backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \
158 backends/gsql/ssql.hh \
159 base32.cc base32.hh \
160 base64.cc base64.hh \
161 bind-dnssec.schema.sqlite3.sql.h \
162 bindlexer.l \
163 bindparser.cc \
164 cachecleaner.hh \
165 comment.hh \
166 common_startup.cc common_startup.hh \
167 communicator.cc communicator.hh \
168 dbdnsseckeeper.cc \
169 digests.hh \
170 distributor.hh \
171 dns.cc dns.hh \
172 dns_random.cc dns_random.hh \
173 dnsbackend.cc dnsbackend.hh \
174 dnslabeltext.cc \
175 dnsname.cc dnsname.hh \
176 dnspacket.cc dnspacket.hh \
177 dnsparser.cc \
178 dnsproxy.cc dnsproxy.hh \
179 dnsrecords.cc dnsrecords.hh \
180 dnssecinfra.cc dnssecinfra.hh \
181 dnsseckeeper.hh \
182 dnssecsigner.cc \
183 dnswriter.cc \
184 dynhandler.cc dynhandler.hh \
185 dynlistener.cc dynlistener.hh \
186 dynmessenger.hh \
187 ednsoptions.cc ednsoptions.hh \
188 ednssubnet.cc ednssubnet.hh \
189 gss_context.cc gss_context.hh \
190 iputils.cc iputils.hh \
191 ixfr.cc ixfr.hh \
192 json.cc json.hh \
193 lock.hh \
194 logger.cc logger.hh \
195 lua-base4.cc lua-base4.hh \
196 lua-auth4.cc lua-auth4.hh \
197 mastercommunicator.cc \
198 misc.cc misc.hh \
199 nameserver.cc nameserver.hh \
200 namespaces.hh \
201 nsecrecords.cc \
202 opensslsigners.cc opensslsigners.hh \
203 packetcache.hh \
204 packethandler.cc packethandler.hh \
205 pdnsexception.hh \
206 qtype.cc qtype.hh \
207 rcpgenerator.cc \
208 receiver.cc \
209 resolver.cc resolver.hh \
210 responsestats.cc responsestats.hh responsestats-auth.cc \
211 rfc2136handler.cc \
212 secpoll-auth.cc secpoll-auth.hh \
213 serialtweaker.cc \
214 sha.hh \
215 signingpipe.cc signingpipe.hh \
216 sillyrecords.cc \
217 slavecommunicator.cc \
218 statbag.cc statbag.hh \
219 stubresolver.cc stubresolver.hh \
220 tcpreceiver.cc tcpreceiver.hh \
221 threadname.hh threadname.cc \
222 tsigverifier.cc tsigverifier.hh \
223 tsigutils.hh tsigutils.cc \
224 tkey.cc \
225 ueberbackend.cc ueberbackend.hh \
226 uuid-utils.hh uuid-utils.cc \
227 unix_semaphore.cc \
228 unix_utility.cc \
229 utility.hh \
230 version.cc version.hh \
231 webserver.cc webserver.hh \
232 ws-api.cc ws-api.hh \
233 ws-auth.cc ws-auth.hh \
234 zoneparser-tng.cc
235
236 pdns_server_LDFLAGS = \
237 $(AM_LDFLAGS) \
238 $(DYNLINKFLAGS) \
239 $(LIBCRYPTO_LDFLAGS)
240
241 EXTRA_pdns_server_DEPENDENCIES = @moduleobjects@
242 pdns_server_LDADD = \
243 @moduleobjects@ \
244 @modulelibs@ \
245 $(LIBDL) \
246 $(YAHTTP_LIBS) \
247 $(JSON11_LIBS) \
248 $(LIBCRYPTO_LIBS) \
249 $(SYSTEMD_LIBS)
250
251 if HAVE_LUA_RECORDS
252 pdns_server_SOURCES += lua-record.cc minicurl.cc minicurl.hh
253 pdns_server_LDADD += $(LIBCURL)
254 endif
255
256 if LIBSODIUM
257 pdns_server_SOURCES += sodiumsigners.cc
258 pdns_server_LDADD += $(LIBSODIUM_LIBS)
259 endif
260
261 if LIBDECAF
262 pdns_server_SOURCES += decafsigners.cc
263 pdns_server_LDADD += $(LIBDECAF_LIBS)
264 endif
265
266 if SQLITE3
267 pdns_server_SOURCES += ssqlite3.cc ssqlite3.hh
268 pdns_server_LDADD += $(SQLITE3_LIBS)
269 endif
270
271 if ORACLE
272 pdns_server_LDADD += $(ORACLE_LIBS)
273 endif
274
275 if PKCS11
276 pdns_server_SOURCES += pkcs11signers.cc pkcs11signers.hh
277 pdns_server_LDADD += $(P11KIT1_LIBS)
278 endif
279
280 if LUA
281 pdns_server_LDADD += $(LUA_LIBS)
282 endif
283
284 if GSS_TSIG
285 pdns_server_LDADD += $(GSS_LIBS)
286 endif
287
288 pdnsutil_SOURCES = \
289 arguments.cc \
290 auth-caches.cc auth-caches.hh \
291 auth-packetcache.cc auth-packetcache.hh \
292 auth-querycache.cc auth-querycache.hh \
293 backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \
294 backends/gsql/ssql.hh \
295 base32.cc \
296 base64.cc base64.hh \
297 bindlexer.l \
298 bindparser.yy \
299 cachecleaner.hh \
300 dbdnsseckeeper.cc \
301 dnsbackend.cc \
302 dns.cc \
303 dnslabeltext.cc \
304 dnsname.cc dnsname.hh \
305 dnspacket.cc \
306 dnsparser.cc dnsparser.hh \
307 dns_random.cc \
308 dnsrecords.cc \
309 dnssecinfra.cc dnssecinfra.hh \
310 dnssecsigner.cc \
311 dnswriter.cc dnswriter.hh \
312 dynlistener.cc \
313 ednsoptions.cc ednsoptions.hh \
314 ednssubnet.cc \
315 gss_context.cc gss_context.hh \
316 ipcipher.cc ipcipher.hh \
317 iputils.cc iputils.hh \
318 json.cc \
319 logger.cc \
320 lua-auth4.cc lua-auth4.hh \
321 lua-base4.cc lua-base4.hh \
322 misc.cc misc.hh \
323 nsecrecords.cc \
324 opensslsigners.cc opensslsigners.hh \
325 pdnsutil.cc \
326 qtype.cc \
327 rcpgenerator.cc rcpgenerator.hh \
328 serialtweaker.cc \
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 ORACLE
373 pdnsutil_LDADD += $(ORACLE_LIBS)
374 endif
375
376 if PKCS11
377 pdnsutil_SOURCES += pkcs11signers.cc pkcs11signers.hh
378 pdnsutil_LDADD += $(P11KIT1_LIBS)
379 endif
380
381 if LUA
382 pdnsutil_LDADD += $(LUA_LIBS)
383 endif
384
385 if GSS_TSIG
386 pdnsutil_LDADD += $(GSS_LIBS)
387 endif
388
389 zone2sql_SOURCES = \
390 arguments.cc \
391 base32.cc \
392 base64.cc \
393 bind-dnssec.schema.sqlite3.sql.h \
394 bindlexer.l \
395 bindparser.yy \
396 bindparserclasses.hh \
397 dns.cc \
398 dns_random_urandom.cc \
399 dnsname.cc dnsname.hh \
400 dnslabeltext.cc \
401 dnsparser.cc \
402 dnsrecords.cc \
403 dnswriter.cc \
404 json.cc json.hh \
405 logger.cc \
406 misc.cc \
407 nsecrecords.cc \
408 qtype.cc \
409 rcpgenerator.cc \
410 sillyrecords.cc \
411 statbag.cc \
412 unix_utility.cc \
413 zone2sql.cc \
414 zoneparser-tng.cc
415
416 zone2sql_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
417 zone2sql_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
418
419 zone2json_SOURCES = \
420 arguments.cc \
421 base32.cc \
422 base64.cc \
423 bind-dnssec.schema.sqlite3.sql.h \
424 bindlexer.l \
425 bindparser.yy \
426 bindparserclasses.hh \
427 dnslabeltext.cc \
428 dnsname.cc dnsname.hh \
429 dnsparser.cc \
430 dnsrecords.cc \
431 dnswriter.cc \
432 logger.cc \
433 misc.cc \
434 nsecrecords.cc \
435 qtype.cc \
436 rcpgenerator.cc \
437 sillyrecords.cc \
438 statbag.cc \
439 unix_utility.cc \
440 zone2json.cc \
441 zoneparser-tng.cc
442
443 zone2json_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
444 zone2json_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
445
446 # pkglib_LTLIBRARIES = iputils.la
447 # iputils_la_SOURCES = lua-iputils.cc
448 # iputils_la_LDFLAGS= -module -avoid-version
449
450 if LDAP
451 bin_PROGRAMS += zone2ldap
452 endif
453
454 zone2ldap_SOURCES = \
455 arguments.cc \
456 base32.cc \
457 base64.cc \
458 bind-dnssec.schema.sqlite3.sql.h \
459 bindlexer.l \
460 bindparser.yy \
461 bindparserclasses.hh \
462 dns_random_urandom.cc \
463 dnsname.cc dnsname.hh \
464 dnslabeltext.cc \
465 dnsparser.cc \
466 dnsrecords.cc \
467 dnswriter.cc \
468 logger.cc \
469 misc.cc \
470 nsecrecords.cc \
471 qtype.cc \
472 rcpgenerator.cc \
473 sillyrecords.cc \
474 statbag.cc \
475 unix_utility.cc \
476 zone2ldap.cc \
477 zoneparser-tng.cc
478
479 zone2ldap_LDADD = $(LIBCRYPTO_LIBS)
480 zone2ldap_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
481
482 sdig_SOURCES = \
483 base32.cc \
484 base64.cc base64.hh \
485 dns.cc \
486 dnslabeltext.cc \
487 dnsname.cc dnsname.hh \
488 dnsparser.cc dnsparser.hh \
489 dnsrecords.cc \
490 dnswriter.cc dnswriter.hh \
491 ednssubnet.cc iputils.cc \
492 logger.cc \
493 misc.cc misc.hh \
494 nsecrecords.cc \
495 qtype.cc \
496 rcpgenerator.cc rcpgenerator.hh \
497 sdig.cc \
498 sillyrecords.cc \
499 sstuff.hh \
500 statbag.cc \
501 unix_utility.cc
502
503 sdig_LDADD = $(LIBCRYPTO_LIBS)
504 sdig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
505
506 calidns_SOURCES = \
507 base32.cc \
508 base64.cc base64.hh \
509 calidns.cc \
510 dns_random_urandom.cc dns_random.hh \
511 dnslabeltext.cc \
512 dnsname.cc dnsname.hh \
513 dnsparser.cc dnsparser.hh \
514 dnsrecords.cc \
515 dnswriter.cc dnswriter.hh \
516 ednsoptions.cc ednsoptions.hh \
517 ednssubnet.cc ednssubnet.hh \
518 iputils.cc \
519 logger.cc \
520 misc.cc misc.hh \
521 nsecrecords.cc \
522 qtype.cc \
523 rcpgenerator.cc rcpgenerator.hh \
524 sillyrecords.cc \
525 sstuff.hh \
526 statbag.cc \
527 unix_utility.cc
528
529 calidns_LDADD = $(LIBCRYPTO_LIBS) \
530 $(BOOST_PROGRAM_OPTIONS_LIBS)
531 calidns_LDFLAGS = $(AM_LDFLAGS) $(THREADFLAGS) $(LIBCRYPTO_LDFLAGS) \
532 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
533
534 dumresp_SOURCES = \
535 dnslabeltext.cc \
536 dnsname.cc dnsname.hh \
537 dumresp.cc \
538 logger.cc \
539 misc.cc misc.hh \
540 statbag.cc \
541 unix_utility.cc \
542 qtype.cc
543
544 kvresp_SOURCES = \
545 dnslabeltext.cc dnsname.cc dnsname.hh \
546 kvresp.cc \
547 logger.cc \
548 misc.cc misc.hh \
549 statbag.cc \
550 unix_utility.cc \
551 qtype.cc
552
553 stubquery_SOURCES = \
554 arguments.cc arguments.hh \
555 base32.cc \
556 base64.cc \
557 dns_random_urandom.cc \
558 dnslabeltext.cc \
559 dnsname.cc \
560 dnsparser.cc \
561 dnsrecords.cc \
562 dnswriter.cc \
563 iputils.cc \
564 logger.cc \
565 misc.cc \
566 nsecrecords.cc \
567 qtype.cc \
568 rcpgenerator.cc \
569 sillyrecords.cc \
570 statbag.cc \
571 stubresolver.cc stubresolver.hh \
572 stubquery.cc \
573 unix_utility.cc
574
575 stubquery_LDADD = $(LIBCRYPTO_LIBS)
576 stubquery_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
577
578 saxfr_SOURCES = \
579 base32.cc \
580 base64.cc base64.hh \
581 dns_random_urandom.cc dns_random.hh \
582 dnslabeltext.cc \
583 dnsname.cc dnsname.hh \
584 dnsparser.cc dnsparser.hh \
585 dnsrecords.cc \
586 dnssecinfra.cc \
587 dnswriter.cc dnswriter.hh \
588 gss_context.cc gss_context.hh \
589 iputils.cc \
590 logger.cc \
591 misc.cc misc.hh \
592 nsecrecords.cc \
593 qtype.cc \
594 rcpgenerator.cc rcpgenerator.hh \
595 saxfr.cc \
596 sillyrecords.cc \
597 sstuff.hh \
598 statbag.cc \
599 unix_utility.cc
600
601 saxfr_LDADD = $(LIBCRYPTO_LIBS)
602 saxfr_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
603
604 if PKCS11
605 saxfr_SOURCES += pkcs11signers.cc pkcs11signers.hh
606 saxfr_LDADD += $(P11KIT1_LIBS)
607 endif
608
609 if GSS_TSIG
610 saxfr_LDADD += $(GSS_LIBS)
611 endif
612
613 ixfrdist_SOURCES = \
614 arguments.cc \
615 base32.cc \
616 base64.cc base64.hh \
617 dns.cc \
618 dns_random_urandom.cc dns_random.hh \
619 dnslabeltext.cc \
620 dnsname.cc dnsname.hh \
621 dnsparser.cc dnsparser.hh \
622 dnsrecords.cc \
623 dnssecinfra.cc \
624 dnswriter.cc dnswriter.hh \
625 gss_context.cc gss_context.hh \
626 iputils.hh iputils.cc \
627 ixfr.cc ixfr.hh \
628 ixfrdist.cc \
629 ixfrutils.cc ixfrutils.hh \
630 ixfrdist-stats.hh ixfrdist-stats.cc \
631 ixfrdist-web.hh ixfrdist-web.cc \
632 logger.cc logger.hh\
633 misc.cc misc.hh \
634 mplexer.hh \
635 nsecrecords.cc \
636 qtype.cc \
637 rcpgenerator.cc rcpgenerator.hh \
638 resolver.cc \
639 pollmplexer.cc \
640 sillyrecords.cc \
641 sstuff.hh \
642 statbag.cc \
643 threadname.hh threadname.cc \
644 tsigverifier.cc tsigverifier.hh \
645 unix_utility.cc \
646 uuid-utils.hh uuid-utils.cc \
647 webserver.hh webserver.cc \
648 zoneparser-tng.cc
649
650
651 ixfrdist_LDADD = \
652 $(BOOST_PROGRAM_OPTIONS_LIBS) \
653 $(JSON11_LIBS) \
654 $(LIBCRYPTO_LIBS) \
655 $(YAHTTP_LIBS) \
656 $(YAML_LIBS)
657
658 ixfrdist_LDFLAGS = \
659 $(AM_LDFLAGS) \
660 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
661 $(LIBCRYPTO_LDFLAGS)
662
663 if PKCS11
664 ixfrdist_SOURCES += pkcs11signers.cc pkcs11signers.hh
665 ixfrdist_LDADD += $(P11KIT1_LIBS)
666 endif
667
668 if GSS_TSIG
669 ixfrdist_LDADD += $(GSS_LIBS)
670 endif
671
672
673 ixplore_SOURCES = \
674 arguments.cc \
675 base32.cc \
676 base64.cc base64.hh \
677 dns.cc \
678 dns_random_urandom.cc dns_random.hh \
679 dnslabeltext.cc \
680 dnsname.cc dnsname.hh \
681 dnsparser.cc dnsparser.hh \
682 dnsrecords.cc \
683 dnssecinfra.cc \
684 dnswriter.cc dnswriter.hh \
685 gss_context.cc gss_context.hh \
686 iputils.cc \
687 logger.cc \
688 misc.cc misc.hh \
689 nsecrecords.cc \
690 qtype.cc \
691 rcpgenerator.cc rcpgenerator.hh \
692 resolver.cc \
693 ixfr.cc ixfr.hh \
694 ixfrutils.cc ixfrutils.hh \
695 ixplore.cc \
696 sillyrecords.cc \
697 sstuff.hh \
698 statbag.cc \
699 tsigverifier.cc tsigverifier.hh \
700 unix_utility.cc zoneparser-tng.cc
701
702 ixplore_LDADD = $(LIBCRYPTO_LIBS)
703 ixplore_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
704
705 if PKCS11
706 ixplore_SOURCES += pkcs11signers.cc pkcs11signers.hh
707 ixplore_LDADD += $(P11KIT1_LIBS)
708 endif
709
710 if GSS_TSIG
711 ixplore_LDADD += $(GSS_LIBS)
712 endif
713
714
715 dnstcpbench_SOURCES = \
716 base32.cc \
717 base64.cc base64.hh \
718 dnslabeltext.cc \
719 dnsname.cc dnsname.hh \
720 dnsparser.cc dnsparser.hh \
721 dnsrecords.cc \
722 dnstcpbench.cc \
723 dnswriter.cc dnswriter.hh \
724 iputils.cc \
725 logger.cc \
726 misc.cc misc.hh \
727 nsecrecords.cc \
728 qtype.cc \
729 rcpgenerator.cc rcpgenerator.hh \
730 sillyrecords.cc \
731 sstuff.hh \
732 statbag.cc \
733 threadname.hh threadname.cc \
734 unix_utility.cc
735
736 dnstcpbench_LDFLAGS = \
737 $(AM_LDFLAGS) \
738 $(LIBCRYPTO_LDFLAGS) \
739 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
740
741 dnstcpbench_LDADD = \
742 $(LIBCRYPTO_LIBS) \
743 $(BOOST_PROGRAM_OPTIONS_LIBS)
744
745 nsec3dig_SOURCES = \
746 base32.cc \
747 base64.cc base64.hh \
748 dnsname.cc dnsname.hh \
749 dnslabeltext.cc \
750 dnsparser.cc dnsparser.hh \
751 dnsrecords.cc \
752 dnssecinfra.cc \
753 dnswriter.cc dnswriter.hh \
754 gss_context.cc gss_context.hh \
755 iputils.cc \
756 logger.cc \
757 misc.cc misc.hh \
758 nsec3dig.cc \
759 nsecrecords.cc \
760 qtype.cc \
761 rcpgenerator.cc rcpgenerator.hh \
762 sillyrecords.cc \
763 sstuff.hh \
764 statbag.cc \
765 unix_utility.cc
766
767 nsec3dig_LDADD = $(LIBCRYPTO_LIBS)
768 nsec3dig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
769
770 if PKCS11
771 nsec3dig_SOURCES += pkcs11signers.cc pkcs11signers.hh
772 nsec3dig_LDADD += $(P11KIT1_LIBS)
773 endif
774
775 if GSS_TSIG
776 nsec3dig_LDADD += $(GSS_LIBS)
777 endif
778
779 toysdig_SOURCES = \
780 base32.cc \
781 base64.cc base64.hh \
782 dns_random_urandom.cc \
783 dnsname.cc dnsname.hh \
784 dnslabeltext.cc \
785 dnsparser.cc dnsparser.hh \
786 dnsrecords.cc \
787 dnssecinfra.cc \
788 dnswriter.cc dnswriter.hh \
789 ednssubnet.cc ednssubnet.hh \
790 filterpo.hh \
791 gss_context.cc gss_context.hh \
792 iputils.cc \
793 logger.cc \
794 misc.cc misc.hh \
795 nsecrecords.cc \
796 opensslsigners.cc opensslsigners.hh \
797 qtype.cc \
798 root-dnssec.hh \
799 rcpgenerator.cc rcpgenerator.hh \
800 rec-lua-conf.hh \
801 recursor_cache.hh \
802 sholder.hh \
803 sillyrecords.cc \
804 sortlist.hh \
805 sstuff.hh \
806 statbag.cc \
807 toysdig.cc \
808 unix_utility.cc \
809 validate.cc validate.hh
810
811
812 toysdig_LDFLAGS = $(AM_LDFLAGS) \
813 $(LIBCRYPTO_LDFLAGS)
814 toysdig_LDADD = $(LIBCRYPTO_LIBS)
815
816 if GSS_TSIG
817 toysdig_LDADD += $(GSS_LIBS)
818 endif
819
820 if PKCS11
821 toysdig_SOURCES += pkcs11signers.cc pkcs11signers.hh
822 toysdig_LDADD += $(P11KIT1_LIBS)
823 endif
824
825 tsig_tests_SOURCES = \
826 arguments.cc \
827 base32.cc \
828 base64.cc base64.hh \
829 digests.hh \
830 dns.cc \
831 dns_random_urandom.cc dns_random.hh \
832 dnslabeltext.cc \
833 dnsname.cc dnsname.hh \
834 dnsparser.cc dnsparser.hh \
835 dnsrecords.cc \
836 dnssecinfra.cc \
837 dnswriter.cc dnswriter.hh \
838 gss_context.cc gss_context.hh \
839 logger.cc \
840 misc.cc misc.hh \
841 nsecrecords.cc \
842 qtype.cc \
843 rcpgenerator.cc rcpgenerator.hh \
844 resolver.cc \
845 sillyrecords.cc \
846 sstuff.hh \
847 statbag.cc \
848 tsig-tests.cc \
849 tsigverifier.cc tsigverifier.hh \
850 unix_utility.cc
851
852 tsig_tests_LDADD = $(LIBCRYPTO_LIBS)
853 tsig_tests_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
854
855 if PKCS11
856 tsig_tests_SOURCES += pkcs11signers.cc pkcs11signers.hh
857 tsig_tests_LDADD += $(P11KIT1_LIBS)
858 endif
859
860 if GSS_TSIG
861 tsig_tests_LDADD += $(GSS_LIBS)
862 endif
863
864 speedtest_SOURCES = \
865 base32.cc \
866 base64.cc base64.hh \
867 dnslabeltext.cc \
868 dnsname.cc dnsname.hh \
869 dnsparser.cc dnsparser.hh \
870 dnsrecords.cc \
871 dnswriter.cc dnswriter.hh \
872 logger.cc \
873 misc.cc misc.hh \
874 nsecrecords.cc \
875 qtype.cc \
876 rcpgenerator.cc rcpgenerator.hh \
877 sillyrecords.cc \
878 speedtest.cc \
879 statbag.cc \
880 unix_utility.cc
881
882 speedtest_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
883 speedtest_LDADD = $(LIBCRYPTO_LIBS) \
884 $(RT_LIBS)
885
886 dnswasher_SOURCES = \
887 base64.cc \
888 dnslabeltext.cc \
889 dnsname.hh dnsname.cc \
890 dnsparser.hh \
891 dnspcap.cc dnspcap.hh \
892 dnswasher.cc \
893 dnswriter.hh \
894 ipcipher.cc ipcipher.hh \
895 logger.cc \
896 misc.cc \
897 qtype.cc \
898 statbag.cc \
899 unix_utility.cc
900
901 dnswasher_LDFLAGS = $(AM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
902 dnswasher_LDADD = $(BOOST_PROGRAM_OPTIONS_LIBS) $(LIBCRYPTO_LIBS) $(IPCRYPT_LIBS)
903
904 dnsbulktest_SOURCES = \
905 base32.cc \
906 base64.cc \
907 dnsbulktest.cc \
908 dnslabeltext.cc \
909 dnsname.cc dnsname.hh \
910 dnsparser.cc \
911 dnsrecords.cc \
912 dnswriter.cc \
913 logger.cc \
914 misc.cc \
915 nsecrecords.cc \
916 qtype.cc \
917 rcpgenerator.cc \
918 sillyrecords.cc \
919 statbag.cc \
920 unix_utility.cc
921
922 dnsbulktest_LDFLAGS = \
923 $(AM_LDFLAGS) \
924 $(LIBCRYPTO_LDFLAGS) \
925 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
926
927 dnsbulktest_LDADD = \
928 $(LIBCRYPTO_LIBS) \
929 $(BOOST_PROGRAM_OPTIONS_LIBS)
930
931 comfun_SOURCES = \
932 base32.cc \
933 base64.cc \
934 comfun.cc \
935 dns.cc \
936 dnslabeltext.cc \
937 dnsname.cc dnsname.hh \
938 dnsparser.cc \
939 dnsrecords.cc \
940 dnswriter.cc \
941 logger.cc \
942 misc.cc \
943 nsecrecords.cc \
944 qtype.cc \
945 rcpgenerator.cc \
946 sillyrecords.cc \
947 statbag.cc \
948 unix_utility.cc \
949 zoneparser-tng.cc zoneparser-tng.hh
950
951 comfun_LDFLAGS = \
952 $(AM_LDFLAGS) \
953 $(LIBCRYPTO_LDFLAGS) \
954 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
955
956 comfun_LDADD = \
957 $(LIBCRYPTO_LIBS) \
958 $(BOOST_PROGRAM_OPTIONS_LIBS)
959
960
961 dnsscan_SOURCES = \
962 anadns.hh \
963 base32.cc \
964 base64.cc base64.hh \
965 dnslabeltext.cc \
966 dnsname.cc dnsname.hh \
967 dnsparser.cc dnsparser.hh \
968 dnspcap.cc dnspcap.hh \
969 dnsrecords.cc \
970 dnsscan.cc \
971 dnswriter.cc dnswriter.hh \
972 logger.cc \
973 misc.cc \
974 nsecrecords.cc \
975 qtype.cc \
976 rcpgenerator.cc rcpgenerator.hh \
977 sillyrecords.cc \
978 statbag.cc \
979 unix_utility.cc \
980 utility.hh
981
982 dnsscan_LDFLAGS = \
983 $(AM_LDFLAGS) \
984 $(LIBCRYPTO_LDFLAGS)
985
986 dnsscan_LDADD = $(LIBCRYPTO_LIBS)
987
988 dnsreplay_SOURCES = \
989 anadns.hh \
990 base32.cc \
991 base64.cc base64.hh \
992 dnslabeltext.cc \
993 dnsname.cc dnsname.hh \
994 dnsparser.cc dnsparser.hh \
995 dnspcap.cc dnspcap.hh \
996 dnsrecords.cc \
997 dnsreplay.cc \
998 dnswriter.cc dnswriter.hh \
999 ednsoptions.cc ednsoptions.hh \
1000 ednssubnet.cc ednssubnet.hh \
1001 iputils.cc \
1002 logger.cc \
1003 misc.cc \
1004 nsecrecords.cc \
1005 qtype.cc \
1006 rcpgenerator.cc rcpgenerator.hh \
1007 sillyrecords.cc \
1008 statbag.cc \
1009 unix_utility.cc \
1010 utility.hh
1011
1012 dnsreplay_LDFLAGS = \
1013 $(AM_LDFLAGS) \
1014 $(LIBCRYPTO_LDFLAGS) \
1015 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1016
1017 dnsreplay_LDADD = \
1018 $(LIBCRYPTO_LIBS) \
1019 $(BOOST_PROGRAM_OPTIONS_LIBS)
1020
1021 nproxy_SOURCES = \
1022 base32.cc \
1023 base64.cc base64.hh \
1024 dnslabeltext.cc \
1025 dnsname.cc dnsname.hh \
1026 dnsparser.cc dnsparser.hh \
1027 dnsrecords.cc \
1028 dnswriter.cc dnswriter.hh \
1029 logger.cc \
1030 misc.cc \
1031 mplexer.hh \
1032 nproxy.cc \
1033 nsecrecords.cc \
1034 pollmplexer.cc \
1035 qtype.cc \
1036 rcpgenerator.cc rcpgenerator.hh \
1037 sillyrecords.cc \
1038 statbag.cc \
1039 unix_utility.cc
1040
1041 nproxy_LDFLAGS = \
1042 $(AM_LDFLAGS) \
1043 $(LIBCRYPTO_LDFLAGS) \
1044 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1045
1046 nproxy_LDADD = \
1047 $(LIBCRYPTO_LIBS) \
1048 $(BOOST_PROGRAM_OPTIONS_LIBS)
1049
1050 pdns_notify_SOURCES = \
1051 arguments.cc \
1052 base32.cc \
1053 base64.cc base64.hh \
1054 dns.cc \
1055 dnslabeltext.cc \
1056 dnsname.cc dnsname.hh \
1057 dnsparser.cc dnsparser.hh \
1058 dnsrecords.cc \
1059 dnswriter.cc dnswriter.hh \
1060 logger.cc \
1061 misc.cc \
1062 notify.cc \
1063 nsecrecords.cc \
1064 pollmplexer.cc \
1065 qtype.cc \
1066 rcpgenerator.cc rcpgenerator.hh \
1067 sillyrecords.cc \
1068 statbag.cc \
1069 unix_utility.cc \
1070 dns_random.cc
1071
1072 pdns_notify_LDFLAGS = \
1073 $(AM_LDFLAGS) \
1074 $(LIBCRYPTO_LDFLAGS) \
1075 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1076
1077 pdns_notify_LDADD = \
1078 $(LIBCRYPTO_LIBS) \
1079 $(BOOST_PROGRAM_OPTIONS_LIBS)
1080
1081 if LIBSODIUM
1082 pdns_notify_LDADD += $(LIBSODIUM_LIBS)
1083 endif
1084
1085 dnsscope_SOURCES = \
1086 arguments.cc \
1087 base32.cc \
1088 base64.cc base64.hh \
1089 dns.cc \
1090 dnslabeltext.cc \
1091 dnsname.cc dnsname.hh \
1092 dnsparser.cc dnsparser.hh \
1093 dnspcap.cc dnspcap.hh \
1094 dnsrecords.cc \
1095 dnsscope.cc \
1096 dnswriter.cc dnswriter.hh \
1097 histog.hh \
1098 logger.cc \
1099 misc.cc \
1100 nsecrecords.cc \
1101 qtype.cc \
1102 rcpgenerator.cc rcpgenerator.hh \
1103 sillyrecords.cc \
1104 statbag.cc \
1105 statnode.cc statnode.hh \
1106 unix_utility.cc \
1107 utility.hh
1108
1109 dnsscope_LDFLAGS = \
1110 $(AM_LDFLAGS) \
1111 $(LIBCRYPTO_LDFLAGS) \
1112 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1113
1114 dnsscope_LDADD = \
1115 $(LIBCRYPTO_LIBS) \
1116 $(BOOST_PROGRAM_OPTIONS_LIBS)
1117
1118 dnsgram_SOURCES = \
1119 base32.cc \
1120 base64.cc base64.hh \
1121 dnsgram.cc \
1122 dnslabeltext.cc \
1123 dnsname.cc dnsname.hh \
1124 dnsparser.cc dnsparser.hh \
1125 dnspcap.cc dnspcap.hh \
1126 dnsrecords.cc \
1127 dnswriter.cc dnswriter.hh \
1128 logger.cc \
1129 misc.cc \
1130 nsecrecords.cc \
1131 qtype.cc \
1132 rcpgenerator.cc rcpgenerator.hh \
1133 sillyrecords.cc \
1134 statbag.cc \
1135 unix_utility.cc \
1136 utility.hh
1137
1138 dnsgram_LDFLAGS = \
1139 $(AM_LDFLAGS) \
1140 $(LIBCRYPTO_LDFLAGS)
1141
1142 dnsgram_LDADD = \
1143 $(LIBCRYPTO_LIBS)
1144
1145 dnsdemog_SOURCES = \
1146 base32.cc \
1147 base64.cc base64.hh \
1148 dnsdemog.cc \
1149 dnslabeltext.cc \
1150 dnsname.cc dnsname.hh \
1151 dnsparser.cc dnsparser.hh \
1152 dnspcap.cc dnspcap.hh \
1153 dnsrecords.cc \
1154 dnswriter.cc dnswriter.hh \
1155 logger.cc \
1156 misc.cc \
1157 nsecrecords.cc \
1158 qtype.cc \
1159 rcpgenerator.cc rcpgenerator.hh \
1160 sillyrecords.cc \
1161 statbag.cc \
1162 unix_utility.cc \
1163 utility.hh
1164
1165 dnsdemog_LDFLAGS = \
1166 $(AM_LDFLAGS) \
1167 $(LIBCRYPTO_LDFLAGS)
1168
1169 dnsdemog_LDADD = \
1170 $(LIBCRYPTO_LIBS)
1171
1172 dnspcap2calidns_SOURCES = \
1173 base32.cc \
1174 base64.cc base64.hh \
1175 dnslabeltext.cc \
1176 dnsname.cc dnsname.hh \
1177 dnsparser.cc dnsparser.hh \
1178 dnspcap.cc dnspcap.hh \
1179 dnspcap2calidns.cc \
1180 dnsrecords.cc \
1181 dnswriter.cc dnswriter.hh \
1182 ednsoptions.cc ednsoptions.hh \
1183 ednssubnet.cc ednssubnet.hh \
1184 iputils.cc \
1185 logger.cc \
1186 misc.cc \
1187 nsecrecords.cc \
1188 qtype.cc \
1189 rcpgenerator.cc rcpgenerator.hh \
1190 sillyrecords.cc \
1191 statbag.cc \
1192 unix_utility.cc \
1193 utility.hh
1194
1195 dnspcap2calidns_LDFLAGS = \
1196 $(AM_LDFLAGS) \
1197 $(LIBCRYPTO_LDFLAGS) \
1198 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1199
1200 dnspcap2calidns_LDADD = \
1201 $(LIBCRYPTO_LIBS) \
1202 $(BOOST_PROGRAM_OPTIONS_LIBS)
1203
1204 if HAVE_PROTOBUF
1205 if HAVE_PROTOC
1206 bin_PROGRAMS += dnspcap2protobuf
1207
1208 dnsmessage.pb.cc: dnsmessage.proto
1209 $(AM_V_GEN)$(PROTOC) --cpp_out=./ $<
1210
1211 BUILT_SOURCES += dnsmessage.pb.cc
1212 dnspcap2protobuf.$(OBJEXT): dnsmessage.pb.cc
1213
1214 dnspcap2protobuf_SOURCES = \
1215 base32.cc \
1216 base64.cc base64.hh \
1217 dnslabeltext.cc \
1218 dnsname.cc dnsname.hh \
1219 dnsparser.cc dnsparser.hh \
1220 dnspcap.cc dnspcap.hh \
1221 dnspcap2protobuf.cc \
1222 dnsrecords.cc \
1223 dnswriter.cc dnswriter.hh \
1224 gettime.cc gettime.hh \
1225 iputils.cc \
1226 logger.cc \
1227 misc.cc \
1228 nsecrecords.cc \
1229 protobuf.cc protobuf.hh \
1230 qtype.cc \
1231 rcpgenerator.cc rcpgenerator.hh \
1232 sillyrecords.cc \
1233 statbag.cc \
1234 unix_utility.cc \
1235 utility.hh \
1236 uuid-utils.hh uuid-utils.cc
1237
1238 nodist_dnspcap2protobuf_SOURCES=dnsmessage.pb.cc dnsmessage.pb.h
1239
1240 dnspcap2protobuf_LDFLAGS = \
1241 $(AM_LDFLAGS) \
1242 $(LIBCRYPTO_LDFLAGS) \
1243 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1244
1245 dnspcap2protobuf_LDADD = \
1246 $(LIBCRYPTO_LIBS) \
1247 $(PROTOBUF_LIBS) \
1248 $(BOOST_PROGRAM_OPTIONS_LIBS) \
1249 $(RT_LIBS)
1250 endif
1251 endif
1252
1253 pdns.conf-dist: pdns_server
1254 $(AM_V_GEN)./pdns_server --no-config --config 2>/dev/null > $@
1255
1256 testrunner_SOURCES = \
1257 arguments.cc \
1258 auth-caches.cc auth-caches.hh \
1259 auth-packetcache.cc auth-packetcache.hh \
1260 auth-querycache.cc auth-querycache.hh \
1261 base32.cc \
1262 base64.cc \
1263 bindlexer.l \
1264 bindparser.yy \
1265 dbdnsseckeeper.cc \
1266 dns.cc \
1267 dns_random.cc \
1268 dnsbackend.cc \
1269 dnslabeltext.cc \
1270 dnsname.cc \
1271 dnsname.hh \
1272 dnspacket.cc \
1273 dnsparser.hh dnsparser.cc \
1274 dnsrecords.cc \
1275 dnssecinfra.cc \
1276 dnssecsigner.cc \
1277 dnswriter.cc \
1278 ednsoptions.cc ednsoptions.hh \
1279 ednscookies.cc ednscookies.hh \
1280 ednssubnet.cc \
1281 gettime.cc gettime.hh \
1282 gss_context.cc gss_context.hh \
1283 ipcipher.cc ipcipher.hh \
1284 iputils.cc \
1285 ixfr.cc ixfr.hh \
1286 logger.cc \
1287 lua-auth4.hh lua-auth4.cc \
1288 lua-base4.hh lua-base4.cc \
1289 stubresolver.hh stubresolver.cc \
1290 misc.cc \
1291 nameserver.cc \
1292 nsecrecords.cc \
1293 opensslsigners.cc opensslsigners.hh \
1294 pollmplexer.cc \
1295 qtype.cc \
1296 rcpgenerator.cc \
1297 responsestats.cc \
1298 responsestats-auth.cc \
1299 sillyrecords.cc \
1300 statbag.cc \
1301 test-arguments_cc.cc \
1302 test-base32_cc.cc \
1303 test-base64_cc.cc \
1304 test-bindparser_cc.cc \
1305 test-common.hh \
1306 test-dnsrecordcontent.cc \
1307 test-digests_hh.cc \
1308 test-distributor_hh.cc \
1309 test-dns_random_hh.cc \
1310 test-dnsname_cc.cc \
1311 test-dnsparser_cc.cc \
1312 test-dnsparser_hh.cc \
1313 test-dnsrecords_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 ednsoptions.cc ednsoptions.hh \
1487 ednssubnet.cc ednssubnet.hh \
1488 iputils.cc iputils.hh \
1489 misc.cc misc.hh \
1490 packetcache.hh \
1491 qtype.cc qtype.hh
1492
1493 fuzz_target_dnsdistcache_DEPENDENCIES = $(fuzz_targets_deps)
1494 fuzz_target_dnsdistcache_LDFLAGS = $(fuzz_targets_ldflags)
1495 fuzz_target_dnsdistcache_LDADD = $(fuzz_targets_libs)
1496
1497 fuzz_target_zoneparsertng_SOURCES = \
1498 fuzz_zoneparsertng.cc \
1499 base32.cc base32.hh \
1500 base64.cc base64.hh \
1501 dnslabeltext.cc \
1502 dnsname.cc dnsname.hh \
1503 dnsparser.cc dnsparser.hh \
1504 dnsrecords.cc dnsrecords.hh \
1505 dnswriter.cc dnswriter.hh \
1506 logger.cc logger.hh \
1507 misc.cc misc.hh \
1508 nsecrecords.cc \
1509 qtype.cc qtype.hh \
1510 rcpgenerator.cc rcpgenerator.hh \
1511 sillyrecords.cc \
1512 statbag.cc statbag.hh \
1513 unix_utility.cc \
1514 utility.hh \
1515 zoneparser-tng.cc zoneparser-tng.hh
1516
1517 fuzz_target_zoneparsertng_DEPENDENCIES = $(fuzz_targets_deps)
1518 fuzz_target_zoneparsertng_LDFLAGS = $(fuzz_targets_ldflags)
1519 fuzz_target_zoneparsertng_LDADD = $(fuzz_targets_libs)
1520
1521 endif
1522
1523 dnslabeltext.cc: dnslabeltext.rl
1524 $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc
1525
1526 bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql
1527 ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g' ; echo ';' ) > $@
1528
1529 # for bindparser.h/hh
1530 .hh.h:
1531 cp $< $@
1532
1533 bindlexer.$(OBJEXT): bindparser.h
1534
1535 curl_verbose = $(curl_verbose_$(V))
1536 curl_verbose_ = $(curl_verbose_$(AM_DEFAULT_VERBOSITY))
1537 curl_verbose_0 = @echo " CURL " $@;
1538 $(srcdir)/effective_tld_names.dat:
1539 $(curl_verbose)if ! curl -s -S https://publicsuffix.org/list/public_suffix_list.dat > $@; then rm -f $@; exit 1; fi
1540
1541 pubsuffix.cc: $(srcdir)/effective_tld_names.dat
1542 $(AM_V_GEN)./mkpubsuffixcc
1543
1544 pdns_recursor rec_control:
1545 @echo "Please build the recursor from the recursordist/ dir"
1546 @exit 1
1547
1548 dnsdist:
1549 @echo "Please build dnsdist from the dnsdistdist/ dir"
1550 @exit 1
1551
1552 if HAVE_SYSTEMD
1553 pdns.service: pdns.service.in
1554 $(AM_V_GEN)sed -e 's![@]sbindir[@]!$(sbindir)!' < $< > $@
1555 if !HAVE_SYSTEMD_LOCK_PERSONALITY
1556 $(AM_V_GEN)perl -ni -e 'print unless /^LockPersonality/' $@
1557 endif
1558 if !HAVE_SYSTEMD_PRIVATE_DEVICES
1559 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateDevices/' $@
1560 endif
1561 if !HAVE_SYSTEMD_PRIVATE_TMP
1562 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateTmp/' $@
1563 endif
1564 if !HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS
1565 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectControlGroups/' $@
1566 endif
1567 if !HAVE_SYSTEMD_PROTECT_HOME
1568 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectHome/' $@
1569 endif
1570 if !HAVE_SYSTEMD_PROTECT_KERNEL_MODULES
1571 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelModules/' $@
1572 endif
1573 if !HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES
1574 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelTunables/' $@
1575 endif
1576 if !HAVE_SYSTEMD_PROTECT_SYSTEM
1577 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectSystem/' $@
1578 endif
1579 if !HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES
1580 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictAddressFamilies/' $@
1581 endif
1582 if !HAVE_SYSTEMD_RESTRICT_NAMESPACES
1583 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictNamespaces/' $@
1584 endif
1585 if !HAVE_SYSTEMD_RESTRICT_REALTIME
1586 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictRealtime/' $@
1587 endif
1588 if !HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES
1589 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallArchitectures/' $@
1590 endif
1591 if !HAVE_SYSTEMD_SYSTEM_CALL_FILTER
1592 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallFilter/' $@
1593 endif
1594
1595 pdns@.service: pdns.service
1596 $(AM_V_GEN)sed -e 's!/pdns_server!& --config-name=%i!' \
1597 -e 's!Authoritative Server!& %i!' \
1598 < $< > $@
1599
1600 systemdsystemunitdir = $(SYSTEMD_DIR)
1601
1602 systemdsystemunit_DATA = \
1603 pdns.service \
1604 pdns@.service
1605
1606 CLEANFILES += \
1607 pdns.service \
1608 pdns@.service
1609
1610 if IXFRDIST
1611 ixfrdist.service: ixfrdist.service.in
1612 $(AM_V_GEN)sed -e 's![@]bindir[@]!$(bindir)!' < $< > $@
1613
1614 ixfrdist@.service: ixfrdist.service
1615 $(AM_V_GEN)sed -e 's!/ixfrdist!& --config $(sysconfdir)/ixfrdist-%i.yml!' \
1616 < $< > $@
1617
1618 systemdsystemunit_DATA += \
1619 ixfrdist.service \
1620 ixfrdist@.service
1621 endif # IXFRDIST
1622
1623 CLEANFILES += \
1624 ixfrdist.service \
1625 ixfrdist@.service
1626
1627 endif # HAVE_SYSTEMD