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