]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/Makefile.am
improves json webserver in the auth server, plus compiles in the json helpers for...
[thirdparty/pdns.git] / pdns / Makefile.am
1 if HAVE_LIBPOLARSSL
2 AM_CXXFLAGS=-DSYSCONFDIR=\"@sysconfdir@\" -DLIBDIR=\"@libdir@\" -DLOCALSTATEDIR=\"@socketdir@\" -Ibackends/bind @THREADFLAGS@ $(LUA_CFLAGS) $(SQLITE3_CFLAGS)
3 else
4 AM_CXXFLAGS=-DSYSCONFDIR=\"@sysconfdir@\" -DLIBDIR=\"@libdir@\" -DLOCALSTATEDIR=\"@socketdir@\" -Ibackends/bind @THREADFLAGS@ $(LUA_CFLAGS) $(SQLITE3_CFLAGS) -Iext/polarssl-1.1.2/include
5 endif
6 AM_CPPFLAGS=-Ibackends/bind $(BOOST_CPPFLAGS) @THREADFLAGS@
7
8 if BOTAN110
9 AM_CPPFLAGS += $(BOTAN110_CFLAGS)
10 endif
11
12 if BOTAN18
13 AM_CPPFLAGS += $(BOTAN18_CFLAGS)
14 endif
15
16 EXTRA_DIST = dnslabeltext.rl dnslabeltext.cc mtasker.cc inflighter.cc docs/pdns_control.8 \
17 docs/pdns_server.8 docs/zone2sql.8 docs/zone2ldap.8 docs/pdnssec.8 \
18 dnssec.schema.mysql.sql dnssec.schema.pgsql.sql dnssec.schema.sqlite3.sql \
19 no-dnssec.schema.mysql.sql no-dnssec.schema.pgsql.sql no-dnssec.schema.sqlite3.sql \
20 bind-dnssec.schema.sqlite3.sql
21
22 if HAVE_LIBPOLARSSL
23 SUBDIRS= backends
24 else
25 SUBDIRS= ext/polarssl-1.1.2 backends
26 endif
27
28 BUILT_SOURCES=bind-dnssec.schema.sqlite3.sql.h
29
30 noinst_SCRIPTS = pdns
31 sysconf_DATA = pdns.conf-dist
32
33 if RECURSOR
34 sbin_PROGRAMS = pdns_server pdns_recursor
35 bin_PROGRAMS = pdns_control rec_control pdnssec dnsreplay
36 else
37 sbin_PROGRAMS = pdns_server
38 bin_PROGRAMS = pdns_control pdnssec dnsreplay
39 endif
40
41 EXTRA_PROGRAMS=pdns_recursor sdig tsig-tests speedtest pdns_control dnsscope dnsgram \
42 toysdig dnsdemog dnswasher dnsscan nproxy notify pdnssec dnsbulktest nsec3dig # dnslabel # tcptorture
43
44 pdns_server_SOURCES=dnspacket.cc nameserver.cc tcpreceiver.hh \
45 qtype.cc logger.cc arguments.cc packethandler.cc tcpreceiver.cc \
46 packetcache.cc statbag.cc ahuexception.hh arguments.hh distributor.hh \
47 dns.hh dnsbackend.hh dnsbackend.cc dnspacket.hh dynmessenger.hh lock.hh logger.hh \
48 nameserver.hh packetcache.hh packethandler.hh qtype.hh statbag.hh \
49 ueberbackend.hh pdns.conf-dist ws.hh ws.cc webserver.cc webserver.hh \
50 session.cc session.hh misc.cc misc.hh receiver.cc ueberbackend.cc \
51 dynlistener.cc dynlistener.hh dynhandler.cc dynhandler.hh \
52 resolver.hh resolver.cc slavecommunicator.cc mastercommunicator.cc communicator.cc communicator.hh dnsproxy.cc \
53 dnsproxy.hh randombackend.cc unix_utility.cc common_startup.cc \
54 utility.hh iputils.hh common_startup.hh unix_semaphore.cc \
55 backends/bind/bindbackend2.cc backends/bind/binddnssec.cc bind-dnssec.schema.sqlite3.sql.h \
56 backends/bind/bindparser.cc backends/bind/bindlexer.c \
57 backends/gsql/gsqlbackend.cc \
58 backends/gsql/gsqlbackend.hh backends/gsql/ssql.hh \
59 base64.cc sillyrecords.cc \
60 base64.hh zoneparser-tng.cc dnsrecords.cc dnswriter.cc \
61 rcpgenerator.cc dnsparser.cc dns_random.hh aes/aescpp.h \
62 aes/aescrypt.c aes/aes.h aes/aeskey.c aes/aes_modes.c aes/aesopt.h \
63 aes/aestab.c aes/aestab.h aes/brg_endian.h aes/brg_types.h aes/dns_random.cc \
64 randomhelper.cc namespaces.hh nsecrecords.cc base32.cc dbdnsseckeeper.cc dnssecinfra.cc \
65 dnsseckeeper.hh dnssecinfra.hh base32.hh dns.cc dnssecsigner.cc polarrsakeyinfra.cc md5.cc \
66 md5.hh signingpipe.cc signingpipe.hh dnslabeltext.cc lua-pdns.cc lua-auth.cc lua-auth.hh serialtweaker.cc \
67 ednssubnet.cc ednssubnet.hh cachecleaner.hh json.cc json.hh
68
69 #
70 pdns_server_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ $(BOOST_SERIALIZATION_LDFLAGS) -rdynamic
71 pdns_server_LDADD= ext/polarssl-1.1.2/library/libpolarssl.a $(BOOST_SERIALIZATION_LIBS) $(LUA_LIBS) $(SQLITE3_LIBS)
72
73 if BOTAN110
74 pdns_server_SOURCES += botan110signers.cc botansigners.cc
75 pdns_server_LDADD += $(BOTAN110_LIBS) -lgmp -lrt
76 endif
77
78 if BOTAN18
79 pdns_server_SOURCES += botan18signers.cc botansigners.cc
80 pdns_server_LDADD += $(BOTAN18_LIBS) -lgmp
81 endif
82
83 if CRYPTOPP
84 pdns_server_SOURCES += cryptoppsigners.cc
85 pdns_server_LDADD += -lcryptopp
86 endif
87
88 if SQLITE3
89 pdns_server_SOURCES += ssqlite3.cc ssqlite3.hh
90 endif
91
92 pdnssec_SOURCES=pdnssec.cc dbdnsseckeeper.cc sstuff.hh dnsparser.cc dnsparser.hh dnsrecords.cc dnswriter.cc dnswriter.hh \
93 misc.cc misc.hh rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh unix_utility.cc \
94 logger.cc statbag.cc qtype.cc sillyrecords.cc nsecrecords.cc dnssecinfra.cc dnssecinfra.hh \
95 base32.cc ueberbackend.cc dnsbackend.cc arguments.cc packetcache.cc dnspacket.cc \
96 backends/bind/bindbackend2.cc backends/bind/binddnssec.cc bind-dnssec.schema.sqlite3.sql.h\
97 backends/bind/bindparser.cc backends/bind/bindlexer.c \
98 backends/gsql/gsqlbackend.cc \
99 backends/gsql/gsqlbackend.hh backends/gsql/ssql.hh zoneparser-tng.cc \
100 dynlistener.cc dns.cc randombackend.cc dnssecsigner.cc polarrsakeyinfra.cc md5.cc \
101 signingpipe.cc dnslabeltext.cc ednssubnet.cc cachecleaner.hh \
102 aes/aescpp.h \
103 aes/aescrypt.c aes/aes.h aes/aeskey.c aes/aes_modes.c aes/aesopt.h \
104 aes/aestab.c aes/aestab.h aes/brg_endian.h aes/brg_types.h aes/dns_random.cc
105
106
107 pdnssec_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS)
108 pdnssec_LDADD= ext/polarssl-1.1.2/library/libpolarssl.a $(BOOST_PROGRAM_OPTIONS_LIBS) $(BOOST_SERIALIZATION_LIBS) $(SQLITE3_LIBS)
109
110 if BOTAN110
111 pdnssec_SOURCES += botan110signers.cc botansigners.cc
112 pdnssec_LDADD += $(BOTAN110_LIBS) -lgmp -lrt
113 endif
114
115 if BOTAN18
116 pdnssec_SOURCES += botan18signers.cc botansigners.cc
117 pdnssec_LDADD += $(BOTAN18_LIBS) -lgmp
118 endif
119
120 if CRYPTOPP
121 pdnssec_SOURCES += cryptoppsigners.cc
122 pdnssec_LDADD += -lcryptopp
123 endif
124
125 if SQLITE3
126 pdnssec_SOURCES += ssqlite3.cc ssqlite3.hh
127 endif
128
129 sdig_SOURCES=sdig.cc sstuff.hh dnsparser.cc dnsparser.hh dnsrecords.cc dnswriter.cc dnslabeltext.cc dnswriter.hh \
130 misc.cc misc.hh rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh unix_utility.cc \
131 logger.cc statbag.cc qtype.cc sillyrecords.cc nsecrecords.cc base32.cc
132
133 nsec3dig_SOURCES=nsec3dig.cc sstuff.hh dnsparser.cc dnsparser.hh dnsrecords.cc dnswriter.cc dnslabeltext.cc \
134 dnswriter.hh dnssecinfra.cc md5.cc \
135 misc.cc misc.hh rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh unix_utility.cc \
136 logger.cc statbag.cc qtype.cc sillyrecords.cc nsecrecords.cc base32.cc
137 nsec3dig_LDFLAGS= -Lext/polarssl-1.1.2/library
138 nsec3dig_LDADD= -lpolarssl
139
140 toysdig_SOURCES=toysdig.cc sstuff.hh dnsparser.cc dnsparser.hh dnsrecords.cc dnswriter.cc dnslabeltext.cc dnswriter.hh \
141 misc.cc misc.hh rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh unix_utility.cc \
142 logger.cc statbag.cc qtype.cc sillyrecords.cc nsecrecords.cc base32.cc \
143 ednssubnet.cc ednssubnet.hh
144
145
146 #tcptorture_SOURCES=tcptorture.cc sstuff.hh dnsparser.cc dnsparser.hh dnsrecords.cc dnswriter.cc dnslabeltext.cc dnswriter.hh \
147 # misc.cc misc.hh rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh unix_utility.cc \
148 # logger.cc statbag.cc qtype.cc sillyrecords.cc nsecrecords.cc base32.cc
149
150
151 tsig_tests_SOURCES=tsig-tests.cc sstuff.hh dnsparser.cc dnsparser.hh dnsrecords.cc dnswriter.cc dnslabeltext.cc dnswriter.hh \
152 misc.cc misc.hh rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh unix_utility.cc \
153 logger.cc statbag.cc qtype.cc sillyrecords.cc md5.cc nsecrecords.cc base32.cc \
154 dnssecinfra.cc resolver.cc arguments.cc dns_random.hh aes/aescpp.h \
155 aes/aescrypt.c aes/aes.h aes/aeskey.c aes/aes_modes.c aes/aesopt.h \
156 aes/aestab.c aes/aestab.h aes/brg_endian.h aes/brg_types.h aes/dns_random.cc \
157 randomhelper.cc dns.cc
158 if HAVE_LIBPOLARSSL
159 tsig_tests_LDFLAGS=
160 else
161 tsig_tests_LDFLAGS= -Lext/polarssl-1.1.2/library
162 endif
163 tsig_tests_LDADD= -lpolarssl
164
165
166 speedtest_SOURCES=speedtest.cc dnsparser.cc dnsparser.hh dnsrecords.cc dnswriter.cc dnslabeltext.cc dnswriter.hh \
167 misc.cc misc.hh rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh unix_utility.cc \
168 qtype.cc sillyrecords.cc logger.cc statbag.cc nsecrecords.cc base32.cc
169
170 dnswasher_SOURCES=dnswasher.cc misc.cc unix_utility.cc qtype.cc \
171 logger.cc statbag.cc dnspcap.cc dnspcap.hh dnsparser.hh
172
173 dnswasher_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@
174
175 dnsbulktest_SOURCES=dnsbulktest.cc misc.cc unix_utility.cc qtype.cc logger.cc statbag.cc dnsparser.cc \
176 dnsrecords.cc dnswriter.cc dnslabeltext.cc rcpgenerator.cc base32.cc base64.cc sillyrecords.cc nsecrecords.cc
177 dnsbulktest_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
178 dnsbulktest_LDADD= $(BOOST_PROGRAM_OPTIONS_LIBS)
179
180 # unix_utility.cc
181
182 dnsscan_SOURCES=dnsscan.cc misc.cc qtype.cc anadns.hh \
183 logger.cc statbag.cc dnspcap.cc dnspcap.hh dnsparser.cc dnsrecords.cc dnsparser.hh \
184 rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh dnswriter.cc dnslabeltext.cc dnswriter.hh \
185 unix_utility.cc utility.hh sillyrecords.cc nsecrecords.cc base32.cc
186
187 #socketbench_SOURCES=socketbench.cc qtype.cc misc.cc unix_utility.cc\
188 # logger.cc statbag.cc epollmplexer.cc
189
190 dnsreplay_SOURCES=dnsreplay.cc misc.cc qtype.cc anadns.hh \
191 logger.cc statbag.cc dnspcap.cc dnspcap.hh dnsparser.cc dnsrecords.cc dnsparser.hh \
192 rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh dnswriter.cc dnslabeltext.cc dnswriter.hh \
193 unix_utility.cc utility.hh sillyrecords.cc nsecrecords.cc base32.cc
194
195 dnsreplay_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
196 dnsreplay_LDADD= $(BOOST_PROGRAM_OPTIONS_LIBS)
197
198 nproxy_SOURCES=nproxy.cc dnsparser.cc dnsrecords.cc dnsparser.hh \
199 rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh dnswriter.cc dnslabeltext.cc dnswriter.hh \
200 sillyrecords.cc selectmplexer.cc mplexer.hh misc.cc nsecrecords.cc unix_utility.cc qtype.cc \
201 logger.cc statbag.cc base32.cc
202
203 nproxy_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
204 nproxy_LDADD= $(BOOST_PROGRAM_OPTIONS_LIBS)
205
206 notify_SOURCES=notify.cc dnsparser.cc dnsrecords.cc dnsparser.hh \
207 rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh dnswriter.cc dnslabeltext.cc dnswriter.hh \
208 sillyrecords.cc selectmplexer.cc nsecrecords.cc base32.cc misc.cc unix_utility.cc \
209 logger.cc qtype.cc statbag.cc
210
211 notify_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
212 notify_LDADD= $(BOOST_PROGRAM_OPTIONS_LIBS)
213
214 dnsscope_SOURCES=dnsscope.cc misc.cc unix_utility.cc qtype.cc \
215 logger.cc statbag.cc dnspcap.cc dnspcap.hh dnsparser.cc dnsrecords.cc \
216 base64.cc base64.hh dnswriter.cc dnslabeltext.cc dnswriter.hh rcpgenerator.cc rcpgenerator.hh \
217 utility.hh dnsparser.hh sillyrecords.cc nsecrecords.cc base32.cc
218
219 dnsscope_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@
220
221 dnsgram_SOURCES=dnsgram.cc misc.cc unix_utility.cc qtype.cc \
222 logger.cc statbag.cc dnspcap.cc dnspcap.hh dnsparser.cc dnsrecords.cc \
223 base64.cc base64.hh dnswriter.cc dnslabeltext.cc dnswriter.hh rcpgenerator.cc rcpgenerator.hh \
224 utility.hh dnsparser.hh sillyrecords.cc nsecrecords.cc base32.cc
225
226 dnsdemog_SOURCES=dnsdemog.cc misc.cc unix_utility.cc qtype.cc \
227 logger.cc statbag.cc dnspcap.cc dnspcap.hh dnsparser.cc dnsrecords.cc \
228 base64.cc base64.hh dnswriter.cc dnslabeltext.cc dnswriter.hh rcpgenerator.cc rcpgenerator.hh \
229 utility.hh dnsparser.hh sillyrecords.cc nsecrecords.cc base32.cc
230
231 rec_control_SOURCES=rec_channel.cc rec_channel.hh rec_control.cc arguments.cc arguments.hh misc.cc qtype.cc \
232 unix_utility.cc logger.cc statbag.cc
233
234 pdns_recursor_SOURCES=syncres.cc resolver.hh misc.cc unix_utility.cc qtype.cc \
235 logger.cc statbag.cc arguments.cc lwres.cc pdns_recursor.cc reczones.cc lwres.hh \
236 mtasker.hh syncres.hh recursor_cache.cc recursor_cache.hh dnsparser.cc \
237 dnswriter.cc dnslabeltext.cc dnswriter.hh dnsrecords.cc dnsrecords.hh rcpgenerator.cc rcpgenerator.hh \
238 base64.cc base64.hh zoneparser-tng.cc zoneparser-tng.hh rec_channel.cc rec_channel.hh \
239 rec_channel_rec.cc selectmplexer.cc epollmplexer.cc sillyrecords.cc htimer.cc htimer.hh \
240 aes/dns_random.cc aes/aescrypt.c aes/aeskey.c aes/aestab.c aes/aes_modes.c \
241 lua-pdns.cc lua-pdns.hh lua-recursor.cc lua-recursor.hh randomhelper.cc \
242 recpacketcache.cc recpacketcache.hh dns.cc nsecrecords.cc base32.cc cachecleaner.hh json_ws.cc json_ws.hh \
243 json.cc json.hh
244
245 pdns_recursor_LDFLAGS= $(LUA_LIBS)
246 pdns_recursor_LDADD=
247
248 pdns_control_SOURCES=dynloader.cc dynmessenger.cc arguments.cc logger.cc statbag.cc \
249 misc.cc unix_utility.cc qtype.cc
250
251 pdns_control_INCLUDES=path.hh
252 pdns_control_LDFLAGS=@THREADFLAGS@
253
254 dnslabeltext.cc: dnslabeltext.rl
255 ragel dnslabeltext.rl -o dnslabeltext.cc
256
257 bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql
258 ( echo 'static char sqlCreate[]=' ; sed 's/$$/"/g' bind-dnssec.schema.sqlite3.sql | sed 's/^/"/g' ; echo ';' ) > $@
259
260 backends/bind/bindlexer.c:
261 make -C backends/bind bindlexer.c
262
263 backends/bind/bindparser.cc:
264 make -C backends/bind bindparser.cc