2 INCLUDES = -I$(top_srcdir)/src/include
5 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
9 AM_CFLAGS = --coverage -O0
14 lib_LTLIBRARIES = libgnunetfs.la
16 noinst_LIBRARIES = libgnunetfstest.a
18 libgnunetfs_la_SOURCES = \
23 fs_file_information.c \
33 libgnunetfs_la_LIBADD = \
34 $(top_builddir)/src/datastore/libgnunetdatastore.la \
35 $(top_builddir)/src/util/libgnunetutil.la \
39 libgnunetfs_la_LDFLAGS = \
40 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
44 libgnunetfstest_a_SOURCES = \
45 fs_test_lib.c fs_test_lib.h
47 libgnunetfstest_a_LIBADD = \
48 $(top_builddir)/src/testing/libgnunettesting.la
59 gnunet_directory_SOURCES = \
61 gnunet_directory_LDADD = \
62 $(top_builddir)/src/fs/libgnunetfs.la \
63 $(top_builddir)/src/util/libgnunetutil.la \
66 gnunet_download_SOURCES = \
68 gnunet_download_LDADD = \
69 $(top_builddir)/src/fs/libgnunetfs.la \
70 $(top_builddir)/src/util/libgnunetutil.la \
73 gnunet_publish_SOURCES = \
75 gnunet_publish_LDADD = \
76 $(top_builddir)/src/fs/libgnunetfs.la \
77 $(top_builddir)/src/util/libgnunetutil.la \
80 gnunet_pseudonym_SOURCES = \
82 gnunet_pseudonym_LDADD = \
83 $(top_builddir)/src/fs/libgnunetfs.la \
84 $(top_builddir)/src/util/libgnunetutil.la \
88 gnunet_search_SOURCES = \
90 gnunet_search_LDADD = \
91 $(top_builddir)/src/fs/libgnunetfs.la \
92 $(top_builddir)/src/util/libgnunetutil.la \
95 gnunet_service_fs_SOURCES = \
97 gnunet-service-fs_drq.c gnunet-service-fs_drq.h \
98 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h
99 gnunet_service_fs_LDADD = \
100 $(top_builddir)/src/fs/libgnunetfs.la \
101 $(top_builddir)/src/block/libgnunetblock.la \
102 $(top_builddir)/src/datastore/libgnunetdatastore.la \
103 $(top_builddir)/src/statistics/libgnunetstatistics.la \
104 $(top_builddir)/src/core/libgnunetcore.la \
105 $(top_builddir)/src/util/libgnunetutil.la \
108 gnunet_unindex_SOURCES = \
110 gnunet_unindex_LDADD = \
111 $(top_builddir)/src/fs/libgnunetfs.la \
112 $(top_builddir)/src/util/libgnunetutil.la \
122 test_fs_download_persistence \
123 test_fs_file_information \
125 test_fs_list_indexed \
128 test_fs_publish_persistence \
130 test_fs_search_persistence \
134 test_fs_unindex_persistence \
136 test_gnunet_service_fs_p2p
139 if HAVE_PYTHON_PEXPECT
141 test_gnunet_fs_psd.py \
142 test_gnunet_fs_rec.py \
143 test_gnunet_fs_ns.py \
144 test_gnunet_fs_idx.py
147 TESTS = $(check_SCRIPTS) \
150 test_fs_download_persistence \
151 test_fs_file_information \
152 test_fs_list_indexed \
155 test_fs_publish_persistence \
157 test_fs_search_persistence \
162 test_gnunet_service_fs_p2p
166 test_fs_collection_SOURCES = \
168 test_fs_collection_LDADD = \
169 $(top_builddir)/src/fs/libgnunetfs.la \
170 $(top_builddir)/src/util/libgnunetutil.la
172 test_fs_directory_SOURCES = \
174 test_fs_directory_LDADD = \
175 $(top_builddir)/src/fs/libgnunetfs.la \
176 $(top_builddir)/src/util/libgnunetutil.la
178 test_fs_download_SOURCES = \
180 test_fs_download_LDADD = \
181 $(top_builddir)/src/fs/libgnunetfs.la \
182 $(top_builddir)/src/arm/libgnunetarm.la \
183 $(top_builddir)/src/util/libgnunetutil.la
185 test_fs_download_persistence_SOURCES = \
186 test_fs_download_persistence.c
187 test_fs_download_persistence_LDADD = \
188 $(top_builddir)/src/fs/libgnunetfs.la \
189 $(top_builddir)/src/arm/libgnunetarm.la \
190 $(top_builddir)/src/util/libgnunetutil.la
192 test_fs_file_information_SOURCES = \
193 test_fs_file_information.c
194 test_fs_file_information_LDADD = \
195 $(top_builddir)/src/fs/libgnunetfs.la \
196 $(top_builddir)/src/util/libgnunetutil.la
198 test_fs_getopt_SOURCES = \
200 test_fs_getopt_LDADD = \
201 $(top_builddir)/src/fs/libgnunetfs.la \
202 $(top_builddir)/src/util/libgnunetutil.la
204 test_fs_list_indexed_SOURCES = \
205 test_fs_list_indexed.c
206 test_fs_list_indexed_LDADD = \
207 $(top_builddir)/src/fs/libgnunetfs.la \
208 $(top_builddir)/src/arm/libgnunetarm.la \
209 $(top_builddir)/src/util/libgnunetutil.la
211 test_fs_namespace_SOURCES = \
213 test_fs_namespace_LDADD = \
214 $(top_builddir)/src/fs/libgnunetfs.la \
215 $(top_builddir)/src/arm/libgnunetarm.la \
216 $(top_builddir)/src/util/libgnunetutil.la
218 test_fs_publish_SOURCES = \
220 test_fs_publish_LDADD = \
221 $(top_builddir)/src/fs/libgnunetfs.la \
222 $(top_builddir)/src/arm/libgnunetarm.la \
223 $(top_builddir)/src/util/libgnunetutil.la
225 test_fs_publish_persistence_SOURCES = \
226 test_fs_publish_persistence.c
227 test_fs_publish_persistence_LDADD = \
228 $(top_builddir)/src/fs/libgnunetfs.la \
229 $(top_builddir)/src/arm/libgnunetarm.la \
230 $(top_builddir)/src/util/libgnunetutil.la
232 test_fs_search_SOURCES = \
234 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
235 $(top_builddir)/src/arm/libgnunetarm.la \
236 $(top_builddir)/src/util/libgnunetutil.la
238 test_fs_search_persistence_SOURCES = \
239 test_fs_search_persistence.c
240 test_fs_search_persistence_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
241 $(top_builddir)/src/arm/libgnunetarm.la \
242 $(top_builddir)/src/util/libgnunetutil.la
244 test_fs_start_stop_SOURCES = \
246 test_fs_start_stop_LDADD = \
247 $(top_builddir)/src/fs/libgnunetfs.la \
248 $(top_builddir)/src/arm/libgnunetarm.la \
249 $(top_builddir)/src/util/libgnunetutil.la
251 test_fs_unindex_SOURCES = \
253 test_fs_unindex_LDADD = \
254 $(top_builddir)/src/fs/libgnunetfs.la \
255 $(top_builddir)/src/arm/libgnunetarm.la \
256 $(top_builddir)/src/util/libgnunetutil.la
258 test_fs_unindex_persistence_SOURCES = \
259 test_fs_unindex_persistence.c
260 test_fs_unindex_persistence_LDADD = \
261 $(top_builddir)/src/fs/libgnunetfs.la \
262 $(top_builddir)/src/arm/libgnunetarm.la \
263 $(top_builddir)/src/util/libgnunetutil.la
265 test_fs_uri_SOURCES = \
267 test_fs_uri_LDADD = \
268 $(top_builddir)/src/fs/libgnunetfs.la \
269 $(top_builddir)/src/util/libgnunetutil.la
271 test_fs_test_lib_SOURCES = \
273 test_fs_test_lib_LDADD = \
274 $(top_builddir)/src/fs/libgnunetfstest.a \
275 $(top_builddir)/src/testing/libgnunettesting.la \
276 $(top_builddir)/src/fs/libgnunetfs.la \
277 $(top_builddir)/src/util/libgnunetutil.la
279 test_gnunet_service_fs_p2p_SOURCES = \
280 test_gnunet_service_fs_p2p.c
281 test_gnunet_service_fs_p2p_LDADD = \
282 $(top_builddir)/src/fs/libgnunetfstest.a \
283 $(top_builddir)/src/testing/libgnunettesting.la \
284 $(top_builddir)/src/fs/libgnunetfs.la \
285 $(top_builddir)/src/util/libgnunetutil.la
287 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
289 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
290 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
291 chmod +x test_gnunet_fs_psd.py
293 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
294 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
295 chmod +x test_gnunet_fs_rec.py
297 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
298 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
299 chmod +x test_gnunet_fs_ns.py
301 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
302 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
303 chmod +x test_gnunet_fs_idx.py
307 fs_test_lib_data.conf \
309 test_fs_collection_data.conf \
310 test_fs_download_data.conf \
311 test_fs_file_information_data.conf \
312 fs_test_lib_data.conf \
313 test_fs_list_indexed_data.conf \
314 test_fs_namespace_data.conf \
315 test_fs_publish_data.conf \
316 test_fs_search_data.conf \
317 test_fs_unindex_data.conf \
318 test_fs_uri_data.conf \
319 test_gnunet_fs_idx_data.conf \
320 test_gnunet_fs_ns_data.conf \
321 test_gnunet_fs_psd_data.conf \
322 test_gnunet_fs_rec_data.conf \
323 test_gnunet_fs_rec_data.tgz \
324 test_gnunet_fs_psd.py.in \
325 test_gnunet_fs_rec.py.in \
326 test_gnunet_fs_ns.py.in \
327 test_gnunet_fs_idx.py.in
329 CLEANFILES = $(check_SCRIPTS)