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) -lunistring -lextractor -lgcrypt
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 = \
92 $(top_builddir)/src/fs/libgnunetfs.la \
93 $(top_builddir)/src/util/libgnunetutil.la \
96 gnunet_directory_DEPENDENCIES = \
99 gnunet_fs_profiler_SOURCES = \
101 gnunet_fs_profiler_LDADD = \
102 $(top_builddir)/src/testbed/libgnunettestbed.la \
103 $(top_builddir)/src/util/libgnunetutil.la \
106 gnunet_fs_SOURCES = \
109 $(top_builddir)/src/fs/libgnunetfs.la \
110 $(top_builddir)/src/util/libgnunetutil.la \
113 gnunet_fs_DEPENDENCIES = \
116 gnunet_download_SOURCES = \
118 gnunet_download_LDADD = \
119 $(top_builddir)/src/fs/libgnunetfs.la \
120 $(top_builddir)/src/util/libgnunetutil.la \
122 gnunet_download_DEPENDENCIES = \
125 gnunet_publish_SOURCES = \
127 gnunet_publish_LDADD = \
128 $(top_builddir)/src/identity/libgnunetidentity.la \
129 $(top_builddir)/src/fs/libgnunetfs.la \
130 $(top_builddir)/src/util/libgnunetutil.la \
133 gnunet_publish_DEPENDENCIES = \
136 gnunet_auto_share_SOURCES = \
138 gnunet_auto_share_LDADD = \
139 $(top_builddir)/src/util/libgnunetutil.la \
142 gnunet_auto_share_DEPENDENCIES = \
145 gnunet_helper_fs_publish_SOURCES = \
146 gnunet-helper-fs-publish.c
147 gnunet_helper_fs_publish_LDADD = \
148 $(top_builddir)/src/util/libgnunetutil.la \
151 gnunet_helper_fs_publish_DEPENDENCIES = \
154 gnunet_search_SOURCES = \
156 gnunet_search_LDADD = \
157 $(top_builddir)/src/fs/libgnunetfs.la \
158 $(top_builddir)/src/util/libgnunetutil.la \
161 gnunet_search_DEPENDENCIES = \
164 gnunet_daemon_fsprofiler_SOURCES = \
165 gnunet-daemon-fsprofiler.c
166 gnunet_daemon_fsprofiler_LDADD = \
167 $(top_builddir)/src/fs/libgnunetfs.la \
168 $(top_builddir)/src/statistics/libgnunetstatistics.la \
169 $(top_builddir)/src/util/libgnunetutil.la \
171 gnunet_daemon_fsprofiler_DEPENDENCIES = \
174 gnunet_service_fs_SOURCES = \
175 gnunet-service-fs.c gnunet-service-fs.h \
176 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
177 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
178 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
179 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
180 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
181 gnunet-service-fs_push.c gnunet-service-fs_push.h \
182 gnunet-service-fs_put.c gnunet-service-fs_put.h \
183 gnunet-service-fs_mesh_client.c gnunet-service-fs_mesh.h \
184 gnunet-service-fs_mesh_server.c
185 gnunet_service_fs_LDADD = \
186 $(top_builddir)/src/fs/libgnunetfs.la \
187 $(top_builddir)/src/dht/libgnunetdht.la \
188 $(top_builddir)/src/block/libgnunetblock.la \
189 $(top_builddir)/src/datastore/libgnunetdatastore.la \
190 $(top_builddir)/src/statistics/libgnunetstatistics.la \
191 $(top_builddir)/src/mesh/libgnunetmesh.la \
192 $(top_builddir)/src/ats/libgnunetats.la \
193 $(top_builddir)/src/core/libgnunetcore.la \
194 $(top_builddir)/src/util/libgnunetutil.la \
196 gnunet_service_fs_DEPENDENCIES = \
199 gnunet_unindex_SOURCES = \
201 gnunet_unindex_LDADD = \
202 $(top_builddir)/src/fs/libgnunetfs.la \
203 $(top_builddir)/src/util/libgnunetutil.la \
205 gnunet_unindex_DEPENDENCIES = \
209 libgnunet_plugin_block_fs_la_SOURCES = \
211 libgnunet_plugin_block_fs_la_LIBADD = \
212 $(top_builddir)/src/block/libgnunetblock.la \
213 $(top_builddir)/src/fs/libgnunetfs.la \
214 $(top_builddir)/src/util/libgnunetutil.la \
216 libgnunet_plugin_block_fs_la_LDFLAGS = \
218 libgnunet_plugin_block_fs_la_DEPENDENCIES = \
219 $(top_builddir)/src/util/libgnunetutil.la \
220 $(top_builddir)/src/block/libgnunetblock.la \
227 perf_gnunet_service_fs_p2p \
228 perf_gnunet_service_fs_p2p_dht \
229 perf_gnunet_service_fs_p2p_index \
230 perf_gnunet_service_fs_p2p_respect
235 test_plugin_block_fs \
238 test_fs_download_mesh \
239 test_fs_download_indexed \
240 test_fs_download_persistence \
241 test_fs_file_information \
243 test_fs_list_indexed \
245 test_fs_namespace_list_updateable \
247 test_fs_publish_persistence \
249 test_fs_search_probes \
250 test_fs_search_persistence \
254 test_fs_unindex_persistence \
256 test_gnunet_service_fs_migration \
257 test_gnunet_service_fs_p2p \
258 test_gnunet_service_fs_p2p_mesh \
262 test_plugin_block_fs_SOURCES = \
263 test_plugin_block_fs.c
264 test_plugin_block_fs_LDADD = \
265 $(top_builddir)/src/block/libgnunetblock.la \
266 $(top_builddir)/src/util/libgnunetutil.la
270 test_gnunet_fs_psd.py \
271 test_gnunet_fs_rec.py \
272 test_gnunet_fs_idx.py
276 MONKEY = @MONKEYPREFIX@
277 AM_LDFLAGS = -no-install
282 TESTS_ENVIRONMENT=export GNUNET_PREFIX=@prefix@;\
283 export PATH=@prefix@/bin:$$PATH;\
288 test_fs_download_indexed \
289 test_fs_download_persistence \
290 test_fs_file_information \
291 test_fs_list_indexed \
293 test_fs_namespace_list_updateable \
295 test_fs_publish_persistence \
297 test_fs_search_probes \
298 test_fs_search_persistence \
301 test_fs_unindex_persistence \
304 test_gnunet_service_fs_migration \
305 test_gnunet_service_fs_p2p \
306 test_gnunet_service_fs_p2p_mesh \
307 perf_gnunet_service_fs_p2p \
308 perf_gnunet_service_fs_p2p_index \
309 perf_gnunet_service_fs_p2p_respect \
314 test_fs_directory_SOURCES = \
316 test_fs_directory_LDADD = \
318 $(top_builddir)/src/fs/libgnunetfs.la \
319 $(top_builddir)/src/util/libgnunetutil.la
321 test_fs_download_SOURCES = \
323 test_fs_download_LDADD = \
324 $(top_builddir)/src/testing/libgnunettesting.la \
325 $(top_builddir)/src/fs/libgnunetfs.la \
326 $(top_builddir)/src/util/libgnunetutil.la
328 test_fs_download_indexed_SOURCES = \
330 test_fs_download_indexed_LDADD = \
331 $(top_builddir)/src/testing/libgnunettesting.la \
332 $(top_builddir)/src/fs/libgnunetfs.la \
333 $(top_builddir)/src/util/libgnunetutil.la
335 test_fs_download_mesh_SOURCES = \
337 test_fs_download_mesh_LDADD = \
338 $(top_builddir)/src/testing/libgnunettesting.la \
339 $(top_builddir)/src/fs/libgnunetfs.la \
340 $(top_builddir)/src/util/libgnunetutil.la
342 test_fs_download_persistence_SOURCES = \
343 test_fs_download_persistence.c
344 test_fs_download_persistence_LDADD = \
345 $(top_builddir)/src/testing/libgnunettesting.la \
346 $(top_builddir)/src/fs/libgnunetfs.la \
347 $(top_builddir)/src/util/libgnunetutil.la
349 test_fs_file_information_SOURCES = \
350 test_fs_file_information.c
351 test_fs_file_information_LDADD = \
353 $(top_builddir)/src/fs/libgnunetfs.la \
354 $(top_builddir)/src/util/libgnunetutil.la
356 test_fs_getopt_SOURCES = \
358 test_fs_getopt_LDADD = \
359 $(top_builddir)/src/fs/libgnunetfs.la \
360 $(top_builddir)/src/util/libgnunetutil.la
362 test_fs_list_indexed_SOURCES = \
363 test_fs_list_indexed.c
364 test_fs_list_indexed_LDADD = \
365 $(top_builddir)/src/testing/libgnunettesting.la \
366 $(top_builddir)/src/fs/libgnunetfs.la \
367 $(top_builddir)/src/util/libgnunetutil.la
369 test_fs_namespace_SOURCES = \
371 test_fs_namespace_LDADD = \
372 $(top_builddir)/src/testing/libgnunettesting.la \
373 $(top_builddir)/src/fs/libgnunetfs.la \
374 $(top_builddir)/src/util/libgnunetutil.la
376 test_fs_namespace_list_updateable_SOURCES = \
377 test_fs_namespace_list_updateable.c
378 test_fs_namespace_list_updateable_LDADD = \
379 $(top_builddir)/src/testing/libgnunettesting.la \
380 $(top_builddir)/src/fs/libgnunetfs.la \
381 $(top_builddir)/src/util/libgnunetutil.la
383 test_fs_publish_SOURCES = \
385 test_fs_publish_LDADD = \
386 $(top_builddir)/src/testing/libgnunettesting.la \
387 $(top_builddir)/src/fs/libgnunetfs.la \
388 $(top_builddir)/src/util/libgnunetutil.la
390 test_fs_publish_persistence_SOURCES = \
391 test_fs_publish_persistence.c
392 test_fs_publish_persistence_LDADD = \
393 $(top_builddir)/src/testing/libgnunettesting.la \
394 $(top_builddir)/src/fs/libgnunetfs.la \
395 $(top_builddir)/src/util/libgnunetutil.la
397 test_fs_search_SOURCES = \
399 test_fs_search_LDADD = \
400 $(top_builddir)/src/testing/libgnunettesting.la \
401 $(top_builddir)/src/fs/libgnunetfs.la \
402 $(top_builddir)/src/util/libgnunetutil.la
404 test_fs_search_probes_SOURCES = \
405 test_fs_search_probes.c
406 test_fs_search_probes_LDADD = \
407 $(top_builddir)/src/testing/libgnunettesting.la \
408 $(top_builddir)/src/fs/libgnunetfs.la \
409 $(top_builddir)/src/util/libgnunetutil.la
411 test_fs_search_persistence_SOURCES = \
412 test_fs_search_persistence.c
413 test_fs_search_persistence_LDADD = \
414 $(top_builddir)/src/testing/libgnunettesting.la \
415 $(top_builddir)/src/fs/libgnunetfs.la \
416 $(top_builddir)/src/util/libgnunetutil.la
418 test_fs_start_stop_SOURCES = \
420 test_fs_start_stop_LDADD = \
421 $(top_builddir)/src/testing/libgnunettesting.la \
422 $(top_builddir)/src/fs/libgnunetfs.la \
423 $(top_builddir)/src/util/libgnunetutil.la
425 test_fs_unindex_SOURCES = \
427 test_fs_unindex_LDADD = \
428 $(top_builddir)/src/testing/libgnunettesting.la \
429 $(top_builddir)/src/fs/libgnunetfs.la \
430 $(top_builddir)/src/util/libgnunetutil.la
432 test_fs_unindex_persistence_SOURCES = \
433 test_fs_unindex_persistence.c
434 test_fs_unindex_persistence_LDADD = \
435 $(top_builddir)/src/testing/libgnunettesting.la \
436 $(top_builddir)/src/fs/libgnunetfs.la \
437 $(top_builddir)/src/util/libgnunetutil.la
439 test_fs_uri_SOURCES = \
441 test_fs_uri_LDADD = \
442 $(top_builddir)/src/fs/libgnunetfs.la \
443 $(top_builddir)/src/util/libgnunetutil.la
445 test_fs_test_lib_SOURCES = \
447 test_fs_test_lib_LDADD = \
448 $(top_builddir)/src/fs/libgnunetfstest.a \
449 $(top_builddir)/src/testbed/libgnunettestbed.la \
450 $(top_builddir)/src/fs/libgnunetfs.la \
451 $(top_builddir)/src/util/libgnunetutil.la
453 test_gnunet_service_fs_p2p_SOURCES = \
454 test_gnunet_service_fs_p2p.c
455 test_gnunet_service_fs_p2p_LDADD = \
456 $(top_builddir)/src/fs/libgnunetfstest.a \
457 $(top_builddir)/src/testbed/libgnunettestbed.la \
458 $(top_builddir)/src/fs/libgnunetfs.la \
459 $(top_builddir)/src/util/libgnunetutil.la
461 test_gnunet_service_fs_p2p_mesh_SOURCES = \
462 test_gnunet_service_fs_p2p.c
463 test_gnunet_service_fs_p2p_mesh_LDADD = \
464 $(top_builddir)/src/fs/libgnunetfstest.a \
465 $(top_builddir)/src/testbed/libgnunettestbed.la \
466 $(top_builddir)/src/fs/libgnunetfs.la \
467 $(top_builddir)/src/util/libgnunetutil.la
469 test_gnunet_service_fs_migration_SOURCES = \
470 test_gnunet_service_fs_migration.c
471 test_gnunet_service_fs_migration_LDADD = \
472 $(top_builddir)/src/fs/libgnunetfstest.a \
473 $(top_builddir)/src/testbed/libgnunettestbed.la \
474 $(top_builddir)/src/fs/libgnunetfs.la \
475 $(top_builddir)/src/util/libgnunetutil.la
477 perf_gnunet_service_fs_p2p_SOURCES = \
478 perf_gnunet_service_fs_p2p.c
479 perf_gnunet_service_fs_p2p_LDADD = \
480 $(top_builddir)/src/fs/libgnunetfstest.a \
481 $(top_builddir)/src/statistics/libgnunetstatistics.la \
482 $(top_builddir)/src/testbed/libgnunettestbed.la \
483 $(top_builddir)/src/fs/libgnunetfs.la \
484 $(top_builddir)/src/util/libgnunetutil.la
486 perf_gnunet_service_fs_p2p_index_SOURCES = \
487 perf_gnunet_service_fs_p2p.c
488 perf_gnunet_service_fs_p2p_index_LDADD = \
489 $(top_builddir)/src/fs/libgnunetfstest.a \
490 $(top_builddir)/src/statistics/libgnunetstatistics.la \
491 $(top_builddir)/src/testbed/libgnunettestbed.la \
492 $(top_builddir)/src/fs/libgnunetfs.la \
493 $(top_builddir)/src/util/libgnunetutil.la
495 perf_gnunet_service_fs_p2p_dht_SOURCES = \
496 perf_gnunet_service_fs_p2p.c
497 perf_gnunet_service_fs_p2p_dht_LDADD = \
498 $(top_builddir)/src/fs/libgnunetfstest.a \
499 $(top_builddir)/src/statistics/libgnunetstatistics.la \
500 $(top_builddir)/src/testbed/libgnunettestbed.la \
501 $(top_builddir)/src/fs/libgnunetfs.la \
502 $(top_builddir)/src/util/libgnunetutil.la
504 perf_gnunet_service_fs_p2p_respect_SOURCES = \
505 perf_gnunet_service_fs_p2p_respect.c
506 perf_gnunet_service_fs_p2p_respect_LDADD = \
507 $(top_builddir)/src/fs/libgnunetfstest.a \
508 $(top_builddir)/src/statistics/libgnunetstatistics.la \
509 $(top_builddir)/src/testbed/libgnunettestbed.la \
510 $(top_builddir)/src/fs/libgnunetfs.la \
511 $(top_builddir)/src/util/libgnunetutil.la
514 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
516 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
517 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
518 chmod +x test_gnunet_fs_psd.py
520 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
521 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
522 chmod +x test_gnunet_fs_rec.py
524 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
525 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
526 chmod +x test_gnunet_fs_ns.py
528 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
529 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
530 chmod +x test_gnunet_fs_idx.py
534 test_fs_defaults.conf \
535 fs_test_lib_data.conf \
537 test_fs_download_data.conf \
538 test_fs_download_indexed.conf \
539 test_fs_download_mesh.conf \
540 test_fs_file_information_data.conf \
541 fs_test_lib_data.conf \
542 test_fs_list_indexed_data.conf \
543 test_fs_namespace_data.conf \
544 test_fs_publish_data.conf \
545 test_fs_search_data.conf \
546 test_fs_unindex_data.conf \
547 test_fs_uri_data.conf \
548 test_gnunet_service_fs_migration_data.conf \
549 test_gnunet_service_fs_p2p_mesh.conf \
550 test_gnunet_fs_idx_data.conf \
551 test_gnunet_fs_psd_data.conf \
552 test_gnunet_fs_rec_data.conf \
553 perf_gnunet_service_fs_p2p.conf \
554 test_gnunet_fs_rec_data.tgz \
555 test_gnunet_fs_psd.py.in \
556 test_gnunet_fs_rec.py.in \
557 test_gnunet_fs_idx.py.in \
558 test_pseudonym_data.conf \
561 CLEANFILES = $(check_SCRIPTS)