]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/Makefile.am
9c18c801e599fc44989681b04f8b0e63e0287571
[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 bindparser.h \
51 named.conf.parsertest \
52 pdns.service.in \
53 ixfrdist.service.in \
54 ixfrdist.example.yml \
55 lua-record.cc \
56 minicurl.cc \
57 minicurl.hh
58
59 BUILT_SOURCES = \
60 bind-dnssec.schema.sqlite3.sql.h \
61 bindparser.h \
62 dnslabeltext.cc
63
64 CLEANFILES = \
65 *.gcda \
66 *.gcno \
67 *.gcov \
68 backends/gsql/gsqlbackend.gcda \
69 backends/gsql/gsqlbackend.gcno \
70 backends/gsql/gsqlbackend.gcov \
71 dnsmessage.pb.cc dnsmessage.pb.h \
72 pdns.conf-dist
73
74 noinst_SCRIPTS = pdns.init
75 sysconf_DATA = pdns.conf-dist
76
77 sbin_PROGRAMS = pdns_server
78 bin_PROGRAMS = \
79 pdns_control \
80 pdnsutil \
81 zone2sql \
82 zone2json
83
84 if TOOLS
85 bin_PROGRAMS += \
86 dnsgram \
87 dnspcap2calidns \
88 dnsreplay \
89 dnsscan \
90 dnsscope \
91 dnswasher \
92 dumresp \
93 pdns_notify \
94 nproxy \
95 nsec3dig \
96 saxfr \
97 stubquery \
98 ixplore \
99 sdig
100
101 bin_PROGRAMS += calidns
102
103 if HAVE_BOOST_GE_148
104 bin_PROGRAMS += \
105 dnsbulktest \
106 dnstcpbench
107 endif
108
109 endif # TOOLS
110
111 if IXFRDIST
112 bin_PROGRAMS += \
113 ixfrdist
114
115 sysconf_DATA += \
116 ixfrdist.example.yml
117 endif
118
119 EXTRA_PROGRAMS = \
120 calidns \
121 comfun \
122 dnsbulktest \
123 dnsdemog \
124 dnsgram \
125 dnspcap2calidns \
126 dnsreplay \
127 dnsscan \
128 dnsscope \
129 dnstcpbench \
130 dnswasher \
131 dumresp \
132 kvresp \
133 ixplore \
134 ixfrdist \
135 pdns_notify \
136 nproxy \
137 nsec3dig \
138 saxfr \
139 stubquery \
140 sdig \
141 speedtest \
142 testrunner \
143 toysdig \
144 tsig-tests \
145 zone2ldap
146
147 pdns_server_SOURCES = \
148 arguments.cc arguments.hh \
149 ascii.hh \
150 auth-carbon.cc \
151 auth-caches.cc auth-caches.hh \
152 auth-packetcache.cc auth-packetcache.hh \
153 auth-querycache.cc auth-querycache.hh \
154 backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \
155 backends/gsql/ssql.hh \
156 base32.cc base32.hh \
157 base64.cc base64.hh \
158 bind-dnssec.schema.sqlite3.sql.h \
159 bindlexer.l \
160 bindparser.cc \
161 cachecleaner.hh \
162 circular_buffer.hh \
163 comment.hh \
164 common_startup.cc common_startup.hh \
165 communicator.cc communicator.hh \
166 dbdnsseckeeper.cc \
167 digests.hh \
168 distributor.hh \
169 dns.cc dns.hh \
170 dns_random.cc dns_random.hh \
171 dnsbackend.cc dnsbackend.hh \
172 dnslabeltext.cc \
173 dnsname.cc dnsname.hh \
174 dnspacket.cc dnspacket.hh \
175 dnsparser.cc \
176 dnsproxy.cc dnsproxy.hh \
177 dnsrecords.cc dnsrecords.hh \
178 dnssecinfra.cc dnssecinfra.hh \
179 dnsseckeeper.hh \
180 dnssecsigner.cc \
181 dnswriter.cc \
182 dynhandler.cc dynhandler.hh \
183 dynlistener.cc dynlistener.hh \
184 dynmessenger.hh \
185 ednsoptions.cc ednsoptions.hh \
186 ednssubnet.cc ednssubnet.hh \
187 gss_context.cc gss_context.hh \
188 iputils.cc iputils.hh \
189 ixfr.cc ixfr.hh \
190 json.cc json.hh \
191 lock.hh \
192 logger.cc logger.hh \
193 lua-base4.cc lua-base4.hh \
194 lua-auth4.cc lua-auth4.hh \
195 mastercommunicator.cc \
196 misc.cc misc.hh \
197 nameserver.cc nameserver.hh \
198 namespaces.hh \
199 nsecrecords.cc \
200 opensslsigners.cc opensslsigners.hh \
201 packetcache.hh \
202 packethandler.cc packethandler.hh \
203 pdnsexception.hh \
204 qtype.cc qtype.hh \
205 rcpgenerator.cc \
206 receiver.cc \
207 resolver.cc resolver.hh \
208 responsestats.cc responsestats.hh responsestats-auth.cc \
209 rfc2136handler.cc \
210 secpoll.cc secpoll.hh \
211 secpoll-auth.cc secpoll-auth.hh \
212 serialtweaker.cc \
213 sha.hh \
214 shuffle.cc shuffle.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 PKCS11
272 pdns_server_SOURCES += pkcs11signers.cc pkcs11signers.hh
273 pdns_server_LDADD += $(P11KIT1_LIBS)
274 endif
275
276 if LUA
277 pdns_server_LDADD += $(LUA_LIBS)
278 endif
279
280 if GSS_TSIG
281 pdns_server_LDADD += $(GSS_LIBS)
282 endif
283
284 pdnsutil_SOURCES = \
285 arguments.cc \
286 auth-caches.cc auth-caches.hh \
287 auth-packetcache.cc auth-packetcache.hh \
288 auth-querycache.cc auth-querycache.hh \
289 backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \
290 backends/gsql/ssql.hh \
291 base32.cc \
292 base64.cc base64.hh \
293 bindlexer.l \
294 bindparser.yy \
295 cachecleaner.hh \
296 circular_buffer.hh \
297 dbdnsseckeeper.cc \
298 dnsbackend.cc \
299 dns.cc \
300 dnslabeltext.cc \
301 dnsname.cc dnsname.hh \
302 dnspacket.cc \
303 dnsparser.cc dnsparser.hh \
304 dns_random.cc \
305 dnsrecords.cc \
306 dnssecinfra.cc dnssecinfra.hh \
307 dnssecsigner.cc \
308 dnswriter.cc dnswriter.hh \
309 dynlistener.cc \
310 ednsoptions.cc ednsoptions.hh \
311 ednssubnet.cc \
312 gss_context.cc gss_context.hh \
313 ipcipher.cc ipcipher.hh \
314 iputils.cc iputils.hh \
315 json.cc \
316 logger.cc \
317 lua-auth4.cc lua-auth4.hh \
318 lua-base4.cc lua-base4.hh \
319 misc.cc misc.hh \
320 nsecrecords.cc \
321 opensslsigners.cc opensslsigners.hh \
322 pdnsutil.cc \
323 qtype.cc \
324 rcpgenerator.cc rcpgenerator.hh \
325 serialtweaker.cc \
326 shuffle.cc shuffle.hh \
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 proxy-protocol.cc proxy-protocol.hh \
490 qtype.cc \
491 rcpgenerator.cc rcpgenerator.hh \
492 sdig.cc \
493 sillyrecords.cc \
494 sstuff.hh \
495 statbag.cc \
496 unix_utility.cc
497
498 sdig_LDADD = $(LIBCRYPTO_LIBS)
499 sdig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
500
501 if HAVE_LIBCURL
502 sdig_SOURCES += minicurl.cc minicurl.hh
503 sdig_LDADD += $(LIBCURL)
504 endif
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 arguments.cc arguments.hh \
923 dns_random.cc dns_random.hh
924
925 dnsbulktest_LDFLAGS = \
926 $(AM_LDFLAGS) \
927 $(LIBCRYPTO_LDFLAGS) \
928 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
929
930 dnsbulktest_LDADD = \
931 $(LIBCRYPTO_LIBS) \
932 $(BOOST_PROGRAM_OPTIONS_LIBS)
933
934 comfun_SOURCES = \
935 base32.cc \
936 base64.cc \
937 comfun.cc \
938 dns.cc \
939 dnslabeltext.cc \
940 dnsname.cc dnsname.hh \
941 dnsparser.cc \
942 dnsrecords.cc \
943 dnswriter.cc \
944 logger.cc \
945 misc.cc \
946 nsecrecords.cc \
947 qtype.cc \
948 rcpgenerator.cc \
949 sillyrecords.cc \
950 statbag.cc \
951 unix_utility.cc \
952 zoneparser-tng.cc zoneparser-tng.hh
953
954 comfun_LDFLAGS = \
955 $(AM_LDFLAGS) \
956 $(LIBCRYPTO_LDFLAGS) \
957 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
958
959 comfun_LDADD = \
960 $(LIBCRYPTO_LIBS) \
961 $(BOOST_PROGRAM_OPTIONS_LIBS)
962
963
964 dnsscan_SOURCES = \
965 anadns.hh \
966 base32.cc \
967 base64.cc base64.hh \
968 dnslabeltext.cc \
969 dnsname.cc dnsname.hh \
970 dnsparser.cc dnsparser.hh \
971 dnspcap.cc dnspcap.hh \
972 dnsrecords.cc \
973 dnsscan.cc \
974 dnswriter.cc dnswriter.hh \
975 logger.cc \
976 misc.cc \
977 nsecrecords.cc \
978 qtype.cc \
979 rcpgenerator.cc rcpgenerator.hh \
980 sillyrecords.cc \
981 statbag.cc \
982 unix_utility.cc \
983 utility.hh
984
985 dnsscan_LDFLAGS = \
986 $(AM_LDFLAGS) \
987 $(LIBCRYPTO_LDFLAGS)
988
989 dnsscan_LDADD = $(LIBCRYPTO_LIBS)
990
991 dnsreplay_SOURCES = \
992 anadns.hh \
993 base32.cc \
994 base64.cc base64.hh \
995 dnslabeltext.cc \
996 dnsname.cc dnsname.hh \
997 dnsparser.cc dnsparser.hh \
998 dnspcap.cc dnspcap.hh \
999 dnsrecords.cc \
1000 dnsreplay.cc \
1001 dnswriter.cc dnswriter.hh \
1002 ednsoptions.cc ednsoptions.hh \
1003 ednssubnet.cc ednssubnet.hh \
1004 iputils.cc \
1005 logger.cc \
1006 misc.cc \
1007 nsecrecords.cc \
1008 qtype.cc \
1009 rcpgenerator.cc rcpgenerator.hh \
1010 sillyrecords.cc \
1011 statbag.cc \
1012 unix_utility.cc \
1013 utility.hh
1014
1015 dnsreplay_LDFLAGS = \
1016 $(AM_LDFLAGS) \
1017 $(LIBCRYPTO_LDFLAGS) \
1018 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1019
1020 dnsreplay_LDADD = \
1021 $(LIBCRYPTO_LIBS) \
1022 $(BOOST_PROGRAM_OPTIONS_LIBS)
1023
1024 nproxy_SOURCES = \
1025 base32.cc \
1026 base64.cc base64.hh \
1027 dnslabeltext.cc \
1028 dnsname.cc dnsname.hh \
1029 dnsparser.cc dnsparser.hh \
1030 dnsrecords.cc \
1031 dnswriter.cc dnswriter.hh \
1032 logger.cc \
1033 misc.cc \
1034 mplexer.hh \
1035 nproxy.cc \
1036 nsecrecords.cc \
1037 pollmplexer.cc \
1038 qtype.cc \
1039 rcpgenerator.cc rcpgenerator.hh \
1040 sillyrecords.cc \
1041 statbag.cc \
1042 unix_utility.cc
1043
1044 nproxy_LDFLAGS = \
1045 $(AM_LDFLAGS) \
1046 $(LIBCRYPTO_LDFLAGS) \
1047 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1048
1049 nproxy_LDADD = \
1050 $(LIBCRYPTO_LIBS) \
1051 $(BOOST_PROGRAM_OPTIONS_LIBS)
1052
1053 pdns_notify_SOURCES = \
1054 arguments.cc \
1055 base32.cc \
1056 base64.cc base64.hh \
1057 dns.cc \
1058 dnslabeltext.cc \
1059 dnsname.cc dnsname.hh \
1060 dnsparser.cc dnsparser.hh \
1061 dnsrecords.cc \
1062 dnswriter.cc dnswriter.hh \
1063 logger.cc \
1064 misc.cc \
1065 notify.cc \
1066 nsecrecords.cc \
1067 pollmplexer.cc \
1068 qtype.cc \
1069 rcpgenerator.cc rcpgenerator.hh \
1070 sillyrecords.cc \
1071 statbag.cc \
1072 unix_utility.cc \
1073 dns_random.cc
1074
1075 pdns_notify_LDFLAGS = \
1076 $(AM_LDFLAGS) \
1077 $(LIBCRYPTO_LDFLAGS) \
1078 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1079
1080 pdns_notify_LDADD = \
1081 $(LIBCRYPTO_LIBS) \
1082 $(BOOST_PROGRAM_OPTIONS_LIBS)
1083
1084 if LIBSODIUM
1085 pdns_notify_LDADD += $(LIBSODIUM_LIBS)
1086 dnsbulktest_LDADD += $(LIBSODIUM_LIBS)
1087 endif
1088
1089 dnsscope_SOURCES = \
1090 arguments.cc \
1091 base32.cc \
1092 base64.cc base64.hh \
1093 dns.cc \
1094 dnslabeltext.cc \
1095 dnsname.cc dnsname.hh \
1096 dnsparser.cc dnsparser.hh \
1097 dnspcap.cc dnspcap.hh \
1098 dnsrecords.cc \
1099 dnsscope.cc \
1100 dnswriter.cc dnswriter.hh \
1101 histog.hh \
1102 logger.cc \
1103 misc.cc \
1104 nsecrecords.cc \
1105 qtype.cc \
1106 rcpgenerator.cc rcpgenerator.hh \
1107 sillyrecords.cc \
1108 statbag.cc \
1109 statnode.cc statnode.hh \
1110 unix_utility.cc \
1111 utility.hh
1112
1113 dnsscope_LDFLAGS = \
1114 $(AM_LDFLAGS) \
1115 $(LIBCRYPTO_LDFLAGS) \
1116 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1117
1118 dnsscope_LDADD = \
1119 $(LIBCRYPTO_LIBS) \
1120 $(BOOST_PROGRAM_OPTIONS_LIBS)
1121
1122 dnsgram_SOURCES = \
1123 base32.cc \
1124 base64.cc base64.hh \
1125 dnsgram.cc \
1126 dnslabeltext.cc \
1127 dnsname.cc dnsname.hh \
1128 dnsparser.cc dnsparser.hh \
1129 dnspcap.cc dnspcap.hh \
1130 dnsrecords.cc \
1131 dnswriter.cc dnswriter.hh \
1132 logger.cc \
1133 misc.cc \
1134 nsecrecords.cc \
1135 qtype.cc \
1136 rcpgenerator.cc rcpgenerator.hh \
1137 sillyrecords.cc \
1138 statbag.cc \
1139 unix_utility.cc \
1140 utility.hh
1141
1142 dnsgram_LDFLAGS = \
1143 $(AM_LDFLAGS) \
1144 $(LIBCRYPTO_LDFLAGS)
1145
1146 dnsgram_LDADD = \
1147 $(LIBCRYPTO_LIBS)
1148
1149 dnsdemog_SOURCES = \
1150 base32.cc \
1151 base64.cc base64.hh \
1152 dnsdemog.cc \
1153 dnslabeltext.cc \
1154 dnsname.cc dnsname.hh \
1155 dnsparser.cc dnsparser.hh \
1156 dnspcap.cc dnspcap.hh \
1157 dnsrecords.cc \
1158 dnswriter.cc dnswriter.hh \
1159 logger.cc \
1160 misc.cc \
1161 nsecrecords.cc \
1162 qtype.cc \
1163 rcpgenerator.cc rcpgenerator.hh \
1164 sillyrecords.cc \
1165 statbag.cc \
1166 unix_utility.cc \
1167 utility.hh
1168
1169 dnsdemog_LDFLAGS = \
1170 $(AM_LDFLAGS) \
1171 $(LIBCRYPTO_LDFLAGS)
1172
1173 dnsdemog_LDADD = \
1174 $(LIBCRYPTO_LIBS)
1175
1176 dnspcap2calidns_SOURCES = \
1177 base32.cc \
1178 base64.cc base64.hh \
1179 dnslabeltext.cc \
1180 dnsname.cc dnsname.hh \
1181 dnsparser.cc dnsparser.hh \
1182 dnspcap.cc dnspcap.hh \
1183 dnspcap2calidns.cc \
1184 dnsrecords.cc \
1185 dnswriter.cc dnswriter.hh \
1186 ednsoptions.cc ednsoptions.hh \
1187 ednssubnet.cc ednssubnet.hh \
1188 iputils.cc \
1189 logger.cc \
1190 misc.cc \
1191 nsecrecords.cc \
1192 qtype.cc \
1193 rcpgenerator.cc rcpgenerator.hh \
1194 sillyrecords.cc \
1195 statbag.cc \
1196 unix_utility.cc \
1197 utility.hh
1198
1199 dnspcap2calidns_LDFLAGS = \
1200 $(AM_LDFLAGS) \
1201 $(LIBCRYPTO_LDFLAGS) \
1202 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1203
1204 dnspcap2calidns_LDADD = \
1205 $(LIBCRYPTO_LIBS) \
1206 $(BOOST_PROGRAM_OPTIONS_LIBS)
1207
1208 if HAVE_PROTOBUF
1209 if HAVE_PROTOC
1210 bin_PROGRAMS += dnspcap2protobuf
1211
1212 dnsmessage.pb.cc: dnsmessage.proto
1213 $(AM_V_GEN)$(PROTOC) --cpp_out=./ $<
1214
1215 BUILT_SOURCES += dnsmessage.pb.cc
1216 dnspcap2protobuf.$(OBJEXT): dnsmessage.pb.cc
1217
1218 dnspcap2protobuf_SOURCES = \
1219 base32.cc \
1220 base64.cc base64.hh \
1221 dnslabeltext.cc \
1222 dnsname.cc dnsname.hh \
1223 dnsparser.cc dnsparser.hh \
1224 dnspcap.cc dnspcap.hh \
1225 dnspcap2protobuf.cc \
1226 dnsrecords.cc \
1227 dnswriter.cc dnswriter.hh \
1228 gettime.cc gettime.hh \
1229 iputils.cc \
1230 logger.cc \
1231 misc.cc \
1232 nsecrecords.cc \
1233 protobuf.cc protobuf.hh \
1234 qtype.cc \
1235 rcpgenerator.cc rcpgenerator.hh \
1236 sillyrecords.cc \
1237 statbag.cc \
1238 unix_utility.cc \
1239 utility.hh \
1240 uuid-utils.hh uuid-utils.cc
1241
1242 nodist_dnspcap2protobuf_SOURCES=dnsmessage.pb.cc dnsmessage.pb.h
1243
1244 dnspcap2protobuf_LDFLAGS = \
1245 $(AM_LDFLAGS) \
1246 $(LIBCRYPTO_LDFLAGS) \
1247 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1248
1249 dnspcap2protobuf_LDADD = \
1250 $(LIBCRYPTO_LIBS) \
1251 $(PROTOBUF_LIBS) \
1252 $(BOOST_PROGRAM_OPTIONS_LIBS) \
1253 $(RT_LIBS)
1254 endif
1255 endif
1256
1257 pdns.conf-dist: pdns_server
1258 $(AM_V_GEN)./pdns_server --no-config --config=default 2>/dev/null > $@
1259
1260 testrunner_SOURCES = \
1261 arguments.cc \
1262 auth-caches.cc auth-caches.hh \
1263 auth-packetcache.cc auth-packetcache.hh \
1264 auth-querycache.cc auth-querycache.hh \
1265 base32.cc \
1266 base64.cc \
1267 bindlexer.l \
1268 bindparser.yy \
1269 dbdnsseckeeper.cc \
1270 dns.cc \
1271 dns_random.cc \
1272 dnsbackend.cc \
1273 dnslabeltext.cc \
1274 dnsname.cc \
1275 dnsname.hh \
1276 dnspacket.cc \
1277 dnsparser.hh dnsparser.cc \
1278 dnsrecords.cc \
1279 dnssecinfra.cc \
1280 dnssecsigner.cc \
1281 dnswriter.cc \
1282 ednsoptions.cc ednsoptions.hh \
1283 ednscookies.cc ednscookies.hh \
1284 ednssubnet.cc \
1285 gettime.cc gettime.hh \
1286 gss_context.cc gss_context.hh \
1287 ipcipher.cc ipcipher.hh \
1288 iputils.cc \
1289 ixfr.cc ixfr.hh \
1290 logger.cc \
1291 lua-auth4.hh lua-auth4.cc \
1292 lua-base4.hh lua-base4.cc \
1293 stubresolver.hh stubresolver.cc \
1294 misc.cc \
1295 nameserver.cc \
1296 nsecrecords.cc \
1297 opensslsigners.cc opensslsigners.hh \
1298 pollmplexer.cc \
1299 proxy-protocol.cc proxy-protocol.hh \
1300 qtype.cc \
1301 rcpgenerator.cc \
1302 responsestats.cc \
1303 responsestats-auth.cc \
1304 shuffle.cc shuffle.hh \
1305 sillyrecords.cc \
1306 statbag.cc \
1307 test-arguments_cc.cc \
1308 test-base32_cc.cc \
1309 test-base64_cc.cc \
1310 test-bindparser_cc.cc \
1311 test-common.hh \
1312 test-dnsrecordcontent.cc \
1313 test-digests_hh.cc \
1314 test-distributor_hh.cc \
1315 test-dns_random_hh.cc \
1316 test-dnsname_cc.cc \
1317 test-dnsparser_cc.cc \
1318 test-dnsparser_hh.cc \
1319 test-dnsrecords_cc.cc \
1320 test-dnswriter_cc.cc \
1321 test-ipcrypt_cc.cc \
1322 test-iputils_hh.cc \
1323 test-ixfr_cc.cc \
1324 test-lock_hh.cc \
1325 test-lua_auth4_cc.cc \
1326 test-misc_hh.cc \
1327 test-mplexer.cc \
1328 test-nameserver_cc.cc \
1329 test-packetcache_cc.cc \
1330 test-packetcache_hh.cc \
1331 test-proxy_protocol_cc.cc \
1332 test-rcpgenerator_cc.cc \
1333 test-signers.cc \
1334 test-sha_hh.cc \
1335 test-statbag_cc.cc \
1336 test-tsig.cc \
1337 test-zoneparser_tng_cc.cc \
1338 testrunner.cc \
1339 threadname.hh threadname.cc \
1340 tsigverifier.cc tsigverifier.hh \
1341 ueberbackend.cc \
1342 unix_utility.cc \
1343 zoneparser-tng.cc zoneparser-tng.hh
1344
1345 testrunner_LDFLAGS = \
1346 $(AM_LDFLAGS) \
1347 $(LIBCRYPTO_LDFLAGS) \
1348 $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS)
1349
1350 testrunner_LDADD = \
1351 $(LIBCRYPTO_LIBS) \
1352 $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \
1353 $(RT_LIBS) \
1354 $(LUA_LIBS) \
1355 $(LIBDL) \
1356 $(IPCRYPT_LIBS)
1357
1358 if PKCS11
1359 testrunner_SOURCES += pkcs11signers.cc pkcs11signers.hh
1360 testrunner_LDADD += $(P11KIT1_LIBS)
1361 endif
1362
1363 if LIBSODIUM
1364 testrunner_SOURCES += sodiumsigners.cc
1365 testrunner_LDADD += $(LIBSODIUM_LIBS)
1366 endif
1367
1368 if LIBDECAF
1369 testrunner_SOURCES += decafsigners.cc
1370 testrunner_LDADD += $(LIBDECAF_LIBS)
1371 endif
1372
1373 if HAVE_FREEBSD
1374 ixfrdist_SOURCES += kqueuemplexer.cc
1375 testrunner_SOURCES += kqueuemplexer.cc
1376 endif
1377
1378 if HAVE_LINUX
1379 ixfrdist_SOURCES += epollmplexer.cc
1380 testrunner_SOURCES += epollmplexer.cc
1381 endif
1382
1383 if HAVE_SOLARIS
1384 ixfrdist_SOURCES += \
1385 devpollmplexer.cc \
1386 portsmplexer.cc
1387 testrunner_SOURCES += \
1388 devpollmplexer.cc \
1389 portsmplexer.cc
1390 endif
1391
1392 pdns_control_SOURCES = \
1393 arguments.cc \
1394 dynloader.cc \
1395 dynmessenger.cc \
1396 logger.cc \
1397 misc.cc \
1398 qtype.cc \
1399 statbag.cc \
1400 unix_utility.cc \
1401 dnsname.cc \
1402 dnslabeltext.cc
1403
1404 if UNIT_TESTS
1405
1406 if HAVE_BOOST_GE_148
1407 TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message SRCDIR='$(srcdir)'
1408 TESTS=testrunner
1409 else
1410 check-local:
1411 @echo "Unit tests disabled, boost is too old"
1412 endif
1413
1414 else
1415 check-local:
1416 @echo "Unit tests are not enabled"
1417 @echo "Run ./configure --enable-unit-tests"
1418 endif
1419
1420 if FUZZ_TARGETS
1421
1422 LIB_FUZZING_ENGINE ?= standalone_fuzz_target_runner.o
1423
1424 standalone_fuzz_target_runner.o: standalone_fuzz_target_runner.cc
1425
1426 fuzz_targets_programs = \
1427 fuzz_target_dnsdistcache \
1428 fuzz_target_moadnsparser \
1429 fuzz_target_packetcache \
1430 fuzz_target_proxyprotocol \
1431 fuzz_target_zoneparsertng
1432
1433 fuzz_targets: $(fuzz_targets_programs)
1434
1435 bin_PROGRAMS += \
1436 $(fuzz_targets_programs)
1437
1438 fuzz_targets_libs = \
1439 $(LIBCRYPTO_LIBS) \
1440 $(LIB_FUZZING_ENGINE)
1441 fuzz_targets_ldflags = \
1442 $(AM_LDFLAGS) \
1443 $(DYNLINKFLAGS) \
1444 $(LIBCRYPTO_LDFLAGS) \
1445 $(FUZZING_LDFLAGS)
1446
1447 # we need the mockup runner to be built, but not linked if a real fuzzing engine is used
1448 fuzz_targets_deps = standalone_fuzz_target_runner.o
1449
1450 fuzz_target_moadnsparser_SOURCES = \
1451 fuzz_moadnsparser.cc \
1452 base32.cc base32.hh \
1453 base64.cc base64.hh \
1454 dnslabeltext.cc \
1455 dnsname.cc dnsname.hh \
1456 dnsparser.cc dnsparser.hh \
1457 dnsrecords.cc dnsrecords.hh \
1458 dnswriter.cc dnswriter.hh \
1459 logger.cc logger.hh \
1460 misc.cc misc.hh \
1461 nsecrecords.cc \
1462 qtype.cc qtype.hh \
1463 rcpgenerator.cc rcpgenerator.hh \
1464 sillyrecords.cc \
1465 statbag.cc statbag.hh \
1466 unix_utility.cc \
1467 utility.hh
1468
1469 fuzz_target_moadnsparser_DEPENDENCIES = $(fuzz_targets_deps)
1470 fuzz_target_moadnsparser_LDFLAGS = $(fuzz_targets_ldflags)
1471 fuzz_target_moadnsparser_LDADD = $(fuzz_targets_libs)
1472
1473 fuzz_target_packetcache_SOURCES = \
1474 fuzz_packetcache.cc \
1475 dnslabeltext.cc \
1476 dnsname.cc dnsname.hh \
1477 ednsoptions.cc ednsoptions.hh \
1478 misc.cc misc.hh \
1479 packetcache.hh \
1480 qtype.cc qtype.hh \
1481 statbag.cc statbag.hh
1482
1483 fuzz_target_packetcache_DEPENDENCIES = $(fuzz_targets_deps)
1484 fuzz_target_packetcache_LDFLAGS = $(fuzz_targets_ldflags)
1485 fuzz_target_packetcache_LDADD = $(fuzz_targets_libs)
1486
1487 fuzz_target_proxyprotocol_SOURCES = \
1488 fuzz_proxyprotocol.cc \
1489 iputils.hh \
1490 proxy-protocol.cc \
1491 proxy-protocol.hh
1492
1493 fuzz_target_proxyprotocol_DEPENDENCIES = $(fuzz_targets_deps)
1494 fuzz_target_proxyprotocol_LDFLAGS = $(fuzz_targets_ldflags)
1495 fuzz_target_proxyprotocol_LDADD = $(fuzz_targets_libs)
1496
1497 fuzz_target_dnsdistcache_SOURCES = \
1498 fuzz_dnsdistcache.cc \
1499 dnsdist-cache.cc dnsdist-cache.hh \
1500 dnsdist-ecs.cc dnsdist-ecs.hh \
1501 dnslabeltext.cc \
1502 dnsname.cc dnsname.hh \
1503 dnsparser.cc dnsparser.hh \
1504 dnswriter.cc dnswriter.hh \
1505 doh.hh \
1506 ednsoptions.cc ednsoptions.hh \
1507 ednssubnet.cc ednssubnet.hh \
1508 iputils.cc iputils.hh \
1509 misc.cc misc.hh \
1510 packetcache.hh \
1511 qtype.cc qtype.hh
1512
1513 fuzz_target_dnsdistcache_DEPENDENCIES = $(fuzz_targets_deps)
1514 fuzz_target_dnsdistcache_LDFLAGS = $(fuzz_targets_ldflags)
1515 fuzz_target_dnsdistcache_LDADD = $(fuzz_targets_libs)
1516
1517 fuzz_target_zoneparsertng_SOURCES = \
1518 fuzz_zoneparsertng.cc \
1519 base32.cc base32.hh \
1520 base64.cc base64.hh \
1521 dnslabeltext.cc \
1522 dnsname.cc dnsname.hh \
1523 dnsparser.cc dnsparser.hh \
1524 dnsrecords.cc dnsrecords.hh \
1525 dnswriter.cc dnswriter.hh \
1526 logger.cc logger.hh \
1527 misc.cc misc.hh \
1528 nsecrecords.cc \
1529 qtype.cc qtype.hh \
1530 rcpgenerator.cc rcpgenerator.hh \
1531 sillyrecords.cc \
1532 statbag.cc statbag.hh \
1533 unix_utility.cc \
1534 utility.hh \
1535 zoneparser-tng.cc zoneparser-tng.hh
1536
1537 fuzz_target_zoneparsertng_DEPENDENCIES = $(fuzz_targets_deps)
1538 fuzz_target_zoneparsertng_LDFLAGS = $(fuzz_targets_ldflags)
1539 fuzz_target_zoneparsertng_LDADD = $(fuzz_targets_libs)
1540
1541 endif
1542
1543 dnslabeltext.cc: dnslabeltext.rl
1544 $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc
1545
1546 bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql
1547 ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g' ; echo ';' ) > $@
1548
1549 # for bindparser.h/hh
1550 .hh.h:
1551 cp $< $@
1552
1553 bindlexer.$(OBJEXT): bindparser.h
1554
1555 curl_verbose = $(curl_verbose_$(V))
1556 curl_verbose_ = $(curl_verbose_$(AM_DEFAULT_VERBOSITY))
1557 curl_verbose_0 = @echo " CURL " $@;
1558 $(srcdir)/effective_tld_names.dat:
1559 $(curl_verbose)if ! curl -s -S https://publicsuffix.org/list/public_suffix_list.dat > $@; then rm -f $@; exit 1; fi
1560
1561 pubsuffix.cc: $(srcdir)/effective_tld_names.dat
1562 $(AM_V_GEN)./mkpubsuffixcc
1563
1564 pdns_recursor rec_control:
1565 @echo "Please build the recursor from the recursordist/ dir"
1566 @exit 1
1567
1568 dnsdist:
1569 @echo "Please build dnsdist from the dnsdistdist/ dir"
1570 @exit 1
1571
1572 if HAVE_SYSTEMD
1573 pdns.service: pdns.service.in
1574 $(AM_V_GEN)sed -e 's![@]sbindir[@]!$(sbindir)!' -e 's![@]service_user[@]!$(service_user)!' -e 's![@]service_group[@]!$(service_group)!' < $< > $@
1575 if !HAVE_SYSTEMD_LOCK_PERSONALITY
1576 $(AM_V_GEN)perl -ni -e 'print unless /^LockPersonality/' $@
1577 endif
1578 if !HAVE_SYSTEMD_PRIVATE_DEVICES
1579 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateDevices/' $@
1580 endif
1581 if !HAVE_SYSTEMD_PRIVATE_TMP
1582 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateTmp/' $@
1583 endif
1584 if !HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS
1585 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectControlGroups/' $@
1586 endif
1587 if !HAVE_SYSTEMD_PROTECT_HOME
1588 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectHome/' $@
1589 endif
1590 if !HAVE_SYSTEMD_PROTECT_KERNEL_MODULES
1591 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelModules/' $@
1592 endif
1593 if !HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES
1594 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelTunables/' $@
1595 endif
1596 if !HAVE_SYSTEMD_PROTECT_SYSTEM
1597 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectSystem/' $@
1598 endif
1599 if !HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES
1600 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictAddressFamilies/' $@
1601 endif
1602 if !HAVE_SYSTEMD_RESTRICT_NAMESPACES
1603 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictNamespaces/' $@
1604 endif
1605 if !HAVE_SYSTEMD_RESTRICT_REALTIME
1606 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictRealtime/' $@
1607 endif
1608 if !HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES
1609 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallArchitectures/' $@
1610 endif
1611 if !HAVE_SYSTEMD_SYSTEM_CALL_FILTER
1612 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallFilter/' $@
1613 endif
1614
1615 pdns@.service: pdns.service
1616 $(AM_V_GEN)sed -e 's!/pdns_server!& --config-name=%i!' \
1617 -e 's!Authoritative Server!& %i!' \
1618 < $< > $@
1619
1620 systemdsystemunitdir = $(SYSTEMD_DIR)
1621
1622 systemdsystemunit_DATA = \
1623 pdns.service \
1624 pdns@.service
1625
1626 CLEANFILES += \
1627 pdns.service \
1628 pdns@.service
1629
1630 if IXFRDIST
1631 ixfrdist.service: ixfrdist.service.in
1632 $(AM_V_GEN)sed -e 's![@]bindir[@]!$(bindir)!' < $< > $@
1633
1634 ixfrdist@.service: ixfrdist.service
1635 $(AM_V_GEN)sed -e 's!/ixfrdist!& --config $(sysconfdir)/ixfrdist-%i.yml!' \
1636 < $< > $@
1637
1638 systemdsystemunit_DATA += \
1639 ixfrdist.service \
1640 ixfrdist@.service
1641 endif # IXFRDIST
1642
1643 CLEANFILES += \
1644 ixfrdist.service \
1645 ixfrdist@.service
1646
1647 endif # HAVE_SYSTEMD