1 JSON11_LIBS = $(top_builddir)/ext/json11/libjson11.la
4 -I$(top_srcdir)/ext/json11 \
7 $(LIBCRYPTO_INCLUDES) \
11 -DSYSCONFDIR=\"$(sysconfdir)\" \
12 -DPKGLIBDIR=\"$(pkglibdir)\" \
13 -DLOCALSTATEDIR=\"$(socketdir)\"
20 AM_YFLAGS = -d --verbose --debug
23 AM_CPPFLAGS += $(BOTAN110_CFLAGS)
27 AM_CPPFLAGS += $(P11KIT1_CFLAGS)
31 AM_CPPFLAGS += $(SQLITE3_CFLAGS)
35 AM_CPPFLAGS +=$(LUA_CFLAGS)
39 AM_CPPFLAGS +=$(GSS_CFLAGS)
46 effective_tld_names.dat \
49 bind-dnssec.schema.sqlite3.sql \
51 named.conf.parsertest \
52 delaypipe.hh delaypipe.cc \
56 bind-dnssec.schema.sqlite3.sql.h \
63 backends/gsql/gsqlbackend.gcda \
64 backends/gsql/gsqlbackend.gcno \
65 backends/gsql/gsqlbackend.gcov \
66 dnsmessage.pb.cc dnsmessage.pb.h \
69 noinst_SCRIPTS = pdns.init
70 sysconf_DATA = pdns.conf-dist
72 sbin_PROGRAMS = pdns_server
96 bin_PROGRAMS += calidns
133 pdns_server_SOURCES = \
134 arguments.cc arguments.hh \
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 \
145 common_startup.cc common_startup.hh \
146 communicator.cc communicator.hh \
150 dns_random.cc dns_random.hh \
151 dnsbackend.cc dnsbackend.hh \
153 dnsname.cc dnsname.hh \
154 dnspacket.cc dnspacket.hh \
156 dnsproxy.cc dnsproxy.hh \
157 dnsrecords.cc dnsrecords.hh \
158 dnssecinfra.cc dnssecinfra.hh \
162 dynhandler.cc dynhandler.hh \
163 dynlistener.cc dynlistener.hh \
165 ednssubnet.cc ednssubnet.hh \
166 gss_context.cc gss_context.hh \
167 iputils.cc iputils.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 \
177 nameserver.cc nameserver.hh \
180 opensslsigners.cc opensslsigners.hh \
181 packetcache.cc packetcache.hh \
182 packethandler.cc packethandler.hh \
188 resolver.cc resolver.hh \
189 responsestats.cc responsestats.hh responsestats-auth.cc \
191 secpoll-auth.cc secpoll-auth.hh \
194 signingpipe.cc signingpipe.hh \
196 slavecommunicator.cc \
197 statbag.cc statbag.hh \
198 stubresolver.cc stubresolver.hh \
199 tcpreceiver.cc tcpreceiver.hh \
201 ueberbackend.cc ueberbackend.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 \
211 pdns_server_LDFLAGS = \
216 pdns_server_LDADD = \
226 pdns_server_SOURCES += botan110signers.cc
227 pdns_server_LDADD += $(BOTAN110_LIBS)
231 pdns_server_SOURCES += sodiumsigners.cc
232 pdns_server_LDADD += $(LIBSODIUM_LIBS)
236 pdns_server_SOURCES += ssqlite3.cc ssqlite3.hh
237 pdns_server_LDADD += $(SQLITE3_LIBS)
241 pdns_server_LDADD += $(ORACLE_LIBS)
245 pdns_server_SOURCES += pkcs11signers.cc pkcs11signers.hh
246 pdns_server_LDADD += $(P11KIT1_LIBS)
250 pdns_server_LDADD += $(LUA_LIBS)
254 pdns_server_LDADD += $(GSS_LIBS)
259 backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \
260 backends/gsql/ssql.hh \
262 base64.cc base64.hh \
270 dnsname.cc dnsname.hh \
272 dnsparser.cc dnsparser.hh \
275 dnssecinfra.cc dnssecinfra.hh \
277 dnswriter.cc dnswriter.hh \
280 gss_context.cc gss_context.hh \
281 iputils.cc iputils.hh \
286 opensslsigners.cc opensslsigners.hh \
291 rcpgenerator.cc rcpgenerator.hh \
304 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
313 $(BOOST_PROGRAM_OPTIONS_LIBS) \
317 pdnsutil_SOURCES += botan110signers.cc
318 pdnsutil_LDADD += $(BOTAN110_LIBS)
322 pdnsutil_SOURCES += sodiumsigners.cc
323 pdnsutil_LDADD += $(LIBSODIUM_LIBS)
327 pdnsutil_SOURCES += ssqlite3.cc ssqlite3.hh
328 pdnsutil_LDADD += $(SQLITE3_LIBS)
332 pdnsutil_LDADD += $(ORACLE_LIBS)
336 pdnsutil_SOURCES += pkcs11signers.cc pkcs11signers.hh
337 pdnsutil_LDADD += $(P11KIT1_LIBS)
341 pdnsutil_LDADD += $(GSS_LIBS)
348 bind-dnssec.schema.sqlite3.sql.h \
351 bindparserclasses.hh \
354 dnsname.cc dnsname.hh \
371 zone2sql_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
372 zone2sql_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
374 zone2json_SOURCES = \
378 bind-dnssec.schema.sqlite3.sql.h \
381 bindparserclasses.hh \
383 dnsname.cc dnsname.hh \
398 zone2json_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
399 zone2json_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
401 # pkglib_LTLIBRARIES = iputils.la
402 # iputils_la_SOURCES = lua-iputils.cc
403 # iputils_la_LDFLAGS= -module -avoid-version
406 bin_PROGRAMS += zone2ldap
409 zone2ldap_SOURCES = \
413 bind-dnssec.schema.sqlite3.sql.h \
416 bindparserclasses.hh \
418 dnsname.cc dnsname.hh \
434 zone2ldap_LDADD = $(LIBCRYPTO_LIBS)
435 zone2ldap_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
439 base64.cc base64.hh \
442 dnsname.cc dnsname.hh \
443 dnsparser.cc dnsparser.hh \
445 dnswriter.cc dnswriter.hh \
451 rcpgenerator.cc rcpgenerator.hh \
458 sdig_LDADD = $(LIBCRYPTO_LIBS)
459 sdig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
463 base64.cc base64.hh \
466 dnsname.cc dnsname.hh \
467 dnsparser.cc dnsparser.hh \
469 dnswriter.cc dnswriter.hh \
475 rcpgenerator.cc rcpgenerator.hh \
481 calidns_LDADD = $(LIBCRYPTO_LIBS)
482 calidns_LDFLAGS = $(AM_LDFLAGS) $(THREADFLAGS) $(LIBCRYPTO_LDFLAGS)
486 dnsname.cc dnsname.hh \
495 dnslabeltext.cc dnsname.cc dnsname.hh \
503 stubquery_SOURCES = \
504 arguments.cc arguments.hh \
520 stubresolver.cc stubresolver.hh \
524 stubquery_LDADD = $(LIBCRYPTO_LIBS)
525 stubquery_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
529 base64.cc base64.hh \
530 dns_random.cc dns_random.hh \
532 dnsname.cc dnsname.hh \
533 dnsparser.cc dnsparser.hh \
536 dnswriter.cc dnswriter.hh \
537 gss_context.cc gss_context.hh \
542 rcpgenerator.cc rcpgenerator.hh \
549 saxfr_LDADD = $(LIBCRYPTO_LIBS)
550 saxfr_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
553 saxfr_SOURCES += pkcs11signers.cc pkcs11signers.hh
554 saxfr_LDADD += $(P11KIT1_LIBS)
558 saxfr_LDADD += $(GSS_LIBS)
565 base64.cc base64.hh \
567 dns_random.cc dns_random.hh \
569 dnsname.cc dnsname.hh \
570 dnsparser.cc dnsparser.hh \
573 dnswriter.cc dnswriter.hh \
574 gss_context.cc gss_context.hh \
579 rcpgenerator.cc rcpgenerator.hh \
586 unix_utility.cc zoneparser-tng.cc
588 ixplore_LDADD = $(LIBCRYPTO_LIBS)
589 ixplore_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
592 ixplore_SOURCES += pkcs11signers.cc pkcs11signers.hh
593 ixplore_LDADD += $(P11KIT1_LIBS)
597 ixplore_LDADD += $(GSS_LIBS)
601 dnstcpbench_SOURCES = \
603 base64.cc base64.hh \
605 dnsname.cc dnsname.hh \
606 dnsparser.cc dnsparser.hh \
609 dnswriter.cc dnswriter.hh \
614 rcpgenerator.cc rcpgenerator.hh \
620 dnstcpbench_LDFLAGS = \
622 $(LIBCRYPTO_LDFLAGS) \
623 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
625 dnstcpbench_LDADD = \
627 $(BOOST_PROGRAM_OPTIONS_LIBS)
631 base64.cc base64.hh \
632 dnsname.cc dnsname.hh \
634 dnsparser.cc dnsparser.hh \
637 dnswriter.cc dnswriter.hh \
638 gss_context.cc gss_context.hh \
644 rcpgenerator.cc rcpgenerator.hh \
650 nsec3dig_LDADD = $(LIBCRYPTO_LIBS)
651 nsec3dig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
654 nsec3dig_SOURCES += pkcs11signers.cc pkcs11signers.hh
655 nsec3dig_LDADD += $(P11KIT1_LIBS)
659 nsec3dig_LDADD += $(GSS_LIBS)
664 base64.cc base64.hh \
666 dnsname.cc dnsname.hh \
668 dnsparser.cc dnsparser.hh \
671 dnswriter.cc dnswriter.hh \
672 ednssubnet.cc ednssubnet.hh \
674 gss_context.cc gss_context.hh \
678 opensslsigners.cc opensslsigners.hh \
681 rcpgenerator.cc rcpgenerator.hh \
691 validate.cc validate.hh
694 toysdig_LDFLAGS = $(AM_LDFLAGS) \
696 toysdig_LDADD = $(LIBCRYPTO_LIBS)
699 toysdig_LDADD += $(GSS_LIBS)
703 toysdig_SOURCES += botan110signers.cc
704 toysdig_LDADD += $(BOTAN110_LIBS)
708 toysdig_SOURCES += pkcs11signers.cc pkcs11signers.hh
709 toysdig_LDADD += $(P11KIT1_LIBS)
712 tsig_tests_SOURCES = \
715 base64.cc base64.hh \
717 dns_random.cc dns_random.hh \
719 dnsname.cc dnsname.hh \
720 dnsparser.cc dnsparser.hh \
723 dnswriter.cc dnswriter.hh \
724 gss_context.cc gss_context.hh \
730 rcpgenerator.cc rcpgenerator.hh \
738 tsig_tests_LDADD = $(LIBCRYPTO_LIBS)
739 tsig_tests_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
742 tsig_tests_SOURCES += pkcs11signers.cc pkcs11signers.hh
743 tsig_tests_LDADD += $(P11KIT1_LIBS)
747 tsig_tests_LDADD += $(GSS_LIBS)
750 speedtest_SOURCES = \
752 base64.cc base64.hh \
754 dnsname.cc dnsname.hh \
755 dnsparser.cc dnsparser.hh \
757 dnswriter.cc dnswriter.hh \
762 rcpgenerator.cc rcpgenerator.hh \
768 speedtest_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
769 speedtest_LDADD = $(LIBCRYPTO_LIBS) \
772 dnswasher_SOURCES = \
774 dnsname.hh dnsname.cc \
776 dnspcap.cc dnspcap.hh \
786 dnsbulktest_SOURCES = \
791 dnsname.cc dnsname.hh \
804 dnsbulktest_LDFLAGS = \
806 $(LIBCRYPTO_LDFLAGS) \
807 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
809 dnsbulktest_LDADD = \
811 $(BOOST_PROGRAM_OPTIONS_LIBS)
819 dnsname.cc dnsname.hh \
831 zoneparser-tng.cc zoneparser-tng.hh
835 $(LIBCRYPTO_LDFLAGS) \
836 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
840 $(BOOST_PROGRAM_OPTIONS_LIBS)
846 base64.cc base64.hh \
848 dnsname.cc dnsname.hh \
849 dnsparser.cc dnsparser.hh \
850 dnspcap.cc dnspcap.hh \
853 dnswriter.cc dnswriter.hh \
858 rcpgenerator.cc rcpgenerator.hh \
868 dnsscan_LDADD = $(LIBCRYPTO_LIBS)
870 dnsreplay_SOURCES = \
873 base64.cc base64.hh \
875 dnsname.cc dnsname.hh \
876 dnsparser.cc dnsparser.hh \
877 dnspcap.cc dnspcap.hh \
880 dnswriter.cc dnswriter.hh \
881 ednssubnet.cc ednssubnet.hh \
882 ednsoptions.cc ednsoptions.hh \
887 rcpgenerator.cc rcpgenerator.hh \
893 dnsreplay_LDFLAGS = \
895 $(LIBCRYPTO_LDFLAGS) \
896 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
900 $(BOOST_PROGRAM_OPTIONS_LIBS)
904 base64.cc base64.hh \
906 dnsname.cc dnsname.hh \
907 dnsparser.cc dnsparser.hh \
909 dnswriter.cc dnswriter.hh \
916 rcpgenerator.cc rcpgenerator.hh \
924 $(LIBCRYPTO_LDFLAGS) \
925 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
929 $(BOOST_PROGRAM_OPTIONS_LIBS)
931 pdns_notify_SOURCES = \
934 base64.cc base64.hh \
937 dnsname.cc dnsname.hh \
938 dnsparser.cc dnsparser.hh \
940 dnswriter.cc dnswriter.hh \
946 rcpgenerator.cc rcpgenerator.hh \
952 pdns_notify_LDFLAGS = \
954 $(LIBCRYPTO_LDFLAGS) \
955 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
957 pdns_notify_LDADD = \
959 $(BOOST_PROGRAM_OPTIONS_LIBS)
964 base64.cc base64.hh \
967 dnsname.cc dnsname.hh \
968 dnsparser.cc dnsparser.hh \
969 dnspcap.cc dnspcap.hh \
972 dnswriter.cc dnswriter.hh \
977 rcpgenerator.cc rcpgenerator.hh \
980 statnode.cc statnode.hh \
986 $(LIBCRYPTO_LDFLAGS) \
987 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
991 $(BOOST_PROGRAM_OPTIONS_LIBS)
995 base64.cc base64.hh \
998 dnsname.cc dnsname.hh \
999 dnsparser.cc dnsparser.hh \
1000 dnspcap.cc dnspcap.hh \
1002 dnswriter.cc dnswriter.hh \
1007 rcpgenerator.cc rcpgenerator.hh \
1015 $(LIBCRYPTO_LDFLAGS)
1020 dnsdemog_SOURCES = \
1022 base64.cc base64.hh \
1025 dnsname.cc dnsname.hh \
1026 dnsparser.cc dnsparser.hh \
1027 dnspcap.cc dnspcap.hh \
1029 dnswriter.cc dnswriter.hh \
1034 rcpgenerator.cc rcpgenerator.hh \
1040 dnsdemog_LDFLAGS = \
1042 $(LIBCRYPTO_LDFLAGS)
1049 bin_PROGRAMS += dnspcap2protobuf
1051 dnsmessage.pb.cc: dnsmessage.proto
1052 $(AM_V_GEN)$(PROTOC) --cpp_out=./ $<
1054 BUILT_SOURCES += dnsmessage.pb.cc
1055 dnspcap2protobuf.$(OBJEXT): dnsmessage.pb.cc
1057 dnspcap2protobuf_SOURCES = \
1059 base64.cc base64.hh \
1061 dnsname.cc dnsname.hh \
1062 dnsparser.cc dnsparser.hh \
1063 dnspcap.cc dnspcap.hh \
1064 dnspcap2protobuf.cc \
1066 dnswriter.cc dnswriter.hh \
1067 gettime.cc gettime.hh \
1071 protobuf.cc protobuf.hh \
1073 rcpgenerator.cc rcpgenerator.hh \
1079 nodist_dnspcap2protobuf_SOURCES=dnsmessage.pb.cc dnsmessage.pb.h
1081 dnspcap2protobuf_LDFLAGS = \
1083 $(LIBCRYPTO_LDFLAGS) \
1084 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1086 dnspcap2protobuf_LDADD = \
1089 $(BOOST_PROGRAM_OPTIONS_LIBS)
1093 pdns.conf-dist: pdns_server
1094 $(AM_V_GEN)./pdns_server --no-config --config 2>/dev/null > $@
1096 testrunner_SOURCES = \
1109 dnsparser.hh dnsparser.cc \
1113 ednsoptions.cc ednsoptions.hh \
1115 gettime.cc gettime.hh \
1116 gss_context.cc gss_context.hh \
1125 recpacketcache.cc recpacketcache.hh \
1128 responsestats-auth.cc \
1131 test-arguments_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 \
1144 test-nameserver_cc.cc \
1146 test-packetcache_cc.cc \
1147 test-rcpgenerator_cc.cc \
1148 test-recpacketcache_cc.cc \
1150 test-statbag_cc.cc \
1151 test-zoneparser_tng_cc.cc \
1155 zoneparser-tng.cc zoneparser-tng.hh
1157 testrunner_LDFLAGS = \
1159 $(LIBCRYPTO_LDFLAGS) \
1160 $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS)
1162 testrunner_LDADD = \
1164 $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \
1170 nodist_testrunner_SOURCES = \
1171 dnsmessage.pb.cc dnsmessage.pb.h
1173 testrunner_LDADD += \
1176 recpacketcache.$(OBJEXT): dnsmessage.pb.cc
1181 testrunner_SOURCES += pkcs11signers.cc pkcs11signers.hh
1182 testrunner_LDADD += $(P11KIT1_LIBS)
1185 pdns_control_SOURCES = \
1199 if HAVE_BOOST_GE_148
1200 TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message SRCDIR='$(srcdir)'
1204 @echo "Unit tests disabled, boost is too old"
1209 @echo "Unit tests are not enabled"
1210 @echo "Run ./configure --enable-unit-tests"
1213 dnslabeltext.cc: dnslabeltext.rl
1214 $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc
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 ';' ) > $@
1219 # for bindparser.h/hh
1223 bindlexer.$(OBJEXT): bindparser.h
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
1231 pubsuffix.cc: $(srcdir)/effective_tld_names.dat
1232 $(AM_V_GEN)./mkpubsuffixcc
1234 pdns_recursor rec_control:
1235 @echo "Please build the recursor from the recursordist/ dir"
1239 @echo "Please build dnsdist from the dnsdistdist/ dir"
1243 pdns.service: pdns.service.in
1244 $(AM_V_GEN)sed -e 's![@]sbindir[@]!$(sbindir)!' < $< > $@
1246 pdns@.service: pdns.service
1247 $(AM_V_GEN)sed -e 's!/pdns_server!& --config-name=%i!' \
1248 -e 's!Authoritative Server!& %i!' \
1251 systemdsystemunitdir = $(SYSTEMD_DIR)
1253 systemdsystemunit_DATA = \