]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/Makefile.am
Merge pull request #7644 from zeha/remotebackend-test-soa
[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 $(YAML_CFLAGS)
10
11 AM_CXXFLAGS = \
12 -DSYSCONFDIR=\"$(sysconfdir)\" \
13 -DPKGLIBDIR=\"$(pkglibdir)\" \
14 -DLOCALSTATEDIR=\"$(socketdir)\"
15
16 AM_LDFLAGS = \
17 $(PROGRAM_LDFLAGS) \
18 $(THREADFLAGS)
19
20 AM_LFLAGS = -i
21 AM_YFLAGS = -d --verbose --debug
22
23 if PKCS11
24 AM_CPPFLAGS += $(P11KIT1_CFLAGS)
25 endif
26
27 if SQLITE3
28 AM_CPPFLAGS += $(SQLITE3_CFLAGS)
29 endif
30
31 if LUA
32 AM_CPPFLAGS +=$(LUA_CFLAGS)
33 endif
34
35 if GSS_TSIG
36 AM_CPPFLAGS +=$(GSS_CFLAGS)
37 endif
38
39 if LIBSODIUM
40 AM_CPPFLAGS +=$(LIBSODIUM_CFLAGS)
41 endif
42
43 EXTRA_DIST = \
44 dnslabeltext.rl \
45 dnslabeltext.cc \
46 dnsmessage.proto \
47 effective_tld_names.dat \
48 mtasker.cc \
49 inflighter.cc \
50 bind-dnssec.schema.sqlite3.sql \
51 bindparser.h \
52 named.conf.parsertest \
53 pdns.service.in \
54 ixfrdist.service.in \
55 ixfrdist.example.yml \
56 lua-record.cc \
57 minicurl.cc \
58 minicurl.hh
59
60 BUILT_SOURCES = \
61 bind-dnssec.schema.sqlite3.sql.h \
62 bindparser.h \
63 dnslabeltext.cc
64
65 CLEANFILES = \
66 *.gcda \
67 *.gcno \
68 *.gcov \
69 backends/gsql/gsqlbackend.gcda \
70 backends/gsql/gsqlbackend.gcno \
71 backends/gsql/gsqlbackend.gcov \
72 dnsmessage.pb.cc dnsmessage.pb.h \
73 pdns.conf-dist
74
75 noinst_SCRIPTS = pdns.init
76 sysconf_DATA = pdns.conf-dist
77
78 sbin_PROGRAMS = pdns_server
79 bin_PROGRAMS = \
80 pdns_control \
81 pdnsutil \
82 zone2sql \
83 zone2json
84
85 if TOOLS
86 bin_PROGRAMS += \
87 dnsgram \
88 dnspcap2calidns \
89 dnsreplay \
90 dnsscan \
91 dnsscope \
92 dnswasher \
93 dumresp \
94 pdns_notify \
95 nproxy \
96 nsec3dig \
97 saxfr \
98 stubquery \
99 ixplore \
100 sdig
101
102 if HAVE_RECVMMSG
103 bin_PROGRAMS += calidns
104 endif
105
106 if HAVE_BOOST_GE_148
107 bin_PROGRAMS += \
108 dnsbulktest \
109 dnstcpbench
110 endif
111
112 endif # TOOLS
113
114 if IXFRDIST
115 bin_PROGRAMS += \
116 ixfrdist
117
118 sysconf_DATA += \
119 ixfrdist.example.yml
120 endif
121
122 EXTRA_PROGRAMS = \
123 calidns \
124 comfun \
125 dnsbulktest \
126 dnsdemog \
127 dnsgram \
128 dnspcap2calidns \
129 dnsreplay \
130 dnsscan \
131 dnsscope \
132 dnstcpbench \
133 dnswasher \
134 dumresp \
135 kvresp \
136 ixplore \
137 ixfrdist \
138 pdns_notify \
139 nproxy \
140 nsec3dig \
141 saxfr \
142 stubquery \
143 sdig \
144 speedtest \
145 testrunner \
146 toysdig \
147 tsig-tests \
148 zone2ldap
149
150 pdns_server_SOURCES = \
151 arguments.cc arguments.hh \
152 ascii.hh \
153 auth-carbon.cc \
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 \
162 bindlexer.l \
163 bindparser.cc \
164 cachecleaner.hh \
165 comment.hh \
166 common_startup.cc common_startup.hh \
167 communicator.cc communicator.hh \
168 dbdnsseckeeper.cc \
169 digests.hh \
170 distributor.hh \
171 dns.cc dns.hh \
172 dns_random.cc dns_random.hh \
173 dnsbackend.cc dnsbackend.hh \
174 dnslabeltext.cc \
175 dnsname.cc dnsname.hh \
176 dnspacket.cc dnspacket.hh \
177 dnsparser.cc \
178 dnsproxy.cc dnsproxy.hh \
179 dnsrecords.cc dnsrecords.hh \
180 dnssecinfra.cc dnssecinfra.hh \
181 dnsseckeeper.hh \
182 dnssecsigner.cc \
183 dnswriter.cc \
184 dynhandler.cc dynhandler.hh \
185 dynlistener.cc dynlistener.hh \
186 dynmessenger.hh \
187 ednsoptions.cc ednsoptions.hh \
188 ednssubnet.cc ednssubnet.hh \
189 gss_context.cc gss_context.hh \
190 iputils.cc iputils.hh \
191 ixfr.cc ixfr.hh \
192 json.cc json.hh \
193 lock.hh \
194 logger.cc logger.hh \
195 lua-base4.cc lua-base4.hh \
196 lua-auth4.cc lua-auth4.hh \
197 mastercommunicator.cc \
198 misc.cc misc.hh \
199 nameserver.cc nameserver.hh \
200 namespaces.hh \
201 nsecrecords.cc \
202 opensslsigners.cc opensslsigners.hh \
203 packetcache.hh \
204 packethandler.cc packethandler.hh \
205 pdnsexception.hh \
206 qtype.cc qtype.hh \
207 rcpgenerator.cc \
208 receiver.cc \
209 resolver.cc resolver.hh \
210 responsestats.cc responsestats.hh responsestats-auth.cc \
211 rfc2136handler.cc \
212 secpoll-auth.cc secpoll-auth.hh \
213 serialtweaker.cc \
214 sha.hh \
215 signingpipe.cc signingpipe.hh \
216 sillyrecords.cc \
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 \
224 tkey.cc \
225 ueberbackend.cc ueberbackend.hh \
226 uuid-utils.hh uuid-utils.cc \
227 unix_semaphore.cc \
228 unix_utility.cc \
229 utility.hh \
230 version.cc version.hh \
231 webserver.cc webserver.hh \
232 ws-api.cc ws-api.hh \
233 ws-auth.cc ws-auth.hh \
234 zoneparser-tng.cc
235
236 pdns_server_LDFLAGS = \
237 $(AM_LDFLAGS) \
238 $(DYNLINKFLAGS) \
239 $(LIBCRYPTO_LDFLAGS)
240
241 EXTRA_pdns_server_DEPENDENCIES = @moduleobjects@
242 pdns_server_LDADD = \
243 @moduleobjects@ \
244 @modulelibs@ \
245 $(LIBDL) \
246 $(YAHTTP_LIBS) \
247 $(JSON11_LIBS) \
248 $(LIBCRYPTO_LIBS) \
249 $(SYSTEMD_LIBS)
250
251 if HAVE_LUA_RECORDS
252 pdns_server_SOURCES += lua-record.cc minicurl.cc minicurl.hh
253 pdns_server_LDADD += $(LIBCURL)
254 endif
255
256 if LIBSODIUM
257 pdns_server_SOURCES += sodiumsigners.cc
258 pdns_server_LDADD += $(LIBSODIUM_LIBS)
259 endif
260
261 if LIBDECAF
262 pdns_server_SOURCES += decafsigners.cc
263 pdns_server_LDADD += $(LIBDECAF_LIBS)
264 endif
265
266 if SQLITE3
267 pdns_server_SOURCES += ssqlite3.cc ssqlite3.hh
268 pdns_server_LDADD += $(SQLITE3_LIBS)
269 endif
270
271 if ORACLE
272 pdns_server_LDADD += $(ORACLE_LIBS)
273 endif
274
275 if PKCS11
276 pdns_server_SOURCES += pkcs11signers.cc pkcs11signers.hh
277 pdns_server_LDADD += $(P11KIT1_LIBS)
278 endif
279
280 if LUA
281 pdns_server_LDADD += $(LUA_LIBS)
282 endif
283
284 if GSS_TSIG
285 pdns_server_LDADD += $(GSS_LIBS)
286 endif
287
288 pdnsutil_SOURCES = \
289 arguments.cc \
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 \
295 base32.cc \
296 base64.cc base64.hh \
297 bindlexer.l \
298 bindparser.yy \
299 cachecleaner.hh \
300 dbdnsseckeeper.cc \
301 dnsbackend.cc \
302 dns.cc \
303 dnslabeltext.cc \
304 dnsname.cc dnsname.hh \
305 dnspacket.cc \
306 dnsparser.cc dnsparser.hh \
307 dns_random.cc \
308 dnsrecords.cc \
309 dnssecinfra.cc dnssecinfra.hh \
310 dnssecsigner.cc \
311 dnswriter.cc dnswriter.hh \
312 dynlistener.cc \
313 ednsoptions.cc ednsoptions.hh \
314 ednssubnet.cc \
315 gss_context.cc gss_context.hh \
316 ipcipher.cc ipcipher.hh \
317 iputils.cc iputils.hh \
318 json.cc \
319 logger.cc \
320 lua-auth4.cc lua-auth4.hh \
321 lua-base4.cc lua-base4.hh \
322 misc.cc misc.hh \
323 nsecrecords.cc \
324 opensslsigners.cc opensslsigners.hh \
325 pdnsutil.cc \
326 qtype.cc \
327 rcpgenerator.cc rcpgenerator.hh \
328 serialtweaker.cc \
329 signingpipe.cc \
330 sillyrecords.cc \
331 sstuff.hh \
332 statbag.cc \
333 stubresolver.cc stubresolver.hh \
334 threadname.hh threadname.cc \
335 tsigutils.hh tsigutils.cc \
336 ueberbackend.cc \
337 unix_utility.cc \
338 zoneparser-tng.cc
339
340 pdnsutil_LDFLAGS = \
341 $(AM_LDFLAGS) \
342 $(DYNLINKFLAGS) \
343 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
344 $(LIBCRYPTO_LDFLAGS)
345
346 EXTRA_pdnsutil_DEPENDENCIES = @moduleobjects@
347 pdnsutil_LDADD = \
348 @moduleobjects@ \
349 @modulelibs@ \
350 $(YAHTTP_LIBS) \
351 $(JSON11_LIBS) \
352 $(LIBDL) \
353 $(BOOST_PROGRAM_OPTIONS_LIBS) \
354 $(LIBCRYPTO_LIBS) \
355 $(IPCRYPT_LIBS)
356
357 if LIBSODIUM
358 pdnsutil_SOURCES += sodiumsigners.cc
359 pdnsutil_LDADD += $(LIBSODIUM_LIBS)
360 endif
361
362 if LIBDECAF
363 pdnsutil_SOURCES += decafsigners.cc
364 pdnsutil_LDADD += $(LIBDECAF_LIBS)
365 endif
366
367 if SQLITE3
368 pdnsutil_SOURCES += ssqlite3.cc ssqlite3.hh
369 pdnsutil_LDADD += $(SQLITE3_LIBS)
370 endif
371
372 if ORACLE
373 pdnsutil_LDADD += $(ORACLE_LIBS)
374 endif
375
376 if PKCS11
377 pdnsutil_SOURCES += pkcs11signers.cc pkcs11signers.hh
378 pdnsutil_LDADD += $(P11KIT1_LIBS)
379 endif
380
381 if LUA
382 pdnsutil_LDADD += $(LUA_LIBS)
383 endif
384
385 if GSS_TSIG
386 pdnsutil_LDADD += $(GSS_LIBS)
387 endif
388
389 zone2sql_SOURCES = \
390 arguments.cc \
391 base32.cc \
392 base64.cc \
393 bind-dnssec.schema.sqlite3.sql.h \
394 bindlexer.l \
395 bindparser.yy \
396 bindparserclasses.hh \
397 dns.cc \
398 dns_random_urandom.cc \
399 dnsname.cc dnsname.hh \
400 dnslabeltext.cc \
401 dnsparser.cc \
402 dnsrecords.cc \
403 dnswriter.cc \
404 json.cc json.hh \
405 logger.cc \
406 misc.cc \
407 nsecrecords.cc \
408 qtype.cc \
409 rcpgenerator.cc \
410 sillyrecords.cc \
411 statbag.cc \
412 unix_utility.cc \
413 zone2sql.cc \
414 zoneparser-tng.cc
415
416 zone2sql_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
417 zone2sql_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
418
419 zone2json_SOURCES = \
420 arguments.cc \
421 base32.cc \
422 base64.cc \
423 bind-dnssec.schema.sqlite3.sql.h \
424 bindlexer.l \
425 bindparser.yy \
426 bindparserclasses.hh \
427 dnslabeltext.cc \
428 dnsname.cc dnsname.hh \
429 dnsparser.cc \
430 dnsrecords.cc \
431 dnswriter.cc \
432 logger.cc \
433 misc.cc \
434 nsecrecords.cc \
435 qtype.cc \
436 rcpgenerator.cc \
437 sillyrecords.cc \
438 statbag.cc \
439 unix_utility.cc \
440 zone2json.cc \
441 zoneparser-tng.cc
442
443 zone2json_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
444 zone2json_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
445
446 # pkglib_LTLIBRARIES = iputils.la
447 # iputils_la_SOURCES = lua-iputils.cc
448 # iputils_la_LDFLAGS= -module -avoid-version
449
450 if LDAP
451 bin_PROGRAMS += zone2ldap
452 endif
453
454 zone2ldap_SOURCES = \
455 arguments.cc \
456 base32.cc \
457 base64.cc \
458 bind-dnssec.schema.sqlite3.sql.h \
459 bindlexer.l \
460 bindparser.yy \
461 bindparserclasses.hh \
462 dns_random_urandom.cc \
463 dnsname.cc dnsname.hh \
464 dnslabeltext.cc \
465 dnsparser.cc \
466 dnsrecords.cc \
467 dnswriter.cc \
468 logger.cc \
469 misc.cc \
470 nsecrecords.cc \
471 qtype.cc \
472 rcpgenerator.cc \
473 sillyrecords.cc \
474 statbag.cc \
475 unix_utility.cc \
476 zone2ldap.cc \
477 zoneparser-tng.cc
478
479 zone2ldap_LDADD = $(LIBCRYPTO_LIBS)
480 zone2ldap_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
481
482 sdig_SOURCES = \
483 base32.cc \
484 base64.cc base64.hh \
485 dns.cc \
486 dnslabeltext.cc \
487 dnsname.cc dnsname.hh \
488 dnsparser.cc dnsparser.hh \
489 dnsrecords.cc \
490 dnswriter.cc dnswriter.hh \
491 ednssubnet.cc iputils.cc \
492 logger.cc \
493 misc.cc misc.hh \
494 nsecrecords.cc \
495 qtype.cc \
496 rcpgenerator.cc rcpgenerator.hh \
497 sdig.cc \
498 sillyrecords.cc \
499 sstuff.hh \
500 statbag.cc \
501 unix_utility.cc
502
503 sdig_LDADD = $(LIBCRYPTO_LIBS)
504 sdig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
505
506 calidns_SOURCES = \
507 base32.cc \
508 base64.cc base64.hh \
509 calidns.cc \
510 dns_random_urandom.cc dns_random.hh \
511 dnslabeltext.cc \
512 dnsname.cc dnsname.hh \
513 dnsparser.cc dnsparser.hh \
514 dnsrecords.cc \
515 dnswriter.cc dnswriter.hh \
516 ednsoptions.cc ednsoptions.hh \
517 ednssubnet.cc ednssubnet.hh \
518 iputils.cc \
519 logger.cc \
520 misc.cc misc.hh \
521 nsecrecords.cc \
522 qtype.cc \
523 rcpgenerator.cc rcpgenerator.hh \
524 sillyrecords.cc \
525 sstuff.hh \
526 statbag.cc \
527 unix_utility.cc
528
529 calidns_LDADD = $(LIBCRYPTO_LIBS) \
530 $(BOOST_PROGRAM_OPTIONS_LIBS)
531 calidns_LDFLAGS = $(AM_LDFLAGS) $(THREADFLAGS) $(LIBCRYPTO_LDFLAGS) \
532 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
533
534 dumresp_SOURCES = \
535 dnslabeltext.cc \
536 dnsname.cc dnsname.hh \
537 dumresp.cc \
538 logger.cc \
539 misc.cc misc.hh \
540 statbag.cc \
541 unix_utility.cc \
542 qtype.cc
543
544 kvresp_SOURCES = \
545 dnslabeltext.cc dnsname.cc dnsname.hh \
546 kvresp.cc \
547 logger.cc \
548 misc.cc misc.hh \
549 statbag.cc \
550 unix_utility.cc \
551 qtype.cc
552
553 stubquery_SOURCES = \
554 arguments.cc arguments.hh \
555 base32.cc \
556 base64.cc \
557 dns_random_urandom.cc \
558 dnslabeltext.cc \
559 dnsname.cc \
560 dnsparser.cc \
561 dnsrecords.cc \
562 dnswriter.cc \
563 iputils.cc \
564 logger.cc \
565 misc.cc \
566 nsecrecords.cc \
567 qtype.cc \
568 rcpgenerator.cc \
569 sillyrecords.cc \
570 statbag.cc \
571 stubresolver.cc stubresolver.hh \
572 stubquery.cc \
573 unix_utility.cc
574
575 stubquery_LDADD = $(LIBCRYPTO_LIBS)
576 stubquery_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
577
578 saxfr_SOURCES = \
579 base32.cc \
580 base64.cc base64.hh \
581 dns_random_urandom.cc dns_random.hh \
582 dnslabeltext.cc \
583 dnsname.cc dnsname.hh \
584 dnsparser.cc dnsparser.hh \
585 dnsrecords.cc \
586 dnssecinfra.cc \
587 dnswriter.cc dnswriter.hh \
588 gss_context.cc gss_context.hh \
589 iputils.cc \
590 logger.cc \
591 misc.cc misc.hh \
592 nsecrecords.cc \
593 qtype.cc \
594 rcpgenerator.cc rcpgenerator.hh \
595 saxfr.cc \
596 sillyrecords.cc \
597 sstuff.hh \
598 statbag.cc \
599 unix_utility.cc
600
601 saxfr_LDADD = $(LIBCRYPTO_LIBS)
602 saxfr_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
603
604 if PKCS11
605 saxfr_SOURCES += pkcs11signers.cc pkcs11signers.hh
606 saxfr_LDADD += $(P11KIT1_LIBS)
607 endif
608
609 if GSS_TSIG
610 saxfr_LDADD += $(GSS_LIBS)
611 endif
612
613 ixfrdist_SOURCES = \
614 arguments.cc \
615 base32.cc \
616 base64.cc base64.hh \
617 dns.cc \
618 dns_random_urandom.cc dns_random.hh \
619 dnslabeltext.cc \
620 dnsname.cc dnsname.hh \
621 dnsparser.cc dnsparser.hh \
622 dnsrecords.cc \
623 dnssecinfra.cc \
624 dnswriter.cc dnswriter.hh \
625 gss_context.cc gss_context.hh \
626 iputils.hh iputils.cc \
627 ixfr.cc ixfr.hh \
628 ixfrdist.cc \
629 ixfrutils.cc ixfrutils.hh \
630 ixfrdist-stats.hh ixfrdist-stats.cc \
631 ixfrdist-web.hh ixfrdist-web.cc \
632 logger.cc logger.hh\
633 misc.cc misc.hh \
634 mplexer.hh \
635 nsecrecords.cc \
636 qtype.cc \
637 rcpgenerator.cc rcpgenerator.hh \
638 resolver.cc \
639 pollmplexer.cc \
640 sillyrecords.cc \
641 sstuff.hh \
642 statbag.cc \
643 threadname.hh threadname.cc \
644 tsigverifier.cc tsigverifier.hh \
645 unix_utility.cc \
646 uuid-utils.hh uuid-utils.cc \
647 webserver.hh webserver.cc \
648 zoneparser-tng.cc
649
650
651 ixfrdist_LDADD = \
652 $(BOOST_PROGRAM_OPTIONS_LIBS) \
653 $(JSON11_LIBS) \
654 $(LIBCRYPTO_LIBS) \
655 $(YAHTTP_LIBS) \
656 $(YAML_LIBS)
657
658 ixfrdist_LDFLAGS = \
659 $(AM_LDFLAGS) \
660 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
661 $(LIBCRYPTO_LDFLAGS)
662
663 if PKCS11
664 ixfrdist_SOURCES += pkcs11signers.cc pkcs11signers.hh
665 ixfrdist_LDADD += $(P11KIT1_LIBS)
666 endif
667
668 if GSS_TSIG
669 ixfrdist_LDADD += $(GSS_LIBS)
670 endif
671
672
673 ixplore_SOURCES = \
674 arguments.cc \
675 base32.cc \
676 base64.cc base64.hh \
677 dns.cc \
678 dns_random_urandom.cc dns_random.hh \
679 dnslabeltext.cc \
680 dnsname.cc dnsname.hh \
681 dnsparser.cc dnsparser.hh \
682 dnsrecords.cc \
683 dnssecinfra.cc \
684 dnswriter.cc dnswriter.hh \
685 gss_context.cc gss_context.hh \
686 iputils.cc \
687 logger.cc \
688 misc.cc misc.hh \
689 nsecrecords.cc \
690 qtype.cc \
691 rcpgenerator.cc rcpgenerator.hh \
692 resolver.cc \
693 ixfr.cc ixfr.hh \
694 ixfrutils.cc ixfrutils.hh \
695 ixplore.cc \
696 sillyrecords.cc \
697 sstuff.hh \
698 statbag.cc \
699 tsigverifier.cc tsigverifier.hh \
700 unix_utility.cc zoneparser-tng.cc
701
702 ixplore_LDADD = $(LIBCRYPTO_LIBS)
703 ixplore_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
704
705 if PKCS11
706 ixplore_SOURCES += pkcs11signers.cc pkcs11signers.hh
707 ixplore_LDADD += $(P11KIT1_LIBS)
708 endif
709
710 if GSS_TSIG
711 ixplore_LDADD += $(GSS_LIBS)
712 endif
713
714
715 dnstcpbench_SOURCES = \
716 base32.cc \
717 base64.cc base64.hh \
718 dnslabeltext.cc \
719 dnsname.cc dnsname.hh \
720 dnsparser.cc dnsparser.hh \
721 dnsrecords.cc \
722 dnstcpbench.cc \
723 dnswriter.cc dnswriter.hh \
724 iputils.cc \
725 logger.cc \
726 misc.cc misc.hh \
727 nsecrecords.cc \
728 qtype.cc \
729 rcpgenerator.cc rcpgenerator.hh \
730 sillyrecords.cc \
731 sstuff.hh \
732 statbag.cc \
733 threadname.hh threadname.cc \
734 unix_utility.cc
735
736 dnstcpbench_LDFLAGS = \
737 $(AM_LDFLAGS) \
738 $(LIBCRYPTO_LDFLAGS) \
739 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
740
741 dnstcpbench_LDADD = \
742 $(LIBCRYPTO_LIBS) \
743 $(BOOST_PROGRAM_OPTIONS_LIBS)
744
745 nsec3dig_SOURCES = \
746 base32.cc \
747 base64.cc base64.hh \
748 dnsname.cc dnsname.hh \
749 dnslabeltext.cc \
750 dnsparser.cc dnsparser.hh \
751 dnsrecords.cc \
752 dnssecinfra.cc \
753 dnswriter.cc dnswriter.hh \
754 gss_context.cc gss_context.hh \
755 iputils.cc \
756 logger.cc \
757 misc.cc misc.hh \
758 nsec3dig.cc \
759 nsecrecords.cc \
760 qtype.cc \
761 rcpgenerator.cc rcpgenerator.hh \
762 sillyrecords.cc \
763 sstuff.hh \
764 statbag.cc \
765 unix_utility.cc
766
767 nsec3dig_LDADD = $(LIBCRYPTO_LIBS)
768 nsec3dig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
769
770 if PKCS11
771 nsec3dig_SOURCES += pkcs11signers.cc pkcs11signers.hh
772 nsec3dig_LDADD += $(P11KIT1_LIBS)
773 endif
774
775 if GSS_TSIG
776 nsec3dig_LDADD += $(GSS_LIBS)
777 endif
778
779 toysdig_SOURCES = \
780 base32.cc \
781 base64.cc base64.hh \
782 dns_random_urandom.cc \
783 dnsname.cc dnsname.hh \
784 dnslabeltext.cc \
785 dnsparser.cc dnsparser.hh \
786 dnsrecords.cc \
787 dnssecinfra.cc \
788 dnswriter.cc dnswriter.hh \
789 ednssubnet.cc ednssubnet.hh \
790 filterpo.hh \
791 gss_context.cc gss_context.hh \
792 iputils.cc \
793 logger.cc \
794 misc.cc misc.hh \
795 nsecrecords.cc \
796 opensslsigners.cc opensslsigners.hh \
797 qtype.cc \
798 root-dnssec.hh \
799 rcpgenerator.cc rcpgenerator.hh \
800 rec-lua-conf.hh \
801 recursor_cache.hh \
802 sholder.hh \
803 sillyrecords.cc \
804 sortlist.hh \
805 sstuff.hh \
806 statbag.cc \
807 toysdig.cc \
808 unix_utility.cc \
809 validate.cc validate.hh
810
811
812 toysdig_LDFLAGS = $(AM_LDFLAGS) \
813 $(LIBCRYPTO_LDFLAGS)
814 toysdig_LDADD = $(LIBCRYPTO_LIBS)
815
816 if GSS_TSIG
817 toysdig_LDADD += $(GSS_LIBS)
818 endif
819
820 if PKCS11
821 toysdig_SOURCES += pkcs11signers.cc pkcs11signers.hh
822 toysdig_LDADD += $(P11KIT1_LIBS)
823 endif
824
825 tsig_tests_SOURCES = \
826 arguments.cc \
827 base32.cc \
828 base64.cc base64.hh \
829 digests.hh \
830 dns.cc \
831 dns_random_urandom.cc dns_random.hh \
832 dnslabeltext.cc \
833 dnsname.cc dnsname.hh \
834 dnsparser.cc dnsparser.hh \
835 dnsrecords.cc \
836 dnssecinfra.cc \
837 dnswriter.cc dnswriter.hh \
838 gss_context.cc gss_context.hh \
839 logger.cc \
840 misc.cc misc.hh \
841 nsecrecords.cc \
842 qtype.cc \
843 rcpgenerator.cc rcpgenerator.hh \
844 resolver.cc \
845 sillyrecords.cc \
846 sstuff.hh \
847 statbag.cc \
848 tsig-tests.cc \
849 tsigverifier.cc tsigverifier.hh \
850 unix_utility.cc
851
852 tsig_tests_LDADD = $(LIBCRYPTO_LIBS)
853 tsig_tests_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
854
855 if PKCS11
856 tsig_tests_SOURCES += pkcs11signers.cc pkcs11signers.hh
857 tsig_tests_LDADD += $(P11KIT1_LIBS)
858 endif
859
860 if GSS_TSIG
861 tsig_tests_LDADD += $(GSS_LIBS)
862 endif
863
864 speedtest_SOURCES = \
865 base32.cc \
866 base64.cc base64.hh \
867 dnslabeltext.cc \
868 dnsname.cc dnsname.hh \
869 dnsparser.cc dnsparser.hh \
870 dnsrecords.cc \
871 dnswriter.cc dnswriter.hh \
872 logger.cc \
873 misc.cc misc.hh \
874 nsecrecords.cc \
875 qtype.cc \
876 rcpgenerator.cc rcpgenerator.hh \
877 sillyrecords.cc \
878 speedtest.cc \
879 statbag.cc \
880 unix_utility.cc \
881 iputils.cc
882
883 speedtest_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
884 speedtest_LDADD = $(LIBCRYPTO_LIBS) \
885 $(RT_LIBS)
886
887 dnswasher_SOURCES = \
888 base64.cc \
889 dnslabeltext.cc \
890 dnsname.hh dnsname.cc \
891 dnsparser.hh \
892 dnspcap.cc dnspcap.hh \
893 dnswasher.cc \
894 dnswriter.hh \
895 ipcipher.cc ipcipher.hh \
896 logger.cc \
897 misc.cc \
898 qtype.cc \
899 statbag.cc \
900 unix_utility.cc
901
902 dnswasher_LDFLAGS = $(AM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
903 dnswasher_LDADD = $(BOOST_PROGRAM_OPTIONS_LIBS) $(LIBCRYPTO_LIBS) $(IPCRYPT_LIBS)
904
905 dnsbulktest_SOURCES = \
906 base32.cc \
907 base64.cc \
908 dnsbulktest.cc \
909 dnslabeltext.cc \
910 dnsname.cc dnsname.hh \
911 dnsparser.cc \
912 dnsrecords.cc \
913 dnswriter.cc \
914 logger.cc \
915 misc.cc \
916 nsecrecords.cc \
917 qtype.cc \
918 rcpgenerator.cc \
919 sillyrecords.cc \
920 statbag.cc \
921 unix_utility.cc
922
923 dnsbulktest_LDFLAGS = \
924 $(AM_LDFLAGS) \
925 $(LIBCRYPTO_LDFLAGS) \
926 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
927
928 dnsbulktest_LDADD = \
929 $(LIBCRYPTO_LIBS) \
930 $(BOOST_PROGRAM_OPTIONS_LIBS)
931
932 comfun_SOURCES = \
933 base32.cc \
934 base64.cc \
935 comfun.cc \
936 dns.cc \
937 dnslabeltext.cc \
938 dnsname.cc dnsname.hh \
939 dnsparser.cc \
940 dnsrecords.cc \
941 dnswriter.cc \
942 logger.cc \
943 misc.cc \
944 nsecrecords.cc \
945 qtype.cc \
946 rcpgenerator.cc \
947 sillyrecords.cc \
948 statbag.cc \
949 unix_utility.cc \
950 zoneparser-tng.cc zoneparser-tng.hh
951
952 comfun_LDFLAGS = \
953 $(AM_LDFLAGS) \
954 $(LIBCRYPTO_LDFLAGS) \
955 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
956
957 comfun_LDADD = \
958 $(LIBCRYPTO_LIBS) \
959 $(BOOST_PROGRAM_OPTIONS_LIBS)
960
961
962 dnsscan_SOURCES = \
963 anadns.hh \
964 base32.cc \
965 base64.cc base64.hh \
966 dnslabeltext.cc \
967 dnsname.cc dnsname.hh \
968 dnsparser.cc dnsparser.hh \
969 dnspcap.cc dnspcap.hh \
970 dnsrecords.cc \
971 dnsscan.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 unix_utility.cc \
981 utility.hh
982
983 dnsscan_LDFLAGS = \
984 $(AM_LDFLAGS) \
985 $(LIBCRYPTO_LDFLAGS)
986
987 dnsscan_LDADD = $(LIBCRYPTO_LIBS)
988
989 dnsreplay_SOURCES = \
990 anadns.hh \
991 base32.cc \
992 base64.cc base64.hh \
993 dnslabeltext.cc \
994 dnsname.cc dnsname.hh \
995 dnsparser.cc dnsparser.hh \
996 dnspcap.cc dnspcap.hh \
997 dnsrecords.cc \
998 dnsreplay.cc \
999 dnswriter.cc dnswriter.hh \
1000 ednsoptions.cc ednsoptions.hh \
1001 ednssubnet.cc ednssubnet.hh \
1002 iputils.cc \
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 dnsreplay_LDFLAGS = \
1014 $(AM_LDFLAGS) \
1015 $(LIBCRYPTO_LDFLAGS) \
1016 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1017
1018 dnsreplay_LDADD = \
1019 $(LIBCRYPTO_LIBS) \
1020 $(BOOST_PROGRAM_OPTIONS_LIBS)
1021
1022 nproxy_SOURCES = \
1023 base32.cc \
1024 base64.cc base64.hh \
1025 dnslabeltext.cc \
1026 dnsname.cc dnsname.hh \
1027 dnsparser.cc dnsparser.hh \
1028 dnsrecords.cc \
1029 dnswriter.cc dnswriter.hh \
1030 logger.cc \
1031 misc.cc \
1032 mplexer.hh \
1033 nproxy.cc \
1034 nsecrecords.cc \
1035 pollmplexer.cc \
1036 qtype.cc \
1037 rcpgenerator.cc rcpgenerator.hh \
1038 sillyrecords.cc \
1039 statbag.cc \
1040 unix_utility.cc
1041
1042 nproxy_LDFLAGS = \
1043 $(AM_LDFLAGS) \
1044 $(LIBCRYPTO_LDFLAGS) \
1045 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1046
1047 nproxy_LDADD = \
1048 $(LIBCRYPTO_LIBS) \
1049 $(BOOST_PROGRAM_OPTIONS_LIBS)
1050
1051 pdns_notify_SOURCES = \
1052 arguments.cc \
1053 base32.cc \
1054 base64.cc base64.hh \
1055 dns.cc \
1056 dnslabeltext.cc \
1057 dnsname.cc dnsname.hh \
1058 dnsparser.cc dnsparser.hh \
1059 dnsrecords.cc \
1060 dnswriter.cc dnswriter.hh \
1061 logger.cc \
1062 misc.cc \
1063 notify.cc \
1064 nsecrecords.cc \
1065 pollmplexer.cc \
1066 qtype.cc \
1067 rcpgenerator.cc rcpgenerator.hh \
1068 sillyrecords.cc \
1069 statbag.cc \
1070 unix_utility.cc \
1071 dns_random.cc
1072
1073 pdns_notify_LDFLAGS = \
1074 $(AM_LDFLAGS) \
1075 $(LIBCRYPTO_LDFLAGS) \
1076 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1077
1078 pdns_notify_LDADD = \
1079 $(LIBCRYPTO_LIBS) \
1080 $(BOOST_PROGRAM_OPTIONS_LIBS)
1081
1082 if LIBSODIUM
1083 pdns_notify_LDADD += $(LIBSODIUM_LIBS)
1084 endif
1085
1086 dnsscope_SOURCES = \
1087 arguments.cc \
1088 base32.cc \
1089 base64.cc base64.hh \
1090 dns.cc \
1091 dnslabeltext.cc \
1092 dnsname.cc dnsname.hh \
1093 dnsparser.cc dnsparser.hh \
1094 dnspcap.cc dnspcap.hh \
1095 dnsrecords.cc \
1096 dnsscope.cc \
1097 dnswriter.cc dnswriter.hh \
1098 histog.hh \
1099 logger.cc \
1100 misc.cc \
1101 nsecrecords.cc \
1102 qtype.cc \
1103 rcpgenerator.cc rcpgenerator.hh \
1104 sillyrecords.cc \
1105 statbag.cc \
1106 statnode.cc statnode.hh \
1107 unix_utility.cc \
1108 utility.hh
1109
1110 dnsscope_LDFLAGS = \
1111 $(AM_LDFLAGS) \
1112 $(LIBCRYPTO_LDFLAGS) \
1113 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1114
1115 dnsscope_LDADD = \
1116 $(LIBCRYPTO_LIBS) \
1117 $(BOOST_PROGRAM_OPTIONS_LIBS)
1118
1119 dnsgram_SOURCES = \
1120 base32.cc \
1121 base64.cc base64.hh \
1122 dnsgram.cc \
1123 dnslabeltext.cc \
1124 dnsname.cc dnsname.hh \
1125 dnsparser.cc dnsparser.hh \
1126 dnspcap.cc dnspcap.hh \
1127 dnsrecords.cc \
1128 dnswriter.cc dnswriter.hh \
1129 logger.cc \
1130 misc.cc \
1131 nsecrecords.cc \
1132 qtype.cc \
1133 rcpgenerator.cc rcpgenerator.hh \
1134 sillyrecords.cc \
1135 statbag.cc \
1136 unix_utility.cc \
1137 utility.hh
1138
1139 dnsgram_LDFLAGS = \
1140 $(AM_LDFLAGS) \
1141 $(LIBCRYPTO_LDFLAGS)
1142
1143 dnsgram_LDADD = \
1144 $(LIBCRYPTO_LIBS)
1145
1146 dnsdemog_SOURCES = \
1147 base32.cc \
1148 base64.cc base64.hh \
1149 dnsdemog.cc \
1150 dnslabeltext.cc \
1151 dnsname.cc dnsname.hh \
1152 dnsparser.cc dnsparser.hh \
1153 dnspcap.cc dnspcap.hh \
1154 dnsrecords.cc \
1155 dnswriter.cc dnswriter.hh \
1156 logger.cc \
1157 misc.cc \
1158 nsecrecords.cc \
1159 qtype.cc \
1160 rcpgenerator.cc rcpgenerator.hh \
1161 sillyrecords.cc \
1162 statbag.cc \
1163 unix_utility.cc \
1164 utility.hh
1165
1166 dnsdemog_LDFLAGS = \
1167 $(AM_LDFLAGS) \
1168 $(LIBCRYPTO_LDFLAGS)
1169
1170 dnsdemog_LDADD = \
1171 $(LIBCRYPTO_LIBS)
1172
1173 dnspcap2calidns_SOURCES = \
1174 base32.cc \
1175 base64.cc base64.hh \
1176 dnslabeltext.cc \
1177 dnsname.cc dnsname.hh \
1178 dnsparser.cc dnsparser.hh \
1179 dnspcap.cc dnspcap.hh \
1180 dnspcap2calidns.cc \
1181 dnsrecords.cc \
1182 dnswriter.cc dnswriter.hh \
1183 ednsoptions.cc ednsoptions.hh \
1184 ednssubnet.cc ednssubnet.hh \
1185 iputils.cc \
1186 logger.cc \
1187 misc.cc \
1188 nsecrecords.cc \
1189 qtype.cc \
1190 rcpgenerator.cc rcpgenerator.hh \
1191 sillyrecords.cc \
1192 statbag.cc \
1193 unix_utility.cc \
1194 utility.hh
1195
1196 dnspcap2calidns_LDFLAGS = \
1197 $(AM_LDFLAGS) \
1198 $(LIBCRYPTO_LDFLAGS) \
1199 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1200
1201 dnspcap2calidns_LDADD = \
1202 $(LIBCRYPTO_LIBS) \
1203 $(BOOST_PROGRAM_OPTIONS_LIBS)
1204
1205 if HAVE_PROTOBUF
1206 if HAVE_PROTOC
1207 bin_PROGRAMS += dnspcap2protobuf
1208
1209 dnsmessage.pb.cc: dnsmessage.proto
1210 $(AM_V_GEN)$(PROTOC) --cpp_out=./ $<
1211
1212 BUILT_SOURCES += dnsmessage.pb.cc
1213 dnspcap2protobuf.$(OBJEXT): dnsmessage.pb.cc
1214
1215 dnspcap2protobuf_SOURCES = \
1216 base32.cc \
1217 base64.cc base64.hh \
1218 dnslabeltext.cc \
1219 dnsname.cc dnsname.hh \
1220 dnsparser.cc dnsparser.hh \
1221 dnspcap.cc dnspcap.hh \
1222 dnspcap2protobuf.cc \
1223 dnsrecords.cc \
1224 dnswriter.cc dnswriter.hh \
1225 gettime.cc gettime.hh \
1226 iputils.cc \
1227 logger.cc \
1228 misc.cc \
1229 nsecrecords.cc \
1230 protobuf.cc protobuf.hh \
1231 qtype.cc \
1232 rcpgenerator.cc rcpgenerator.hh \
1233 sillyrecords.cc \
1234 statbag.cc \
1235 unix_utility.cc \
1236 utility.hh \
1237 uuid-utils.hh uuid-utils.cc
1238
1239 nodist_dnspcap2protobuf_SOURCES=dnsmessage.pb.cc dnsmessage.pb.h
1240
1241 dnspcap2protobuf_LDFLAGS = \
1242 $(AM_LDFLAGS) \
1243 $(LIBCRYPTO_LDFLAGS) \
1244 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1245
1246 dnspcap2protobuf_LDADD = \
1247 $(LIBCRYPTO_LIBS) \
1248 $(PROTOBUF_LIBS) \
1249 $(BOOST_PROGRAM_OPTIONS_LIBS) \
1250 $(RT_LIBS)
1251 endif
1252 endif
1253
1254 pdns.conf-dist: pdns_server
1255 $(AM_V_GEN)./pdns_server --no-config --config 2>/dev/null > $@
1256
1257 testrunner_SOURCES = \
1258 arguments.cc \
1259 auth-caches.cc auth-caches.hh \
1260 auth-packetcache.cc auth-packetcache.hh \
1261 auth-querycache.cc auth-querycache.hh \
1262 base32.cc \
1263 base64.cc \
1264 bindlexer.l \
1265 bindparser.yy \
1266 dbdnsseckeeper.cc \
1267 dns.cc \
1268 dns_random.cc \
1269 dnsbackend.cc \
1270 dnslabeltext.cc \
1271 dnsname.cc \
1272 dnsname.hh \
1273 dnspacket.cc \
1274 dnsparser.hh dnsparser.cc \
1275 dnsrecords.cc \
1276 dnssecinfra.cc \
1277 dnssecsigner.cc \
1278 dnswriter.cc \
1279 ednsoptions.cc ednsoptions.hh \
1280 ednscookies.cc ednscookies.hh \
1281 ednssubnet.cc \
1282 gettime.cc gettime.hh \
1283 gss_context.cc gss_context.hh \
1284 ipcipher.cc ipcipher.hh \
1285 iputils.cc \
1286 ixfr.cc ixfr.hh \
1287 logger.cc \
1288 lua-auth4.hh lua-auth4.cc \
1289 lua-base4.hh lua-base4.cc \
1290 stubresolver.hh stubresolver.cc \
1291 misc.cc \
1292 nameserver.cc \
1293 nsecrecords.cc \
1294 opensslsigners.cc opensslsigners.hh \
1295 pollmplexer.cc \
1296 qtype.cc \
1297 rcpgenerator.cc \
1298 responsestats.cc \
1299 responsestats-auth.cc \
1300 sillyrecords.cc \
1301 statbag.cc \
1302 test-arguments_cc.cc \
1303 test-base32_cc.cc \
1304 test-base64_cc.cc \
1305 test-bindparser_cc.cc \
1306 test-common.hh \
1307 test-dnsrecordcontent.cc \
1308 test-digests_hh.cc \
1309 test-distributor_hh.cc \
1310 test-dns_random_hh.cc \
1311 test-dnsname_cc.cc \
1312 test-dnsparser_cc.cc \
1313 test-dnsparser_hh.cc \
1314 test-dnsrecords_cc.cc \
1315 test-ipcrypt_cc.cc \
1316 test-iputils_hh.cc \
1317 test-ixfr_cc.cc \
1318 test-lock_hh.cc \
1319 test-lua_auth4_cc.cc \
1320 test-misc_hh.cc \
1321 test-mplexer.cc \
1322 test-nameserver_cc.cc \
1323 test-packetcache_cc.cc \
1324 test-packetcache_hh.cc \
1325 test-rcpgenerator_cc.cc \
1326 test-signers.cc \
1327 test-sha_hh.cc \
1328 test-statbag_cc.cc \
1329 test-tsig.cc \
1330 test-zoneparser_tng_cc.cc \
1331 testrunner.cc \
1332 threadname.hh threadname.cc \
1333 tsigverifier.cc tsigverifier.hh \
1334 ueberbackend.cc \
1335 unix_utility.cc \
1336 zoneparser-tng.cc zoneparser-tng.hh
1337
1338 testrunner_LDFLAGS = \
1339 $(AM_LDFLAGS) \
1340 $(LIBCRYPTO_LDFLAGS) \
1341 $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS)
1342
1343 testrunner_LDADD = \
1344 $(LIBCRYPTO_LIBS) \
1345 $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \
1346 $(RT_LIBS) \
1347 $(LUA_LIBS) \
1348 $(LIBDL) \
1349 $(IPCRYPT_LIBS)
1350
1351 if PKCS11
1352 testrunner_SOURCES += pkcs11signers.cc pkcs11signers.hh
1353 testrunner_LDADD += $(P11KIT1_LIBS)
1354 endif
1355
1356 if LIBSODIUM
1357 testrunner_SOURCES += sodiumsigners.cc
1358 testrunner_LDADD += $(LIBSODIUM_LIBS)
1359 endif
1360
1361 if LIBDECAF
1362 testrunner_SOURCES += decafsigners.cc
1363 testrunner_LDADD += $(LIBDECAF_LIBS)
1364 endif
1365
1366 if HAVE_FREEBSD
1367 ixfrdist_SOURCES += kqueuemplexer.cc
1368 testrunner_SOURCES += kqueuemplexer.cc
1369 endif
1370
1371 if HAVE_LINUX
1372 ixfrdist_SOURCES += epollmplexer.cc
1373 testrunner_SOURCES += epollmplexer.cc
1374 endif
1375
1376 if HAVE_SOLARIS
1377 ixfrdist_SOURCES += \
1378 devpollmplexer.cc \
1379 portsmplexer.cc
1380 testrunner_SOURCES += \
1381 devpollmplexer.cc \
1382 portsmplexer.cc
1383 endif
1384
1385 pdns_control_SOURCES = \
1386 arguments.cc \
1387 dynloader.cc \
1388 dynmessenger.cc \
1389 logger.cc \
1390 misc.cc \
1391 qtype.cc \
1392 statbag.cc \
1393 unix_utility.cc \
1394 dnsname.cc \
1395 dnslabeltext.cc
1396
1397 if UNIT_TESTS
1398
1399 if HAVE_BOOST_GE_148
1400 TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message SRCDIR='$(srcdir)'
1401 TESTS=testrunner
1402 else
1403 check-local:
1404 @echo "Unit tests disabled, boost is too old"
1405 endif
1406
1407 else
1408 check-local:
1409 @echo "Unit tests are not enabled"
1410 @echo "Run ./configure --enable-unit-tests"
1411 endif
1412
1413 if FUZZ_TARGETS
1414
1415 LIB_FUZZING_ENGINE ?= standalone_fuzz_target_runner.o
1416
1417 standalone_fuzz_target_runner.o: standalone_fuzz_target_runner.cc
1418
1419 fuzz_targets_programs = \
1420 fuzz_target_dnsdistcache \
1421 fuzz_target_moadnsparser \
1422 fuzz_target_packetcache \
1423 fuzz_target_zoneparsertng
1424
1425 fuzz_targets: $(fuzz_targets_programs)
1426
1427 bin_PROGRAMS += \
1428 $(fuzz_targets_programs)
1429
1430 fuzz_targets_libs = \
1431 $(LIBCRYPTO_LIBS) \
1432 $(LIB_FUZZING_ENGINE)
1433 fuzz_targets_ldflags = \
1434 $(AM_LDFLAGS) \
1435 $(DYNLINKFLAGS) \
1436 $(LIBCRYPTO_LDFLAGS) \
1437 $(FUZZING_LDFLAGS)
1438
1439 # we need the mockup runner to be built, but not linked if a real fuzzing engine is used
1440 fuzz_targets_deps = standalone_fuzz_target_runner.o
1441
1442 fuzz_target_moadnsparser_SOURCES = \
1443 fuzz_moadnsparser.cc \
1444 base32.cc base32.hh \
1445 base64.cc base64.hh \
1446 dnslabeltext.cc \
1447 dnsname.cc dnsname.hh \
1448 dnsparser.cc dnsparser.hh \
1449 dnsrecords.cc dnsrecords.hh \
1450 dnswriter.cc dnswriter.hh \
1451 logger.cc logger.hh \
1452 misc.cc misc.hh \
1453 nsecrecords.cc \
1454 qtype.cc qtype.hh \
1455 rcpgenerator.cc rcpgenerator.hh \
1456 sillyrecords.cc \
1457 statbag.cc statbag.hh \
1458 unix_utility.cc \
1459 utility.hh
1460
1461 fuzz_target_moadnsparser_DEPENDENCIES = $(fuzz_targets_deps)
1462 fuzz_target_moadnsparser_LDFLAGS = $(fuzz_targets_ldflags)
1463 fuzz_target_moadnsparser_LDADD = $(fuzz_targets_libs)
1464
1465 fuzz_target_packetcache_SOURCES = \
1466 fuzz_packetcache.cc \
1467 dnslabeltext.cc \
1468 dnsname.cc dnsname.hh \
1469 ednsoptions.cc ednsoptions.hh \
1470 misc.cc misc.hh \
1471 packetcache.hh \
1472 qtype.cc qtype.hh \
1473 statbag.cc statbag.hh
1474
1475 fuzz_target_packetcache_DEPENDENCIES = $(fuzz_targets_deps)
1476 fuzz_target_packetcache_LDFLAGS = $(fuzz_targets_ldflags)
1477 fuzz_target_packetcache_LDADD = $(fuzz_targets_libs)
1478
1479 fuzz_target_dnsdistcache_SOURCES = \
1480 fuzz_dnsdistcache.cc \
1481 dnsdist-cache.cc dnsdist-cache.hh \
1482 dnsdist-ecs.cc dnsdist-ecs.hh \
1483 dnslabeltext.cc \
1484 dnsname.cc dnsname.hh \
1485 dnsparser.cc dnsparser.hh \
1486 dnswriter.cc dnswriter.hh \
1487 ednsoptions.cc ednsoptions.hh \
1488 ednssubnet.cc ednssubnet.hh \
1489 iputils.cc iputils.hh \
1490 misc.cc misc.hh \
1491 packetcache.hh \
1492 qtype.cc qtype.hh
1493
1494 fuzz_target_dnsdistcache_DEPENDENCIES = $(fuzz_targets_deps)
1495 fuzz_target_dnsdistcache_LDFLAGS = $(fuzz_targets_ldflags)
1496 fuzz_target_dnsdistcache_LDADD = $(fuzz_targets_libs)
1497
1498 fuzz_target_zoneparsertng_SOURCES = \
1499 fuzz_zoneparsertng.cc \
1500 base32.cc base32.hh \
1501 base64.cc base64.hh \
1502 dnslabeltext.cc \
1503 dnsname.cc dnsname.hh \
1504 dnsparser.cc dnsparser.hh \
1505 dnsrecords.cc dnsrecords.hh \
1506 dnswriter.cc dnswriter.hh \
1507 logger.cc logger.hh \
1508 misc.cc misc.hh \
1509 nsecrecords.cc \
1510 qtype.cc qtype.hh \
1511 rcpgenerator.cc rcpgenerator.hh \
1512 sillyrecords.cc \
1513 statbag.cc statbag.hh \
1514 unix_utility.cc \
1515 utility.hh \
1516 zoneparser-tng.cc zoneparser-tng.hh
1517
1518 fuzz_target_zoneparsertng_DEPENDENCIES = $(fuzz_targets_deps)
1519 fuzz_target_zoneparsertng_LDFLAGS = $(fuzz_targets_ldflags)
1520 fuzz_target_zoneparsertng_LDADD = $(fuzz_targets_libs)
1521
1522 endif
1523
1524 dnslabeltext.cc: dnslabeltext.rl
1525 $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc
1526
1527 bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql
1528 ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g' ; echo ';' ) > $@
1529
1530 # for bindparser.h/hh
1531 .hh.h:
1532 cp $< $@
1533
1534 bindlexer.$(OBJEXT): bindparser.h
1535
1536 curl_verbose = $(curl_verbose_$(V))
1537 curl_verbose_ = $(curl_verbose_$(AM_DEFAULT_VERBOSITY))
1538 curl_verbose_0 = @echo " CURL " $@;
1539 $(srcdir)/effective_tld_names.dat:
1540 $(curl_verbose)if ! curl -s -S https://publicsuffix.org/list/public_suffix_list.dat > $@; then rm -f $@; exit 1; fi
1541
1542 pubsuffix.cc: $(srcdir)/effective_tld_names.dat
1543 $(AM_V_GEN)./mkpubsuffixcc
1544
1545 pdns_recursor rec_control:
1546 @echo "Please build the recursor from the recursordist/ dir"
1547 @exit 1
1548
1549 dnsdist:
1550 @echo "Please build dnsdist from the dnsdistdist/ dir"
1551 @exit 1
1552
1553 if HAVE_SYSTEMD
1554 pdns.service: pdns.service.in
1555 $(AM_V_GEN)sed -e 's![@]sbindir[@]!$(sbindir)!' < $< > $@
1556 if !HAVE_SYSTEMD_LOCK_PERSONALITY
1557 $(AM_V_GEN)perl -ni -e 'print unless /^LockPersonality/' $@
1558 endif
1559 if !HAVE_SYSTEMD_PRIVATE_DEVICES
1560 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateDevices/' $@
1561 endif
1562 if !HAVE_SYSTEMD_PRIVATE_TMP
1563 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateTmp/' $@
1564 endif
1565 if !HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS
1566 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectControlGroups/' $@
1567 endif
1568 if !HAVE_SYSTEMD_PROTECT_HOME
1569 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectHome/' $@
1570 endif
1571 if !HAVE_SYSTEMD_PROTECT_KERNEL_MODULES
1572 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelModules/' $@
1573 endif
1574 if !HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES
1575 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelTunables/' $@
1576 endif
1577 if !HAVE_SYSTEMD_PROTECT_SYSTEM
1578 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectSystem/' $@
1579 endif
1580 if !HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES
1581 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictAddressFamilies/' $@
1582 endif
1583 if !HAVE_SYSTEMD_RESTRICT_NAMESPACES
1584 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictNamespaces/' $@
1585 endif
1586 if !HAVE_SYSTEMD_RESTRICT_REALTIME
1587 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictRealtime/' $@
1588 endif
1589 if !HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES
1590 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallArchitectures/' $@
1591 endif
1592 if !HAVE_SYSTEMD_SYSTEM_CALL_FILTER
1593 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallFilter/' $@
1594 endif
1595
1596 pdns@.service: pdns.service
1597 $(AM_V_GEN)sed -e 's!/pdns_server!& --config-name=%i!' \
1598 -e 's!Authoritative Server!& %i!' \
1599 < $< > $@
1600
1601 systemdsystemunitdir = $(SYSTEMD_DIR)
1602
1603 systemdsystemunit_DATA = \
1604 pdns.service \
1605 pdns@.service
1606
1607 CLEANFILES += \
1608 pdns.service \
1609 pdns@.service
1610
1611 if IXFRDIST
1612 ixfrdist.service: ixfrdist.service.in
1613 $(AM_V_GEN)sed -e 's![@]bindir[@]!$(bindir)!' < $< > $@
1614
1615 ixfrdist@.service: ixfrdist.service
1616 $(AM_V_GEN)sed -e 's!/ixfrdist!& --config $(sysconfdir)/ixfrdist-%i.yml!' \
1617 < $< > $@
1618
1619 systemdsystemunit_DATA += \
1620 ixfrdist.service \
1621 ixfrdist@.service
1622 endif # IXFRDIST
1623
1624 CLEANFILES += \
1625 ixfrdist.service \
1626 ixfrdist@.service
1627
1628 endif # HAVE_SYSTEMD