1 JSON11_LIBS = $(top_builddir)/ext/json11/libjson11.la
4 -I$(top_srcdir)/ext/json11 \
7 $(LIBCRYPTO_INCLUDES) \
12 -DSYSCONFDIR=\"$(sysconfdir)\" \
13 -DPKGLIBDIR=\"$(pkglibdir)\" \
14 -DLOCALSTATEDIR=\"$(socketdir)\"
21 AM_YFLAGS = -d --verbose --debug
24 AM_CPPFLAGS += $(P11KIT1_CFLAGS)
28 AM_CPPFLAGS += $(SQLITE3_CFLAGS)
32 AM_CPPFLAGS +=$(LUA_CFLAGS)
36 AM_CPPFLAGS +=$(GSS_CFLAGS)
40 AM_CPPFLAGS +=$(LIBSODIUM_CFLAGS)
47 effective_tld_names.dat \
50 bind-dnssec.schema.sqlite3.sql \
52 named.conf.parsertest \
55 ixfrdist.example.yml \
61 bind-dnssec.schema.sqlite3.sql.h \
69 backends/gsql/gsqlbackend.gcda \
70 backends/gsql/gsqlbackend.gcno \
71 backends/gsql/gsqlbackend.gcov \
72 dnsmessage.pb.cc dnsmessage.pb.h \
75 noinst_SCRIPTS = pdns.init
76 sysconf_DATA = pdns.conf-dist
78 sbin_PROGRAMS = pdns_server
103 bin_PROGRAMS += calidns
150 pdns_server_SOURCES = \
151 arguments.cc arguments.hh \
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 \
166 common_startup.cc common_startup.hh \
167 communicator.cc communicator.hh \
172 dns_random.cc dns_random.hh \
173 dnsbackend.cc dnsbackend.hh \
175 dnsname.cc dnsname.hh \
176 dnspacket.cc dnspacket.hh \
178 dnsproxy.cc dnsproxy.hh \
179 dnsrecords.cc dnsrecords.hh \
180 dnssecinfra.cc dnssecinfra.hh \
184 dynhandler.cc dynhandler.hh \
185 dynlistener.cc dynlistener.hh \
187 ednsoptions.cc ednsoptions.hh \
188 ednssubnet.cc ednssubnet.hh \
189 gss_context.cc gss_context.hh \
190 iputils.cc iputils.hh \
194 logger.cc logger.hh \
195 lua-base4.cc lua-base4.hh \
196 lua-auth4.cc lua-auth4.hh \
197 mastercommunicator.cc \
199 nameserver.cc nameserver.hh \
202 opensslsigners.cc opensslsigners.hh \
204 packethandler.cc packethandler.hh \
209 resolver.cc resolver.hh \
210 responsestats.cc responsestats.hh responsestats-auth.cc \
212 secpoll-auth.cc secpoll-auth.hh \
215 signingpipe.cc signingpipe.hh \
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 \
225 ueberbackend.cc ueberbackend.hh \
226 uuid-utils.hh uuid-utils.cc \
230 version.cc version.hh \
231 webserver.cc webserver.hh \
232 ws-api.cc ws-api.hh \
233 ws-auth.cc ws-auth.hh \
236 pdns_server_LDFLAGS = \
241 EXTRA_pdns_server_DEPENDENCIES = @moduleobjects@
242 pdns_server_LDADD = \
252 pdns_server_SOURCES += lua-record.cc minicurl.cc minicurl.hh
253 pdns_server_LDADD += $(LIBCURL)
257 pdns_server_SOURCES += sodiumsigners.cc
258 pdns_server_LDADD += $(LIBSODIUM_LIBS)
262 pdns_server_SOURCES += decafsigners.cc
263 pdns_server_LDADD += $(LIBDECAF_LIBS)
267 pdns_server_SOURCES += ssqlite3.cc ssqlite3.hh
268 pdns_server_LDADD += $(SQLITE3_LIBS)
272 pdns_server_LDADD += $(ORACLE_LIBS)
276 pdns_server_SOURCES += pkcs11signers.cc pkcs11signers.hh
277 pdns_server_LDADD += $(P11KIT1_LIBS)
281 pdns_server_LDADD += $(LUA_LIBS)
285 pdns_server_LDADD += $(GSS_LIBS)
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 \
296 base64.cc base64.hh \
304 dnsname.cc dnsname.hh \
306 dnsparser.cc dnsparser.hh \
309 dnssecinfra.cc dnssecinfra.hh \
311 dnswriter.cc dnswriter.hh \
313 ednsoptions.cc ednsoptions.hh \
315 gss_context.cc gss_context.hh \
316 iputils.cc iputils.hh \
319 lua-auth4.cc lua-auth4.hh \
320 lua-base4.cc lua-base4.hh \
323 opensslsigners.cc opensslsigners.hh \
326 rcpgenerator.cc rcpgenerator.hh \
332 stubresolver.cc stubresolver.hh \
333 threadname.hh threadname.cc \
334 tsigutils.hh tsigutils.cc \
342 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
345 EXTRA_pdnsutil_DEPENDENCIES = @moduleobjects@
352 $(BOOST_PROGRAM_OPTIONS_LIBS) \
356 pdnsutil_SOURCES += sodiumsigners.cc
357 pdnsutil_LDADD += $(LIBSODIUM_LIBS)
361 pdnsutil_SOURCES += decafsigners.cc
362 pdnsutil_LDADD += $(LIBDECAF_LIBS)
366 pdnsutil_SOURCES += ssqlite3.cc ssqlite3.hh
367 pdnsutil_LDADD += $(SQLITE3_LIBS)
371 pdnsutil_LDADD += $(ORACLE_LIBS)
375 pdnsutil_SOURCES += pkcs11signers.cc pkcs11signers.hh
376 pdnsutil_LDADD += $(P11KIT1_LIBS)
380 pdnsutil_LDADD += $(LUA_LIBS)
384 pdnsutil_LDADD += $(GSS_LIBS)
391 bind-dnssec.schema.sqlite3.sql.h \
394 bindparserclasses.hh \
396 dns_random_urandom.cc \
397 dnsname.cc dnsname.hh \
414 zone2sql_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
415 zone2sql_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
417 zone2json_SOURCES = \
421 bind-dnssec.schema.sqlite3.sql.h \
424 bindparserclasses.hh \
426 dnsname.cc dnsname.hh \
441 zone2json_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
442 zone2json_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
444 # pkglib_LTLIBRARIES = iputils.la
445 # iputils_la_SOURCES = lua-iputils.cc
446 # iputils_la_LDFLAGS= -module -avoid-version
449 bin_PROGRAMS += zone2ldap
452 zone2ldap_SOURCES = \
456 bind-dnssec.schema.sqlite3.sql.h \
459 bindparserclasses.hh \
460 dns_random_urandom.cc \
461 dnsname.cc dnsname.hh \
477 zone2ldap_LDADD = $(LIBCRYPTO_LIBS)
478 zone2ldap_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
482 base64.cc base64.hh \
485 dnsname.cc dnsname.hh \
486 dnsparser.cc dnsparser.hh \
488 dnswriter.cc dnswriter.hh \
489 ednssubnet.cc iputils.cc \
494 rcpgenerator.cc rcpgenerator.hh \
501 sdig_LDADD = $(LIBCRYPTO_LIBS)
502 sdig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
506 base64.cc base64.hh \
508 dns_random_urandom.cc dns_random.hh \
510 dnsname.cc dnsname.hh \
511 dnsparser.cc dnsparser.hh \
513 dnswriter.cc dnswriter.hh \
514 ednsoptions.cc ednsoptions.hh \
515 ednssubnet.cc ednssubnet.hh \
521 rcpgenerator.cc rcpgenerator.hh \
527 calidns_LDADD = $(LIBCRYPTO_LIBS) \
528 $(BOOST_PROGRAM_OPTIONS_LIBS)
529 calidns_LDFLAGS = $(AM_LDFLAGS) $(THREADFLAGS) $(LIBCRYPTO_LDFLAGS) \
530 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
534 dnsname.cc dnsname.hh \
543 dnslabeltext.cc dnsname.cc dnsname.hh \
551 stubquery_SOURCES = \
552 arguments.cc arguments.hh \
555 dns_random_urandom.cc \
569 stubresolver.cc stubresolver.hh \
573 stubquery_LDADD = $(LIBCRYPTO_LIBS)
574 stubquery_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
578 base64.cc base64.hh \
579 dns_random_urandom.cc dns_random.hh \
581 dnsname.cc dnsname.hh \
582 dnsparser.cc dnsparser.hh \
585 dnswriter.cc dnswriter.hh \
586 gss_context.cc gss_context.hh \
592 rcpgenerator.cc rcpgenerator.hh \
599 saxfr_LDADD = $(LIBCRYPTO_LIBS)
600 saxfr_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
603 saxfr_SOURCES += pkcs11signers.cc pkcs11signers.hh
604 saxfr_LDADD += $(P11KIT1_LIBS)
608 saxfr_LDADD += $(GSS_LIBS)
614 base64.cc base64.hh \
616 dns_random_urandom.cc dns_random.hh \
618 dnsname.cc dnsname.hh \
619 dnsparser.cc dnsparser.hh \
622 dnswriter.cc dnswriter.hh \
623 gss_context.cc gss_context.hh \
624 iputils.hh iputils.cc \
627 ixfrutils.cc ixfrutils.hh \
628 ixfrdist-stats.hh ixfrdist-stats.cc \
629 ixfrdist-web.hh ixfrdist-web.cc \
635 rcpgenerator.cc rcpgenerator.hh \
641 threadname.hh threadname.cc \
642 tsigverifier.cc tsigverifier.hh \
644 uuid-utils.hh uuid-utils.cc \
645 webserver.hh webserver.cc \
650 $(BOOST_PROGRAM_OPTIONS_LIBS) \
658 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
662 ixfrdist_SOURCES += pkcs11signers.cc pkcs11signers.hh
663 ixfrdist_LDADD += $(P11KIT1_LIBS)
667 ixfrdist_LDADD += $(GSS_LIBS)
674 base64.cc base64.hh \
676 dns_random_urandom.cc dns_random.hh \
678 dnsname.cc dnsname.hh \
679 dnsparser.cc dnsparser.hh \
682 dnswriter.cc dnswriter.hh \
683 gss_context.cc gss_context.hh \
689 rcpgenerator.cc rcpgenerator.hh \
692 ixfrutils.cc ixfrutils.hh \
697 tsigverifier.cc tsigverifier.hh \
698 unix_utility.cc zoneparser-tng.cc
700 ixplore_LDADD = $(LIBCRYPTO_LIBS)
701 ixplore_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
704 ixplore_SOURCES += pkcs11signers.cc pkcs11signers.hh
705 ixplore_LDADD += $(P11KIT1_LIBS)
709 ixplore_LDADD += $(GSS_LIBS)
713 dnstcpbench_SOURCES = \
715 base64.cc base64.hh \
717 dnsname.cc dnsname.hh \
718 dnsparser.cc dnsparser.hh \
721 dnswriter.cc dnswriter.hh \
727 rcpgenerator.cc rcpgenerator.hh \
731 threadname.hh threadname.cc \
734 dnstcpbench_LDFLAGS = \
736 $(LIBCRYPTO_LDFLAGS) \
737 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
739 dnstcpbench_LDADD = \
741 $(BOOST_PROGRAM_OPTIONS_LIBS)
745 base64.cc base64.hh \
746 dnsname.cc dnsname.hh \
748 dnsparser.cc dnsparser.hh \
751 dnswriter.cc dnswriter.hh \
752 gss_context.cc gss_context.hh \
759 rcpgenerator.cc rcpgenerator.hh \
765 nsec3dig_LDADD = $(LIBCRYPTO_LIBS)
766 nsec3dig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
769 nsec3dig_SOURCES += pkcs11signers.cc pkcs11signers.hh
770 nsec3dig_LDADD += $(P11KIT1_LIBS)
774 nsec3dig_LDADD += $(GSS_LIBS)
779 base64.cc base64.hh \
780 dns_random_urandom.cc \
781 dnsname.cc dnsname.hh \
783 dnsparser.cc dnsparser.hh \
786 dnswriter.cc dnswriter.hh \
787 ednssubnet.cc ednssubnet.hh \
789 gss_context.cc gss_context.hh \
794 opensslsigners.cc opensslsigners.hh \
797 rcpgenerator.cc rcpgenerator.hh \
807 validate.cc validate.hh
810 toysdig_LDFLAGS = $(AM_LDFLAGS) \
812 toysdig_LDADD = $(LIBCRYPTO_LIBS)
815 toysdig_LDADD += $(GSS_LIBS)
819 toysdig_SOURCES += pkcs11signers.cc pkcs11signers.hh
820 toysdig_LDADD += $(P11KIT1_LIBS)
823 tsig_tests_SOURCES = \
826 base64.cc base64.hh \
829 dns_random_urandom.cc dns_random.hh \
831 dnsname.cc dnsname.hh \
832 dnsparser.cc dnsparser.hh \
835 dnswriter.cc dnswriter.hh \
836 gss_context.cc gss_context.hh \
841 rcpgenerator.cc rcpgenerator.hh \
847 tsigverifier.cc tsigverifier.hh \
850 tsig_tests_LDADD = $(LIBCRYPTO_LIBS)
851 tsig_tests_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
854 tsig_tests_SOURCES += pkcs11signers.cc pkcs11signers.hh
855 tsig_tests_LDADD += $(P11KIT1_LIBS)
859 tsig_tests_LDADD += $(GSS_LIBS)
862 speedtest_SOURCES = \
864 base64.cc base64.hh \
866 dnsname.cc dnsname.hh \
867 dnsparser.cc dnsparser.hh \
869 dnswriter.cc dnswriter.hh \
874 rcpgenerator.cc rcpgenerator.hh \
880 speedtest_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
881 speedtest_LDADD = $(LIBCRYPTO_LIBS) \
884 dnswasher_SOURCES = \
886 dnsname.hh dnsname.cc \
888 dnspcap.cc dnspcap.hh \
898 dnsbulktest_SOURCES = \
903 dnsname.cc dnsname.hh \
916 dnsbulktest_LDFLAGS = \
918 $(LIBCRYPTO_LDFLAGS) \
919 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
921 dnsbulktest_LDADD = \
923 $(BOOST_PROGRAM_OPTIONS_LIBS)
931 dnsname.cc dnsname.hh \
943 zoneparser-tng.cc zoneparser-tng.hh
947 $(LIBCRYPTO_LDFLAGS) \
948 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
952 $(BOOST_PROGRAM_OPTIONS_LIBS)
958 base64.cc base64.hh \
960 dnsname.cc dnsname.hh \
961 dnsparser.cc dnsparser.hh \
962 dnspcap.cc dnspcap.hh \
965 dnswriter.cc dnswriter.hh \
970 rcpgenerator.cc rcpgenerator.hh \
980 dnsscan_LDADD = $(LIBCRYPTO_LIBS)
982 dnsreplay_SOURCES = \
985 base64.cc base64.hh \
987 dnsname.cc dnsname.hh \
988 dnsparser.cc dnsparser.hh \
989 dnspcap.cc dnspcap.hh \
992 dnswriter.cc dnswriter.hh \
993 ednsoptions.cc ednsoptions.hh \
994 ednssubnet.cc ednssubnet.hh \
1000 rcpgenerator.cc rcpgenerator.hh \
1006 dnsreplay_LDFLAGS = \
1008 $(LIBCRYPTO_LDFLAGS) \
1009 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1013 $(BOOST_PROGRAM_OPTIONS_LIBS)
1017 base64.cc base64.hh \
1019 dnsname.cc dnsname.hh \
1020 dnsparser.cc dnsparser.hh \
1022 dnswriter.cc dnswriter.hh \
1030 rcpgenerator.cc rcpgenerator.hh \
1037 $(LIBCRYPTO_LDFLAGS) \
1038 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1042 $(BOOST_PROGRAM_OPTIONS_LIBS)
1044 pdns_notify_SOURCES = \
1047 base64.cc base64.hh \
1050 dnsname.cc dnsname.hh \
1051 dnsparser.cc dnsparser.hh \
1053 dnswriter.cc dnswriter.hh \
1060 rcpgenerator.cc rcpgenerator.hh \
1066 pdns_notify_LDFLAGS = \
1068 $(LIBCRYPTO_LDFLAGS) \
1069 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1071 pdns_notify_LDADD = \
1073 $(BOOST_PROGRAM_OPTIONS_LIBS)
1076 pdns_notify_LDADD += $(LIBSODIUM_LIBS)
1079 dnsscope_SOURCES = \
1082 base64.cc base64.hh \
1085 dnsname.cc dnsname.hh \
1086 dnsparser.cc dnsparser.hh \
1087 dnspcap.cc dnspcap.hh \
1090 dnswriter.cc dnswriter.hh \
1096 rcpgenerator.cc rcpgenerator.hh \
1099 statnode.cc statnode.hh \
1103 dnsscope_LDFLAGS = \
1105 $(LIBCRYPTO_LDFLAGS) \
1106 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1110 $(BOOST_PROGRAM_OPTIONS_LIBS)
1114 base64.cc base64.hh \
1117 dnsname.cc dnsname.hh \
1118 dnsparser.cc dnsparser.hh \
1119 dnspcap.cc dnspcap.hh \
1121 dnswriter.cc dnswriter.hh \
1126 rcpgenerator.cc rcpgenerator.hh \
1134 $(LIBCRYPTO_LDFLAGS)
1139 dnsdemog_SOURCES = \
1141 base64.cc base64.hh \
1144 dnsname.cc dnsname.hh \
1145 dnsparser.cc dnsparser.hh \
1146 dnspcap.cc dnspcap.hh \
1148 dnswriter.cc dnswriter.hh \
1153 rcpgenerator.cc rcpgenerator.hh \
1159 dnsdemog_LDFLAGS = \
1161 $(LIBCRYPTO_LDFLAGS)
1166 dnspcap2calidns_SOURCES = \
1168 base64.cc base64.hh \
1170 dnsname.cc dnsname.hh \
1171 dnsparser.cc dnsparser.hh \
1172 dnspcap.cc dnspcap.hh \
1173 dnspcap2calidns.cc \
1175 dnswriter.cc dnswriter.hh \
1176 ednsoptions.cc ednsoptions.hh \
1177 ednssubnet.cc ednssubnet.hh \
1183 rcpgenerator.cc rcpgenerator.hh \
1189 dnspcap2calidns_LDFLAGS = \
1191 $(LIBCRYPTO_LDFLAGS) \
1192 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1194 dnspcap2calidns_LDADD = \
1196 $(BOOST_PROGRAM_OPTIONS_LIBS)
1200 bin_PROGRAMS += dnspcap2protobuf
1202 dnsmessage.pb.cc: dnsmessage.proto
1203 $(AM_V_GEN)$(PROTOC) --cpp_out=./ $<
1205 BUILT_SOURCES += dnsmessage.pb.cc
1206 dnspcap2protobuf.$(OBJEXT): dnsmessage.pb.cc
1208 dnspcap2protobuf_SOURCES = \
1210 base64.cc base64.hh \
1212 dnsname.cc dnsname.hh \
1213 dnsparser.cc dnsparser.hh \
1214 dnspcap.cc dnspcap.hh \
1215 dnspcap2protobuf.cc \
1217 dnswriter.cc dnswriter.hh \
1218 gettime.cc gettime.hh \
1223 protobuf.cc protobuf.hh \
1225 rcpgenerator.cc rcpgenerator.hh \
1230 uuid-utils.hh uuid-utils.cc
1232 nodist_dnspcap2protobuf_SOURCES=dnsmessage.pb.cc dnsmessage.pb.h
1234 dnspcap2protobuf_LDFLAGS = \
1236 $(LIBCRYPTO_LDFLAGS) \
1237 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1239 dnspcap2protobuf_LDADD = \
1242 $(BOOST_PROGRAM_OPTIONS_LIBS) \
1247 pdns.conf-dist: pdns_server
1248 $(AM_V_GEN)./pdns_server --no-config --config 2>/dev/null > $@
1250 testrunner_SOURCES = \
1252 auth-caches.cc auth-caches.hh \
1253 auth-packetcache.cc auth-packetcache.hh \
1254 auth-querycache.cc auth-querycache.hh \
1267 dnsparser.hh dnsparser.cc \
1272 ednsoptions.cc ednsoptions.hh \
1273 ednscookies.cc ednscookies.hh \
1275 gettime.cc gettime.hh \
1276 gss_context.cc gss_context.hh \
1280 lua-auth4.hh lua-auth4.cc \
1281 lua-base4.hh lua-base4.cc \
1282 stubresolver.hh stubresolver.cc \
1286 opensslsigners.cc opensslsigners.hh \
1290 responsestats-auth.cc \
1293 test-arguments_cc.cc \
1296 test-bindparser_cc.cc \
1298 test-dnsrecordcontent.cc \
1299 test-digests_hh.cc \
1300 test-distributor_hh.cc \
1301 test-dns_random_hh.cc \
1302 test-dnsname_cc.cc \
1303 test-dnsparser_cc.cc \
1304 test-dnsparser_hh.cc \
1305 test-dnsrecords_cc.cc \
1306 test-iputils_hh.cc \
1309 test-lua_auth4_cc.cc \
1311 test-nameserver_cc.cc \
1312 test-packetcache_cc.cc \
1313 test-packetcache_hh.cc \
1314 test-rcpgenerator_cc.cc \
1317 test-statbag_cc.cc \
1319 test-zoneparser_tng_cc.cc \
1321 threadname.hh threadname.cc \
1322 tsigverifier.cc tsigverifier.hh \
1325 zoneparser-tng.cc zoneparser-tng.hh
1327 testrunner_LDFLAGS = \
1329 $(LIBCRYPTO_LDFLAGS) \
1330 $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS)
1332 testrunner_LDADD = \
1334 $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \
1340 testrunner_SOURCES += pkcs11signers.cc pkcs11signers.hh
1341 testrunner_LDADD += $(P11KIT1_LIBS)
1345 testrunner_SOURCES += sodiumsigners.cc
1346 testrunner_LDADD += $(LIBSODIUM_LIBS)
1350 testrunner_SOURCES += decafsigners.cc
1351 testrunner_LDADD += $(LIBDECAF_LIBS)
1354 pdns_control_SOURCES = \
1368 if HAVE_BOOST_GE_148
1369 TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message SRCDIR='$(srcdir)'
1373 @echo "Unit tests disabled, boost is too old"
1378 @echo "Unit tests are not enabled"
1379 @echo "Run ./configure --enable-unit-tests"
1384 LIB_FUZZING_ENGINE ?= standalone_fuzz_target_runner.o
1386 standalone_fuzz_target_runner.o: standalone_fuzz_target_runner.cc
1388 fuzz_targets_programs = \
1389 fuzz_target_dnsdistcache \
1390 fuzz_target_moadnsparser \
1391 fuzz_target_packetcache \
1392 fuzz_target_zoneparsertng
1394 fuzz_targets: $(fuzz_targets_programs)
1397 $(fuzz_targets_programs)
1399 fuzz_targets_libs = \
1401 $(LIB_FUZZING_ENGINE)
1402 fuzz_targets_ldflags = \
1405 $(LIBCRYPTO_LDFLAGS) \
1408 # we need the mockup runner to be built, but not linked if a real fuzzing engine is used
1409 fuzz_targets_deps = standalone_fuzz_target_runner.o
1411 fuzz_target_moadnsparser_SOURCES = \
1412 fuzz_moadnsparser.cc \
1413 base32.cc base32.hh \
1414 base64.cc base64.hh \
1416 dnsname.cc dnsname.hh \
1417 dnsparser.cc dnsparser.hh \
1418 dnsrecords.cc dnsrecords.hh \
1419 dnswriter.cc dnswriter.hh \
1420 logger.cc logger.hh \
1424 rcpgenerator.cc rcpgenerator.hh \
1426 statbag.cc statbag.hh \
1430 fuzz_target_moadnsparser_DEPENDENCIES = $(fuzz_targets_deps)
1431 fuzz_target_moadnsparser_LDFLAGS = $(fuzz_targets_ldflags)
1432 fuzz_target_moadnsparser_LDADD = $(fuzz_targets_libs)
1434 fuzz_target_packetcache_SOURCES = \
1435 fuzz_packetcache.cc \
1437 dnsname.cc dnsname.hh \
1438 ednsoptions.cc ednsoptions.hh \
1442 statbag.cc statbag.hh
1444 fuzz_target_packetcache_DEPENDENCIES = $(fuzz_targets_deps)
1445 fuzz_target_packetcache_LDFLAGS = $(fuzz_targets_ldflags)
1446 fuzz_target_packetcache_LDADD = $(fuzz_targets_libs)
1448 fuzz_target_dnsdistcache_SOURCES = \
1449 fuzz_dnsdistcache.cc \
1450 dnsdist-cache.cc dnsdist-cache.hh \
1451 dnsdist-ecs.cc dnsdist-ecs.hh \
1453 dnsname.cc dnsname.hh \
1454 dnsparser.cc dnsparser.hh \
1455 dnswriter.cc dnswriter.hh \
1456 ednsoptions.cc ednsoptions.hh \
1457 ednssubnet.cc ednssubnet.hh \
1458 iputils.cc iputils.hh \
1463 fuzz_target_dnsdistcache_DEPENDENCIES = $(fuzz_targets_deps)
1464 fuzz_target_dnsdistcache_LDFLAGS = $(fuzz_targets_ldflags)
1465 fuzz_target_dnsdistcache_LDADD = $(fuzz_targets_libs)
1467 fuzz_target_zoneparsertng_SOURCES = \
1468 fuzz_zoneparsertng.cc \
1469 base32.cc base32.hh \
1470 base64.cc base64.hh \
1472 dnsname.cc dnsname.hh \
1473 dnsparser.cc dnsparser.hh \
1474 dnsrecords.cc dnsrecords.hh \
1475 dnswriter.cc dnswriter.hh \
1476 logger.cc logger.hh \
1480 rcpgenerator.cc rcpgenerator.hh \
1482 statbag.cc statbag.hh \
1485 zoneparser-tng.cc zoneparser-tng.hh
1487 fuzz_target_zoneparsertng_DEPENDENCIES = $(fuzz_targets_deps)
1488 fuzz_target_zoneparsertng_LDFLAGS = $(fuzz_targets_ldflags)
1489 fuzz_target_zoneparsertng_LDADD = $(fuzz_targets_libs)
1493 dnslabeltext.cc: dnslabeltext.rl
1494 $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc
1496 bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql
1497 ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g' ; echo ';' ) > $@
1499 # for bindparser.h/hh
1503 bindlexer.$(OBJEXT): bindparser.h
1505 curl_verbose = $(curl_verbose_$(V))
1506 curl_verbose_ = $(curl_verbose_$(AM_DEFAULT_VERBOSITY))
1507 curl_verbose_0 = @echo " CURL " $@;
1508 $(srcdir)/effective_tld_names.dat:
1509 $(curl_verbose)if ! curl -s -S https://publicsuffix.org/list/public_suffix_list.dat > $@; then rm -f $@; exit 1; fi
1511 pubsuffix.cc: $(srcdir)/effective_tld_names.dat
1512 $(AM_V_GEN)./mkpubsuffixcc
1514 pdns_recursor rec_control:
1515 @echo "Please build the recursor from the recursordist/ dir"
1519 @echo "Please build dnsdist from the dnsdistdist/ dir"
1523 pdns.service: pdns.service.in
1524 $(AM_V_GEN)sed -e 's![@]sbindir[@]!$(sbindir)!' < $< > $@
1525 if !HAVE_SYSTEMD_LOCK_PERSONALITY
1526 $(AM_V_GEN)perl -ni -e 'print unless /^LockPersonality/' $@
1528 if !HAVE_SYSTEMD_PRIVATE_DEVICES
1529 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateDevices/' $@
1531 if !HAVE_SYSTEMD_PRIVATE_TMP
1532 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateTmp/' $@
1534 if !HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS
1535 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectControlGroups/' $@
1537 if !HAVE_SYSTEMD_PROTECT_HOME
1538 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectHome/' $@
1540 if !HAVE_SYSTEMD_PROTECT_KERNEL_MODULES
1541 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelModules/' $@
1543 if !HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES
1544 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelTunables/' $@
1546 if !HAVE_SYSTEMD_PROTECT_SYSTEM
1547 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectSystem/' $@
1549 if !HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES
1550 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictAddressFamilies/' $@
1552 if !HAVE_SYSTEMD_RESTRICT_NAMESPACES
1553 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictNamespaces/' $@
1555 if !HAVE_SYSTEMD_RESTRICT_REALTIME
1556 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictRealtime/' $@
1558 if !HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES
1559 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallArchitectures/' $@
1561 if !HAVE_SYSTEMD_SYSTEM_CALL_FILTER
1562 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallFilter/' $@
1565 pdns@.service: pdns.service
1566 $(AM_V_GEN)sed -e 's!/pdns_server!& --config-name=%i!' \
1567 -e 's!Authoritative Server!& %i!' \
1570 systemdsystemunitdir = $(SYSTEMD_DIR)
1572 systemdsystemunit_DATA = \
1581 ixfrdist.service: ixfrdist.service.in
1582 $(AM_V_GEN)sed -e 's![@]bindir[@]!$(bindir)!' < $< > $@
1584 ixfrdist@.service: ixfrdist.service
1585 $(AM_V_GEN)sed -e 's!/ixfrdist!& --config $(sysconfdir)/ixfrdist-%i.yml!' \
1588 systemdsystemunit_DATA += \
1597 endif # HAVE_SYSTEMD