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