1 INCLUDES = -I$(top_srcdir)/src/include
4 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
8 AM_CFLAGS = --coverage -O0
12 pkgcfgdir= $(pkgdatadir)/config.d/
17 plugindir = $(libdir)/gnunet
20 lib_LTLIBRARIES = libgnunetfs.la
22 plugin_LTLIBRARIES = \
23 libgnunet_plugin_block_fs.la
25 noinst_LIBRARIES = libgnunetfstest.a
27 libgnunetfs_la_SOURCES = \
28 fs_api.c fs_api.h fs.h \
31 fs_file_information.c \
42 libgnunetfs_la_LIBADD = \
43 $(top_builddir)/src/datastore/libgnunetdatastore.la \
44 $(top_builddir)/src/util/libgnunetutil.la \
46 $(GN_LIBINTL) $(XLIB) -lunistring
48 libgnunetfs_la_LDFLAGS = \
49 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
53 libgnunetfstest_a_SOURCES = \
54 fs_test_lib.c fs_test_lib.h
56 libgnunetfstest_a_LIBADD = \
57 $(top_builddir)/src/testing/libgnunettesting.la
69 gnunet_directory_SOURCES = \
71 gnunet_directory_LDADD = \
72 $(top_builddir)/src/fs/libgnunetfs.la \
73 $(top_builddir)/src/util/libgnunetutil.la \
76 gnunet_directory_DEPENDENCIES = \
82 $(top_builddir)/src/fs/libgnunetfs.la \
83 $(top_builddir)/src/util/libgnunetutil.la \
86 gnunet_fs_DEPENDENCIES = \
89 gnunet_download_SOURCES = \
91 gnunet_download_LDADD = \
92 $(top_builddir)/src/fs/libgnunetfs.la \
93 $(top_builddir)/src/util/libgnunetutil.la \
95 gnunet_download_DEPENDENCIES = \
98 gnunet_publish_SOURCES = \
100 gnunet_publish_LDADD = \
101 $(top_builddir)/src/fs/libgnunetfs.la \
102 $(top_builddir)/src/util/libgnunetutil.la \
105 gnunet_publish_DEPENDENCIES = \
108 gnunet_pseudonym_SOURCES = \
110 gnunet_pseudonym_LDADD = \
111 $(top_builddir)/src/fs/libgnunetfs.la \
112 $(top_builddir)/src/util/libgnunetutil.la \
115 gnunet_pseudonym_DEPENDENCIES = \
118 gnunet_search_SOURCES = \
120 gnunet_search_LDADD = \
121 $(top_builddir)/src/fs/libgnunetfs.la \
122 $(top_builddir)/src/util/libgnunetutil.la \
125 gnunet_search_DEPENDENCIES = \
128 gnunet_service_fs_SOURCES = \
129 gnunet-service-fs.c gnunet-service-fs.h \
130 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
131 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
132 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
133 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
134 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
135 gnunet-service-fs_push.c gnunet-service-fs_push.h \
136 gnunet-service-fs_put.c gnunet-service-fs_put.h
137 gnunet_service_fs_LDADD = \
138 $(top_builddir)/src/fs/libgnunetfs.la \
139 $(top_builddir)/src/dht/libgnunetdht.la \
140 $(top_builddir)/src/block/libgnunetblock.la \
141 $(top_builddir)/src/datastore/libgnunetdatastore.la \
142 $(top_builddir)/src/statistics/libgnunetstatistics.la \
143 $(top_builddir)/src/ats/libgnunetats.la \
144 $(top_builddir)/src/core/libgnunetcore.la \
145 $(top_builddir)/src/util/libgnunetutil.la \
147 gnunet_service_fs_DEPENDENCIES = \
150 gnunet_unindex_SOURCES = \
152 gnunet_unindex_LDADD = \
153 $(top_builddir)/src/fs/libgnunetfs.la \
154 $(top_builddir)/src/util/libgnunetutil.la \
156 gnunet_unindex_DEPENDENCIES = \
160 libgnunet_plugin_block_fs_la_SOURCES = \
162 libgnunet_plugin_block_fs_la_LIBADD = \
163 $(top_builddir)/src/block/libgnunetblock.la \
164 $(top_builddir)/src/util/libgnunetutil.la
165 libgnunet_plugin_block_fs_la_LDFLAGS = \
167 libgnunet_plugin_block_fs_la_DEPENDENCIES = \
168 $(top_builddir)/src/block/libgnunetblock.la
174 perf_gnunet_service_fs_p2p \
175 perf_gnunet_service_fs_p2p_dht \
176 perf_gnunet_service_fs_p2p_index \
177 perf_gnunet_service_fs_p2p_trust
183 test_fs_download_indexed \
184 test_fs_download_persistence \
185 test_fs_file_information \
187 test_fs_list_indexed \
189 test_fs_namespace_list_updateable \
191 test_fs_publish_persistence \
193 test_fs_search_persistence \
197 test_fs_unindex_persistence \
199 test_gnunet_service_fs_migration \
200 test_gnunet_service_fs_p2p \
204 if HAVE_PYTHON_PEXPECT
206 test_gnunet_fs_psd.py \
207 test_gnunet_fs_rec.py \
208 test_gnunet_fs_idx.py \
217 test_fs_download_indexed \
218 test_fs_download_persistence \
219 test_fs_file_information \
220 test_fs_list_indexed \
222 test_fs_namespace_list_updateable \
224 test_fs_publish_persistence \
226 test_fs_search_persistence \
229 test_fs_unindex_persistence \
232 test_gnunet_service_fs_migration \
233 test_gnunet_service_fs_p2p \
234 perf_gnunet_service_fs_p2p \
235 perf_gnunet_service_fs_p2p_index \
236 perf_gnunet_service_fs_p2p_trust \
243 test_fs_directory_SOURCES = \
245 test_fs_directory_LDADD = \
247 $(top_builddir)/src/fs/libgnunetfs.la \
248 $(top_builddir)/src/util/libgnunetutil.la
250 test_fs_download_SOURCES = \
252 test_fs_download_LDADD = \
253 $(top_builddir)/src/fs/libgnunetfs.la \
254 $(top_builddir)/src/util/libgnunetutil.la
256 test_fs_download_indexed_SOURCES = \
257 test_fs_download_indexed.c
258 test_fs_download_indexed_LDADD = \
259 $(top_builddir)/src/fs/libgnunetfs.la \
260 $(top_builddir)/src/util/libgnunetutil.la
262 test_fs_download_persistence_SOURCES = \
263 test_fs_download_persistence.c
264 test_fs_download_persistence_LDADD = \
265 $(top_builddir)/src/fs/libgnunetfs.la \
266 $(top_builddir)/src/util/libgnunetutil.la
268 test_fs_file_information_SOURCES = \
269 test_fs_file_information.c
270 test_fs_file_information_LDADD = \
272 $(top_builddir)/src/fs/libgnunetfs.la \
273 $(top_builddir)/src/util/libgnunetutil.la
275 test_fs_getopt_SOURCES = \
277 test_fs_getopt_LDADD = \
278 $(top_builddir)/src/fs/libgnunetfs.la \
279 $(top_builddir)/src/util/libgnunetutil.la
281 test_fs_list_indexed_SOURCES = \
282 test_fs_list_indexed.c
283 test_fs_list_indexed_LDADD = \
284 $(top_builddir)/src/fs/libgnunetfs.la \
285 $(top_builddir)/src/util/libgnunetutil.la
287 test_fs_namespace_SOURCES = \
289 test_fs_namespace_LDADD = \
290 $(top_builddir)/src/fs/libgnunetfs.la \
291 $(top_builddir)/src/util/libgnunetutil.la
293 test_fs_namespace_list_updateable_SOURCES = \
294 test_fs_namespace_list_updateable.c
295 test_fs_namespace_list_updateable_LDADD = \
296 $(top_builddir)/src/fs/libgnunetfs.la \
297 $(top_builddir)/src/util/libgnunetutil.la
299 test_fs_publish_SOURCES = \
301 test_fs_publish_LDADD = \
302 $(top_builddir)/src/fs/libgnunetfs.la \
303 $(top_builddir)/src/util/libgnunetutil.la
305 test_fs_publish_persistence_SOURCES = \
306 test_fs_publish_persistence.c
307 test_fs_publish_persistence_LDADD = \
308 $(top_builddir)/src/fs/libgnunetfs.la \
309 $(top_builddir)/src/util/libgnunetutil.la
311 test_fs_search_SOURCES = \
313 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
314 $(top_builddir)/src/util/libgnunetutil.la
316 test_fs_search_persistence_SOURCES = \
317 test_fs_search_persistence.c
318 test_fs_search_persistence_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
319 $(top_builddir)/src/util/libgnunetutil.la
321 test_fs_start_stop_SOURCES = \
323 test_fs_start_stop_LDADD = \
324 $(top_builddir)/src/fs/libgnunetfs.la \
325 $(top_builddir)/src/util/libgnunetutil.la
327 test_fs_unindex_SOURCES = \
329 test_fs_unindex_LDADD = \
330 $(top_builddir)/src/fs/libgnunetfs.la \
331 $(top_builddir)/src/util/libgnunetutil.la
333 test_fs_unindex_persistence_SOURCES = \
334 test_fs_unindex_persistence.c
335 test_fs_unindex_persistence_LDADD = \
336 $(top_builddir)/src/fs/libgnunetfs.la \
337 $(top_builddir)/src/util/libgnunetutil.la
339 test_fs_uri_SOURCES = \
341 test_fs_uri_LDADD = \
342 $(top_builddir)/src/fs/libgnunetfs.la \
343 $(top_builddir)/src/util/libgnunetutil.la
345 test_fs_test_lib_SOURCES = \
347 test_fs_test_lib_LDADD = \
348 $(top_builddir)/src/fs/libgnunetfstest.a \
349 $(top_builddir)/src/testing/libgnunettesting.la \
350 $(top_builddir)/src/fs/libgnunetfs.la \
351 $(top_builddir)/src/util/libgnunetutil.la
353 test_gnunet_service_fs_p2p_SOURCES = \
354 test_gnunet_service_fs_p2p.c
355 test_gnunet_service_fs_p2p_LDADD = \
356 $(top_builddir)/src/fs/libgnunetfstest.a \
357 $(top_builddir)/src/testing/libgnunettesting.la \
358 $(top_builddir)/src/fs/libgnunetfs.la \
359 $(top_builddir)/src/util/libgnunetutil.la
361 test_gnunet_service_fs_migration_SOURCES = \
362 test_gnunet_service_fs_migration.c
363 test_gnunet_service_fs_migration_LDADD = \
364 $(top_builddir)/src/fs/libgnunetfstest.a \
365 $(top_builddir)/src/testing/libgnunettesting.la \
366 $(top_builddir)/src/fs/libgnunetfs.la \
367 $(top_builddir)/src/util/libgnunetutil.la
369 perf_gnunet_service_fs_p2p_SOURCES = \
370 perf_gnunet_service_fs_p2p.c
371 perf_gnunet_service_fs_p2p_LDADD = \
372 $(top_builddir)/src/fs/libgnunetfstest.a \
373 $(top_builddir)/src/statistics/libgnunetstatistics.la \
374 $(top_builddir)/src/testing/libgnunettesting.la \
375 $(top_builddir)/src/fs/libgnunetfs.la \
376 $(top_builddir)/src/util/libgnunetutil.la
378 perf_gnunet_service_fs_p2p_index_SOURCES = \
379 perf_gnunet_service_fs_p2p.c
380 perf_gnunet_service_fs_p2p_index_LDADD = \
381 $(top_builddir)/src/fs/libgnunetfstest.a \
382 $(top_builddir)/src/statistics/libgnunetstatistics.la \
383 $(top_builddir)/src/testing/libgnunettesting.la \
384 $(top_builddir)/src/fs/libgnunetfs.la \
385 $(top_builddir)/src/util/libgnunetutil.la
387 perf_gnunet_service_fs_p2p_dht_SOURCES = \
388 perf_gnunet_service_fs_p2p.c
389 perf_gnunet_service_fs_p2p_dht_LDADD = \
390 $(top_builddir)/src/fs/libgnunetfstest.a \
391 $(top_builddir)/src/statistics/libgnunetstatistics.la \
392 $(top_builddir)/src/testing/libgnunettesting.la \
393 $(top_builddir)/src/fs/libgnunetfs.la \
394 $(top_builddir)/src/util/libgnunetutil.la
396 perf_gnunet_service_fs_p2p_trust_SOURCES = \
397 perf_gnunet_service_fs_p2p_trust.c
398 perf_gnunet_service_fs_p2p_trust_LDADD = \
399 $(top_builddir)/src/fs/libgnunetfstest.a \
400 $(top_builddir)/src/statistics/libgnunetstatistics.la \
401 $(top_builddir)/src/testing/libgnunettesting.la \
402 $(top_builddir)/src/fs/libgnunetfs.la \
403 $(top_builddir)/src/util/libgnunetutil.la
406 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
408 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
409 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
410 chmod +x test_gnunet_fs_psd.py
412 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
413 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
414 chmod +x test_gnunet_fs_rec.py
416 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
417 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
418 chmod +x test_gnunet_fs_ns.py
420 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
421 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
422 chmod +x test_gnunet_fs_idx.py
426 test_fs_defaults.conf \
427 fs_test_lib_data.conf \
429 test_fs_download_data.conf \
430 test_fs_file_information_data.conf \
431 test_fs_file_information_meta_data_image.jpg \
432 fs_test_lib_data.conf \
433 test_fs_list_indexed_data.conf \
434 test_fs_namespace_data.conf \
435 test_fs_publish_data.conf \
436 test_fs_search_data.conf \
437 test_fs_unindex_data.conf \
438 test_fs_uri_data.conf \
439 test_gnunet_service_fs_migration_data.conf \
440 test_gnunet_fs_idx_data.conf \
441 test_gnunet_fs_ns_data.conf \
442 test_gnunet_fs_psd_data.conf \
443 test_gnunet_fs_rec_data.conf \
444 test_gnunet_fs_rec_data.tgz \
445 test_gnunet_fs_psd.py.in \
446 test_gnunet_fs_rec.py.in \
447 test_gnunet_fs_ns.py.in \
448 test_gnunet_fs_idx.py.in
450 CLEANFILES = $(check_SCRIPTS)