]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/Makefile.am
Add PDNS_CHECK_LIBCRYPTO based on AX_CHECK_OPENSSL
[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
10 AM_CXXFLAGS = \
11 -DSYSCONFDIR=\"$(sysconfdir)\" \
12 -DPKGLIBDIR=\"$(pkglibdir)\" \
13 -DLOCALSTATEDIR=\"$(socketdir)\"
14
15 AM_LDFLAGS = \
16 $(PROGRAM_LDFLAGS) \
17 $(THREADFLAGS)
18
19 AM_LFLAGS = -i
20 AM_YFLAGS = -d --verbose --debug
21
22 if BOTAN110
23 AM_CPPFLAGS += $(BOTAN110_CFLAGS)
24 endif
25
26 if PKCS11
27 AM_CPPFLAGS += $(P11KIT1_CFLAGS)
28 endif
29
30 if SQLITE3
31 AM_CPPFLAGS += $(SQLITE3_CFLAGS)
32 endif
33
34 if LUA
35 AM_CPPFLAGS +=$(LUA_CFLAGS)
36 endif
37
38 if GSS_TSIG
39 AM_CPPFLAGS +=$(GSS_CFLAGS)
40 endif
41
42 EXTRA_DIST = \
43 dnslabeltext.rl \
44 dnslabeltext.cc \
45 dnsmessage.proto \
46 effective_tld_names.dat \
47 mtasker.cc \
48 inflighter.cc \
49 bind-dnssec.schema.sqlite3.sql \
50 bindparser.h \
51 named.conf.parsertest \
52 delaypipe.hh delaypipe.cc \
53 pdns.service.in
54
55 BUILT_SOURCES = \
56 bind-dnssec.schema.sqlite3.sql.h \
57 bindparser.h
58
59 CLEANFILES = \
60 *.gcda \
61 *.gcno \
62 *.gcov \
63 backends/gsql/gsqlbackend.gcda \
64 backends/gsql/gsqlbackend.gcno \
65 backends/gsql/gsqlbackend.gcov \
66 dnsmessage.pb.cc dnsmessage.pb.h \
67 pdns.conf-dist
68
69 noinst_SCRIPTS = pdns.init
70 sysconf_DATA = pdns.conf-dist
71
72 sbin_PROGRAMS = pdns_server
73 bin_PROGRAMS = \
74 pdns_control \
75 pdnsutil \
76 zone2sql \
77 zone2json
78
79 if TOOLS
80 bin_PROGRAMS += \
81 dnsgram \
82 dnsreplay \
83 dnsscan \
84 dnsscope \
85 dnswasher \
86 dumresp \
87 pdns_notify \
88 nproxy \
89 nsec3dig \
90 saxfr \
91 stubquery \
92 ixplore \
93 sdig
94
95 if HAVE_RECVMMSG
96 bin_PROGRAMS += calidns
97 endif
98
99 if HAVE_BOOST_GE_148
100 bin_PROGRAMS += \
101 dnsbulktest \
102 dnstcpbench
103 endif
104
105 endif
106
107 EXTRA_PROGRAMS = \
108 calidns \
109 comfun \
110 dnsbulktest \
111 dnsdemog \
112 dnsgram \
113 dnsreplay \
114 dnsscan \
115 dnsscope \
116 dnstcpbench \
117 dnswasher \
118 dumresp \
119 kvresp \
120 ixplore \
121 pdns_notify \
122 nproxy \
123 nsec3dig \
124 saxfr \
125 stubquery \
126 sdig \
127 speedtest \
128 testrunner \
129 toysdig \
130 tsig-tests \
131 zone2ldap
132
133 pdns_server_SOURCES = \
134 arguments.cc arguments.hh \
135 auth-carbon.cc \
136 backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \
137 backends/gsql/ssql.hh \
138 base32.cc base32.hh \
139 base64.cc base64.hh \
140 bind-dnssec.schema.sqlite3.sql.h \
141 bindlexer.l \
142 bindparser.cc \
143 cachecleaner.hh \
144 comment.hh \
145 common_startup.cc common_startup.hh \
146 communicator.cc communicator.hh \
147 dbdnsseckeeper.cc \
148 distributor.hh \
149 dns.cc dns.hh \
150 dns_random.cc dns_random.hh \
151 dnsbackend.cc dnsbackend.hh \
152 dnslabeltext.cc \
153 dnsname.cc dnsname.hh \
154 dnspacket.cc dnspacket.hh \
155 dnsparser.cc \
156 dnsproxy.cc dnsproxy.hh \
157 dnsrecords.cc dnsrecords.hh \
158 dnssecinfra.cc dnssecinfra.hh \
159 dnsseckeeper.hh \
160 dnssecsigner.cc \
161 dnswriter.cc \
162 dynhandler.cc dynhandler.hh \
163 dynlistener.cc dynlistener.hh \
164 dynmessenger.hh \
165 ednssubnet.cc ednssubnet.hh \
166 gss_context.cc gss_context.hh \
167 iputils.cc iputils.hh \
168 ixfr.cc ixfr.hh \
169 json.cc json.hh \
170 lock.hh \
171 logger.cc logger.hh \
172 lua-auth.cc lua-auth.hh \
173 lua-pdns.cc lua-pdns.hh lua-iputils.cc \
174 mastercommunicator.cc \
175 md5.hh \
176 misc.cc misc.hh \
177 nameserver.cc nameserver.hh \
178 namespaces.hh \
179 nsecrecords.cc \
180 opensslsigners.cc opensslsigners.hh \
181 packetcache.cc packetcache.hh \
182 packethandler.cc packethandler.hh \
183 pdnsexception.hh \
184 qtype.cc qtype.hh \
185 randomhelper.cc \
186 rcpgenerator.cc \
187 receiver.cc \
188 resolver.cc resolver.hh \
189 responsestats.cc responsestats.hh responsestats-auth.cc \
190 rfc2136handler.cc \
191 secpoll-auth.cc secpoll-auth.hh \
192 serialtweaker.cc \
193 sha.hh \
194 signingpipe.cc signingpipe.hh \
195 sillyrecords.cc \
196 slavecommunicator.cc \
197 statbag.cc statbag.hh \
198 stubresolver.cc stubresolver.hh \
199 tcpreceiver.cc tcpreceiver.hh \
200 tkey.cc \
201 ueberbackend.cc ueberbackend.hh \
202 unix_semaphore.cc \
203 unix_utility.cc \
204 utility.hh \
205 version.cc version.hh \
206 webserver.cc webserver.hh \
207 ws-api.cc ws-api.hh \
208 ws-auth.cc ws-auth.hh \
209 zoneparser-tng.cc
210
211 pdns_server_LDFLAGS = \
212 $(AM_LDFLAGS) \
213 $(DYNLINKFLAGS) \
214 $(LIBCRYPTO_LDFLAGS)
215
216 pdns_server_LDADD = \
217 @moduleobjects@ \
218 @modulelibs@ \
219 $(LIBDL) \
220 $(YAHTTP_LIBS) \
221 $(JSON11_LIBS) \
222 $(LIBCRYPTO_LIBS) \
223 $(SYSTEMD_LIBS)
224
225 if BOTAN110
226 pdns_server_SOURCES += botan110signers.cc
227 pdns_server_LDADD += $(BOTAN110_LIBS)
228 endif
229
230 if LIBSODIUM
231 pdns_server_SOURCES += sodiumsigners.cc
232 pdns_server_LDADD += $(LIBSODIUM_LIBS)
233 endif
234
235 if SQLITE3
236 pdns_server_SOURCES += ssqlite3.cc ssqlite3.hh
237 pdns_server_LDADD += $(SQLITE3_LIBS)
238 endif
239
240 if ORACLE
241 pdns_server_LDADD += $(ORACLE_LIBS)
242 endif
243
244 if PKCS11
245 pdns_server_SOURCES += pkcs11signers.cc pkcs11signers.hh
246 pdns_server_LDADD += $(P11KIT1_LIBS)
247 endif
248
249 if LUA
250 pdns_server_LDADD += $(LUA_LIBS)
251 endif
252
253 if GSS_TSIG
254 pdns_server_LDADD += $(GSS_LIBS)
255 endif
256
257 pdnsutil_SOURCES = \
258 arguments.cc \
259 backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \
260 backends/gsql/ssql.hh \
261 base32.cc \
262 base64.cc base64.hh \
263 bindlexer.l \
264 bindparser.yy \
265 cachecleaner.hh \
266 dbdnsseckeeper.cc \
267 dnsbackend.cc \
268 dns.cc \
269 dnslabeltext.cc \
270 dnsname.cc dnsname.hh \
271 dnspacket.cc \
272 dnsparser.cc dnsparser.hh \
273 dns_random.cc \
274 dnsrecords.cc \
275 dnssecinfra.cc dnssecinfra.hh \
276 dnssecsigner.cc \
277 dnswriter.cc dnswriter.hh \
278 dynlistener.cc \
279 ednssubnet.cc \
280 gss_context.cc gss_context.hh \
281 iputils.cc iputils.hh \
282 json.cc \
283 logger.cc \
284 misc.cc misc.hh \
285 nsecrecords.cc \
286 opensslsigners.cc opensslsigners.hh \
287 packetcache.cc \
288 pdnsutil.cc \
289 qtype.cc \
290 randomhelper.cc \
291 rcpgenerator.cc rcpgenerator.hh \
292 serialtweaker.cc \
293 signingpipe.cc \
294 sillyrecords.cc \
295 sstuff.hh \
296 statbag.cc \
297 ueberbackend.cc \
298 unix_utility.cc \
299 zoneparser-tng.cc
300
301 pdnsutil_LDFLAGS = \
302 $(AM_LDFLAGS) \
303 $(DYNLINKFLAGS) \
304 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
305 $(LIBCRYPTO_LDFLAGS)
306
307 pdnsutil_LDADD = \
308 @moduleobjects@ \
309 @modulelibs@ \
310 $(YAHTTP_LIBS) \
311 $(JSON11_LIBS) \
312 $(LIBDL) \
313 $(BOOST_PROGRAM_OPTIONS_LIBS) \
314 $(LIBCRYPTO_LIBS)
315
316 if BOTAN110
317 pdnsutil_SOURCES += botan110signers.cc
318 pdnsutil_LDADD += $(BOTAN110_LIBS)
319 endif
320
321 if LIBSODIUM
322 pdnsutil_SOURCES += sodiumsigners.cc
323 pdnsutil_LDADD += $(LIBSODIUM_LIBS)
324 endif
325
326 if SQLITE3
327 pdnsutil_SOURCES += ssqlite3.cc ssqlite3.hh
328 pdnsutil_LDADD += $(SQLITE3_LIBS)
329 endif
330
331 if ORACLE
332 pdnsutil_LDADD += $(ORACLE_LIBS)
333 endif
334
335 if PKCS11
336 pdnsutil_SOURCES += pkcs11signers.cc pkcs11signers.hh
337 pdnsutil_LDADD += $(P11KIT1_LIBS)
338 endif
339
340 if GSS_TSIG
341 pdnsutil_LDADD += $(GSS_LIBS)
342 endif
343
344 zone2sql_SOURCES = \
345 arguments.cc \
346 base32.cc \
347 base64.cc \
348 bind-dnssec.schema.sqlite3.sql.h \
349 bindlexer.l \
350 bindparser.yy \
351 bindparserclasses.hh \
352 dns.cc \
353 dns_random.cc \
354 dnsname.cc dnsname.hh \
355 dnslabeltext.cc \
356 dnsparser.cc \
357 dnsrecords.cc \
358 dnswriter.cc \
359 json.cc json.hh \
360 logger.cc \
361 misc.cc \
362 nsecrecords.cc \
363 qtype.cc \
364 rcpgenerator.cc \
365 sillyrecords.cc \
366 statbag.cc \
367 unix_utility.cc \
368 zone2sql.cc \
369 zoneparser-tng.cc
370
371 zone2sql_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
372 zone2sql_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
373
374 zone2json_SOURCES = \
375 arguments.cc \
376 base32.cc \
377 base64.cc \
378 bind-dnssec.schema.sqlite3.sql.h \
379 bindlexer.l \
380 bindparser.yy \
381 bindparserclasses.hh \
382 dnslabeltext.cc \
383 dnsname.cc dnsname.hh \
384 dnsparser.cc \
385 dnsrecords.cc \
386 dnswriter.cc \
387 logger.cc \
388 misc.cc \
389 nsecrecords.cc \
390 qtype.cc \
391 rcpgenerator.cc \
392 sillyrecords.cc \
393 statbag.cc \
394 unix_utility.cc \
395 zone2json.cc \
396 zoneparser-tng.cc
397
398 zone2json_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
399 zone2json_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
400
401 # pkglib_LTLIBRARIES = iputils.la
402 # iputils_la_SOURCES = lua-iputils.cc
403 # iputils_la_LDFLAGS= -module -avoid-version
404
405 if LDAP
406 bin_PROGRAMS += zone2ldap
407 endif
408
409 zone2ldap_SOURCES = \
410 arguments.cc \
411 base32.cc \
412 base64.cc \
413 bind-dnssec.schema.sqlite3.sql.h \
414 bindlexer.l \
415 bindparser.yy \
416 bindparserclasses.hh \
417 dns_random.cc \
418 dnsname.cc dnsname.hh \
419 dnslabeltext.cc \
420 dnsparser.cc \
421 dnsrecords.cc \
422 dnswriter.cc \
423 logger.cc \
424 misc.cc \
425 nsecrecords.cc \
426 qtype.cc \
427 rcpgenerator.cc \
428 sillyrecords.cc \
429 statbag.cc \
430 unix_utility.cc \
431 zone2ldap.cc \
432 zoneparser-tng.cc
433
434 zone2ldap_LDADD = $(LIBCRYPTO_LIBS)
435 zone2ldap_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
436
437 sdig_SOURCES = \
438 base32.cc \
439 base64.cc base64.hh \
440 dns.cc \
441 dnslabeltext.cc \
442 dnsname.cc dnsname.hh \
443 dnsparser.cc dnsparser.hh \
444 dnsrecords.cc \
445 dnswriter.cc dnswriter.hh \
446 ednssubnet.cc \
447 logger.cc \
448 misc.cc misc.hh \
449 nsecrecords.cc \
450 qtype.cc \
451 rcpgenerator.cc rcpgenerator.hh \
452 sdig.cc \
453 sillyrecords.cc \
454 sstuff.hh \
455 statbag.cc \
456 unix_utility.cc
457
458 sdig_LDADD = $(LIBCRYPTO_LIBS)
459 sdig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
460
461 calidns_SOURCES = \
462 base32.cc \
463 base64.cc base64.hh \
464 calidns.cc \
465 dnslabeltext.cc \
466 dnsname.cc dnsname.hh \
467 dnsparser.cc dnsparser.hh \
468 dnsrecords.cc \
469 dnswriter.cc dnswriter.hh \
470 iputils.cc \
471 logger.cc \
472 misc.cc misc.hh \
473 nsecrecords.cc \
474 qtype.cc \
475 rcpgenerator.cc rcpgenerator.hh \
476 sillyrecords.cc \
477 sstuff.hh \
478 statbag.cc \
479 unix_utility.cc
480
481 calidns_LDADD = $(LIBCRYPTO_LIBS)
482 calidns_LDFLAGS = $(AM_LDFLAGS) $(THREADFLAGS) $(LIBCRYPTO_LDFLAGS)
483
484 dumresp_SOURCES = \
485 dnslabeltext.cc \
486 dnsname.cc dnsname.hh \
487 dumresp.cc \
488 logger.cc \
489 misc.cc misc.hh \
490 statbag.cc \
491 unix_utility.cc \
492 qtype.cc
493
494 kvresp_SOURCES = \
495 dnslabeltext.cc dnsname.cc dnsname.hh \
496 kvresp.cc \
497 logger.cc \
498 misc.cc misc.hh \
499 statbag.cc \
500 unix_utility.cc \
501 qtype.cc
502
503 stubquery_SOURCES = \
504 arguments.cc arguments.hh \
505 base32.cc \
506 base64.cc \
507 dns_random.cc \
508 dnslabeltext.cc \
509 dnsname.cc \
510 dnsparser.cc \
511 dnsrecords.cc \
512 dnswriter.cc \
513 logger.cc \
514 misc.cc \
515 nsecrecords.cc \
516 qtype.cc \
517 rcpgenerator.cc \
518 sillyrecords.cc \
519 statbag.cc \
520 stubresolver.cc stubresolver.hh \
521 stubquery.cc \
522 unix_utility.cc
523
524 stubquery_LDADD = $(LIBCRYPTO_LIBS)
525 stubquery_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
526
527 saxfr_SOURCES = \
528 base32.cc \
529 base64.cc base64.hh \
530 dns_random.cc dns_random.hh \
531 dnslabeltext.cc \
532 dnsname.cc dnsname.hh \
533 dnsparser.cc dnsparser.hh \
534 dnsrecords.cc \
535 dnssecinfra.cc \
536 dnswriter.cc dnswriter.hh \
537 gss_context.cc gss_context.hh \
538 logger.cc \
539 misc.cc misc.hh \
540 nsecrecords.cc \
541 qtype.cc \
542 rcpgenerator.cc rcpgenerator.hh \
543 saxfr.cc \
544 sillyrecords.cc \
545 sstuff.hh \
546 statbag.cc \
547 unix_utility.cc
548
549 saxfr_LDADD = $(LIBCRYPTO_LIBS)
550 saxfr_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
551
552 if PKCS11
553 saxfr_SOURCES += pkcs11signers.cc pkcs11signers.hh
554 saxfr_LDADD += $(P11KIT1_LIBS)
555 endif
556
557 if GSS_TSIG
558 saxfr_LDADD += $(GSS_LIBS)
559 endif
560
561
562 ixplore_SOURCES = \
563 arguments.cc \
564 base32.cc \
565 base64.cc base64.hh \
566 dns.cc \
567 dns_random.cc dns_random.hh \
568 dnslabeltext.cc \
569 dnsname.cc dnsname.hh \
570 dnsparser.cc dnsparser.hh \
571 dnsrecords.cc \
572 dnssecinfra.cc \
573 dnswriter.cc dnswriter.hh \
574 gss_context.cc gss_context.hh \
575 logger.cc \
576 misc.cc misc.hh \
577 nsecrecords.cc \
578 qtype.cc \
579 rcpgenerator.cc rcpgenerator.hh \
580 resolver.cc \
581 ixfr.cc ixfr.hh \
582 ixplore.cc \
583 sillyrecords.cc \
584 sstuff.hh \
585 statbag.cc \
586 unix_utility.cc zoneparser-tng.cc
587
588 ixplore_LDADD = $(LIBCRYPTO_LIBS)
589 ixplore_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
590
591 if PKCS11
592 ixplore_SOURCES += pkcs11signers.cc pkcs11signers.hh
593 ixplore_LDADD += $(P11KIT1_LIBS)
594 endif
595
596 if GSS_TSIG
597 ixplore_LDADD += $(GSS_LIBS)
598 endif
599
600
601 dnstcpbench_SOURCES = \
602 base32.cc \
603 base64.cc base64.hh \
604 dnslabeltext.cc \
605 dnsname.cc dnsname.hh \
606 dnsparser.cc dnsparser.hh \
607 dnsrecords.cc \
608 dnstcpbench.cc \
609 dnswriter.cc dnswriter.hh \
610 logger.cc \
611 misc.cc misc.hh \
612 nsecrecords.cc \
613 qtype.cc \
614 rcpgenerator.cc rcpgenerator.hh \
615 sillyrecords.cc \
616 sstuff.hh \
617 statbag.cc \
618 unix_utility.cc
619
620 dnstcpbench_LDFLAGS = \
621 $(AM_LDFLAGS) \
622 $(LIBCRYPTO_LDFLAGS) \
623 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
624
625 dnstcpbench_LDADD = \
626 $(LIBCRYPTO_LIBS) \
627 $(BOOST_PROGRAM_OPTIONS_LIBS)
628
629 nsec3dig_SOURCES = \
630 base32.cc \
631 base64.cc base64.hh \
632 dnsname.cc dnsname.hh \
633 dnslabeltext.cc \
634 dnsparser.cc dnsparser.hh \
635 dnsrecords.cc \
636 dnssecinfra.cc \
637 dnswriter.cc dnswriter.hh \
638 gss_context.cc gss_context.hh \
639 logger.cc \
640 misc.cc misc.hh \
641 nsec3dig.cc \
642 nsecrecords.cc \
643 qtype.cc \
644 rcpgenerator.cc rcpgenerator.hh \
645 sillyrecords.cc \
646 sstuff.hh \
647 statbag.cc \
648 unix_utility.cc
649
650 nsec3dig_LDADD = $(LIBCRYPTO_LIBS)
651 nsec3dig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
652
653 if PKCS11
654 nsec3dig_SOURCES += pkcs11signers.cc pkcs11signers.hh
655 nsec3dig_LDADD += $(P11KIT1_LIBS)
656 endif
657
658 if GSS_TSIG
659 nsec3dig_LDADD += $(GSS_LIBS)
660 endif
661
662 toysdig_SOURCES = \
663 base32.cc \
664 base64.cc base64.hh \
665 dns_random.cc \
666 dnsname.cc dnsname.hh \
667 dnslabeltext.cc \
668 dnsparser.cc dnsparser.hh \
669 dnsrecords.cc \
670 dnssecinfra.cc \
671 dnswriter.cc dnswriter.hh \
672 ednssubnet.cc ednssubnet.hh \
673 filterpo.hh \
674 gss_context.cc gss_context.hh \
675 logger.cc \
676 misc.cc misc.hh \
677 nsecrecords.cc \
678 opensslsigners.cc opensslsigners.hh \
679 qtype.cc \
680 randomhelper.cc \
681 rcpgenerator.cc rcpgenerator.hh \
682 rec-lua-conf.hh \
683 recursor_cache.hh \
684 sholder.hh \
685 sillyrecords.cc \
686 sortlist.hh \
687 sstuff.hh \
688 statbag.cc \
689 toysdig.cc \
690 unix_utility.cc \
691 validate.cc validate.hh
692
693
694 toysdig_LDFLAGS = $(AM_LDFLAGS) \
695 $(LIBCRYPTO_LDFLAGS)
696 toysdig_LDADD = $(LIBCRYPTO_LIBS)
697
698 if GSS_TSIG
699 toysdig_LDADD += $(GSS_LIBS)
700 endif
701
702 if BOTAN110
703 toysdig_SOURCES += botan110signers.cc
704 toysdig_LDADD += $(BOTAN110_LIBS)
705 endif
706
707 if PKCS11
708 toysdig_SOURCES += pkcs11signers.cc pkcs11signers.hh
709 toysdig_LDADD += $(P11KIT1_LIBS)
710 endif
711
712 tsig_tests_SOURCES = \
713 arguments.cc \
714 base32.cc \
715 base64.cc base64.hh \
716 dns.cc \
717 dns_random.cc dns_random.hh \
718 dnslabeltext.cc \
719 dnsname.cc dnsname.hh \
720 dnsparser.cc dnsparser.hh \
721 dnsrecords.cc \
722 dnssecinfra.cc \
723 dnswriter.cc dnswriter.hh \
724 gss_context.cc gss_context.hh \
725 logger.cc \
726 misc.cc misc.hh \
727 nsecrecords.cc \
728 qtype.cc \
729 randomhelper.cc \
730 rcpgenerator.cc rcpgenerator.hh \
731 resolver.cc \
732 sillyrecords.cc \
733 sstuff.hh \
734 statbag.cc \
735 tsig-tests.cc \
736 unix_utility.cc
737
738 tsig_tests_LDADD = $(LIBCRYPTO_LIBS)
739 tsig_tests_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
740
741 if PKCS11
742 tsig_tests_SOURCES += pkcs11signers.cc pkcs11signers.hh
743 tsig_tests_LDADD += $(P11KIT1_LIBS)
744 endif
745
746 if GSS_TSIG
747 tsig_tests_LDADD += $(GSS_LIBS)
748 endif
749
750 speedtest_SOURCES = \
751 base32.cc \
752 base64.cc base64.hh \
753 dnslabeltext.cc \
754 dnsname.cc dnsname.hh \
755 dnsparser.cc dnsparser.hh \
756 dnsrecords.cc \
757 dnswriter.cc dnswriter.hh \
758 logger.cc \
759 misc.cc misc.hh \
760 nsecrecords.cc \
761 qtype.cc \
762 rcpgenerator.cc rcpgenerator.hh \
763 sillyrecords.cc \
764 speedtest.cc \
765 statbag.cc \
766 unix_utility.cc
767
768 speedtest_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
769 speedtest_LDADD = $(LIBCRYPTO_LIBS) \
770 $(RT_LIBS)
771
772 dnswasher_SOURCES = \
773 dnslabeltext.cc \
774 dnsname.hh dnsname.cc \
775 dnsparser.hh \
776 dnspcap.cc dnspcap.hh \
777 dnswasher.cc \
778 dnswriter.hh \
779 logger.cc \
780 misc.cc \
781 qtype.cc \
782 statbag.cc \
783 unix_utility.cc
784
785
786 dnsbulktest_SOURCES = \
787 base32.cc \
788 base64.cc \
789 dnsbulktest.cc \
790 dnslabeltext.cc \
791 dnsname.cc dnsname.hh \
792 dnsparser.cc \
793 dnsrecords.cc \
794 dnswriter.cc \
795 logger.cc \
796 misc.cc \
797 nsecrecords.cc \
798 qtype.cc \
799 rcpgenerator.cc \
800 sillyrecords.cc \
801 statbag.cc \
802 unix_utility.cc
803
804 dnsbulktest_LDFLAGS = \
805 $(AM_LDFLAGS) \
806 $(LIBCRYPTO_LDFLAGS) \
807 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
808
809 dnsbulktest_LDADD = \
810 $(LIBCRYPTO_LIBS) \
811 $(BOOST_PROGRAM_OPTIONS_LIBS)
812
813 comfun_SOURCES = \
814 base32.cc \
815 base64.cc \
816 comfun.cc \
817 dns.cc \
818 dnslabeltext.cc \
819 dnsname.cc dnsname.hh \
820 dnsparser.cc \
821 dnsrecords.cc \
822 dnswriter.cc \
823 logger.cc \
824 misc.cc \
825 nsecrecords.cc \
826 qtype.cc \
827 rcpgenerator.cc \
828 sillyrecords.cc \
829 statbag.cc \
830 unix_utility.cc \
831 zoneparser-tng.cc zoneparser-tng.hh
832
833 comfun_LDFLAGS = \
834 $(AM_LDFLAGS) \
835 $(LIBCRYPTO_LDFLAGS) \
836 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
837
838 comfun_LDADD = \
839 $(LIBCRYPTO_LIBS) \
840 $(BOOST_PROGRAM_OPTIONS_LIBS)
841
842
843 dnsscan_SOURCES = \
844 anadns.hh \
845 base32.cc \
846 base64.cc base64.hh \
847 dnslabeltext.cc \
848 dnsname.cc dnsname.hh \
849 dnsparser.cc dnsparser.hh \
850 dnspcap.cc dnspcap.hh \
851 dnsrecords.cc \
852 dnsscan.cc \
853 dnswriter.cc dnswriter.hh \
854 logger.cc \
855 misc.cc \
856 nsecrecords.cc \
857 qtype.cc \
858 rcpgenerator.cc rcpgenerator.hh \
859 sillyrecords.cc \
860 statbag.cc \
861 unix_utility.cc \
862 utility.hh
863
864 dnsscan_LDFLAGS = \
865 $(AM_LDFLAGS) \
866 $(LIBCRYPTO_LDFLAGS)
867
868 dnsscan_LDADD = $(LIBCRYPTO_LIBS)
869
870 dnsreplay_SOURCES = \
871 anadns.hh \
872 base32.cc \
873 base64.cc base64.hh \
874 dnslabeltext.cc \
875 dnsname.cc dnsname.hh \
876 dnsparser.cc dnsparser.hh \
877 dnspcap.cc dnspcap.hh \
878 dnsrecords.cc \
879 dnsreplay.cc \
880 dnswriter.cc dnswriter.hh \
881 ednssubnet.cc ednssubnet.hh \
882 ednsoptions.cc ednsoptions.hh \
883 logger.cc \
884 misc.cc \
885 nsecrecords.cc \
886 qtype.cc \
887 rcpgenerator.cc rcpgenerator.hh \
888 sillyrecords.cc \
889 statbag.cc \
890 unix_utility.cc \
891 utility.hh
892
893 dnsreplay_LDFLAGS = \
894 $(AM_LDFLAGS) \
895 $(LIBCRYPTO_LDFLAGS) \
896 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
897
898 dnsreplay_LDADD = \
899 $(LIBCRYPTO_LIBS) \
900 $(BOOST_PROGRAM_OPTIONS_LIBS)
901
902 nproxy_SOURCES = \
903 base32.cc \
904 base64.cc base64.hh \
905 dnslabeltext.cc \
906 dnsname.cc dnsname.hh \
907 dnsparser.cc dnsparser.hh \
908 dnsrecords.cc \
909 dnswriter.cc dnswriter.hh \
910 logger.cc \
911 misc.cc \
912 mplexer.hh \
913 nproxy.cc \
914 nsecrecords.cc \
915 qtype.cc \
916 rcpgenerator.cc rcpgenerator.hh \
917 selectmplexer.cc \
918 sillyrecords.cc \
919 statbag.cc \
920 unix_utility.cc
921
922 nproxy_LDFLAGS = \
923 $(AM_LDFLAGS) \
924 $(LIBCRYPTO_LDFLAGS) \
925 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
926
927 nproxy_LDADD = \
928 $(LIBCRYPTO_LIBS) \
929 $(BOOST_PROGRAM_OPTIONS_LIBS)
930
931 pdns_notify_SOURCES = \
932 arguments.cc \
933 base32.cc \
934 base64.cc base64.hh \
935 dns.cc \
936 dnslabeltext.cc \
937 dnsname.cc dnsname.hh \
938 dnsparser.cc dnsparser.hh \
939 dnsrecords.cc \
940 dnswriter.cc dnswriter.hh \
941 logger.cc \
942 misc.cc \
943 notify.cc \
944 nsecrecords.cc \
945 qtype.cc \
946 rcpgenerator.cc rcpgenerator.hh \
947 selectmplexer.cc \
948 sillyrecords.cc \
949 statbag.cc \
950 unix_utility.cc
951
952 pdns_notify_LDFLAGS = \
953 $(AM_LDFLAGS) \
954 $(LIBCRYPTO_LDFLAGS) \
955 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
956
957 pdns_notify_LDADD = \
958 $(LIBCRYPTO_LIBS) \
959 $(BOOST_PROGRAM_OPTIONS_LIBS)
960
961 dnsscope_SOURCES = \
962 arguments.cc \
963 base32.cc \
964 base64.cc base64.hh \
965 dns.cc \
966 dnslabeltext.cc \
967 dnsname.cc dnsname.hh \
968 dnsparser.cc dnsparser.hh \
969 dnspcap.cc dnspcap.hh \
970 dnsrecords.cc \
971 dnsscope.cc \
972 dnswriter.cc dnswriter.hh \
973 logger.cc \
974 misc.cc \
975 nsecrecords.cc \
976 qtype.cc \
977 rcpgenerator.cc rcpgenerator.hh \
978 sillyrecords.cc \
979 statbag.cc \
980 statnode.cc statnode.hh \
981 unix_utility.cc \
982 utility.hh
983
984 dnsscope_LDFLAGS = \
985 $(AM_LDFLAGS) \
986 $(LIBCRYPTO_LDFLAGS) \
987 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
988
989 dnsscope_LDADD = \
990 $(LIBCRYPTO_LIBS) \
991 $(BOOST_PROGRAM_OPTIONS_LIBS)
992
993 dnsgram_SOURCES = \
994 base32.cc \
995 base64.cc base64.hh \
996 dnsgram.cc \
997 dnslabeltext.cc \
998 dnsname.cc dnsname.hh \
999 dnsparser.cc dnsparser.hh \
1000 dnspcap.cc dnspcap.hh \
1001 dnsrecords.cc \
1002 dnswriter.cc dnswriter.hh \
1003 logger.cc \
1004 misc.cc \
1005 nsecrecords.cc \
1006 qtype.cc \
1007 rcpgenerator.cc rcpgenerator.hh \
1008 sillyrecords.cc \
1009 statbag.cc \
1010 unix_utility.cc \
1011 utility.hh
1012
1013 dnsgram_LDFLAGS = \
1014 $(AM_LDFLAGS) \
1015 $(LIBCRYPTO_LDFLAGS)
1016
1017 dnsgram_LDADD = \
1018 $(LIBCRYPTO_LIBS)
1019
1020 dnsdemog_SOURCES = \
1021 base32.cc \
1022 base64.cc base64.hh \
1023 dnsdemog.cc \
1024 dnslabeltext.cc \
1025 dnsname.cc dnsname.hh \
1026 dnsparser.cc dnsparser.hh \
1027 dnspcap.cc dnspcap.hh \
1028 dnsrecords.cc \
1029 dnswriter.cc dnswriter.hh \
1030 logger.cc \
1031 misc.cc \
1032 nsecrecords.cc \
1033 qtype.cc \
1034 rcpgenerator.cc rcpgenerator.hh \
1035 sillyrecords.cc \
1036 statbag.cc \
1037 unix_utility.cc \
1038 utility.hh
1039
1040 dnsdemog_LDFLAGS = \
1041 $(AM_LDFLAGS) \
1042 $(LIBCRYPTO_LDFLAGS)
1043
1044 dnsdemog_LDADD = \
1045 $(LIBCRYPTO_LIBS)
1046
1047 if HAVE_PROTOBUF
1048 if HAVE_PROTOC
1049 bin_PROGRAMS += dnspcap2protobuf
1050
1051 dnsmessage.pb.cc: dnsmessage.proto
1052 $(AM_V_GEN)$(PROTOC) --cpp_out=./ $<
1053
1054 BUILT_SOURCES += dnsmessage.pb.cc
1055 dnspcap2protobuf.$(OBJEXT): dnsmessage.pb.cc
1056
1057 dnspcap2protobuf_SOURCES = \
1058 base32.cc \
1059 base64.cc base64.hh \
1060 dnslabeltext.cc \
1061 dnsname.cc dnsname.hh \
1062 dnsparser.cc dnsparser.hh \
1063 dnspcap.cc dnspcap.hh \
1064 dnspcap2protobuf.cc \
1065 dnsrecords.cc \
1066 dnswriter.cc dnswriter.hh \
1067 gettime.cc gettime.hh \
1068 logger.cc \
1069 misc.cc \
1070 nsecrecords.cc \
1071 protobuf.cc protobuf.hh \
1072 qtype.cc \
1073 rcpgenerator.cc rcpgenerator.hh \
1074 sillyrecords.cc \
1075 statbag.cc \
1076 unix_utility.cc \
1077 utility.hh
1078
1079 nodist_dnspcap2protobuf_SOURCES=dnsmessage.pb.cc dnsmessage.pb.h
1080
1081 dnspcap2protobuf_LDFLAGS = \
1082 $(AM_LDFLAGS) \
1083 $(LIBCRYPTO_LDFLAGS) \
1084 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1085
1086 dnspcap2protobuf_LDADD = \
1087 $(LIBCRYPTO_LIBS) \
1088 $(PROTOBUF_LIBS) \
1089 $(BOOST_PROGRAM_OPTIONS_LIBS)
1090 endif
1091 endif
1092
1093 pdns.conf-dist: pdns_server
1094 $(AM_V_GEN)./pdns_server --no-config --config 2>/dev/null > $@
1095
1096 testrunner_SOURCES = \
1097 arguments.cc \
1098 base32.cc \
1099 base64.cc \
1100 bindlexer.l \
1101 bindparser.yy \
1102 dns.cc \
1103 dns_random.cc \
1104 dnsbackend.cc \
1105 dnslabeltext.cc \
1106 dnsname.cc \
1107 dnsname.hh \
1108 dnspacket.cc \
1109 dnsparser.hh dnsparser.cc \
1110 dnsrecords.cc \
1111 dnssecinfra.cc \
1112 dnswriter.cc \
1113 ednsoptions.cc ednsoptions.hh \
1114 ednssubnet.cc \
1115 gettime.cc gettime.hh \
1116 gss_context.cc gss_context.hh \
1117 iputils.cc \
1118 logger.cc \
1119 misc.cc \
1120 nameserver.cc \
1121 nsecrecords.cc \
1122 packetcache.cc \
1123 qtype.cc \
1124 rcpgenerator.cc \
1125 recpacketcache.cc recpacketcache.hh \
1126 rec-protobuf.hh \
1127 responsestats.cc \
1128 responsestats-auth.cc \
1129 sillyrecords.cc \
1130 statbag.cc \
1131 test-arguments_cc.cc \
1132 test-base32_cc.cc \
1133 test-base64_cc.cc \
1134 test-bindparser_cc.cc \
1135 test-delaypipe_hh.cc \
1136 test-distributor_hh.cc \
1137 test-dns_random_hh.cc \
1138 test-dnsname_cc.cc \
1139 test-dnsparser_hh.cc \
1140 test-dnsrecords_cc.cc \
1141 test-iputils_hh.cc \
1142 test-md5_hh.cc \
1143 test-misc_hh.cc \
1144 test-nameserver_cc.cc \
1145 test-nmtree.cc \
1146 test-packetcache_cc.cc \
1147 test-rcpgenerator_cc.cc \
1148 test-recpacketcache_cc.cc \
1149 test-sha_hh.cc \
1150 test-statbag_cc.cc \
1151 test-zoneparser_tng_cc.cc \
1152 testrunner.cc \
1153 ueberbackend.cc \
1154 unix_utility.cc \
1155 zoneparser-tng.cc zoneparser-tng.hh
1156
1157 testrunner_LDFLAGS = \
1158 $(AM_LDFLAGS) \
1159 $(LIBCRYPTO_LDFLAGS) \
1160 $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS)
1161
1162 testrunner_LDADD = \
1163 $(LIBCRYPTO_LIBS) \
1164 $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \
1165 $(RT_LIBS) \
1166 $(LIBDL)
1167
1168 if HAVE_PROTOBUF
1169 if HAVE_PROTOC
1170 nodist_testrunner_SOURCES = \
1171 dnsmessage.pb.cc dnsmessage.pb.h
1172
1173 testrunner_LDADD += \
1174 $(PROTOBUF_LIBS)
1175
1176 recpacketcache.$(OBJEXT): dnsmessage.pb.cc
1177 endif
1178 endif
1179
1180 if PKCS11
1181 testrunner_SOURCES += pkcs11signers.cc pkcs11signers.hh
1182 testrunner_LDADD += $(P11KIT1_LIBS)
1183 endif
1184
1185 pdns_control_SOURCES = \
1186 arguments.cc \
1187 dynloader.cc \
1188 dynmessenger.cc \
1189 logger.cc \
1190 misc.cc \
1191 qtype.cc \
1192 statbag.cc \
1193 unix_utility.cc \
1194 dnsname.cc \
1195 dnslabeltext.cc
1196
1197 if UNIT_TESTS
1198
1199 if HAVE_BOOST_GE_148
1200 TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message SRCDIR='$(srcdir)'
1201 TESTS=testrunner
1202 else
1203 check-local:
1204 @echo "Unit tests disabled, boost is too old"
1205 endif
1206
1207 else
1208 check-local:
1209 @echo "Unit tests are not enabled"
1210 @echo "Run ./configure --enable-unit-tests"
1211 endif
1212
1213 dnslabeltext.cc: dnslabeltext.rl
1214 $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc
1215
1216 bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql
1217 ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g' ; echo ';' ) > $@
1218
1219 # for bindparser.h/hh
1220 .hh.h:
1221 cp $< $@
1222
1223 bindlexer.$(OBJEXT): bindparser.h
1224
1225 curl_verbose = $(curl_verbose_$(V))
1226 curl_verbose_ = $(curl_verbose_$(AM_DEFAULT_VERBOSITY))
1227 curl_verbose_0 = @echo " CURL " $@;
1228 $(srcdir)/effective_tld_names.dat:
1229 $(curl_verbose)if ! curl -s -S https://publicsuffix.org/list/public_suffix_list.dat > $@; then rm -f $@; exit 1; fi
1230
1231 pubsuffix.cc: $(srcdir)/effective_tld_names.dat
1232 $(AM_V_GEN)./mkpubsuffixcc
1233
1234 pdns_recursor rec_control:
1235 @echo "Please build the recursor from the recursordist/ dir"
1236 @exit 1
1237
1238 dnsdist:
1239 @echo "Please build dnsdist from the dnsdistdist/ dir"
1240 @exit 1
1241
1242 if HAVE_SYSTEMD
1243 pdns.service: pdns.service.in
1244 $(AM_V_GEN)sed -e 's![@]sbindir[@]!$(sbindir)!' < $< > $@
1245
1246 pdns@.service: pdns.service
1247 $(AM_V_GEN)sed -e 's!/pdns_server!& --config-name=%i!' \
1248 -e 's!Authoritative Server!& %i!' \
1249 < $< > $@
1250
1251 systemdsystemunitdir = $(SYSTEMD_DIR)
1252
1253 systemdsystemunit_DATA = \
1254 pdns.service \
1255 pdns@.service
1256 endif