]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/Makefile.am
Merge pull request #7871 from omoerbeek/calidns-openbsd
[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 bin_PROGRAMS += calidns
103
104 if HAVE_BOOST_GE_148
105 bin_PROGRAMS += \
106 dnsbulktest \
107 dnstcpbench
108 endif
109
110 endif # TOOLS
111
112 if IXFRDIST
113 bin_PROGRAMS += \
114 ixfrdist
115
116 sysconf_DATA += \
117 ixfrdist.example.yml
118 endif
119
120 EXTRA_PROGRAMS = \
121 calidns \
122 comfun \
123 dnsbulktest \
124 dnsdemog \
125 dnsgram \
126 dnspcap2calidns \
127 dnsreplay \
128 dnsscan \
129 dnsscope \
130 dnstcpbench \
131 dnswasher \
132 dumresp \
133 kvresp \
134 ixplore \
135 ixfrdist \
136 pdns_notify \
137 nproxy \
138 nsec3dig \
139 saxfr \
140 stubquery \
141 sdig \
142 speedtest \
143 testrunner \
144 toysdig \
145 tsig-tests \
146 zone2ldap
147
148 pdns_server_SOURCES = \
149 arguments.cc arguments.hh \
150 ascii.hh \
151 auth-carbon.cc \
152 auth-caches.cc auth-caches.hh \
153 auth-packetcache.cc auth-packetcache.hh \
154 auth-querycache.cc auth-querycache.hh \
155 backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \
156 backends/gsql/ssql.hh \
157 base32.cc base32.hh \
158 base64.cc base64.hh \
159 bind-dnssec.schema.sqlite3.sql.h \
160 bindlexer.l \
161 bindparser.cc \
162 cachecleaner.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-auth.cc secpoll-auth.hh \
211 serialtweaker.cc \
212 sha.hh \
213 signingpipe.cc signingpipe.hh \
214 sillyrecords.cc \
215 slavecommunicator.cc \
216 statbag.cc statbag.hh \
217 stubresolver.cc stubresolver.hh \
218 tcpreceiver.cc tcpreceiver.hh \
219 threadname.hh threadname.cc \
220 tsigverifier.cc tsigverifier.hh \
221 tsigutils.hh tsigutils.cc \
222 tkey.cc \
223 ueberbackend.cc ueberbackend.hh \
224 uuid-utils.hh uuid-utils.cc \
225 unix_semaphore.cc \
226 unix_utility.cc \
227 utility.hh \
228 version.cc version.hh \
229 webserver.cc webserver.hh \
230 ws-api.cc ws-api.hh \
231 ws-auth.cc ws-auth.hh \
232 zoneparser-tng.cc
233
234 pdns_server_LDFLAGS = \
235 $(AM_LDFLAGS) \
236 $(DYNLINKFLAGS) \
237 $(LIBCRYPTO_LDFLAGS)
238
239 EXTRA_pdns_server_DEPENDENCIES = @moduleobjects@
240 pdns_server_LDADD = \
241 @moduleobjects@ \
242 @modulelibs@ \
243 $(LIBDL) \
244 $(YAHTTP_LIBS) \
245 $(JSON11_LIBS) \
246 $(LIBCRYPTO_LIBS) \
247 $(SYSTEMD_LIBS)
248
249 if HAVE_LUA_RECORDS
250 pdns_server_SOURCES += lua-record.cc minicurl.cc minicurl.hh
251 pdns_server_LDADD += $(LIBCURL)
252 endif
253
254 if LIBSODIUM
255 pdns_server_SOURCES += sodiumsigners.cc
256 pdns_server_LDADD += $(LIBSODIUM_LIBS)
257 endif
258
259 if LIBDECAF
260 pdns_server_SOURCES += decafsigners.cc
261 pdns_server_LDADD += $(LIBDECAF_LIBS)
262 endif
263
264 if SQLITE3
265 pdns_server_SOURCES += ssqlite3.cc ssqlite3.hh
266 pdns_server_LDADD += $(SQLITE3_LIBS)
267 endif
268
269 if ORACLE
270 pdns_server_LDADD += $(ORACLE_LIBS)
271 endif
272
273 if PKCS11
274 pdns_server_SOURCES += pkcs11signers.cc pkcs11signers.hh
275 pdns_server_LDADD += $(P11KIT1_LIBS)
276 endif
277
278 if LUA
279 pdns_server_LDADD += $(LUA_LIBS)
280 endif
281
282 if GSS_TSIG
283 pdns_server_LDADD += $(GSS_LIBS)
284 endif
285
286 pdnsutil_SOURCES = \
287 arguments.cc \
288 auth-caches.cc auth-caches.hh \
289 auth-packetcache.cc auth-packetcache.hh \
290 auth-querycache.cc auth-querycache.hh \
291 backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \
292 backends/gsql/ssql.hh \
293 base32.cc \
294 base64.cc base64.hh \
295 bindlexer.l \
296 bindparser.yy \
297 cachecleaner.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 ORACLE
371 pdnsutil_LDADD += $(ORACLE_LIBS)
372 endif
373
374 if PKCS11
375 pdnsutil_SOURCES += pkcs11signers.cc pkcs11signers.hh
376 pdnsutil_LDADD += $(P11KIT1_LIBS)
377 endif
378
379 if LUA
380 pdnsutil_LDADD += $(LUA_LIBS)
381 endif
382
383 if GSS_TSIG
384 pdnsutil_LDADD += $(GSS_LIBS)
385 endif
386
387 zone2sql_SOURCES = \
388 arguments.cc \
389 base32.cc \
390 base64.cc \
391 bind-dnssec.schema.sqlite3.sql.h \
392 bindlexer.l \
393 bindparser.yy \
394 bindparserclasses.hh \
395 dns.cc \
396 dns_random_urandom.cc \
397 dnsname.cc dnsname.hh \
398 dnslabeltext.cc \
399 dnsparser.cc \
400 dnsrecords.cc \
401 dnswriter.cc \
402 json.cc json.hh \
403 logger.cc \
404 misc.cc \
405 nsecrecords.cc \
406 qtype.cc \
407 rcpgenerator.cc \
408 sillyrecords.cc \
409 statbag.cc \
410 unix_utility.cc \
411 zone2sql.cc \
412 zoneparser-tng.cc
413
414 zone2sql_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
415 zone2sql_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
416
417 zone2json_SOURCES = \
418 arguments.cc \
419 base32.cc \
420 base64.cc \
421 bind-dnssec.schema.sqlite3.sql.h \
422 bindlexer.l \
423 bindparser.yy \
424 bindparserclasses.hh \
425 dnslabeltext.cc \
426 dnsname.cc dnsname.hh \
427 dnsparser.cc \
428 dnsrecords.cc \
429 dnswriter.cc \
430 logger.cc \
431 misc.cc \
432 nsecrecords.cc \
433 qtype.cc \
434 rcpgenerator.cc \
435 sillyrecords.cc \
436 statbag.cc \
437 unix_utility.cc \
438 zone2json.cc \
439 zoneparser-tng.cc
440
441 zone2json_LDADD = $(LIBCRYPTO_LIBS) $(JSON11_LIBS)
442 zone2json_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
443
444 # pkglib_LTLIBRARIES = iputils.la
445 # iputils_la_SOURCES = lua-iputils.cc
446 # iputils_la_LDFLAGS= -module -avoid-version
447
448 if LDAP
449 bin_PROGRAMS += zone2ldap
450 endif
451
452 zone2ldap_SOURCES = \
453 arguments.cc \
454 base32.cc \
455 base64.cc \
456 bind-dnssec.schema.sqlite3.sql.h \
457 bindlexer.l \
458 bindparser.yy \
459 bindparserclasses.hh \
460 dns_random_urandom.cc \
461 dnsname.cc dnsname.hh \
462 dnslabeltext.cc \
463 dnsparser.cc \
464 dnsrecords.cc \
465 dnswriter.cc \
466 logger.cc \
467 misc.cc \
468 nsecrecords.cc \
469 qtype.cc \
470 rcpgenerator.cc \
471 sillyrecords.cc \
472 statbag.cc \
473 unix_utility.cc \
474 zone2ldap.cc \
475 zoneparser-tng.cc
476
477 zone2ldap_LDADD = $(LIBCRYPTO_LIBS)
478 zone2ldap_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
479
480 sdig_SOURCES = \
481 base32.cc \
482 base64.cc base64.hh \
483 dns.cc \
484 dnslabeltext.cc \
485 dnsname.cc dnsname.hh \
486 dnsparser.cc dnsparser.hh \
487 dnsrecords.cc \
488 dnswriter.cc dnswriter.hh \
489 ednssubnet.cc iputils.cc \
490 logger.cc \
491 misc.cc misc.hh \
492 nsecrecords.cc \
493 qtype.cc \
494 rcpgenerator.cc rcpgenerator.hh \
495 sdig.cc \
496 sillyrecords.cc \
497 sstuff.hh \
498 statbag.cc \
499 unix_utility.cc
500
501 sdig_LDADD = $(LIBCRYPTO_LIBS)
502 sdig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
503
504 if HAVE_LIBCURL
505 sdig_SOURCES += minicurl.cc minicurl.hh
506 sdig_LDADD += $(LIBCURL)
507 endif
508
509 calidns_SOURCES = \
510 base32.cc \
511 base64.cc base64.hh \
512 calidns.cc \
513 dns_random_urandom.cc dns_random.hh \
514 dnslabeltext.cc \
515 dnsname.cc dnsname.hh \
516 dnsparser.cc dnsparser.hh \
517 dnsrecords.cc \
518 dnswriter.cc dnswriter.hh \
519 ednsoptions.cc ednsoptions.hh \
520 ednssubnet.cc ednssubnet.hh \
521 iputils.cc \
522 logger.cc \
523 misc.cc misc.hh \
524 nsecrecords.cc \
525 qtype.cc \
526 rcpgenerator.cc rcpgenerator.hh \
527 sillyrecords.cc \
528 sstuff.hh \
529 statbag.cc \
530 unix_utility.cc
531
532 calidns_LDADD = $(LIBCRYPTO_LIBS) \
533 $(BOOST_PROGRAM_OPTIONS_LIBS)
534 calidns_LDFLAGS = $(AM_LDFLAGS) $(THREADFLAGS) $(LIBCRYPTO_LDFLAGS) \
535 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
536
537 dumresp_SOURCES = \
538 dnslabeltext.cc \
539 dnsname.cc dnsname.hh \
540 dumresp.cc \
541 logger.cc \
542 misc.cc misc.hh \
543 statbag.cc \
544 unix_utility.cc \
545 qtype.cc
546
547 kvresp_SOURCES = \
548 dnslabeltext.cc dnsname.cc dnsname.hh \
549 kvresp.cc \
550 logger.cc \
551 misc.cc misc.hh \
552 statbag.cc \
553 unix_utility.cc \
554 qtype.cc
555
556 stubquery_SOURCES = \
557 arguments.cc arguments.hh \
558 base32.cc \
559 base64.cc \
560 dns_random_urandom.cc \
561 dnslabeltext.cc \
562 dnsname.cc \
563 dnsparser.cc \
564 dnsrecords.cc \
565 dnswriter.cc \
566 iputils.cc \
567 logger.cc \
568 misc.cc \
569 nsecrecords.cc \
570 qtype.cc \
571 rcpgenerator.cc \
572 sillyrecords.cc \
573 statbag.cc \
574 stubresolver.cc stubresolver.hh \
575 stubquery.cc \
576 unix_utility.cc
577
578 stubquery_LDADD = $(LIBCRYPTO_LIBS)
579 stubquery_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
580
581 saxfr_SOURCES = \
582 base32.cc \
583 base64.cc base64.hh \
584 dns_random_urandom.cc dns_random.hh \
585 dnslabeltext.cc \
586 dnsname.cc dnsname.hh \
587 dnsparser.cc dnsparser.hh \
588 dnsrecords.cc \
589 dnssecinfra.cc \
590 dnswriter.cc dnswriter.hh \
591 gss_context.cc gss_context.hh \
592 iputils.cc \
593 logger.cc \
594 misc.cc misc.hh \
595 nsecrecords.cc \
596 qtype.cc \
597 rcpgenerator.cc rcpgenerator.hh \
598 saxfr.cc \
599 sillyrecords.cc \
600 sstuff.hh \
601 statbag.cc \
602 unix_utility.cc
603
604 saxfr_LDADD = $(LIBCRYPTO_LIBS)
605 saxfr_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
606
607 if PKCS11
608 saxfr_SOURCES += pkcs11signers.cc pkcs11signers.hh
609 saxfr_LDADD += $(P11KIT1_LIBS)
610 endif
611
612 if GSS_TSIG
613 saxfr_LDADD += $(GSS_LIBS)
614 endif
615
616 ixfrdist_SOURCES = \
617 arguments.cc \
618 base32.cc \
619 base64.cc base64.hh \
620 dns.cc \
621 dns_random_urandom.cc dns_random.hh \
622 dnslabeltext.cc \
623 dnsname.cc dnsname.hh \
624 dnsparser.cc dnsparser.hh \
625 dnsrecords.cc \
626 dnssecinfra.cc \
627 dnswriter.cc dnswriter.hh \
628 gss_context.cc gss_context.hh \
629 iputils.hh iputils.cc \
630 ixfr.cc ixfr.hh \
631 ixfrdist.cc \
632 ixfrutils.cc ixfrutils.hh \
633 ixfrdist-stats.hh ixfrdist-stats.cc \
634 ixfrdist-web.hh ixfrdist-web.cc \
635 logger.cc logger.hh\
636 misc.cc misc.hh \
637 mplexer.hh \
638 nsecrecords.cc \
639 qtype.cc \
640 rcpgenerator.cc rcpgenerator.hh \
641 resolver.cc \
642 pollmplexer.cc \
643 sillyrecords.cc \
644 sstuff.hh \
645 statbag.cc \
646 threadname.hh threadname.cc \
647 tsigverifier.cc tsigverifier.hh \
648 unix_utility.cc \
649 uuid-utils.hh uuid-utils.cc \
650 webserver.hh webserver.cc \
651 zoneparser-tng.cc
652
653
654 ixfrdist_LDADD = \
655 $(BOOST_PROGRAM_OPTIONS_LIBS) \
656 $(JSON11_LIBS) \
657 $(LIBCRYPTO_LIBS) \
658 $(YAHTTP_LIBS) \
659 $(YAML_LIBS)
660
661 ixfrdist_LDFLAGS = \
662 $(AM_LDFLAGS) \
663 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
664 $(LIBCRYPTO_LDFLAGS)
665
666 if PKCS11
667 ixfrdist_SOURCES += pkcs11signers.cc pkcs11signers.hh
668 ixfrdist_LDADD += $(P11KIT1_LIBS)
669 endif
670
671 if GSS_TSIG
672 ixfrdist_LDADD += $(GSS_LIBS)
673 endif
674
675
676 ixplore_SOURCES = \
677 arguments.cc \
678 base32.cc \
679 base64.cc base64.hh \
680 dns.cc \
681 dns_random_urandom.cc dns_random.hh \
682 dnslabeltext.cc \
683 dnsname.cc dnsname.hh \
684 dnsparser.cc dnsparser.hh \
685 dnsrecords.cc \
686 dnssecinfra.cc \
687 dnswriter.cc dnswriter.hh \
688 gss_context.cc gss_context.hh \
689 iputils.cc \
690 logger.cc \
691 misc.cc misc.hh \
692 nsecrecords.cc \
693 qtype.cc \
694 rcpgenerator.cc rcpgenerator.hh \
695 resolver.cc \
696 ixfr.cc ixfr.hh \
697 ixfrutils.cc ixfrutils.hh \
698 ixplore.cc \
699 sillyrecords.cc \
700 sstuff.hh \
701 statbag.cc \
702 tsigverifier.cc tsigverifier.hh \
703 unix_utility.cc zoneparser-tng.cc
704
705 ixplore_LDADD = $(LIBCRYPTO_LIBS)
706 ixplore_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
707
708 if PKCS11
709 ixplore_SOURCES += pkcs11signers.cc pkcs11signers.hh
710 ixplore_LDADD += $(P11KIT1_LIBS)
711 endif
712
713 if GSS_TSIG
714 ixplore_LDADD += $(GSS_LIBS)
715 endif
716
717
718 dnstcpbench_SOURCES = \
719 base32.cc \
720 base64.cc base64.hh \
721 dnslabeltext.cc \
722 dnsname.cc dnsname.hh \
723 dnsparser.cc dnsparser.hh \
724 dnsrecords.cc \
725 dnstcpbench.cc \
726 dnswriter.cc dnswriter.hh \
727 iputils.cc \
728 logger.cc \
729 misc.cc misc.hh \
730 nsecrecords.cc \
731 qtype.cc \
732 rcpgenerator.cc rcpgenerator.hh \
733 sillyrecords.cc \
734 sstuff.hh \
735 statbag.cc \
736 threadname.hh threadname.cc \
737 unix_utility.cc
738
739 dnstcpbench_LDFLAGS = \
740 $(AM_LDFLAGS) \
741 $(LIBCRYPTO_LDFLAGS) \
742 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
743
744 dnstcpbench_LDADD = \
745 $(LIBCRYPTO_LIBS) \
746 $(BOOST_PROGRAM_OPTIONS_LIBS)
747
748 nsec3dig_SOURCES = \
749 base32.cc \
750 base64.cc base64.hh \
751 dnsname.cc dnsname.hh \
752 dnslabeltext.cc \
753 dnsparser.cc dnsparser.hh \
754 dnsrecords.cc \
755 dnssecinfra.cc \
756 dnswriter.cc dnswriter.hh \
757 gss_context.cc gss_context.hh \
758 iputils.cc \
759 logger.cc \
760 misc.cc misc.hh \
761 nsec3dig.cc \
762 nsecrecords.cc \
763 qtype.cc \
764 rcpgenerator.cc rcpgenerator.hh \
765 sillyrecords.cc \
766 sstuff.hh \
767 statbag.cc \
768 unix_utility.cc
769
770 nsec3dig_LDADD = $(LIBCRYPTO_LIBS)
771 nsec3dig_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
772
773 if PKCS11
774 nsec3dig_SOURCES += pkcs11signers.cc pkcs11signers.hh
775 nsec3dig_LDADD += $(P11KIT1_LIBS)
776 endif
777
778 if GSS_TSIG
779 nsec3dig_LDADD += $(GSS_LIBS)
780 endif
781
782 toysdig_SOURCES = \
783 base32.cc \
784 base64.cc base64.hh \
785 dns_random_urandom.cc \
786 dnsname.cc dnsname.hh \
787 dnslabeltext.cc \
788 dnsparser.cc dnsparser.hh \
789 dnsrecords.cc \
790 dnssecinfra.cc \
791 dnswriter.cc dnswriter.hh \
792 ednssubnet.cc ednssubnet.hh \
793 filterpo.hh \
794 gss_context.cc gss_context.hh \
795 iputils.cc \
796 logger.cc \
797 misc.cc misc.hh \
798 nsecrecords.cc \
799 opensslsigners.cc opensslsigners.hh \
800 qtype.cc \
801 root-dnssec.hh \
802 rcpgenerator.cc rcpgenerator.hh \
803 rec-lua-conf.hh \
804 recursor_cache.hh \
805 sholder.hh \
806 sillyrecords.cc \
807 sortlist.hh \
808 sstuff.hh \
809 statbag.cc \
810 toysdig.cc \
811 unix_utility.cc \
812 validate.cc validate.hh
813
814
815 toysdig_LDFLAGS = $(AM_LDFLAGS) \
816 $(LIBCRYPTO_LDFLAGS)
817 toysdig_LDADD = $(LIBCRYPTO_LIBS)
818
819 if GSS_TSIG
820 toysdig_LDADD += $(GSS_LIBS)
821 endif
822
823 if PKCS11
824 toysdig_SOURCES += pkcs11signers.cc pkcs11signers.hh
825 toysdig_LDADD += $(P11KIT1_LIBS)
826 endif
827
828 tsig_tests_SOURCES = \
829 arguments.cc \
830 base32.cc \
831 base64.cc base64.hh \
832 digests.hh \
833 dns.cc \
834 dns_random_urandom.cc dns_random.hh \
835 dnslabeltext.cc \
836 dnsname.cc dnsname.hh \
837 dnsparser.cc dnsparser.hh \
838 dnsrecords.cc \
839 dnssecinfra.cc \
840 dnswriter.cc dnswriter.hh \
841 gss_context.cc gss_context.hh \
842 logger.cc \
843 misc.cc misc.hh \
844 nsecrecords.cc \
845 qtype.cc \
846 rcpgenerator.cc rcpgenerator.hh \
847 resolver.cc \
848 sillyrecords.cc \
849 sstuff.hh \
850 statbag.cc \
851 tsig-tests.cc \
852 tsigverifier.cc tsigverifier.hh \
853 unix_utility.cc
854
855 tsig_tests_LDADD = $(LIBCRYPTO_LIBS)
856 tsig_tests_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
857
858 if PKCS11
859 tsig_tests_SOURCES += pkcs11signers.cc pkcs11signers.hh
860 tsig_tests_LDADD += $(P11KIT1_LIBS)
861 endif
862
863 if GSS_TSIG
864 tsig_tests_LDADD += $(GSS_LIBS)
865 endif
866
867 speedtest_SOURCES = \
868 base32.cc \
869 base64.cc base64.hh \
870 dnslabeltext.cc \
871 dnsname.cc dnsname.hh \
872 dnsparser.cc dnsparser.hh \
873 dnsrecords.cc \
874 dnswriter.cc dnswriter.hh \
875 logger.cc \
876 misc.cc misc.hh \
877 nsecrecords.cc \
878 qtype.cc \
879 rcpgenerator.cc rcpgenerator.hh \
880 sillyrecords.cc \
881 speedtest.cc \
882 statbag.cc \
883 unix_utility.cc \
884 iputils.cc
885
886 speedtest_LDFLAGS = $(AM_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
887 speedtest_LDADD = $(LIBCRYPTO_LIBS) \
888 $(RT_LIBS)
889
890 dnswasher_SOURCES = \
891 base64.cc \
892 dnslabeltext.cc \
893 dnsname.hh dnsname.cc \
894 dnsparser.hh \
895 dnspcap.cc dnspcap.hh \
896 dnswasher.cc \
897 dnswriter.hh \
898 ipcipher.cc ipcipher.hh \
899 logger.cc \
900 misc.cc \
901 qtype.cc \
902 statbag.cc \
903 unix_utility.cc
904
905 dnswasher_LDFLAGS = $(AM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(LIBCRYPTO_LDFLAGS)
906 dnswasher_LDADD = $(BOOST_PROGRAM_OPTIONS_LIBS) $(LIBCRYPTO_LIBS) $(IPCRYPT_LIBS)
907
908 dnsbulktest_SOURCES = \
909 base32.cc \
910 base64.cc \
911 dnsbulktest.cc \
912 dnslabeltext.cc \
913 dnsname.cc dnsname.hh \
914 dnsparser.cc \
915 dnsrecords.cc \
916 dnswriter.cc \
917 logger.cc \
918 misc.cc \
919 nsecrecords.cc \
920 qtype.cc \
921 rcpgenerator.cc \
922 sillyrecords.cc \
923 statbag.cc \
924 unix_utility.cc
925
926 dnsbulktest_LDFLAGS = \
927 $(AM_LDFLAGS) \
928 $(LIBCRYPTO_LDFLAGS) \
929 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
930
931 dnsbulktest_LDADD = \
932 $(LIBCRYPTO_LIBS) \
933 $(BOOST_PROGRAM_OPTIONS_LIBS)
934
935 comfun_SOURCES = \
936 base32.cc \
937 base64.cc \
938 comfun.cc \
939 dns.cc \
940 dnslabeltext.cc \
941 dnsname.cc dnsname.hh \
942 dnsparser.cc \
943 dnsrecords.cc \
944 dnswriter.cc \
945 logger.cc \
946 misc.cc \
947 nsecrecords.cc \
948 qtype.cc \
949 rcpgenerator.cc \
950 sillyrecords.cc \
951 statbag.cc \
952 unix_utility.cc \
953 zoneparser-tng.cc zoneparser-tng.hh
954
955 comfun_LDFLAGS = \
956 $(AM_LDFLAGS) \
957 $(LIBCRYPTO_LDFLAGS) \
958 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
959
960 comfun_LDADD = \
961 $(LIBCRYPTO_LIBS) \
962 $(BOOST_PROGRAM_OPTIONS_LIBS)
963
964
965 dnsscan_SOURCES = \
966 anadns.hh \
967 base32.cc \
968 base64.cc base64.hh \
969 dnslabeltext.cc \
970 dnsname.cc dnsname.hh \
971 dnsparser.cc dnsparser.hh \
972 dnspcap.cc dnspcap.hh \
973 dnsrecords.cc \
974 dnsscan.cc \
975 dnswriter.cc dnswriter.hh \
976 logger.cc \
977 misc.cc \
978 nsecrecords.cc \
979 qtype.cc \
980 rcpgenerator.cc rcpgenerator.hh \
981 sillyrecords.cc \
982 statbag.cc \
983 unix_utility.cc \
984 utility.hh
985
986 dnsscan_LDFLAGS = \
987 $(AM_LDFLAGS) \
988 $(LIBCRYPTO_LDFLAGS)
989
990 dnsscan_LDADD = $(LIBCRYPTO_LIBS)
991
992 dnsreplay_SOURCES = \
993 anadns.hh \
994 base32.cc \
995 base64.cc base64.hh \
996 dnslabeltext.cc \
997 dnsname.cc dnsname.hh \
998 dnsparser.cc dnsparser.hh \
999 dnspcap.cc dnspcap.hh \
1000 dnsrecords.cc \
1001 dnsreplay.cc \
1002 dnswriter.cc dnswriter.hh \
1003 ednsoptions.cc ednsoptions.hh \
1004 ednssubnet.cc ednssubnet.hh \
1005 iputils.cc \
1006 logger.cc \
1007 misc.cc \
1008 nsecrecords.cc \
1009 qtype.cc \
1010 rcpgenerator.cc rcpgenerator.hh \
1011 sillyrecords.cc \
1012 statbag.cc \
1013 unix_utility.cc \
1014 utility.hh
1015
1016 dnsreplay_LDFLAGS = \
1017 $(AM_LDFLAGS) \
1018 $(LIBCRYPTO_LDFLAGS) \
1019 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1020
1021 dnsreplay_LDADD = \
1022 $(LIBCRYPTO_LIBS) \
1023 $(BOOST_PROGRAM_OPTIONS_LIBS)
1024
1025 nproxy_SOURCES = \
1026 base32.cc \
1027 base64.cc base64.hh \
1028 dnslabeltext.cc \
1029 dnsname.cc dnsname.hh \
1030 dnsparser.cc dnsparser.hh \
1031 dnsrecords.cc \
1032 dnswriter.cc dnswriter.hh \
1033 logger.cc \
1034 misc.cc \
1035 mplexer.hh \
1036 nproxy.cc \
1037 nsecrecords.cc \
1038 pollmplexer.cc \
1039 qtype.cc \
1040 rcpgenerator.cc rcpgenerator.hh \
1041 sillyrecords.cc \
1042 statbag.cc \
1043 unix_utility.cc
1044
1045 nproxy_LDFLAGS = \
1046 $(AM_LDFLAGS) \
1047 $(LIBCRYPTO_LDFLAGS) \
1048 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1049
1050 nproxy_LDADD = \
1051 $(LIBCRYPTO_LIBS) \
1052 $(BOOST_PROGRAM_OPTIONS_LIBS)
1053
1054 pdns_notify_SOURCES = \
1055 arguments.cc \
1056 base32.cc \
1057 base64.cc base64.hh \
1058 dns.cc \
1059 dnslabeltext.cc \
1060 dnsname.cc dnsname.hh \
1061 dnsparser.cc dnsparser.hh \
1062 dnsrecords.cc \
1063 dnswriter.cc dnswriter.hh \
1064 logger.cc \
1065 misc.cc \
1066 notify.cc \
1067 nsecrecords.cc \
1068 pollmplexer.cc \
1069 qtype.cc \
1070 rcpgenerator.cc rcpgenerator.hh \
1071 sillyrecords.cc \
1072 statbag.cc \
1073 unix_utility.cc \
1074 dns_random.cc
1075
1076 pdns_notify_LDFLAGS = \
1077 $(AM_LDFLAGS) \
1078 $(LIBCRYPTO_LDFLAGS) \
1079 $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
1080
1081 pdns_notify_LDADD = \
1082 $(LIBCRYPTO_LIBS) \
1083 $(BOOST_PROGRAM_OPTIONS_LIBS)
1084
1085 if LIBSODIUM
1086 pdns_notify_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 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 qtype.cc \
1300 rcpgenerator.cc \
1301 responsestats.cc \
1302 responsestats-auth.cc \
1303 sillyrecords.cc \
1304 statbag.cc \
1305 test-arguments_cc.cc \
1306 test-base32_cc.cc \
1307 test-base64_cc.cc \
1308 test-bindparser_cc.cc \
1309 test-common.hh \
1310 test-dnsrecordcontent.cc \
1311 test-digests_hh.cc \
1312 test-distributor_hh.cc \
1313 test-dns_random_hh.cc \
1314 test-dnsname_cc.cc \
1315 test-dnsparser_cc.cc \
1316 test-dnsparser_hh.cc \
1317 test-dnsrecords_cc.cc \
1318 test-ipcrypt_cc.cc \
1319 test-iputils_hh.cc \
1320 test-ixfr_cc.cc \
1321 test-lock_hh.cc \
1322 test-lua_auth4_cc.cc \
1323 test-misc_hh.cc \
1324 test-mplexer.cc \
1325 test-nameserver_cc.cc \
1326 test-packetcache_cc.cc \
1327 test-packetcache_hh.cc \
1328 test-rcpgenerator_cc.cc \
1329 test-signers.cc \
1330 test-sha_hh.cc \
1331 test-statbag_cc.cc \
1332 test-tsig.cc \
1333 test-zoneparser_tng_cc.cc \
1334 testrunner.cc \
1335 threadname.hh threadname.cc \
1336 tsigverifier.cc tsigverifier.hh \
1337 ueberbackend.cc \
1338 unix_utility.cc \
1339 zoneparser-tng.cc zoneparser-tng.hh
1340
1341 testrunner_LDFLAGS = \
1342 $(AM_LDFLAGS) \
1343 $(LIBCRYPTO_LDFLAGS) \
1344 $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS)
1345
1346 testrunner_LDADD = \
1347 $(LIBCRYPTO_LIBS) \
1348 $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \
1349 $(RT_LIBS) \
1350 $(LUA_LIBS) \
1351 $(LIBDL) \
1352 $(IPCRYPT_LIBS)
1353
1354 if PKCS11
1355 testrunner_SOURCES += pkcs11signers.cc pkcs11signers.hh
1356 testrunner_LDADD += $(P11KIT1_LIBS)
1357 endif
1358
1359 if LIBSODIUM
1360 testrunner_SOURCES += sodiumsigners.cc
1361 testrunner_LDADD += $(LIBSODIUM_LIBS)
1362 endif
1363
1364 if LIBDECAF
1365 testrunner_SOURCES += decafsigners.cc
1366 testrunner_LDADD += $(LIBDECAF_LIBS)
1367 endif
1368
1369 if HAVE_FREEBSD
1370 ixfrdist_SOURCES += kqueuemplexer.cc
1371 testrunner_SOURCES += kqueuemplexer.cc
1372 endif
1373
1374 if HAVE_LINUX
1375 ixfrdist_SOURCES += epollmplexer.cc
1376 testrunner_SOURCES += epollmplexer.cc
1377 endif
1378
1379 if HAVE_SOLARIS
1380 ixfrdist_SOURCES += \
1381 devpollmplexer.cc \
1382 portsmplexer.cc
1383 testrunner_SOURCES += \
1384 devpollmplexer.cc \
1385 portsmplexer.cc
1386 endif
1387
1388 pdns_control_SOURCES = \
1389 arguments.cc \
1390 dynloader.cc \
1391 dynmessenger.cc \
1392 logger.cc \
1393 misc.cc \
1394 qtype.cc \
1395 statbag.cc \
1396 unix_utility.cc \
1397 dnsname.cc \
1398 dnslabeltext.cc
1399
1400 if UNIT_TESTS
1401
1402 if HAVE_BOOST_GE_148
1403 TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message SRCDIR='$(srcdir)'
1404 TESTS=testrunner
1405 else
1406 check-local:
1407 @echo "Unit tests disabled, boost is too old"
1408 endif
1409
1410 else
1411 check-local:
1412 @echo "Unit tests are not enabled"
1413 @echo "Run ./configure --enable-unit-tests"
1414 endif
1415
1416 if FUZZ_TARGETS
1417
1418 LIB_FUZZING_ENGINE ?= standalone_fuzz_target_runner.o
1419
1420 standalone_fuzz_target_runner.o: standalone_fuzz_target_runner.cc
1421
1422 fuzz_targets_programs = \
1423 fuzz_target_dnsdistcache \
1424 fuzz_target_moadnsparser \
1425 fuzz_target_packetcache \
1426 fuzz_target_zoneparsertng
1427
1428 fuzz_targets: $(fuzz_targets_programs)
1429
1430 bin_PROGRAMS += \
1431 $(fuzz_targets_programs)
1432
1433 fuzz_targets_libs = \
1434 $(LIBCRYPTO_LIBS) \
1435 $(LIB_FUZZING_ENGINE)
1436 fuzz_targets_ldflags = \
1437 $(AM_LDFLAGS) \
1438 $(DYNLINKFLAGS) \
1439 $(LIBCRYPTO_LDFLAGS) \
1440 $(FUZZING_LDFLAGS)
1441
1442 # we need the mockup runner to be built, but not linked if a real fuzzing engine is used
1443 fuzz_targets_deps = standalone_fuzz_target_runner.o
1444
1445 fuzz_target_moadnsparser_SOURCES = \
1446 fuzz_moadnsparser.cc \
1447 base32.cc base32.hh \
1448 base64.cc base64.hh \
1449 dnslabeltext.cc \
1450 dnsname.cc dnsname.hh \
1451 dnsparser.cc dnsparser.hh \
1452 dnsrecords.cc dnsrecords.hh \
1453 dnswriter.cc dnswriter.hh \
1454 logger.cc logger.hh \
1455 misc.cc misc.hh \
1456 nsecrecords.cc \
1457 qtype.cc qtype.hh \
1458 rcpgenerator.cc rcpgenerator.hh \
1459 sillyrecords.cc \
1460 statbag.cc statbag.hh \
1461 unix_utility.cc \
1462 utility.hh
1463
1464 fuzz_target_moadnsparser_DEPENDENCIES = $(fuzz_targets_deps)
1465 fuzz_target_moadnsparser_LDFLAGS = $(fuzz_targets_ldflags)
1466 fuzz_target_moadnsparser_LDADD = $(fuzz_targets_libs)
1467
1468 fuzz_target_packetcache_SOURCES = \
1469 fuzz_packetcache.cc \
1470 dnslabeltext.cc \
1471 dnsname.cc dnsname.hh \
1472 ednsoptions.cc ednsoptions.hh \
1473 misc.cc misc.hh \
1474 packetcache.hh \
1475 qtype.cc qtype.hh \
1476 statbag.cc statbag.hh
1477
1478 fuzz_target_packetcache_DEPENDENCIES = $(fuzz_targets_deps)
1479 fuzz_target_packetcache_LDFLAGS = $(fuzz_targets_ldflags)
1480 fuzz_target_packetcache_LDADD = $(fuzz_targets_libs)
1481
1482 fuzz_target_dnsdistcache_SOURCES = \
1483 fuzz_dnsdistcache.cc \
1484 dnsdist-cache.cc dnsdist-cache.hh \
1485 dnsdist-ecs.cc dnsdist-ecs.hh \
1486 dnslabeltext.cc \
1487 dnsname.cc dnsname.hh \
1488 dnsparser.cc dnsparser.hh \
1489 dnswriter.cc dnswriter.hh \
1490 doh.hh \
1491 ednsoptions.cc ednsoptions.hh \
1492 ednssubnet.cc ednssubnet.hh \
1493 iputils.cc iputils.hh \
1494 misc.cc misc.hh \
1495 packetcache.hh \
1496 qtype.cc qtype.hh
1497
1498 fuzz_target_dnsdistcache_DEPENDENCIES = $(fuzz_targets_deps)
1499 fuzz_target_dnsdistcache_LDFLAGS = $(fuzz_targets_ldflags)
1500 fuzz_target_dnsdistcache_LDADD = $(fuzz_targets_libs)
1501
1502 fuzz_target_zoneparsertng_SOURCES = \
1503 fuzz_zoneparsertng.cc \
1504 base32.cc base32.hh \
1505 base64.cc base64.hh \
1506 dnslabeltext.cc \
1507 dnsname.cc dnsname.hh \
1508 dnsparser.cc dnsparser.hh \
1509 dnsrecords.cc dnsrecords.hh \
1510 dnswriter.cc dnswriter.hh \
1511 logger.cc logger.hh \
1512 misc.cc misc.hh \
1513 nsecrecords.cc \
1514 qtype.cc qtype.hh \
1515 rcpgenerator.cc rcpgenerator.hh \
1516 sillyrecords.cc \
1517 statbag.cc statbag.hh \
1518 unix_utility.cc \
1519 utility.hh \
1520 zoneparser-tng.cc zoneparser-tng.hh
1521
1522 fuzz_target_zoneparsertng_DEPENDENCIES = $(fuzz_targets_deps)
1523 fuzz_target_zoneparsertng_LDFLAGS = $(fuzz_targets_ldflags)
1524 fuzz_target_zoneparsertng_LDADD = $(fuzz_targets_libs)
1525
1526 endif
1527
1528 dnslabeltext.cc: dnslabeltext.rl
1529 $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc
1530
1531 bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql
1532 ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g' ; echo ';' ) > $@
1533
1534 # for bindparser.h/hh
1535 .hh.h:
1536 cp $< $@
1537
1538 bindlexer.$(OBJEXT): bindparser.h
1539
1540 curl_verbose = $(curl_verbose_$(V))
1541 curl_verbose_ = $(curl_verbose_$(AM_DEFAULT_VERBOSITY))
1542 curl_verbose_0 = @echo " CURL " $@;
1543 $(srcdir)/effective_tld_names.dat:
1544 $(curl_verbose)if ! curl -s -S https://publicsuffix.org/list/public_suffix_list.dat > $@; then rm -f $@; exit 1; fi
1545
1546 pubsuffix.cc: $(srcdir)/effective_tld_names.dat
1547 $(AM_V_GEN)./mkpubsuffixcc
1548
1549 pdns_recursor rec_control:
1550 @echo "Please build the recursor from the recursordist/ dir"
1551 @exit 1
1552
1553 dnsdist:
1554 @echo "Please build dnsdist from the dnsdistdist/ dir"
1555 @exit 1
1556
1557 if HAVE_SYSTEMD
1558 pdns.service: pdns.service.in
1559 $(AM_V_GEN)sed -e 's![@]sbindir[@]!$(sbindir)!' < $< > $@
1560 if !HAVE_SYSTEMD_LOCK_PERSONALITY
1561 $(AM_V_GEN)perl -ni -e 'print unless /^LockPersonality/' $@
1562 endif
1563 if !HAVE_SYSTEMD_PRIVATE_DEVICES
1564 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateDevices/' $@
1565 endif
1566 if !HAVE_SYSTEMD_PRIVATE_TMP
1567 $(AM_V_GEN)perl -ni -e 'print unless /^PrivateTmp/' $@
1568 endif
1569 if !HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS
1570 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectControlGroups/' $@
1571 endif
1572 if !HAVE_SYSTEMD_PROTECT_HOME
1573 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectHome/' $@
1574 endif
1575 if !HAVE_SYSTEMD_PROTECT_KERNEL_MODULES
1576 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelModules/' $@
1577 endif
1578 if !HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES
1579 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelTunables/' $@
1580 endif
1581 if !HAVE_SYSTEMD_PROTECT_SYSTEM
1582 $(AM_V_GEN)perl -ni -e 'print unless /^ProtectSystem/' $@
1583 endif
1584 if !HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES
1585 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictAddressFamilies/' $@
1586 endif
1587 if !HAVE_SYSTEMD_RESTRICT_NAMESPACES
1588 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictNamespaces/' $@
1589 endif
1590 if !HAVE_SYSTEMD_RESTRICT_REALTIME
1591 $(AM_V_GEN)perl -ni -e 'print unless /^RestrictRealtime/' $@
1592 endif
1593 if !HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES
1594 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallArchitectures/' $@
1595 endif
1596 if !HAVE_SYSTEMD_SYSTEM_CALL_FILTER
1597 $(AM_V_GEN)perl -ni -e 'print unless /^SystemCallFilter/' $@
1598 endif
1599
1600 pdns@.service: pdns.service
1601 $(AM_V_GEN)sed -e 's!/pdns_server!& --config-name=%i!' \
1602 -e 's!Authoritative Server!& %i!' \
1603 < $< > $@
1604
1605 systemdsystemunitdir = $(SYSTEMD_DIR)
1606
1607 systemdsystemunit_DATA = \
1608 pdns.service \
1609 pdns@.service
1610
1611 CLEANFILES += \
1612 pdns.service \
1613 pdns@.service
1614
1615 if IXFRDIST
1616 ixfrdist.service: ixfrdist.service.in
1617 $(AM_V_GEN)sed -e 's![@]bindir[@]!$(bindir)!' < $< > $@
1618
1619 ixfrdist@.service: ixfrdist.service
1620 $(AM_V_GEN)sed -e 's!/ixfrdist!& --config $(sysconfdir)/ixfrdist-%i.yml!' \
1621 < $< > $@
1622
1623 systemdsystemunit_DATA += \
1624 ixfrdist.service \
1625 ixfrdist@.service
1626 endif # IXFRDIST
1627
1628 CLEANFILES += \
1629 ixfrdist.service \
1630 ixfrdist@.service
1631
1632 endif # HAVE_SYSTEMD