1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
5 AM_CFLAGS = --coverage -O0
9 pkgcfgdir= $(pkgdatadir)/config.d/
11 libexecdir= $(pkglibdir)/libexec/
16 plugindir = $(libdir)/gnunet
19 lib_LTLIBRARIES = libgnunetfs.la
21 plugin_LTLIBRARIES = \
22 libgnunet_plugin_block_fs.la
25 noinst_LIBRARIES = libgnunetfstest.a
28 libgnunetfs_la_SOURCES = \
29 fs_api.c fs_api.h fs.h \
33 fs_file_information.c \
38 fs_publish_ublock.c fs_publish_ublock.h \
47 libgnunetfs_la_LIBADD = \
48 $(top_builddir)/src/datastore/libgnunetdatastore.la \
49 $(top_builddir)/src/util/libgnunetutil.la \
50 $(GN_LIBINTL) $(XLIB) $(LIBGCRYPT_LIBS) -lunistring
53 libgnunetfs_la_LIBADD += \
57 libgnunetfs_la_LDFLAGS = \
62 libgnunetfstest_a_SOURCES = \
63 fs_test_lib.c fs_test_lib.h
65 libgnunetfstest_a_LIBADD = \
66 $(top_builddir)/src/testing/libgnunettesting.la \
67 $(top_builddir)/src/testbed/libgnunettestbed.la
70 gnunet-helper-fs-publish \
76 gnunet-daemon-fsprofiler
88 gnunet_directory_SOURCES = \
90 gnunet_directory_LDADD = \
92 $(top_builddir)/src/util/libgnunetutil.la \
96 gnunet_directory_LDADD += \
100 gnunet_fs_profiler_SOURCES = \
102 gnunet_fs_profiler_LDADD = \
103 $(top_builddir)/src/testbed/libgnunettestbed.la \
104 $(top_builddir)/src/util/libgnunetutil.la \
107 gnunet_fs_SOURCES = \
111 $(top_builddir)/src/util/libgnunetutil.la \
119 gnunet_download_SOURCES = \
121 gnunet_download_LDADD = \
123 $(top_builddir)/src/util/libgnunetutil.la \
126 gnunet_publish_SOURCES = \
128 gnunet_publish_LDADD = \
129 $(top_builddir)/src/identity/libgnunetidentity.la \
131 $(top_builddir)/src/util/libgnunetutil.la \
135 gnunet_publish_LDADD += \
139 gnunet_auto_share_SOURCES = \
141 gnunet_auto_share_LDADD = \
142 $(top_builddir)/src/util/libgnunetutil.la \
146 gnunet_auto_share_LDADD += \
150 gnunet_helper_fs_publish_SOURCES = \
151 gnunet-helper-fs-publish.c
152 gnunet_helper_fs_publish_LDADD = \
153 $(top_builddir)/src/util/libgnunetutil.la \
157 gnunet_helper_fs_publish_LDADD += \
161 gnunet_search_SOURCES = \
163 gnunet_search_LDADD = \
165 $(top_builddir)/src/util/libgnunetutil.la \
169 gnunet_search_LDADD += \
174 gnunet_daemon_fsprofiler_SOURCES = \
175 gnunet-daemon-fsprofiler.c
176 gnunet_daemon_fsprofiler_LDADD = \
178 $(top_builddir)/src/statistics/libgnunetstatistics.la \
179 $(top_builddir)/src/util/libgnunetutil.la \
182 gnunet_service_fs_SOURCES = \
183 gnunet-service-fs.c gnunet-service-fs.h \
184 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
185 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
186 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
187 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
188 gnunet-service-fs_push.c gnunet-service-fs_push.h \
189 gnunet-service-fs_put.c gnunet-service-fs_put.h \
190 gnunet-service-fs_cadet_client.c gnunet-service-fs_cadet.h \
191 gnunet-service-fs_cadet_server.c
192 gnunet_service_fs_LDADD = \
194 $(top_builddir)/src/dht/libgnunetdht.la \
195 $(top_builddir)/src/block/libgnunetblock.la \
196 $(top_builddir)/src/datastore/libgnunetdatastore.la \
197 $(top_builddir)/src/statistics/libgnunetstatistics.la \
198 $(top_builddir)/src/cadet/libgnunetcadet.la \
199 $(top_builddir)/src/ats/libgnunetats.la \
200 $(top_builddir)/src/core/libgnunetcore.la \
201 $(top_builddir)/src/util/libgnunetutil.la \
202 $(top_builddir)/src/peerstore/libgnunetpeerstore.la \
205 gnunet_unindex_SOURCES = \
207 gnunet_unindex_LDADD = \
209 $(top_builddir)/src/util/libgnunetutil.la \
212 libgnunet_plugin_block_fs_la_SOURCES = \
214 libgnunet_plugin_block_fs_la_LIBADD = \
215 $(top_builddir)/src/block/libgnunetblockgroup.la \
216 $(top_builddir)/src/block/libgnunetblock.la \
218 $(top_builddir)/src/util/libgnunetutil.la \
220 libgnunet_plugin_block_fs_la_LDFLAGS = \
225 perf_gnunet_service_fs_p2p \
226 perf_gnunet_service_fs_p2p_dht \
227 perf_gnunet_service_fs_p2p_index \
228 perf_gnunet_service_fs_p2p_respect
233 test_plugin_block_fs \
236 test_fs_download_cadet \
237 test_fs_download_indexed \
238 test_fs_download_persistence \
239 test_fs_file_information \
241 test_fs_list_indexed \
243 test_fs_namespace_list_updateable \
245 test_fs_publish_persistence \
247 test_fs_search_with_and \
248 test_fs_search_probes \
249 test_fs_search_persistence \
253 test_fs_unindex_persistence \
255 test_gnunet_service_fs_migration \
256 test_gnunet_service_fs_p2p \
257 test_gnunet_service_fs_p2p_cadet \
261 test_plugin_block_fs_SOURCES = \
262 test_plugin_block_fs.c
263 test_plugin_block_fs_LDADD = \
264 $(top_builddir)/src/block/libgnunetblock.la \
265 $(top_builddir)/src/util/libgnunetutil.la
269 test_gnunet_fs_rec.py \
270 test_gnunet_fs_idx.py
274 test_gnunet_fs_psd.py
280 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; $(MONKEY)
284 test_fs_download_indexed \
285 test_fs_download_persistence \
286 test_fs_file_information \
287 test_fs_list_indexed \
289 test_fs_namespace_list_updateable \
291 test_fs_publish_persistence \
293 test_fs_search_with_and \
294 test_fs_search_probes \
295 test_fs_search_persistence \
298 test_fs_unindex_persistence \
301 test_gnunet_service_fs_migration \
302 test_gnunet_service_fs_p2p \
303 test_gnunet_service_fs_p2p_cadet \
304 perf_gnunet_service_fs_p2p \
305 perf_gnunet_service_fs_p2p_index \
306 perf_gnunet_service_fs_p2p_respect \
311 test_fs_directory_SOURCES = \
313 test_fs_directory_LDADD = \
315 $(top_builddir)/src/util/libgnunetutil.la
318 test_fs_directory_LDADD += \
323 test_fs_download_SOURCES = \
325 test_fs_download_LDADD = \
326 $(top_builddir)/src/testing/libgnunettesting.la \
328 $(top_builddir)/src/util/libgnunetutil.la
330 test_fs_download_indexed_SOURCES = \
332 test_fs_download_indexed_LDADD = \
333 $(top_builddir)/src/testing/libgnunettesting.la \
335 $(top_builddir)/src/util/libgnunetutil.la
337 test_fs_download_cadet_SOURCES = \
339 test_fs_download_cadet_LDADD = \
340 $(top_builddir)/src/testing/libgnunettesting.la \
342 $(top_builddir)/src/util/libgnunetutil.la
344 test_fs_download_persistence_SOURCES = \
345 test_fs_download_persistence.c
346 test_fs_download_persistence_LDADD = \
347 $(top_builddir)/src/testing/libgnunettesting.la \
349 $(top_builddir)/src/util/libgnunetutil.la
351 test_fs_file_information_SOURCES = \
352 test_fs_file_information.c
353 test_fs_file_information_LDADD = \
355 $(top_builddir)/src/util/libgnunetutil.la
358 test_fs_file_information_LDADD += \
363 test_fs_getopt_SOURCES = \
365 test_fs_getopt_LDADD = \
367 $(top_builddir)/src/util/libgnunetutil.la
369 test_fs_list_indexed_SOURCES = \
370 test_fs_list_indexed.c
371 test_fs_list_indexed_LDADD = \
372 $(top_builddir)/src/testing/libgnunettesting.la \
374 $(top_builddir)/src/util/libgnunetutil.la
376 test_fs_namespace_SOURCES = \
378 test_fs_namespace_LDADD = \
379 $(top_builddir)/src/testing/libgnunettesting.la \
381 $(top_builddir)/src/util/libgnunetutil.la
383 test_fs_namespace_list_updateable_SOURCES = \
384 test_fs_namespace_list_updateable.c
385 test_fs_namespace_list_updateable_LDADD = \
386 $(top_builddir)/src/testing/libgnunettesting.la \
388 $(top_builddir)/src/util/libgnunetutil.la
390 test_fs_publish_SOURCES = \
392 test_fs_publish_LDADD = \
393 $(top_builddir)/src/testing/libgnunettesting.la \
395 $(top_builddir)/src/util/libgnunetutil.la
397 test_fs_publish_persistence_SOURCES = \
398 test_fs_publish_persistence.c
399 test_fs_publish_persistence_LDADD = \
400 $(top_builddir)/src/testing/libgnunettesting.la \
402 $(top_builddir)/src/util/libgnunetutil.la
404 test_fs_search_SOURCES = \
406 test_fs_search_LDADD = \
407 $(top_builddir)/src/testing/libgnunettesting.la \
409 $(top_builddir)/src/util/libgnunetutil.la
411 test_fs_search_with_and_SOURCES = \
412 test_fs_search_with_and.c
413 test_fs_search_with_and_LDADD = \
414 $(top_builddir)/src/testing/libgnunettesting.la \
416 $(top_builddir)/src/util/libgnunetutil.la
418 test_fs_search_probes_SOURCES = \
419 test_fs_search_probes.c
420 test_fs_search_probes_LDADD = \
421 $(top_builddir)/src/testing/libgnunettesting.la \
423 $(top_builddir)/src/util/libgnunetutil.la
425 test_fs_search_persistence_SOURCES = \
426 test_fs_search_persistence.c
427 test_fs_search_persistence_LDADD = \
428 $(top_builddir)/src/testing/libgnunettesting.la \
430 $(top_builddir)/src/util/libgnunetutil.la
432 test_fs_start_stop_SOURCES = \
434 test_fs_start_stop_LDADD = \
435 $(top_builddir)/src/testing/libgnunettesting.la \
437 $(top_builddir)/src/util/libgnunetutil.la
439 test_fs_unindex_SOURCES = \
441 test_fs_unindex_LDADD = \
442 $(top_builddir)/src/testing/libgnunettesting.la \
444 $(top_builddir)/src/util/libgnunetutil.la
446 test_fs_unindex_persistence_SOURCES = \
447 test_fs_unindex_persistence.c
448 test_fs_unindex_persistence_LDADD = \
449 $(top_builddir)/src/testing/libgnunettesting.la \
451 $(top_builddir)/src/util/libgnunetutil.la
453 test_fs_uri_SOURCES = \
455 test_fs_uri_LDADD = \
457 $(top_builddir)/src/util/libgnunetutil.la
459 test_fs_test_lib_SOURCES = \
461 test_fs_test_lib_LDADD = \
463 $(top_builddir)/src/testbed/libgnunettestbed.la \
465 $(top_builddir)/src/util/libgnunetutil.la
467 test_gnunet_service_fs_p2p_SOURCES = \
468 test_gnunet_service_fs_p2p.c
469 test_gnunet_service_fs_p2p_LDADD = \
471 $(top_builddir)/src/testbed/libgnunettestbed.la \
473 $(top_builddir)/src/util/libgnunetutil.la
475 test_gnunet_service_fs_p2p_cadet_SOURCES = \
476 test_gnunet_service_fs_p2p.c
477 test_gnunet_service_fs_p2p_cadet_LDADD = \
479 $(top_builddir)/src/testbed/libgnunettestbed.la \
481 $(top_builddir)/src/util/libgnunetutil.la
483 test_gnunet_service_fs_migration_SOURCES = \
484 test_gnunet_service_fs_migration.c
485 test_gnunet_service_fs_migration_LDADD = \
487 $(top_builddir)/src/testbed/libgnunettestbed.la \
489 $(top_builddir)/src/util/libgnunetutil.la
491 perf_gnunet_service_fs_p2p_SOURCES = \
492 perf_gnunet_service_fs_p2p.c
493 perf_gnunet_service_fs_p2p_LDADD = \
495 $(top_builddir)/src/statistics/libgnunetstatistics.la \
496 $(top_builddir)/src/testbed/libgnunettestbed.la \
498 $(top_builddir)/src/util/libgnunetutil.la
500 perf_gnunet_service_fs_p2p_index_SOURCES = \
501 perf_gnunet_service_fs_p2p.c
502 perf_gnunet_service_fs_p2p_index_LDADD = \
504 $(top_builddir)/src/statistics/libgnunetstatistics.la \
505 $(top_builddir)/src/testbed/libgnunettestbed.la \
507 $(top_builddir)/src/util/libgnunetutil.la
509 perf_gnunet_service_fs_p2p_dht_SOURCES = \
510 perf_gnunet_service_fs_p2p.c
511 perf_gnunet_service_fs_p2p_dht_LDADD = \
513 $(top_builddir)/src/statistics/libgnunetstatistics.la \
514 $(top_builddir)/src/testbed/libgnunettestbed.la \
516 $(top_builddir)/src/util/libgnunetutil.la
518 perf_gnunet_service_fs_p2p_respect_SOURCES = \
519 perf_gnunet_service_fs_p2p_respect.c
520 perf_gnunet_service_fs_p2p_respect_LDADD = \
522 $(top_builddir)/src/statistics/libgnunetstatistics.la \
523 $(top_builddir)/src/testbed/libgnunettestbed.la \
525 $(top_builddir)/src/util/libgnunetutil.la
528 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
529 $(AWK) -v bdir="$(bindir)" -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" -v pfx="$(prefix)" -v prl="$(PERL)" -v sysconfdirectory="$(sysconfdir)" -v pkgdatadirectory="$(pkgdatadir)" -f $(top_srcdir)/bin/dosubst.awk < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
530 chmod +x test_gnunet_fs_psd.py
532 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
533 $(AWK) -v bdir="$(bindir)" -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" -v pfx="$(prefix)" -v prl="$(PERL)" -v sysconfdirectory="$(sysconfdir)" -v pkgdatadirectory="$(pkgdatadir)" -f $(top_srcdir)/bin/dosubst.awk < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
534 chmod +x test_gnunet_fs_rec.py
536 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
537 $(AWK) -v bdir="$(bindir)" -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" -v pfx="$(prefix)" -v prl="$(PERL)" -v sysconfdirectory="$(sysconfdir)" -v pkgdatadirectory="$(pkgdatadir)" -f $(top_srcdir)/bin/dosubst.awk < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
538 chmod +x test_gnunet_fs_ns.py
540 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
541 $(AWK) -v bdir="$(bindir)" -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" -v pfx="$(prefix)" -v prl="$(PERL)" -v sysconfdirectory="$(sysconfdir)" -v pkgdatadirectory="$(pkgdatadir)" -f $(top_srcdir)/bin/dosubst.awk < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
542 chmod +x test_gnunet_fs_idx.py
546 fs_test_lib_data.conf \
547 perf_gnunet_service_fs_p2p.conf \
549 test_fs_defaults.conf \
550 test_fs_download_data.conf \
551 test_fs_download_indexed.conf \
552 test_fs_file_information_data.conf \
553 test_fs_list_indexed_data.conf \
554 test_fs_namespace_data.conf \
555 test_fs_publish_data.conf \
556 test_fs_search_data.conf \
557 test_fs_unindex_data.conf \
558 test_gnunet_fs_idx_data.conf \
559 test_gnunet_fs_psd_data.conf \
560 test_gnunet_fs_rec_data.conf \
561 test_gnunet_fs_rec_data.tgz \
562 test_gnunet_fs_psd.py.in \
563 test_gnunet_fs_rec.py.in \
564 test_gnunet_fs_idx.py.in \
565 test_gnunet_service_fs_migration_data.conf \
566 test_gnunet_service_fs_p2p_cadet.conf \
567 test_pseudonym_data.conf
569 CLEANFILES = $(check_SCRIPTS)