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 \
229 version.cc version.hh \
230 webserver.cc webserver.hh \
231 ws-api.cc ws-api.hh \
232 ws-auth.cc ws-auth.hh \
235 pdns_server_LDFLAGS = \
240 EXTRA_pdns_server_DEPENDENCIES = @moduleobjects@
241 pdns_server_LDADD = \
251 pdns_server_SOURCES += lua-record.cc minicurl.cc minicurl.hh
252 pdns_server_LDADD += $(LIBCURL)
256 pdns_server_SOURCES += sodiumsigners.cc
257 pdns_server_LDADD += $(LIBSODIUM_LIBS)
261 pdns_server_SOURCES += decafsigners.cc
262 pdns_server_LDADD += $(LIBDECAF_LIBS)
266 pdns_server_SOURCES += ssqlite3.cc ssqlite3.hh
267 pdns_server_LDADD += $(SQLITE3_LIBS)
271 pdns_server_LDADD += $(ORACLE_LIBS)
275 pdns_server_SOURCES += pkcs11signers.cc pkcs11signers.hh
276 pdns_server_LDADD += $(P11KIT1_LIBS)
280 pdns_server_LDADD += $(LUA_LIBS)
284 pdns_server_LDADD += $(GSS_LIBS)
289 auth-caches.cc auth-caches.hh \
290 auth-packetcache.cc auth-packetcache.hh \
291 auth-querycache.cc auth-querycache.hh \
292 backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \
293 backends/gsql/ssql.hh \
295 base64.cc base64.hh \
303 dnsname.cc dnsname.hh \
305 dnsparser.cc dnsparser.hh \
308 dnssecinfra.cc dnssecinfra.hh \
310 dnswriter.cc dnswriter.hh \
312 ednsoptions.cc ednsoptions.hh \
314 gss_context.cc gss_context.hh \
315 iputils.cc iputils.hh \
318 lua-auth4.cc lua-auth4.hh \
319 lua-base4.cc lua-base4.hh \
322 opensslsigners.cc opensslsigners.hh \
325 rcpgenerator.cc rcpgenerator.hh \
331 stubresolver.cc stubresolver.hh \
332 threadname.hh threadname.cc \
333 tsigutils.hh tsigutils.cc \
341 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
344 EXTRA_pdnsutil_DEPENDENCIES = @moduleobjects@
351 $(BOOST_PROGRAM_OPTIONS_LIBS) \
355 pdnsutil_SOURCES += sodiumsigners.cc
356 pdnsutil_LDADD += $(LIBSODIUM_LIBS)
360 pdnsutil_SOURCES += decafsigners.cc
361 pdnsutil_LDADD += $(LIBDECAF_LIBS)
365 pdnsutil_SOURCES += ssqlite3.cc ssqlite3.hh
366 pdnsutil_LDADD += $(SQLITE3_LIBS)
370 pdnsutil_LDADD += $(ORACLE_LIBS)
374 pdnsutil_SOURCES += pkcs11signers.cc pkcs11signers.hh
375 pdnsutil_LDADD += $(P11KIT1_LIBS)
379 pdnsutil_LDADD += $(LUA_LIBS)
383 pdnsutil_LDADD += $(GSS_LIBS)
390 bind-dnssec.schema.sqlite3.sql.h \
393 bindparserclasses.hh \
395 dns_random_urandom.cc \
396 dnsname.cc dnsname.hh \
413 zone2sql_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
414 zone2sql_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
416 zone2json_SOURCES = \
420 bind-dnssec.schema.sqlite3.sql.h \
423 bindparserclasses.hh \
425 dnsname.cc dnsname.hh \
440 zone2json_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
441 zone2json_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
443 # pkglib_LTLIBRARIES = iputils.la
444 # iputils_la_SOURCES = lua-iputils.cc
445 # iputils_la_LDFLAGS= -module -avoid-version
448 bin_PROGRAMS += zone2ldap
451 zone2ldap_SOURCES = \
455 bind-dnssec.schema.sqlite3.sql.h \
458 bindparserclasses.hh \
459 dns_random_urandom.cc \
460 dnsname.cc dnsname.hh \
476 zone2ldap_LDADD = $(LIBCRYPTO_LIBS)
477 zone2ldap_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
481 base64.cc base64.hh \
484 dnsname.cc dnsname.hh \
485 dnsparser.cc dnsparser.hh \
487 dnswriter.cc dnswriter.hh \
488 ednssubnet.cc iputils.cc \
493 rcpgenerator.cc rcpgenerator.hh \
500 sdig_LDADD = $(LIBCRYPTO_LIBS)
501 sdig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
505 base64.cc base64.hh \
507 dns_random_urandom.cc dns_random.hh \
509 dnsname.cc dnsname.hh \
510 dnsparser.cc dnsparser.hh \
512 dnswriter.cc dnswriter.hh \
513 ednsoptions.cc ednsoptions.hh \
514 ednssubnet.cc ednssubnet.hh \
520 rcpgenerator.cc rcpgenerator.hh \
526 calidns_LDADD = $(LIBCRYPTO_LIBS) \
527 $(BOOST_PROGRAM_OPTIONS_LIBS)
528 calidns_LDFLAGS = $(AM_LDFLAGS) $(THREADFLAGS) $(LIBCRYPTO_LDFLAGS) \
529 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
533 dnsname.cc dnsname.hh \
542 dnslabeltext.cc dnsname.cc dnsname.hh \
550 stubquery_SOURCES = \
551 arguments.cc arguments.hh \
554 dns_random_urandom.cc \
568 stubresolver.cc stubresolver.hh \
572 stubquery_LDADD = $(LIBCRYPTO_LIBS)
573 stubquery_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
577 base64.cc base64.hh \
578 dns_random_urandom.cc dns_random.hh \
580 dnsname.cc dnsname.hh \
581 dnsparser.cc dnsparser.hh \
584 dnswriter.cc dnswriter.hh \
585 gss_context.cc gss_context.hh \
591 rcpgenerator.cc rcpgenerator.hh \
598 saxfr_LDADD = $(LIBCRYPTO_LIBS)
599 saxfr_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
602 saxfr_SOURCES += pkcs11signers.cc pkcs11signers.hh
603 saxfr_LDADD += $(P11KIT1_LIBS)
607 saxfr_LDADD += $(GSS_LIBS)
613 base64.cc base64.hh \
615 dns_random_urandom.cc dns_random.hh \
617 dnsname.cc dnsname.hh \
618 dnsparser.cc dnsparser.hh \
621 dnswriter.cc dnswriter.hh \
622 gss_context.cc gss_context.hh \
623 iputils.hh iputils.cc \
626 ixfrutils.cc ixfrutils.hh \
627 ixfrdist-stats.hh ixfrdist-stats.cc \
628 ixfrdist-web.hh ixfrdist-web.cc \
634 rcpgenerator.cc rcpgenerator.hh \
640 threadname.hh threadname.cc \
641 tsigverifier.cc tsigverifier.hh \
643 webserver.hh webserver.cc \
648 $(BOOST_PROGRAM_OPTIONS_LIBS) \
656 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
660 ixfrdist_SOURCES += pkcs11signers.cc pkcs11signers.hh
661 ixfrdist_LDADD += $(P11KIT1_LIBS)
665 ixfrdist_LDADD += $(GSS_LIBS)
672 base64.cc base64.hh \
674 dns_random_urandom.cc dns_random.hh \
676 dnsname.cc dnsname.hh \
677 dnsparser.cc dnsparser.hh \
680 dnswriter.cc dnswriter.hh \
681 gss_context.cc gss_context.hh \
687 rcpgenerator.cc rcpgenerator.hh \
690 ixfrutils.cc ixfrutils.hh \
695 tsigverifier.cc tsigverifier.hh \
696 unix_utility.cc zoneparser-tng.cc
698 ixplore_LDADD = $(LIBCRYPTO_LIBS)
699 ixplore_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
702 ixplore_SOURCES += pkcs11signers.cc pkcs11signers.hh
703 ixplore_LDADD += $(P11KIT1_LIBS)
707 ixplore_LDADD += $(GSS_LIBS)
711 dnstcpbench_SOURCES = \
713 base64.cc base64.hh \
715 dnsname.cc dnsname.hh \
716 dnsparser.cc dnsparser.hh \
719 dnswriter.cc dnswriter.hh \
725 rcpgenerator.cc rcpgenerator.hh \
729 threadname.hh threadname.cc \
732 dnstcpbench_LDFLAGS = \
734 $(LIBCRYPTO_LDFLAGS) \
735 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
737 dnstcpbench_LDADD = \
739 $(BOOST_PROGRAM_OPTIONS_LIBS)
743 base64.cc base64.hh \
744 dnsname.cc dnsname.hh \
746 dnsparser.cc dnsparser.hh \
749 dnswriter.cc dnswriter.hh \
750 gss_context.cc gss_context.hh \
757 rcpgenerator.cc rcpgenerator.hh \
763 nsec3dig_LDADD = $(LIBCRYPTO_LIBS)
764 nsec3dig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
767 nsec3dig_SOURCES += pkcs11signers.cc pkcs11signers.hh
768 nsec3dig_LDADD += $(P11KIT1_LIBS)
772 nsec3dig_LDADD += $(GSS_LIBS)
777 base64.cc base64.hh \
778 dns_random_urandom.cc \
779 dnsname.cc dnsname.hh \
781 dnsparser.cc dnsparser.hh \
784 dnswriter.cc dnswriter.hh \
785 ednssubnet.cc ednssubnet.hh \
787 gss_context.cc gss_context.hh \
792 opensslsigners.cc opensslsigners.hh \
795 rcpgenerator.cc rcpgenerator.hh \
805 validate.cc validate.hh
808 toysdig_LDFLAGS = $(AM_LDFLAGS) \
810 toysdig_LDADD = $(LIBCRYPTO_LIBS)
813 toysdig_LDADD += $(GSS_LIBS)
817 toysdig_SOURCES += pkcs11signers.cc pkcs11signers.hh
818 toysdig_LDADD += $(P11KIT1_LIBS)
821 tsig_tests_SOURCES = \
824 base64.cc base64.hh \
827 dns_random_urandom.cc dns_random.hh \
829 dnsname.cc dnsname.hh \
830 dnsparser.cc dnsparser.hh \
833 dnswriter.cc dnswriter.hh \
834 gss_context.cc gss_context.hh \
839 rcpgenerator.cc rcpgenerator.hh \
845 tsigverifier.cc tsigverifier.hh \
848 tsig_tests_LDADD = $(LIBCRYPTO_LIBS)
849 tsig_tests_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
852 tsig_tests_SOURCES += pkcs11signers.cc pkcs11signers.hh
853 tsig_tests_LDADD += $(P11KIT1_LIBS)
857 tsig_tests_LDADD += $(GSS_LIBS)
860 speedtest_SOURCES = \
862 base64.cc base64.hh \
864 dnsname.cc dnsname.hh \
865 dnsparser.cc dnsparser.hh \
867 dnswriter.cc dnswriter.hh \
872 rcpgenerator.cc rcpgenerator.hh \
878 speedtest_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
879 speedtest_LDADD = $(LIBCRYPTO_LIBS) \
882 dnswasher_SOURCES = \
884 dnsname.hh dnsname.cc \
886 dnspcap.cc dnspcap.hh \
896 dnsbulktest_SOURCES = \
901 dnsname.cc dnsname.hh \
914 dnsbulktest_LDFLAGS = \
916 $(LIBCRYPTO_LDFLAGS) \
917 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
919 dnsbulktest_LDADD = \
921 $(BOOST_PROGRAM_OPTIONS_LIBS)
929 dnsname.cc dnsname.hh \
941 zoneparser-tng.cc zoneparser-tng.hh
945 $(LIBCRYPTO_LDFLAGS) \
946 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
950 $(BOOST_PROGRAM_OPTIONS_LIBS)
956 base64.cc base64.hh \
958 dnsname.cc dnsname.hh \
959 dnsparser.cc dnsparser.hh \
960 dnspcap.cc dnspcap.hh \
963 dnswriter.cc dnswriter.hh \
968 rcpgenerator.cc rcpgenerator.hh \
978 dnsscan_LDADD = $(LIBCRYPTO_LIBS)
980 dnsreplay_SOURCES = \
983 base64.cc base64.hh \
985 dnsname.cc dnsname.hh \
986 dnsparser.cc dnsparser.hh \
987 dnspcap.cc dnspcap.hh \
990 dnswriter.cc dnswriter.hh \
991 ednsoptions.cc ednsoptions.hh \
992 ednssubnet.cc ednssubnet.hh \
998 rcpgenerator.cc rcpgenerator.hh \
1004 dnsreplay_LDFLAGS = \
1006 $(LIBCRYPTO_LDFLAGS) \
1007 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1011 $(BOOST_PROGRAM_OPTIONS_LIBS)
1015 base64.cc base64.hh \
1017 dnsname.cc dnsname.hh \
1018 dnsparser.cc dnsparser.hh \
1020 dnswriter.cc dnswriter.hh \
1028 rcpgenerator.cc rcpgenerator.hh \
1035 $(LIBCRYPTO_LDFLAGS) \
1036 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1040 $(BOOST_PROGRAM_OPTIONS_LIBS)
1042 pdns_notify_SOURCES = \
1045 base64.cc base64.hh \
1048 dnsname.cc dnsname.hh \
1049 dnsparser.cc dnsparser.hh \
1051 dnswriter.cc dnswriter.hh \
1058 rcpgenerator.cc rcpgenerator.hh \
1064 pdns_notify_LDFLAGS = \
1066 $(LIBCRYPTO_LDFLAGS) \
1067 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1069 pdns_notify_LDADD = \
1071 $(BOOST_PROGRAM_OPTIONS_LIBS)
1074 pdns_notify_LDADD += $(LIBSODIUM_LIBS)
1077 dnsscope_SOURCES = \
1080 base64.cc base64.hh \
1083 dnsname.cc dnsname.hh \
1084 dnsparser.cc dnsparser.hh \
1085 dnspcap.cc dnspcap.hh \
1088 dnswriter.cc dnswriter.hh \
1094 rcpgenerator.cc rcpgenerator.hh \
1097 statnode.cc statnode.hh \
1101 dnsscope_LDFLAGS = \
1103 $(LIBCRYPTO_LDFLAGS) \
1104 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1108 $(BOOST_PROGRAM_OPTIONS_LIBS)
1112 base64.cc base64.hh \
1115 dnsname.cc dnsname.hh \
1116 dnsparser.cc dnsparser.hh \
1117 dnspcap.cc dnspcap.hh \
1119 dnswriter.cc dnswriter.hh \
1124 rcpgenerator.cc rcpgenerator.hh \
1132 $(LIBCRYPTO_LDFLAGS)
1137 dnsdemog_SOURCES = \
1139 base64.cc base64.hh \
1142 dnsname.cc dnsname.hh \
1143 dnsparser.cc dnsparser.hh \
1144 dnspcap.cc dnspcap.hh \
1146 dnswriter.cc dnswriter.hh \
1151 rcpgenerator.cc rcpgenerator.hh \
1157 dnsdemog_LDFLAGS = \
1159 $(LIBCRYPTO_LDFLAGS)
1164 dnspcap2calidns_SOURCES = \
1166 base64.cc base64.hh \
1168 dnsname.cc dnsname.hh \
1169 dnsparser.cc dnsparser.hh \
1170 dnspcap.cc dnspcap.hh \
1171 dnspcap2calidns.cc \
1173 dnswriter.cc dnswriter.hh \
1174 ednsoptions.cc ednsoptions.hh \
1175 ednssubnet.cc ednssubnet.hh \
1181 rcpgenerator.cc rcpgenerator.hh \
1187 dnspcap2calidns_LDFLAGS = \
1189 $(LIBCRYPTO_LDFLAGS) \
1190 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1192 dnspcap2calidns_LDADD = \
1194 $(BOOST_PROGRAM_OPTIONS_LIBS)
1198 bin_PROGRAMS += dnspcap2protobuf
1200 dnsmessage.pb.cc: dnsmessage.proto
1201 $(AM_V_GEN)$(PROTOC) --cpp_out=./ $<
1203 BUILT_SOURCES += dnsmessage.pb.cc
1204 dnspcap2protobuf.$(OBJEXT): dnsmessage.pb.cc
1206 dnspcap2protobuf_SOURCES = \
1208 base64.cc base64.hh \
1210 dnsname.cc dnsname.hh \
1211 dnsparser.cc dnsparser.hh \
1212 dnspcap.cc dnspcap.hh \
1213 dnspcap2protobuf.cc \
1215 dnswriter.cc dnswriter.hh \
1216 gettime.cc gettime.hh \
1221 protobuf.cc protobuf.hh \
1223 rcpgenerator.cc rcpgenerator.hh \
1228 uuid-utils.hh uuid-utils.cc
1230 nodist_dnspcap2protobuf_SOURCES=dnsmessage.pb.cc dnsmessage.pb.h
1232 dnspcap2protobuf_LDFLAGS = \
1234 $(LIBCRYPTO_LDFLAGS) \
1235 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1237 dnspcap2protobuf_LDADD = \
1240 $(BOOST_PROGRAM_OPTIONS_LIBS) \
1245 pdns.conf-dist: pdns_server
1246 $(AM_V_GEN)./pdns_server --no-config --config 2>/dev/null > $@
1248 testrunner_SOURCES = \
1250 auth-caches.cc auth-caches.hh \
1251 auth-packetcache.cc auth-packetcache.hh \
1252 auth-querycache.cc auth-querycache.hh \
1265 dnsparser.hh dnsparser.cc \
1270 ednsoptions.cc ednsoptions.hh \
1271 ednscookies.cc ednscookies.hh \
1273 gettime.cc gettime.hh \
1274 gss_context.cc gss_context.hh \
1278 lua-auth4.hh lua-auth4.cc \
1279 lua-base4.hh lua-base4.cc \
1280 stubresolver.hh stubresolver.cc \
1284 opensslsigners.cc opensslsigners.hh \
1288 responsestats-auth.cc \
1291 test-arguments_cc.cc \
1294 test-bindparser_cc.cc \
1296 test-dnsrecordcontent.cc \
1297 test-digests_hh.cc \
1298 test-distributor_hh.cc \
1299 test-dns_random_hh.cc \
1300 test-dnsname_cc.cc \
1301 test-dnsparser_cc.cc \
1302 test-dnsparser_hh.cc \
1303 test-dnsrecords_cc.cc \
1304 test-iputils_hh.cc \
1307 test-lua_auth4_cc.cc \
1309 test-nameserver_cc.cc \
1310 test-packetcache_cc.cc \
1311 test-packetcache_hh.cc \
1312 test-rcpgenerator_cc.cc \
1315 test-statbag_cc.cc \
1317 test-zoneparser_tng_cc.cc \
1319 threadname.hh threadname.cc \
1320 tsigverifier.cc tsigverifier.hh \
1323 zoneparser-tng.cc zoneparser-tng.hh
1325 testrunner_LDFLAGS = \
1327 $(LIBCRYPTO_LDFLAGS) \
1328 $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS)
1330 testrunner_LDADD = \
1332 $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \
1338 testrunner_SOURCES += pkcs11signers.cc pkcs11signers.hh
1339 testrunner_LDADD += $(P11KIT1_LIBS)
1343 testrunner_SOURCES += sodiumsigners.cc
1344 testrunner_LDADD += $(LIBSODIUM_LIBS)
1348 testrunner_SOURCES += decafsigners.cc
1349 testrunner_LDADD += $(LIBDECAF_LIBS)
1352 pdns_control_SOURCES = \
1366 if HAVE_BOOST_GE_148
1367 TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message SRCDIR='$(srcdir)'
1371 @echo "Unit tests disabled, boost is too old"
1376 @echo "Unit tests are not enabled"
1377 @echo "Run ./configure --enable-unit-tests"
1382 LIB_FUZZING_ENGINE ?= standalone_fuzz_target_runner.o
1384 standalone_fuzz_target_runner.o: standalone_fuzz_target_runner.cc
1386 fuzz_targets_programs = \
1387 fuzz_target_dnsdistcache \
1388 fuzz_target_moadnsparser \
1389 fuzz_target_packetcache \
1390 fuzz_target_zoneparsertng
1392 fuzz_targets: $(fuzz_targets_programs)
1395 $(fuzz_targets_programs)
1397 fuzz_targets_libs = \
1399 $(LIB_FUZZING_ENGINE)
1400 fuzz_targets_ldflags = \
1403 $(LIBCRYPTO_LDFLAGS) \
1406 # we need the mockup runner to be built, but not linked if a real fuzzing engine is used
1407 fuzz_targets_deps = standalone_fuzz_target_runner.o
1409 fuzz_target_moadnsparser_SOURCES = \
1410 fuzz_moadnsparser.cc \
1411 base32.cc base32.hh \
1412 base64.cc base64.hh \
1414 dnsname.cc dnsname.hh \
1415 dnsparser.cc dnsparser.hh \
1416 dnsrecords.cc dnsrecords.hh \
1417 dnswriter.cc dnswriter.hh \
1418 logger.cc logger.hh \
1422 rcpgenerator.cc rcpgenerator.hh \
1424 statbag.cc statbag.hh \
1428 fuzz_target_moadnsparser_DEPENDENCIES = $(fuzz_targets_deps)
1429 fuzz_target_moadnsparser_LDFLAGS = $(fuzz_targets_ldflags)
1430 fuzz_target_moadnsparser_LDADD = $(fuzz_targets_libs)
1432 fuzz_target_packetcache_SOURCES = \
1433 fuzz_packetcache.cc \
1435 dnsname.cc dnsname.hh \
1436 ednsoptions.cc ednsoptions.hh \
1439 statbag.cc statbag.hh
1441 fuzz_target_packetcache_DEPENDENCIES = $(fuzz_targets_deps)
1442 fuzz_target_packetcache_LDFLAGS = $(fuzz_targets_ldflags)
1443 fuzz_target_packetcache_LDADD = $(fuzz_targets_libs)
1445 fuzz_target_dnsdistcache_SOURCES = \
1446 fuzz_dnsdistcache.cc \
1447 dnsdist-cache.cc dnsdist-cache.hh \
1448 dnsdist-ecs.cc dnsdist-ecs.hh \
1450 dnsname.cc dnsname.hh \
1451 dnsparser.cc dnsparser.hh \
1452 dnswriter.cc dnswriter.hh \
1453 ednsoptions.cc ednsoptions.hh \
1454 ednssubnet.cc ednssubnet.hh \
1455 iputils.cc iputils.hh \
1460 fuzz_target_dnsdistcache_DEPENDENCIES = $(fuzz_targets_deps)
1461 fuzz_target_dnsdistcache_LDFLAGS = $(fuzz_targets_ldflags)
1462 fuzz_target_dnsdistcache_LDADD = $(fuzz_targets_libs)
1464 fuzz_target_zoneparsertng_SOURCES = \
1465 fuzz_zoneparsertng.cc \
1466 base32.cc base32.hh \
1467 base64.cc base64.hh \
1469 dnsname.cc dnsname.hh \
1470 dnsparser.cc dnsparser.hh \
1471 dnsrecords.cc dnsrecords.hh \
1472 dnswriter.cc dnswriter.hh \
1473 logger.cc logger.hh \
1477 rcpgenerator.cc rcpgenerator.hh \
1479 statbag.cc statbag.hh \
1482 zoneparser-tng.cc zoneparser-tng.hh
1484 fuzz_target_zoneparsertng_DEPENDENCIES = $(fuzz_targets_deps)
1485 fuzz_target_zoneparsertng_LDFLAGS = $(fuzz_targets_ldflags)
1486 fuzz_target_zoneparsertng_LDADD = $(fuzz_targets_libs)
1490 dnslabeltext.cc: dnslabeltext.rl
1491 $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc
1493 bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql
1494 ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g' ; echo ';' ) > $@
1496 # for bindparser.h/hh
1500 bindlexer.$(OBJEXT): bindparser.h
1502 curl_verbose = $(curl_verbose_$(V))
1503 curl_verbose_ = $(curl_verbose_$(AM_DEFAULT_VERBOSITY))
1504 curl_verbose_0 = @echo " CURL " $@;
1505 $(srcdir)/effective_tld_names.dat:
1506 $(curl_verbose)if ! curl -s -S https://publicsuffix.org/list/public_suffix_list.dat > $@; then rm -f $@; exit 1; fi
1508 pubsuffix.cc: $(srcdir)/effective_tld_names.dat
1509 $(AM_V_GEN)./mkpubsuffixcc
1511 pdns_recursor rec_control:
1512 @echo "Please build the recursor from the recursordist/ dir"
1516 @echo "Please build dnsdist from the dnsdistdist/ dir"
1520 pdns.service: pdns.service.in
1521 $(AM_V_GEN)sed -e 's![@]sbindir[@]!$(sbindir)!' < $< > $@
1522 if !HAVE_SYSTEMD_LOCK_PERSONALITY
1523 $(AM_V_GEN)perl -ni -e 'print unless /^LockPersonality/' $@
1525 if !HAVE_SYSTEMD_PRIVATE_DEVICES
1526 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateDevices/' $@
1528 if !HAVE_SYSTEMD_PRIVATE_TMP
1529 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateTmp/' $@
1531 if !HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS
1532 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectControlGroups/' $@
1534 if !HAVE_SYSTEMD_PROTECT_HOME
1535 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectHome/' $@
1537 if !HAVE_SYSTEMD_PROTECT_KERNEL_MODULES
1538 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelModules/' $@
1540 if !HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES
1541 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelTunables/' $@
1543 if !HAVE_SYSTEMD_PROTECT_SYSTEM
1544 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectSystem/' $@
1546 if !HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES
1547 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictAddressFamilies/' $@
1549 if !HAVE_SYSTEMD_RESTRICT_NAMESPACES
1550 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictNamespaces/' $@
1552 if !HAVE_SYSTEMD_RESTRICT_REALTIME
1553 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictRealtime/' $@
1555 if !HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES
1556 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallArchitectures/' $@
1558 if !HAVE_SYSTEMD_SYSTEM_CALL_FILTER
1559 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallFilter/' $@
1562 pdns@.service: pdns.service
1563 $(AM_V_GEN)sed -e 's!/pdns_server!& --config-name=%i!' \
1564 -e 's!Authoritative Server!& %i!' \
1567 systemdsystemunitdir = $(SYSTEMD_DIR)
1569 systemdsystemunit_DATA = \
1578 ixfrdist.service: ixfrdist.service.in
1579 $(AM_V_GEN)sed -e 's![@]bindir[@]!$(bindir)!' < $< > $@
1581 ixfrdist@.service: ixfrdist.service
1582 $(AM_V_GEN)sed -e 's!/ixfrdist!& --config $(sysconfdir)/ixfrdist-%i.yml!' \
1585 systemdsystemunit_DATA += \
1594 endif # HAVE_SYSTEMD