1 JSON11_LIBS = $(top_srcdir)/ext/json11/libjson11.la
3 AM_CPPFLAGS = $(LUA_CFLAGS) $(YAHTTP_CFLAGS) $(BOOST_CPPFLAGS) $(BOTAN110_CFLAGS) $(SANITIZER_FLAGS) -O3 -Wall -pthread -DSYSCONFDIR=\"${sysconfdir}\" $(SYSTEMD_CFLAGS)
6 -I$(top_srcdir)/ext/json11 \
7 -I$(top_srcdir)/ext/rapidjson/include \
12 -DSYSCONFDIR=\"$(sysconfdir)\" \
13 -DPKGLIBDIR=\"$(pkglibdir)\" \
14 -DLOCALSTATEDIR=\"$(socketdir)\"
20 ACLOCAL_AMFLAGS = -I m4
22 BUILT_SOURCES=htmlfiles.h
23 CLEANFILES = htmlfiles.h \
33 AM_CPPFLAGS +=$(LUA_CFLAGS)
40 build-aux/gen-version \
46 effective_tld_names.dat \
50 malloctrace.cc malloctrace.hh \
53 mtasker_fcontext.cc mtasker_ucontext.cc \
54 opensslsigners.hh opensslsigners.cc \
60 pdns-recursor.service.in
62 sbin_PROGRAMS = pdns_recursor
63 bin_PROGRAMS = rec_control
65 pdns_recursor_SOURCES = \
72 dns_random.hh dns_random.cc \
75 dnsname.cc dnsname.hh \
77 dnsparser.hh dnsparser.cc \
78 dnsrecords.cc dnsrecords.hh \
79 dnssecinfra.hh dnssecinfra.cc \
81 dnswriter.cc dnswriter.hh \
82 ednsoptions.cc ednsoptions.hh \
83 ednssubnet.cc ednssubnet.hh \
84 filterpo.cc filterpo.hh \
85 gettime.cc gettime.hh \
86 gss_context.cc gss_context.hh \
87 iputils.hh iputils.cc \
93 lua-recursor4.cc lua-recursor4.hh \
98 mtasker_context.cc mtasker_context.hh \
101 opensslsigners.cc opensslsigners.hh \
104 protobuf.cc protobuf.hh \
105 pubsuffix.hh pubsuffix.cc \
108 rcpgenerator.cc rcpgenerator.hh \
110 rec-lua-conf.hh rec-lua-conf.cc \
111 rec-protobuf.cc rec-protobuf.hh \
112 rec_channel.cc rec_channel.hh \
114 recpacketcache.cc recpacketcache.hh \
115 recursor_cache.cc recursor_cache.hh \
117 remote_logger.cc remote_logger.hh \
118 resolver.hh resolver.cc \
120 responsestats.hh responsestats.cc \
123 rpzloader.cc rpzloader.hh \
124 secpoll-recursor.cc \
125 secpoll-recursor.hh \
129 sortlist.cc sortlist.hh \
131 syncres.cc syncres.hh \
132 tsigverifier.cc tsigverifier.hh \
136 validate.cc validate.hh validate-recursor.cc validate-recursor.hh \
137 version.cc version.hh \
138 webserver.cc webserver.hh \
139 ws-api.cc ws-api.hh \
140 ws-recursor.cc ws-recursor.hh \
141 zoneparser-tng.cc zoneparser-tng.hh
144 BUILT_SOURCES += lua.hpp
145 nodist_pdns_recursor_SOURCES = lua.hpp
146 CLEANFILES += lua.hpp
149 pdns_recursor_LDADD = \
153 $(BOOST_CONTEXT_LIBS) \
157 pdns_recursor_LDFLAGS = $(AM_LDFLAGS) \
158 $(LIBCRYPTO_LDFLAGS) $(BOOST_CONTEXT_LDFLAGS)
161 pdns_recursor_SOURCES += \
163 pdns_recursor_LDADD += $(BOTAN110_LIBS)
167 pdns_recursor_SOURCES += \
170 pdns_recursor_LDFLAGS += -rdynamic
174 pdns_recursor_LDADD += $(LUA_LIBS)
178 pdns_recursor_SOURCES += kqueuemplexer.cc
182 pdns_recursor_SOURCES += epollmplexer.cc
186 pdns_recursor_SOURCES += \
193 dnsmessage.pb.cc: dnsmessage.proto
194 $(AM_V_GEN)$(PROTOC) --cpp_out=./ $<
196 BUILT_SOURCES += dnsmessage.pb.cc
197 pdns_recursor_LDADD += $(PROTOBUF_LIBS)
198 nodist_pdns_recursor_SOURCES = dnsmessage.pb.cc dnsmessage.pb.h
199 pdns_recursor.$(OBJEXT): dnsmessage.pb.cc
203 rec_control_SOURCES = \
204 arguments.cc arguments.hh \
205 dnsname.hh dnsname.cc \
210 rec_channel.cc rec_channel.hh \
214 dnslabeltext.cc: dnslabeltext.rl
215 $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc
217 curl_verbose = $(curl_verbose_$(V))
218 curl_verbose_ = $(curl_verbose_$(AM_DEFAULT_VERBOSITY))
219 curl_verbose_0 = @echo " CURL " $@;
220 $(srcdir)/effective_tld_names.dat:
221 $(curl_verbose)if ! curl -s -S https://publicsuffix.org/list/public_suffix_list.dat > $@; then rm -f $@; exit 1; fi
223 pubsuffix.cc: $(srcdir)/effective_tld_names.dat
224 $(AM_V_GEN)./mkpubsuffixcc
227 sysconf_DATA = recursor.conf-dist
229 recursor.conf-dist: pdns_recursor
230 $(AM_V_GEN)./pdns_recursor --config > $@
233 MANPAGES=pdns_recursor.1 \
237 dist_man_MANS=$(MANPAGES)
240 dist_man_MANS=$(MANPAGES)
245 $(AM_V_GEN)$(PANDOC) -s -t man $< -o $@
248 echo "You need pandoc to generate the manpages"
253 pdns-recursor.service: pdns-recursor.service.in
254 $(AM_V_GEN)sed -e 's![@]sbindir[@]!$(sbindir)!' < $< > $@
256 pdns-recursor@.service: pdns-recursor.service
257 $(AM_V_GEN)sed -e 's!/pdns_recursor!& --config-name=%i!' \
258 -e 's!Recursor!& %i!' \
261 systemdsystemunitdir = $(SYSTEMD_DIR)
263 systemdsystemunit_DATA = \
264 pdns-recursor.service \
265 pdns-recursor@.service