1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
5 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
9 AM_CFLAGS = --coverage -O0
13 pkgcfgdir= $(pkgdatadir)/config.d/
15 libexecdir= $(pkglibdir)/libexec/
20 plugindir = $(libdir)/gnunet
23 lib_LTLIBRARIES = libgnunetfs.la
25 plugin_LTLIBRARIES = \
26 libgnunet_plugin_block_fs.la
29 noinst_LIBRARIES = libgnunetfstest.a
32 libgnunetfs_la_SOURCES = \
33 fs_api.c fs_api.h fs.h \
37 fs_file_information.c \
42 fs_publish_ublock.c fs_publish_ublock.h \
51 libgnunetfs_la_LIBADD = \
52 $(top_builddir)/src/datastore/libgnunetdatastore.la \
53 $(top_builddir)/src/util/libgnunetutil.la \
54 $(GN_LIBINTL) $(XLIB) $(LIBGCRYPT_LIBS) -lunistring
57 libgnunetfs_la_LIBADD += \
61 libgnunetfs_la_LDFLAGS = \
62 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
66 libgnunetfstest_a_SOURCES = \
67 fs_test_lib.c fs_test_lib.h
69 libgnunetfstest_a_LIBADD = \
70 $(top_builddir)/src/testing/libgnunettesting.la \
71 $(top_builddir)/src/testbed/libgnunettestbed.la
74 gnunet-helper-fs-publish \
80 gnunet-daemon-fsprofiler
93 gnunet-download-manager.scm
95 gnunet_directory_SOURCES = \
97 gnunet_directory_LDADD = \
99 $(top_builddir)/src/util/libgnunetutil.la \
103 gnunet_directory_LDADD += \
107 gnunet_fs_profiler_SOURCES = \
109 gnunet_fs_profiler_LDADD = \
110 $(top_builddir)/src/testbed/libgnunettestbed.la \
111 $(top_builddir)/src/util/libgnunetutil.la \
114 gnunet_fs_SOURCES = \
118 $(top_builddir)/src/util/libgnunetutil.la \
126 gnunet_download_SOURCES = \
128 gnunet_download_LDADD = \
130 $(top_builddir)/src/util/libgnunetutil.la \
133 gnunet_publish_SOURCES = \
135 gnunet_publish_LDADD = \
136 $(top_builddir)/src/identity/libgnunetidentity.la \
138 $(top_builddir)/src/util/libgnunetutil.la \
142 gnunet_publish_LDADD += \
146 gnunet_auto_share_SOURCES = \
148 gnunet_auto_share_LDADD = \
149 $(top_builddir)/src/util/libgnunetutil.la \
153 gnunet_auto_share_LDADD += \
157 gnunet_helper_fs_publish_SOURCES = \
158 gnunet-helper-fs-publish.c
159 gnunet_helper_fs_publish_LDADD = \
160 $(top_builddir)/src/util/libgnunetutil.la \
164 gnunet_helper_fs_publish_LDADD += \
168 gnunet_search_SOURCES = \
170 gnunet_search_LDADD = \
172 $(top_builddir)/src/util/libgnunetutil.la \
176 gnunet_search_LDADD += \
181 gnunet_daemon_fsprofiler_SOURCES = \
182 gnunet-daemon-fsprofiler.c
183 gnunet_daemon_fsprofiler_LDADD = \
185 $(top_builddir)/src/statistics/libgnunetstatistics.la \
186 $(top_builddir)/src/util/libgnunetutil.la \
189 gnunet_service_fs_SOURCES = \
190 gnunet-service-fs.c gnunet-service-fs.h \
191 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
192 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
193 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
194 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
195 gnunet-service-fs_push.c gnunet-service-fs_push.h \
196 gnunet-service-fs_put.c gnunet-service-fs_put.h \
197 gnunet-service-fs_cadet_client.c gnunet-service-fs_cadet.h \
198 gnunet-service-fs_cadet_server.c
199 gnunet_service_fs_LDADD = \
201 $(top_builddir)/src/dht/libgnunetdht.la \
202 $(top_builddir)/src/block/libgnunetblock.la \
203 $(top_builddir)/src/datastore/libgnunetdatastore.la \
204 $(top_builddir)/src/statistics/libgnunetstatistics.la \
205 $(top_builddir)/src/cadet/libgnunetcadet.la \
206 $(top_builddir)/src/ats/libgnunetats.la \
207 $(top_builddir)/src/core/libgnunetcore.la \
208 $(top_builddir)/src/util/libgnunetutil.la \
209 $(top_builddir)/src/peerstore/libgnunetpeerstore.la \
212 gnunet_unindex_SOURCES = \
214 gnunet_unindex_LDADD = \
216 $(top_builddir)/src/util/libgnunetutil.la \
219 libgnunet_plugin_block_fs_la_SOURCES = \
221 libgnunet_plugin_block_fs_la_LIBADD = \
222 $(top_builddir)/src/block/libgnunetblockgroup.la \
223 $(top_builddir)/src/block/libgnunetblock.la \
225 $(top_builddir)/src/util/libgnunetutil.la \
227 libgnunet_plugin_block_fs_la_LDFLAGS = \
232 perf_gnunet_service_fs_p2p \
233 perf_gnunet_service_fs_p2p_dht \
234 perf_gnunet_service_fs_p2p_index \
235 perf_gnunet_service_fs_p2p_respect
240 test_plugin_block_fs \
243 test_fs_download_cadet \
244 test_fs_download_indexed \
245 test_fs_download_persistence \
246 test_fs_file_information \
248 test_fs_list_indexed \
250 test_fs_namespace_list_updateable \
252 test_fs_publish_persistence \
254 test_fs_search_with_and \
255 test_fs_search_probes \
256 test_fs_search_persistence \
260 test_fs_unindex_persistence \
262 test_gnunet_service_fs_migration \
263 test_gnunet_service_fs_p2p \
264 test_gnunet_service_fs_p2p_cadet \
268 test_plugin_block_fs_SOURCES = \
269 test_plugin_block_fs.c
270 test_plugin_block_fs_LDADD = \
271 $(top_builddir)/src/block/libgnunetblock.la \
272 $(top_builddir)/src/util/libgnunetutil.la
276 test_gnunet_fs_rec.py \
277 test_gnunet_fs_idx.py
281 test_gnunet_fs_psd.py
287 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)
291 test_fs_download_indexed \
292 test_fs_download_persistence \
293 test_fs_file_information \
294 test_fs_list_indexed \
296 test_fs_namespace_list_updateable \
298 test_fs_publish_persistence \
300 test_fs_search_with_and \
301 test_fs_search_probes \
302 test_fs_search_persistence \
305 test_fs_unindex_persistence \
308 test_gnunet_service_fs_migration \
309 test_gnunet_service_fs_p2p \
310 test_gnunet_service_fs_p2p_cadet \
311 perf_gnunet_service_fs_p2p \
312 perf_gnunet_service_fs_p2p_index \
313 perf_gnunet_service_fs_p2p_respect \
318 test_fs_directory_SOURCES = \
320 test_fs_directory_LDADD = \
322 $(top_builddir)/src/util/libgnunetutil.la
325 test_fs_directory_LDADD += \
330 test_fs_download_SOURCES = \
332 test_fs_download_LDADD = \
333 $(top_builddir)/src/testing/libgnunettesting.la \
335 $(top_builddir)/src/util/libgnunetutil.la
337 test_fs_download_indexed_SOURCES = \
339 test_fs_download_indexed_LDADD = \
340 $(top_builddir)/src/testing/libgnunettesting.la \
342 $(top_builddir)/src/util/libgnunetutil.la
344 test_fs_download_cadet_SOURCES = \
346 test_fs_download_cadet_LDADD = \
347 $(top_builddir)/src/testing/libgnunettesting.la \
349 $(top_builddir)/src/util/libgnunetutil.la
351 test_fs_download_persistence_SOURCES = \
352 test_fs_download_persistence.c
353 test_fs_download_persistence_LDADD = \
354 $(top_builddir)/src/testing/libgnunettesting.la \
356 $(top_builddir)/src/util/libgnunetutil.la
358 test_fs_file_information_SOURCES = \
359 test_fs_file_information.c
360 test_fs_file_information_LDADD = \
362 $(top_builddir)/src/util/libgnunetutil.la
365 test_fs_file_information_LDADD += \
370 test_fs_getopt_SOURCES = \
372 test_fs_getopt_LDADD = \
374 $(top_builddir)/src/util/libgnunetutil.la
376 test_fs_list_indexed_SOURCES = \
377 test_fs_list_indexed.c
378 test_fs_list_indexed_LDADD = \
379 $(top_builddir)/src/testing/libgnunettesting.la \
381 $(top_builddir)/src/util/libgnunetutil.la
383 test_fs_namespace_SOURCES = \
385 test_fs_namespace_LDADD = \
386 $(top_builddir)/src/testing/libgnunettesting.la \
388 $(top_builddir)/src/util/libgnunetutil.la
390 test_fs_namespace_list_updateable_SOURCES = \
391 test_fs_namespace_list_updateable.c
392 test_fs_namespace_list_updateable_LDADD = \
393 $(top_builddir)/src/testing/libgnunettesting.la \
395 $(top_builddir)/src/util/libgnunetutil.la
397 test_fs_publish_SOURCES = \
399 test_fs_publish_LDADD = \
400 $(top_builddir)/src/testing/libgnunettesting.la \
402 $(top_builddir)/src/util/libgnunetutil.la
404 test_fs_publish_persistence_SOURCES = \
405 test_fs_publish_persistence.c
406 test_fs_publish_persistence_LDADD = \
407 $(top_builddir)/src/testing/libgnunettesting.la \
409 $(top_builddir)/src/util/libgnunetutil.la
411 test_fs_search_SOURCES = \
413 test_fs_search_LDADD = \
414 $(top_builddir)/src/testing/libgnunettesting.la \
416 $(top_builddir)/src/util/libgnunetutil.la
418 test_fs_search_with_and_SOURCES = \
419 test_fs_search_with_and.c
420 test_fs_search_with_and_LDADD = \
421 $(top_builddir)/src/testing/libgnunettesting.la \
423 $(top_builddir)/src/util/libgnunetutil.la
425 test_fs_search_probes_SOURCES = \
426 test_fs_search_probes.c
427 test_fs_search_probes_LDADD = \
428 $(top_builddir)/src/testing/libgnunettesting.la \
430 $(top_builddir)/src/util/libgnunetutil.la
432 test_fs_search_persistence_SOURCES = \
433 test_fs_search_persistence.c
434 test_fs_search_persistence_LDADD = \
435 $(top_builddir)/src/testing/libgnunettesting.la \
437 $(top_builddir)/src/util/libgnunetutil.la
439 test_fs_start_stop_SOURCES = \
441 test_fs_start_stop_LDADD = \
442 $(top_builddir)/src/testing/libgnunettesting.la \
444 $(top_builddir)/src/util/libgnunetutil.la
446 test_fs_unindex_SOURCES = \
448 test_fs_unindex_LDADD = \
449 $(top_builddir)/src/testing/libgnunettesting.la \
451 $(top_builddir)/src/util/libgnunetutil.la
453 test_fs_unindex_persistence_SOURCES = \
454 test_fs_unindex_persistence.c
455 test_fs_unindex_persistence_LDADD = \
456 $(top_builddir)/src/testing/libgnunettesting.la \
458 $(top_builddir)/src/util/libgnunetutil.la
460 test_fs_uri_SOURCES = \
462 test_fs_uri_LDADD = \
464 $(top_builddir)/src/util/libgnunetutil.la
466 test_fs_test_lib_SOURCES = \
468 test_fs_test_lib_LDADD = \
470 $(top_builddir)/src/testbed/libgnunettestbed.la \
472 $(top_builddir)/src/util/libgnunetutil.la
474 test_gnunet_service_fs_p2p_SOURCES = \
475 test_gnunet_service_fs_p2p.c
476 test_gnunet_service_fs_p2p_LDADD = \
478 $(top_builddir)/src/testbed/libgnunettestbed.la \
480 $(top_builddir)/src/util/libgnunetutil.la
482 test_gnunet_service_fs_p2p_cadet_SOURCES = \
483 test_gnunet_service_fs_p2p.c
484 test_gnunet_service_fs_p2p_cadet_LDADD = \
486 $(top_builddir)/src/testbed/libgnunettestbed.la \
488 $(top_builddir)/src/util/libgnunetutil.la
490 test_gnunet_service_fs_migration_SOURCES = \
491 test_gnunet_service_fs_migration.c
492 test_gnunet_service_fs_migration_LDADD = \
494 $(top_builddir)/src/testbed/libgnunettestbed.la \
496 $(top_builddir)/src/util/libgnunetutil.la
498 perf_gnunet_service_fs_p2p_SOURCES = \
499 perf_gnunet_service_fs_p2p.c
500 perf_gnunet_service_fs_p2p_LDADD = \
502 $(top_builddir)/src/statistics/libgnunetstatistics.la \
503 $(top_builddir)/src/testbed/libgnunettestbed.la \
505 $(top_builddir)/src/util/libgnunetutil.la
507 perf_gnunet_service_fs_p2p_index_SOURCES = \
508 perf_gnunet_service_fs_p2p.c
509 perf_gnunet_service_fs_p2p_index_LDADD = \
511 $(top_builddir)/src/statistics/libgnunetstatistics.la \
512 $(top_builddir)/src/testbed/libgnunettestbed.la \
514 $(top_builddir)/src/util/libgnunetutil.la
516 perf_gnunet_service_fs_p2p_dht_SOURCES = \
517 perf_gnunet_service_fs_p2p.c
518 perf_gnunet_service_fs_p2p_dht_LDADD = \
520 $(top_builddir)/src/statistics/libgnunetstatistics.la \
521 $(top_builddir)/src/testbed/libgnunettestbed.la \
523 $(top_builddir)/src/util/libgnunetutil.la
525 perf_gnunet_service_fs_p2p_respect_SOURCES = \
526 perf_gnunet_service_fs_p2p_respect.c
527 perf_gnunet_service_fs_p2p_respect_LDADD = \
529 $(top_builddir)/src/statistics/libgnunetstatistics.la \
530 $(top_builddir)/src/testbed/libgnunettestbed.la \
532 $(top_builddir)/src/util/libgnunetutil.la
535 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
537 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
538 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
539 chmod +x test_gnunet_fs_psd.py
541 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
542 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
543 chmod +x test_gnunet_fs_rec.py
545 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
546 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
547 chmod +x test_gnunet_fs_ns.py
549 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
550 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
551 chmod +x test_gnunet_fs_idx.py
555 fs_test_lib_data.conf \
556 perf_gnunet_service_fs_p2p.conf \
558 test_fs_defaults.conf \
559 test_fs_download_data.conf \
560 test_fs_download_indexed.conf \
561 test_fs_file_information_data.conf \
562 test_fs_list_indexed_data.conf \
563 test_fs_namespace_data.conf \
564 test_fs_publish_data.conf \
565 test_fs_search_data.conf \
566 test_fs_unindex_data.conf \
567 test_gnunet_fs_idx_data.conf \
568 test_gnunet_fs_psd_data.conf \
569 test_gnunet_fs_rec_data.conf \
570 test_gnunet_fs_rec_data.tgz \
571 test_gnunet_fs_psd.py.in \
572 test_gnunet_fs_rec.py.in \
573 test_gnunet_fs_idx.py.in \
574 test_gnunet_service_fs_migration_data.conf \
575 test_gnunet_service_fs_p2p_cadet.conf \
576 test_pseudonym_data.conf \
579 CLEANFILES = $(check_SCRIPTS)