1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
4 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
8 AM_CFLAGS = --coverage -O0
12 pkgcfgdir= $(pkgdatadir)/config.d/
14 libexecdir= $(pkglibdir)/libexec/
19 plugindir = $(libdir)/gnunet
22 lib_LTLIBRARIES = libgnunetfs.la
24 plugin_LTLIBRARIES = \
25 libgnunet_plugin_block_fs.la
28 noinst_LIBRARIES = libgnunetfstest.a
31 libgnunetfs_la_SOURCES = \
32 fs_api.c fs_api.h fs.h \
36 fs_file_information.c \
41 fs_publish_ublock.c fs_publish_ublock.h \
50 libgnunetfs_la_LIBADD = \
51 $(top_builddir)/src/datastore/libgnunetdatastore.la \
52 $(top_builddir)/src/util/libgnunetutil.la \
53 $(GN_LIBINTL) $(XLIB) $(LIBGCRYPT_LIBS) -lunistring -lextractor
55 libgnunetfs_la_LDFLAGS = \
56 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
60 libgnunetfstest_a_SOURCES = \
61 fs_test_lib.c fs_test_lib.h
63 libgnunetfstest_a_LIBADD = \
64 $(top_builddir)/src/testing/libgnunettesting.la \
65 $(top_builddir)/src/testbed/libgnunettestbed.la
68 gnunet-helper-fs-publish \
74 gnunet-daemon-fsprofiler
87 gnunet-download-manager.scm
89 gnunet_directory_SOURCES = \
91 gnunet_directory_LDADD = \
93 $(top_builddir)/src/util/libgnunetutil.la \
97 gnunet_fs_profiler_SOURCES = \
99 gnunet_fs_profiler_LDADD = \
100 $(top_builddir)/src/testbed/libgnunettestbed.la \
101 $(top_builddir)/src/util/libgnunetutil.la \
104 gnunet_fs_SOURCES = \
108 $(top_builddir)/src/util/libgnunetutil.la \
112 gnunet_download_SOURCES = \
114 gnunet_download_LDADD = \
116 $(top_builddir)/src/util/libgnunetutil.la \
119 gnunet_publish_SOURCES = \
121 gnunet_publish_LDADD = \
122 $(top_builddir)/src/identity/libgnunetidentity.la \
124 $(top_builddir)/src/util/libgnunetutil.la \
128 gnunet_auto_share_SOURCES = \
130 gnunet_auto_share_LDADD = \
131 $(top_builddir)/src/util/libgnunetutil.la \
135 gnunet_helper_fs_publish_SOURCES = \
136 gnunet-helper-fs-publish.c
137 gnunet_helper_fs_publish_LDADD = \
138 $(top_builddir)/src/util/libgnunetutil.la \
142 gnunet_search_SOURCES = \
144 gnunet_search_LDADD = \
146 $(top_builddir)/src/util/libgnunetutil.la \
150 gnunet_daemon_fsprofiler_SOURCES = \
151 gnunet-daemon-fsprofiler.c
152 gnunet_daemon_fsprofiler_LDADD = \
154 $(top_builddir)/src/statistics/libgnunetstatistics.la \
155 $(top_builddir)/src/util/libgnunetutil.la \
158 gnunet_service_fs_SOURCES = \
159 gnunet-service-fs.c gnunet-service-fs.h \
160 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
161 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
162 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
163 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
164 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
165 gnunet-service-fs_push.c gnunet-service-fs_push.h \
166 gnunet-service-fs_put.c gnunet-service-fs_put.h \
167 gnunet-service-fs_cadet_client.c gnunet-service-fs_cadet.h \
168 gnunet-service-fs_cadet_server.c
169 gnunet_service_fs_LDADD = \
171 $(top_builddir)/src/dht/libgnunetdht.la \
172 $(top_builddir)/src/block/libgnunetblock.la \
173 $(top_builddir)/src/datastore/libgnunetdatastore.la \
174 $(top_builddir)/src/statistics/libgnunetstatistics.la \
175 $(top_builddir)/src/cadet/libgnunetcadet.la \
176 $(top_builddir)/src/ats/libgnunetats.la \
177 $(top_builddir)/src/core/libgnunetcore.la \
178 $(top_builddir)/src/util/libgnunetutil.la \
179 $(top_builddir)/src/peerstore/libgnunetpeerstore.la \
182 gnunet_unindex_SOURCES = \
184 gnunet_unindex_LDADD = \
186 $(top_builddir)/src/util/libgnunetutil.la \
189 libgnunet_plugin_block_fs_la_SOURCES = \
191 libgnunet_plugin_block_fs_la_LIBADD = \
192 $(top_builddir)/src/block/libgnunetblock.la \
194 $(top_builddir)/src/util/libgnunetutil.la \
196 libgnunet_plugin_block_fs_la_LDFLAGS = \
201 perf_gnunet_service_fs_p2p \
202 perf_gnunet_service_fs_p2p_dht \
203 perf_gnunet_service_fs_p2p_index \
204 perf_gnunet_service_fs_p2p_respect
209 test_plugin_block_fs \
212 test_fs_download_cadet \
213 test_fs_download_indexed \
214 test_fs_download_persistence \
215 test_fs_file_information \
217 test_fs_list_indexed \
219 test_fs_namespace_list_updateable \
221 test_fs_publish_persistence \
223 test_fs_search_with_and \
224 test_fs_search_probes \
225 test_fs_search_persistence \
229 test_fs_unindex_persistence \
231 test_gnunet_service_fs_migration \
232 test_gnunet_service_fs_p2p \
233 test_gnunet_service_fs_p2p_cadet \
237 test_plugin_block_fs_SOURCES = \
238 test_plugin_block_fs.c
239 test_plugin_block_fs_LDADD = \
240 $(top_builddir)/src/block/libgnunetblock.la \
241 $(top_builddir)/src/util/libgnunetutil.la
245 test_gnunet_fs_psd.py \
246 test_gnunet_fs_rec.py \
247 test_gnunet_fs_idx.py
251 MONKEY = @MONKEYPREFIX@
252 AM_LDFLAGS = -no-install
257 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; $(MONKEY)
261 test_fs_download_indexed \
262 test_fs_download_persistence \
263 test_fs_file_information \
264 test_fs_list_indexed \
266 test_fs_namespace_list_updateable \
268 test_fs_publish_persistence \
270 test_fs_search_with_and \
271 test_fs_search_probes \
272 test_fs_search_persistence \
275 test_fs_unindex_persistence \
278 test_gnunet_service_fs_migration \
279 test_gnunet_service_fs_p2p \
280 test_gnunet_service_fs_p2p_cadet \
281 perf_gnunet_service_fs_p2p \
282 perf_gnunet_service_fs_p2p_index \
283 perf_gnunet_service_fs_p2p_respect \
288 test_fs_directory_SOURCES = \
290 test_fs_directory_LDADD = \
293 $(top_builddir)/src/util/libgnunetutil.la
295 test_fs_download_SOURCES = \
297 test_fs_download_LDADD = \
298 $(top_builddir)/src/testing/libgnunettesting.la \
300 $(top_builddir)/src/util/libgnunetutil.la
302 test_fs_download_indexed_SOURCES = \
304 test_fs_download_indexed_LDADD = \
305 $(top_builddir)/src/testing/libgnunettesting.la \
307 $(top_builddir)/src/util/libgnunetutil.la
309 test_fs_download_cadet_SOURCES = \
311 test_fs_download_cadet_LDADD = \
312 $(top_builddir)/src/testing/libgnunettesting.la \
314 $(top_builddir)/src/util/libgnunetutil.la
316 test_fs_download_persistence_SOURCES = \
317 test_fs_download_persistence.c
318 test_fs_download_persistence_LDADD = \
319 $(top_builddir)/src/testing/libgnunettesting.la \
321 $(top_builddir)/src/util/libgnunetutil.la
323 test_fs_file_information_SOURCES = \
324 test_fs_file_information.c
325 test_fs_file_information_LDADD = \
328 $(top_builddir)/src/util/libgnunetutil.la
330 test_fs_getopt_SOURCES = \
332 test_fs_getopt_LDADD = \
334 $(top_builddir)/src/util/libgnunetutil.la
336 test_fs_list_indexed_SOURCES = \
337 test_fs_list_indexed.c
338 test_fs_list_indexed_LDADD = \
339 $(top_builddir)/src/testing/libgnunettesting.la \
341 $(top_builddir)/src/util/libgnunetutil.la
343 test_fs_namespace_SOURCES = \
345 test_fs_namespace_LDADD = \
346 $(top_builddir)/src/testing/libgnunettesting.la \
348 $(top_builddir)/src/util/libgnunetutil.la
350 test_fs_namespace_list_updateable_SOURCES = \
351 test_fs_namespace_list_updateable.c
352 test_fs_namespace_list_updateable_LDADD = \
353 $(top_builddir)/src/testing/libgnunettesting.la \
355 $(top_builddir)/src/util/libgnunetutil.la
357 test_fs_publish_SOURCES = \
359 test_fs_publish_LDADD = \
360 $(top_builddir)/src/testing/libgnunettesting.la \
362 $(top_builddir)/src/util/libgnunetutil.la
364 test_fs_publish_persistence_SOURCES = \
365 test_fs_publish_persistence.c
366 test_fs_publish_persistence_LDADD = \
367 $(top_builddir)/src/testing/libgnunettesting.la \
369 $(top_builddir)/src/util/libgnunetutil.la
371 test_fs_search_SOURCES = \
373 test_fs_search_LDADD = \
374 $(top_builddir)/src/testing/libgnunettesting.la \
376 $(top_builddir)/src/util/libgnunetutil.la
378 test_fs_search_with_and_SOURCES = \
379 test_fs_search_with_and.c
380 test_fs_search_with_and_LDADD = \
381 $(top_builddir)/src/testing/libgnunettesting.la \
383 $(top_builddir)/src/util/libgnunetutil.la
385 test_fs_search_probes_SOURCES = \
386 test_fs_search_probes.c
387 test_fs_search_probes_LDADD = \
388 $(top_builddir)/src/testing/libgnunettesting.la \
390 $(top_builddir)/src/util/libgnunetutil.la
392 test_fs_search_persistence_SOURCES = \
393 test_fs_search_persistence.c
394 test_fs_search_persistence_LDADD = \
395 $(top_builddir)/src/testing/libgnunettesting.la \
397 $(top_builddir)/src/util/libgnunetutil.la
399 test_fs_start_stop_SOURCES = \
401 test_fs_start_stop_LDADD = \
402 $(top_builddir)/src/testing/libgnunettesting.la \
404 $(top_builddir)/src/util/libgnunetutil.la
406 test_fs_unindex_SOURCES = \
408 test_fs_unindex_LDADD = \
409 $(top_builddir)/src/testing/libgnunettesting.la \
411 $(top_builddir)/src/util/libgnunetutil.la
413 test_fs_unindex_persistence_SOURCES = \
414 test_fs_unindex_persistence.c
415 test_fs_unindex_persistence_LDADD = \
416 $(top_builddir)/src/testing/libgnunettesting.la \
418 $(top_builddir)/src/util/libgnunetutil.la
420 test_fs_uri_SOURCES = \
422 test_fs_uri_LDADD = \
424 $(top_builddir)/src/util/libgnunetutil.la
426 test_fs_test_lib_SOURCES = \
428 test_fs_test_lib_LDADD = \
430 $(top_builddir)/src/testbed/libgnunettestbed.la \
432 $(top_builddir)/src/util/libgnunetutil.la
434 test_gnunet_service_fs_p2p_SOURCES = \
435 test_gnunet_service_fs_p2p.c
436 test_gnunet_service_fs_p2p_LDADD = \
438 $(top_builddir)/src/testbed/libgnunettestbed.la \
440 $(top_builddir)/src/util/libgnunetutil.la
442 test_gnunet_service_fs_p2p_cadet_SOURCES = \
443 test_gnunet_service_fs_p2p.c
444 test_gnunet_service_fs_p2p_cadet_LDADD = \
446 $(top_builddir)/src/testbed/libgnunettestbed.la \
448 $(top_builddir)/src/util/libgnunetutil.la
450 test_gnunet_service_fs_migration_SOURCES = \
451 test_gnunet_service_fs_migration.c
452 test_gnunet_service_fs_migration_LDADD = \
454 $(top_builddir)/src/testbed/libgnunettestbed.la \
456 $(top_builddir)/src/util/libgnunetutil.la
458 perf_gnunet_service_fs_p2p_SOURCES = \
459 perf_gnunet_service_fs_p2p.c
460 perf_gnunet_service_fs_p2p_LDADD = \
462 $(top_builddir)/src/statistics/libgnunetstatistics.la \
463 $(top_builddir)/src/testbed/libgnunettestbed.la \
465 $(top_builddir)/src/util/libgnunetutil.la
467 perf_gnunet_service_fs_p2p_index_SOURCES = \
468 perf_gnunet_service_fs_p2p.c
469 perf_gnunet_service_fs_p2p_index_LDADD = \
471 $(top_builddir)/src/statistics/libgnunetstatistics.la \
472 $(top_builddir)/src/testbed/libgnunettestbed.la \
474 $(top_builddir)/src/util/libgnunetutil.la
476 perf_gnunet_service_fs_p2p_dht_SOURCES = \
477 perf_gnunet_service_fs_p2p.c
478 perf_gnunet_service_fs_p2p_dht_LDADD = \
480 $(top_builddir)/src/statistics/libgnunetstatistics.la \
481 $(top_builddir)/src/testbed/libgnunettestbed.la \
483 $(top_builddir)/src/util/libgnunetutil.la
485 perf_gnunet_service_fs_p2p_respect_SOURCES = \
486 perf_gnunet_service_fs_p2p_respect.c
487 perf_gnunet_service_fs_p2p_respect_LDADD = \
489 $(top_builddir)/src/statistics/libgnunetstatistics.la \
490 $(top_builddir)/src/testbed/libgnunettestbed.la \
492 $(top_builddir)/src/util/libgnunetutil.la
495 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
497 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
498 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
499 chmod +x test_gnunet_fs_psd.py
501 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
502 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
503 chmod +x test_gnunet_fs_rec.py
505 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
506 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
507 chmod +x test_gnunet_fs_ns.py
509 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
510 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
511 chmod +x test_gnunet_fs_idx.py
515 test_fs_defaults.conf \
516 fs_test_lib_data.conf \
518 test_fs_download_data.conf \
519 test_fs_download_indexed.conf \
520 test_fs_download_cadet.conf \
521 test_fs_file_information_data.conf \
522 fs_test_lib_data.conf \
523 test_fs_list_indexed_data.conf \
524 test_fs_namespace_data.conf \
525 test_fs_publish_data.conf \
526 test_fs_search_data.conf \
527 test_fs_unindex_data.conf \
528 test_gnunet_service_fs_migration_data.conf \
529 test_gnunet_service_fs_p2p_cadet.conf \
530 test_gnunet_fs_idx_data.conf \
531 test_gnunet_fs_psd_data.conf \
532 test_gnunet_fs_rec_data.conf \
533 perf_gnunet_service_fs_p2p.conf \
534 test_gnunet_fs_rec_data.tgz \
535 test_gnunet_fs_psd.py.in \
536 test_gnunet_fs_rec.py.in \
537 test_gnunet_fs_idx.py.in \
538 test_pseudonym_data.conf \
541 CLEANFILES = $(check_SCRIPTS)