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 = \
22 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_directory_DEPENDENCIES = \
69 gnunet_download_SOURCES = \
71 gnunet_download_LDADD = \
72 $(top_builddir)/src/fs/libgnunetfs.la \
73 $(top_builddir)/src/util/libgnunetutil.la \
75 gnunet_download_DEPENDENCIES = \
78 gnunet_publish_SOURCES = \
80 gnunet_publish_LDADD = \
81 $(top_builddir)/src/fs/libgnunetfs.la \
82 $(top_builddir)/src/util/libgnunetutil.la \
85 gnunet_publish_DEPENDENCIES = \
88 gnunet_pseudonym_SOURCES = \
90 gnunet_pseudonym_LDADD = \
91 $(top_builddir)/src/fs/libgnunetfs.la \
92 $(top_builddir)/src/util/libgnunetutil.la \
95 gnunet_pseudonym_DEPENDENCIES = \
98 gnunet_search_SOURCES = \
100 gnunet_search_LDADD = \
101 $(top_builddir)/src/fs/libgnunetfs.la \
102 $(top_builddir)/src/util/libgnunetutil.la \
105 gnunet_search_DEPENDENCIES = \
108 gnunet_service_fs_SOURCES = \
109 gnunet-service-fs.c gnunet-service-fs.h \
110 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
111 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
112 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
113 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
114 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
115 gnunet-service-fs_push.c gnunet-service-fs_push.h \
116 gnunet-service-fs_put.c gnunet-service-fs_put.h
117 gnunet_service_fs_LDADD = \
118 $(top_builddir)/src/fs/libgnunetfs.la \
119 $(top_builddir)/src/dht/libgnunetdht.la \
120 $(top_builddir)/src/block/libgnunetblock.la \
121 $(top_builddir)/src/datastore/libgnunetdatastore.la \
122 $(top_builddir)/src/statistics/libgnunetstatistics.la \
123 $(top_builddir)/src/core/libgnunetcore.la \
124 $(top_builddir)/src/util/libgnunetutil.la \
126 gnunet_service_fs_DEPENDENCIES = \
129 gnunet_unindex_SOURCES = \
131 gnunet_unindex_LDADD = \
132 $(top_builddir)/src/fs/libgnunetfs.la \
133 $(top_builddir)/src/util/libgnunetutil.la \
135 gnunet_unindex_DEPENDENCIES = \
144 test_fs_download_indexed \
145 test_fs_download_persistence \
146 test_fs_file_information \
148 test_fs_list_indexed \
150 test_fs_namespace_list_updateable \
152 test_fs_publish_persistence \
154 test_fs_search_persistence \
158 test_fs_unindex_persistence \
160 test_gnunet_service_fs_migration \
161 test_gnunet_service_fs_p2p \
162 perf_gnunet_service_fs_p2p \
163 perf_gnunet_service_fs_p2p_dht \
164 perf_gnunet_service_fs_p2p_index \
165 perf_gnunet_service_fs_p2p_trust
168 if HAVE_PYTHON_PEXPECT
170 test_gnunet_fs_psd.py \
171 test_gnunet_fs_rec.py \
172 test_gnunet_fs_ns.py \
173 test_gnunet_fs_idx.py
176 #if !DISABLE_TEST_RUN
181 test_fs_download_indexed \
182 test_fs_download_persistence \
183 test_fs_file_information \
184 test_fs_list_indexed \
186 test_fs_namespace_list_updateable \
188 test_fs_publish_persistence \
190 test_fs_search_persistence \
193 test_fs_unindex_persistence \
196 test_gnunet_service_fs_migration \
197 test_gnunet_service_fs_p2p \
204 test_fs_directory_SOURCES = \
206 test_fs_directory_LDADD = \
208 $(top_builddir)/src/fs/libgnunetfs.la \
209 $(top_builddir)/src/util/libgnunetutil.la
211 test_fs_download_SOURCES = \
213 test_fs_download_LDADD = \
214 $(top_builddir)/src/fs/libgnunetfs.la \
215 $(top_builddir)/src/util/libgnunetutil.la
217 test_fs_download_indexed_SOURCES = \
218 test_fs_download_indexed.c
219 test_fs_download_indexed_LDADD = \
220 $(top_builddir)/src/fs/libgnunetfs.la \
221 $(top_builddir)/src/util/libgnunetutil.la
223 test_fs_download_persistence_SOURCES = \
224 test_fs_download_persistence.c
225 test_fs_download_persistence_LDADD = \
226 $(top_builddir)/src/fs/libgnunetfs.la \
227 $(top_builddir)/src/util/libgnunetutil.la
229 test_fs_file_information_SOURCES = \
230 test_fs_file_information.c
231 test_fs_file_information_LDADD = \
233 $(top_builddir)/src/fs/libgnunetfs.la \
234 $(top_builddir)/src/util/libgnunetutil.la
236 test_fs_getopt_SOURCES = \
238 test_fs_getopt_LDADD = \
239 $(top_builddir)/src/fs/libgnunetfs.la \
240 $(top_builddir)/src/util/libgnunetutil.la
242 test_fs_list_indexed_SOURCES = \
243 test_fs_list_indexed.c
244 test_fs_list_indexed_LDADD = \
245 $(top_builddir)/src/fs/libgnunetfs.la \
246 $(top_builddir)/src/util/libgnunetutil.la
248 test_fs_namespace_SOURCES = \
250 test_fs_namespace_LDADD = \
251 $(top_builddir)/src/fs/libgnunetfs.la \
252 $(top_builddir)/src/util/libgnunetutil.la
254 test_fs_namespace_list_updateable_SOURCES = \
255 test_fs_namespace_list_updateable.c
256 test_fs_namespace_list_updateable_LDADD = \
257 $(top_builddir)/src/fs/libgnunetfs.la \
258 $(top_builddir)/src/util/libgnunetutil.la
260 test_fs_publish_SOURCES = \
262 test_fs_publish_LDADD = \
263 $(top_builddir)/src/fs/libgnunetfs.la \
264 $(top_builddir)/src/util/libgnunetutil.la
266 test_fs_publish_persistence_SOURCES = \
267 test_fs_publish_persistence.c
268 test_fs_publish_persistence_LDADD = \
269 $(top_builddir)/src/fs/libgnunetfs.la \
270 $(top_builddir)/src/util/libgnunetutil.la
272 test_fs_search_SOURCES = \
274 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
275 $(top_builddir)/src/util/libgnunetutil.la
277 test_fs_search_persistence_SOURCES = \
278 test_fs_search_persistence.c
279 test_fs_search_persistence_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
280 $(top_builddir)/src/util/libgnunetutil.la
282 test_fs_start_stop_SOURCES = \
284 test_fs_start_stop_LDADD = \
285 $(top_builddir)/src/fs/libgnunetfs.la \
286 $(top_builddir)/src/util/libgnunetutil.la
288 test_fs_unindex_SOURCES = \
290 test_fs_unindex_LDADD = \
291 $(top_builddir)/src/fs/libgnunetfs.la \
292 $(top_builddir)/src/util/libgnunetutil.la
294 test_fs_unindex_persistence_SOURCES = \
295 test_fs_unindex_persistence.c
296 test_fs_unindex_persistence_LDADD = \
297 $(top_builddir)/src/fs/libgnunetfs.la \
298 $(top_builddir)/src/util/libgnunetutil.la
300 test_fs_uri_SOURCES = \
302 test_fs_uri_LDADD = \
303 $(top_builddir)/src/fs/libgnunetfs.la \
304 $(top_builddir)/src/util/libgnunetutil.la
306 test_fs_test_lib_SOURCES = \
308 test_fs_test_lib_LDADD = \
309 $(top_builddir)/src/fs/libgnunetfstest.a \
310 $(top_builddir)/src/testing/libgnunettesting.la \
311 $(top_builddir)/src/fs/libgnunetfs.la \
312 $(top_builddir)/src/util/libgnunetutil.la
314 test_gnunet_service_fs_p2p_SOURCES = \
315 test_gnunet_service_fs_p2p.c
316 test_gnunet_service_fs_p2p_LDADD = \
317 $(top_builddir)/src/fs/libgnunetfstest.a \
318 $(top_builddir)/src/testing/libgnunettesting.la \
319 $(top_builddir)/src/fs/libgnunetfs.la \
320 $(top_builddir)/src/util/libgnunetutil.la
322 test_gnunet_service_fs_migration_SOURCES = \
323 test_gnunet_service_fs_migration.c
324 test_gnunet_service_fs_migration_LDADD = \
325 $(top_builddir)/src/fs/libgnunetfstest.a \
326 $(top_builddir)/src/testing/libgnunettesting.la \
327 $(top_builddir)/src/fs/libgnunetfs.la \
328 $(top_builddir)/src/util/libgnunetutil.la
330 perf_gnunet_service_fs_p2p_SOURCES = \
331 perf_gnunet_service_fs_p2p.c
332 perf_gnunet_service_fs_p2p_LDADD = \
333 $(top_builddir)/src/fs/libgnunetfstest.a \
334 $(top_builddir)/src/statistics/libgnunetstatistics.la \
335 $(top_builddir)/src/testing/libgnunettesting.la \
336 $(top_builddir)/src/fs/libgnunetfs.la \
337 $(top_builddir)/src/util/libgnunetutil.la
339 perf_gnunet_service_fs_p2p_index_SOURCES = \
340 perf_gnunet_service_fs_p2p.c
341 perf_gnunet_service_fs_p2p_index_LDADD = \
342 $(top_builddir)/src/fs/libgnunetfstest.a \
343 $(top_builddir)/src/statistics/libgnunetstatistics.la \
344 $(top_builddir)/src/testing/libgnunettesting.la \
345 $(top_builddir)/src/fs/libgnunetfs.la \
346 $(top_builddir)/src/util/libgnunetutil.la
348 perf_gnunet_service_fs_p2p_dht_SOURCES = \
349 perf_gnunet_service_fs_p2p.c
350 perf_gnunet_service_fs_p2p_dht_LDADD = \
351 $(top_builddir)/src/fs/libgnunetfstest.a \
352 $(top_builddir)/src/statistics/libgnunetstatistics.la \
353 $(top_builddir)/src/testing/libgnunettesting.la \
354 $(top_builddir)/src/fs/libgnunetfs.la \
355 $(top_builddir)/src/util/libgnunetutil.la
357 perf_gnunet_service_fs_p2p_trust_SOURCES = \
358 perf_gnunet_service_fs_p2p_trust.c
359 perf_gnunet_service_fs_p2p_trust_LDADD = \
360 $(top_builddir)/src/fs/libgnunetfstest.a \
361 $(top_builddir)/src/statistics/libgnunetstatistics.la \
362 $(top_builddir)/src/testing/libgnunettesting.la \
363 $(top_builddir)/src/fs/libgnunetfs.la \
364 $(top_builddir)/src/util/libgnunetutil.la
367 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
369 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
370 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
371 chmod +x test_gnunet_fs_psd.py
373 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
374 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
375 chmod +x test_gnunet_fs_rec.py
377 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
378 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
379 chmod +x test_gnunet_fs_ns.py
381 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
382 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
383 chmod +x test_gnunet_fs_idx.py
387 fs_test_lib_data.conf \
389 test_fs_download_data.conf \
390 test_fs_file_information_data.conf \
391 test_fs_file_information_meta_data_image.jpg \
392 fs_test_lib_data.conf \
393 test_fs_list_indexed_data.conf \
394 test_fs_namespace_data.conf \
395 test_fs_publish_data.conf \
396 test_fs_search_data.conf \
397 test_fs_unindex_data.conf \
398 test_fs_uri_data.conf \
399 test_gnunet_service_fs_migration_data.conf \
400 test_gnunet_fs_idx_data.conf \
401 test_gnunet_fs_ns_data.conf \
402 test_gnunet_fs_psd_data.conf \
403 test_gnunet_fs_rec_data.conf \
404 test_gnunet_fs_rec_data.tgz \
405 test_gnunet_fs_psd.py.in \
406 test_gnunet_fs_rec.py.in \
407 test_gnunet_fs_ns.py.in \
408 test_gnunet_fs_idx.py.in
410 CLEANFILES = $(check_SCRIPTS)