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