File: Makefile.am

package info (click to toggle)
pdns 5.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,824 kB
  • sloc: cpp: 101,240; sh: 5,616; makefile: 2,318; sql: 860; ansic: 675; python: 635; yacc: 245; perl: 161; lex: 131
file content (233 lines) | stat: -rw-r--r-- 5,862 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
AM_CPPFLAGS += \
	-I$(top_srcdir)/ext/json11 \
	$(YAHTTP_CFLAGS) \
	$(LIBCRYPTO_CFLAGS) \
	$(LIBCRYPTO_INCLUDES) \
	$(LIBZMQ_CFLAGS)

if LUA
AM_CPPFLAGS +=$(LUA_CFLAGS)
endif

if LIBSODIUM
AM_CPPFLAGS +=$(LIBSODIUM_CFLAGS)
endif

AM_LDFLAGS = $(THREADFLAGS)

JSON11_LIBS = $(top_builddir)/ext/json11/libjson11.la
ARC4RANDOM_LIBS = $(top_builddir)/ext/arc4random/libarc4random.la

EXTRA_DIST = \
	OBJECTFILES \
	OBJECTLIBS \
	meson.build \
	testrunner.sh \
	unittest_http.py \
	unittest_json.py \
	unittest_pipe.py \
	unittest_zeromq.py \
	unittest_post.py \
	pdns_unittest.py \
	requirements.txt

EXTRA_PROGRAMS = \
	remotebackend_pipe.test \
	remotebackend_unix.test \
	remotebackend_http.test \
	remotebackend_post.test \
	remotebackend_json.test \
	remotebackend_zeromq.test

EXTRA_LTLIBRARIES = libtestremotebackend.la

clean-local:
	rm -f $(EXTRA_PROGRAMS)

pkglib_LTLIBRARIES = libremotebackend.la

libremotebackend_la_SOURCES = \
	httpconnector.cc \
	pipeconnector.cc \
	remotebackend.cc \
	remotebackend.hh \
	unixconnector.cc \
	zmqconnector.cc

if REMOTEBACKEND_DYNMODULE
libremotebackend_la_LDFLAGS = -module -avoid-version
else
libremotebackend_la_LDFLAGS = -static -avoid-version
endif

libremotebackend_la_LIBADD = $(YAHTTP_LIBS) $(JSON11_LIBS)

if REMOTEBACKEND_ZEROMQ
libremotebackend_la_LIBADD += $(LIBZMQ_LIBS)
endif

TESTS_ENVIRONMENT = \
	BOOST_TEST_LOG_LEVEL=message; \
	export BOOST_TEST_LOG_LEVEL; \
	REMOTEBACKEND_ZEROMQ=$(REMOTEBACKEND_ZEROMQ); \
	export REMOTEBACKEND_ZEROMQ; \
	abs_srcdir=$(abs_srcdir)
	export abs_srcdir;

TEST_EXTENSIONS = .test

TEST_LOG_COMPILER = $(abs_srcdir)/testrunner.sh

RECHECK_LOGS = \
	$(TEST_LOGS) \
	remotebackend_http_server.log \
	remotebackend_post_server.log \
	remotebackend_json_server.log \
	remotebackend_zeromq_server.log

## The http, post and json test are using the same TCP port.
## To prevent "Address already in use - bind(2) (Errno::EADDRINUSE)"
## errors when running `make check` in parallel, we need to specify
## an order
remotebackend_post.log: remotebackend_http.log

remotebackend_json.log: remotebackend_http.log remotebackend_post.log

if BACKEND_UNIT_TESTS
TESTS = \
	remotebackend_pipe.test \
	remotebackend_unix.test \
	remotebackend_http.test \
	remotebackend_post.test \
	remotebackend_json.test \
	remotebackend_zeromq.test

endif

BUILT_SOURCES = ../../pdns/dnslabeltext.cc

../../pdns/dnslabeltext.cc: ../../pdns/dnslabeltext.rl
	$(MAKE) -C ../../pdns dnslabeltext.cc

libtestremotebackend_la_SOURCES = \
	../../pdns/arguments.hh ../../pdns/arguments.cc \
	../../pdns/auth-packetcache.cc ../../pdns/auth-packetcache.hh \
	../../pdns/auth-querycache.cc ../../pdns/auth-querycache.hh \
	../../pdns/auth-zonecache.cc ../../pdns/auth-zonecache.hh \
	../../pdns/base32.cc \
	../../pdns/base64.cc \
	../../pdns/dns.hh ../../pdns/dns.cc \
	../../pdns/dnsbackend.hh ../../pdns/dnsbackend.cc \
	../../pdns/dnslabeltext.cc \
	../../pdns/dnsname.cc ../../pdns/dnsname.hh \
	../../pdns/dnspacket.cc \
	../../pdns/dnsparser.cc \
	../../pdns/dnsrecords.cc \
	../../pdns/dnssecinfra.cc \
	../../pdns/dnswriter.cc \
	../../pdns/ednscookies.cc \
	../../pdns/ednsoptions.cc ../../pdns/ednsoptions.hh \
	../../pdns/ednssubnet.cc \
	../../pdns/gss_context.cc ../../pdns/gss_context.hh \
	../../pdns/iputils.cc \
	../../pdns/json.hh ../../pdns/json.cc \
	../../pdns/logger.cc \
	../../pdns/misc.cc \
	../../pdns/nameserver.cc \
	../../pdns/nsecrecords.cc \
	../../pdns/packetcache.hh \
	../../pdns/qtype.cc \
	../../pdns/rcpgenerator.cc \
	../../pdns/shuffle.hh ../../pdns/shuffle.cc \
	../../pdns/sillyrecords.cc \
	../../pdns/statbag.cc \
	../../pdns/svc-records.cc ../../pdns/svc-records.hh \
	../../pdns/ueberbackend.hh ../../pdns/ueberbackend.cc \
	../../pdns/unix_utility.cc \
	httpconnector.cc \
	pipeconnector.cc \
	remotebackend.hh remotebackend.cc \
	unixconnector.cc \
	zmqconnector.cc

libtestremotebackend_la_CPPFLAGS = $(AM_CPPFLAGS)

libtestremotebackend_la_LIBADD = \
	$(YAHTTP_LIBS) \
	$(LIBCRYPTO_LIBS) \
	$(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \
	$(BOOST_PROGRAM_OPTIONS_LIBS) \
	$(LIBDL) $(JSON11_LIBS)

libtestremotebackend_la_LDFLAGS = \
	$(AM_LDFLAGS) \
	$(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS)

if LIBSODIUM
libtestremotebackend_la_LIBADD += $(LIBSODIUM_LIBS)
endif

if REMOTEBACKEND_ZEROMQ
libtestremotebackend_la_LIBADD += $(LIBZMQ_LIBS)
endif

if PKCS11
libtestremotebackend_la_SOURCES += \
	../../pdns/pkcs11signers.hh \
	../../pdns/pkcs11signers.cc

libtestremotebackend_la_LIBADD += \
	$(P11KIT1_LIBS)

libtestremotebackend_la_CPPFLAGS += \
	$(P11KIT1_CFLAGS)
endif

if GSS_TSIG
libtestremotebackend_la_LIBADD += \
	$(GSS_LIBS)
libtestremotebackend_la_CPPFLAGS+= \
	$(GSS_CFLAGS)
endif

remotebackend_http_test_SOURCES = \
	test-remotebackend-http.cc \
	test-remotebackend-keys.hh \
	test-remotebackend.cc

remotebackend_http_test_LDADD = libtestremotebackend.la $(ARC4RANDOM_LIBS)

remotebackend_json_test_SOURCES = \
	test-remotebackend-json.cc \
	test-remotebackend-keys.hh \
	test-remotebackend.cc

remotebackend_json_test_LDADD = libtestremotebackend.la $(ARC4RANDOM_LIBS)

remotebackend_pipe_test_SOURCES = \
	test-remotebackend-keys.hh \
	test-remotebackend-pipe.cc \
	test-remotebackend.cc

remotebackend_pipe_test_LDADD = libtestremotebackend.la $(ARC4RANDOM_LIBS)

remotebackend_post_test_SOURCES = \
	test-remotebackend-keys.hh \
	test-remotebackend-post.cc \
	test-remotebackend.cc

remotebackend_post_test_LDADD = libtestremotebackend.la $(ARC4RANDOM_LIBS)

remotebackend_unix_test_SOURCES = \
	test-remotebackend-keys.hh \
	test-remotebackend-unix.cc \
	test-remotebackend.cc

remotebackend_unix_test_LDADD = libtestremotebackend.la  $(ARC4RANDOM_LIBS)

remotebackend_zeromq_test_SOURCES = \
	test-remotebackend-keys.hh \
	test-remotebackend-zeromq.cc \
	test-remotebackend.cc

remotebackend_zeromq_test_LDADD = libtestremotebackend.la $(ARC4RANDOM_LIBS)