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 -lextractor
56 libgnunetfs_la_LDFLAGS = \
57 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
61 libgnunetfstest_a_SOURCES = \
62 fs_test_lib.c fs_test_lib.h
64 libgnunetfstest_a_LIBADD = \
65 $(top_builddir)/src/testing/libgnunettesting.la \
66 $(top_builddir)/src/testbed/libgnunettestbed.la
69 gnunet-helper-fs-publish \
75 gnunet-daemon-fsprofiler
88 gnunet-download-manager.scm
90 gnunet_directory_SOURCES = \
92 gnunet_directory_LDADD = \
94 $(top_builddir)/src/util/libgnunetutil.la \
98 gnunet_fs_profiler_SOURCES = \
100 gnunet_fs_profiler_LDADD = \
101 $(top_builddir)/src/testbed/libgnunettestbed.la \
102 $(top_builddir)/src/util/libgnunetutil.la \
105 gnunet_fs_SOURCES = \
109 $(top_builddir)/src/util/libgnunetutil.la \
113 gnunet_download_SOURCES = \
115 gnunet_download_LDADD = \
117 $(top_builddir)/src/util/libgnunetutil.la \
120 gnunet_publish_SOURCES = \
122 gnunet_publish_LDADD = \
123 $(top_builddir)/src/identity/libgnunetidentity.la \
125 $(top_builddir)/src/util/libgnunetutil.la \
129 gnunet_auto_share_SOURCES = \
131 gnunet_auto_share_LDADD = \
132 $(top_builddir)/src/util/libgnunetutil.la \
136 gnunet_helper_fs_publish_SOURCES = \
137 gnunet-helper-fs-publish.c
138 gnunet_helper_fs_publish_LDADD = \
139 $(top_builddir)/src/util/libgnunetutil.la \
143 gnunet_search_SOURCES = \
145 gnunet_search_LDADD = \
147 $(top_builddir)/src/util/libgnunetutil.la \
151 gnunet_daemon_fsprofiler_SOURCES = \
152 gnunet-daemon-fsprofiler.c
153 gnunet_daemon_fsprofiler_LDADD = \
155 $(top_builddir)/src/statistics/libgnunetstatistics.la \
156 $(top_builddir)/src/util/libgnunetutil.la \
159 gnunet_service_fs_SOURCES = \
160 gnunet-service-fs.c gnunet-service-fs.h \
161 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
162 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
163 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
164 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
165 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
166 gnunet-service-fs_push.c gnunet-service-fs_push.h \
167 gnunet-service-fs_put.c gnunet-service-fs_put.h \
168 gnunet-service-fs_cadet_client.c gnunet-service-fs_cadet.h \
169 gnunet-service-fs_cadet_server.c
170 gnunet_service_fs_LDADD = \
172 $(top_builddir)/src/dht/libgnunetdht.la \
173 $(top_builddir)/src/block/libgnunetblock.la \
174 $(top_builddir)/src/datastore/libgnunetdatastore.la \
175 $(top_builddir)/src/statistics/libgnunetstatistics.la \
176 $(top_builddir)/src/cadet/libgnunetcadet.la \
177 $(top_builddir)/src/ats/libgnunetats.la \
178 $(top_builddir)/src/core/libgnunetcore.la \
179 $(top_builddir)/src/util/libgnunetutil.la \
180 $(top_builddir)/src/peerstore/libgnunetpeerstore.la \
183 gnunet_unindex_SOURCES = \
185 gnunet_unindex_LDADD = \
187 $(top_builddir)/src/util/libgnunetutil.la \
190 libgnunet_plugin_block_fs_la_SOURCES = \
192 libgnunet_plugin_block_fs_la_LIBADD = \
193 $(top_builddir)/src/block/libgnunetblock.la \
195 $(top_builddir)/src/util/libgnunetutil.la \
197 libgnunet_plugin_block_fs_la_LDFLAGS = \
202 perf_gnunet_service_fs_p2p \
203 perf_gnunet_service_fs_p2p_dht \
204 perf_gnunet_service_fs_p2p_index \
205 perf_gnunet_service_fs_p2p_respect
210 test_plugin_block_fs \
213 test_fs_download_cadet \
214 test_fs_download_indexed \
215 test_fs_download_persistence \
216 test_fs_file_information \
218 test_fs_list_indexed \
220 test_fs_namespace_list_updateable \
222 test_fs_publish_persistence \
224 test_fs_search_with_and \
225 test_fs_search_probes \
226 test_fs_search_persistence \
230 test_fs_unindex_persistence \
232 test_gnunet_service_fs_migration \
233 test_gnunet_service_fs_p2p \
234 test_gnunet_service_fs_p2p_cadet \
238 test_plugin_block_fs_SOURCES = \
239 test_plugin_block_fs.c
240 test_plugin_block_fs_LDADD = \
241 $(top_builddir)/src/block/libgnunetblock.la \
242 $(top_builddir)/src/util/libgnunetutil.la
246 test_gnunet_fs_psd.py \
247 test_gnunet_fs_rec.py \
248 test_gnunet_fs_idx.py
252 MONKEY = @MONKEYPREFIX@
253 AM_LDFLAGS = -no-install
258 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; $(MONKEY)
262 test_fs_download_indexed \
263 test_fs_download_persistence \
264 test_fs_file_information \
265 test_fs_list_indexed \
267 test_fs_namespace_list_updateable \
269 test_fs_publish_persistence \
271 test_fs_search_with_and \
272 test_fs_search_probes \
273 test_fs_search_persistence \
276 test_fs_unindex_persistence \
279 test_gnunet_service_fs_migration \
280 test_gnunet_service_fs_p2p \
281 test_gnunet_service_fs_p2p_cadet \
282 perf_gnunet_service_fs_p2p \
283 perf_gnunet_service_fs_p2p_index \
284 perf_gnunet_service_fs_p2p_respect \
289 test_fs_directory_SOURCES = \
291 test_fs_directory_LDADD = \
294 $(top_builddir)/src/util/libgnunetutil.la
296 test_fs_download_SOURCES = \
298 test_fs_download_LDADD = \
299 $(top_builddir)/src/testing/libgnunettesting.la \
301 $(top_builddir)/src/util/libgnunetutil.la
303 test_fs_download_indexed_SOURCES = \
305 test_fs_download_indexed_LDADD = \
306 $(top_builddir)/src/testing/libgnunettesting.la \
308 $(top_builddir)/src/util/libgnunetutil.la
310 test_fs_download_cadet_SOURCES = \
312 test_fs_download_cadet_LDADD = \
313 $(top_builddir)/src/testing/libgnunettesting.la \
315 $(top_builddir)/src/util/libgnunetutil.la
317 test_fs_download_persistence_SOURCES = \
318 test_fs_download_persistence.c
319 test_fs_download_persistence_LDADD = \
320 $(top_builddir)/src/testing/libgnunettesting.la \
322 $(top_builddir)/src/util/libgnunetutil.la
324 test_fs_file_information_SOURCES = \
325 test_fs_file_information.c
326 test_fs_file_information_LDADD = \
329 $(top_builddir)/src/util/libgnunetutil.la
331 test_fs_getopt_SOURCES = \
333 test_fs_getopt_LDADD = \
335 $(top_builddir)/src/util/libgnunetutil.la
337 test_fs_list_indexed_SOURCES = \
338 test_fs_list_indexed.c
339 test_fs_list_indexed_LDADD = \
340 $(top_builddir)/src/testing/libgnunettesting.la \
342 $(top_builddir)/src/util/libgnunetutil.la
344 test_fs_namespace_SOURCES = \
346 test_fs_namespace_LDADD = \
347 $(top_builddir)/src/testing/libgnunettesting.la \
349 $(top_builddir)/src/util/libgnunetutil.la
351 test_fs_namespace_list_updateable_SOURCES = \
352 test_fs_namespace_list_updateable.c
353 test_fs_namespace_list_updateable_LDADD = \
354 $(top_builddir)/src/testing/libgnunettesting.la \
356 $(top_builddir)/src/util/libgnunetutil.la
358 test_fs_publish_SOURCES = \
360 test_fs_publish_LDADD = \
361 $(top_builddir)/src/testing/libgnunettesting.la \
363 $(top_builddir)/src/util/libgnunetutil.la
365 test_fs_publish_persistence_SOURCES = \
366 test_fs_publish_persistence.c
367 test_fs_publish_persistence_LDADD = \
368 $(top_builddir)/src/testing/libgnunettesting.la \
370 $(top_builddir)/src/util/libgnunetutil.la
372 test_fs_search_SOURCES = \
374 test_fs_search_LDADD = \
375 $(top_builddir)/src/testing/libgnunettesting.la \
377 $(top_builddir)/src/util/libgnunetutil.la
379 test_fs_search_with_and_SOURCES = \
380 test_fs_search_with_and.c
381 test_fs_search_with_and_LDADD = \
382 $(top_builddir)/src/testing/libgnunettesting.la \
384 $(top_builddir)/src/util/libgnunetutil.la
386 test_fs_search_probes_SOURCES = \
387 test_fs_search_probes.c
388 test_fs_search_probes_LDADD = \
389 $(top_builddir)/src/testing/libgnunettesting.la \
391 $(top_builddir)/src/util/libgnunetutil.la
393 test_fs_search_persistence_SOURCES = \
394 test_fs_search_persistence.c
395 test_fs_search_persistence_LDADD = \
396 $(top_builddir)/src/testing/libgnunettesting.la \
398 $(top_builddir)/src/util/libgnunetutil.la
400 test_fs_start_stop_SOURCES = \
402 test_fs_start_stop_LDADD = \
403 $(top_builddir)/src/testing/libgnunettesting.la \
405 $(top_builddir)/src/util/libgnunetutil.la
407 test_fs_unindex_SOURCES = \
409 test_fs_unindex_LDADD = \
410 $(top_builddir)/src/testing/libgnunettesting.la \
412 $(top_builddir)/src/util/libgnunetutil.la
414 test_fs_unindex_persistence_SOURCES = \
415 test_fs_unindex_persistence.c
416 test_fs_unindex_persistence_LDADD = \
417 $(top_builddir)/src/testing/libgnunettesting.la \
419 $(top_builddir)/src/util/libgnunetutil.la
421 test_fs_uri_SOURCES = \
423 test_fs_uri_LDADD = \
425 $(top_builddir)/src/util/libgnunetutil.la
427 test_fs_test_lib_SOURCES = \
429 test_fs_test_lib_LDADD = \
431 $(top_builddir)/src/testbed/libgnunettestbed.la \
433 $(top_builddir)/src/util/libgnunetutil.la
435 test_gnunet_service_fs_p2p_SOURCES = \
436 test_gnunet_service_fs_p2p.c
437 test_gnunet_service_fs_p2p_LDADD = \
439 $(top_builddir)/src/testbed/libgnunettestbed.la \
441 $(top_builddir)/src/util/libgnunetutil.la
443 test_gnunet_service_fs_p2p_cadet_SOURCES = \
444 test_gnunet_service_fs_p2p.c
445 test_gnunet_service_fs_p2p_cadet_LDADD = \
447 $(top_builddir)/src/testbed/libgnunettestbed.la \
449 $(top_builddir)/src/util/libgnunetutil.la
451 test_gnunet_service_fs_migration_SOURCES = \
452 test_gnunet_service_fs_migration.c
453 test_gnunet_service_fs_migration_LDADD = \
455 $(top_builddir)/src/testbed/libgnunettestbed.la \
457 $(top_builddir)/src/util/libgnunetutil.la
459 perf_gnunet_service_fs_p2p_SOURCES = \
460 perf_gnunet_service_fs_p2p.c
461 perf_gnunet_service_fs_p2p_LDADD = \
463 $(top_builddir)/src/statistics/libgnunetstatistics.la \
464 $(top_builddir)/src/testbed/libgnunettestbed.la \
466 $(top_builddir)/src/util/libgnunetutil.la
468 perf_gnunet_service_fs_p2p_index_SOURCES = \
469 perf_gnunet_service_fs_p2p.c
470 perf_gnunet_service_fs_p2p_index_LDADD = \
472 $(top_builddir)/src/statistics/libgnunetstatistics.la \
473 $(top_builddir)/src/testbed/libgnunettestbed.la \
475 $(top_builddir)/src/util/libgnunetutil.la
477 perf_gnunet_service_fs_p2p_dht_SOURCES = \
478 perf_gnunet_service_fs_p2p.c
479 perf_gnunet_service_fs_p2p_dht_LDADD = \
481 $(top_builddir)/src/statistics/libgnunetstatistics.la \
482 $(top_builddir)/src/testbed/libgnunettestbed.la \
484 $(top_builddir)/src/util/libgnunetutil.la
486 perf_gnunet_service_fs_p2p_respect_SOURCES = \
487 perf_gnunet_service_fs_p2p_respect.c
488 perf_gnunet_service_fs_p2p_respect_LDADD = \
490 $(top_builddir)/src/statistics/libgnunetstatistics.la \
491 $(top_builddir)/src/testbed/libgnunettestbed.la \
493 $(top_builddir)/src/util/libgnunetutil.la
496 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
498 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
499 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
500 chmod +x test_gnunet_fs_psd.py
502 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
503 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
504 chmod +x test_gnunet_fs_rec.py
506 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
507 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
508 chmod +x test_gnunet_fs_ns.py
510 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
511 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
512 chmod +x test_gnunet_fs_idx.py
516 test_fs_defaults.conf \
517 fs_test_lib_data.conf \
519 test_fs_download_data.conf \
520 test_fs_download_indexed.conf \
521 test_fs_download_cadet.conf \
522 test_fs_file_information_data.conf \
523 fs_test_lib_data.conf \
524 test_fs_list_indexed_data.conf \
525 test_fs_namespace_data.conf \
526 test_fs_publish_data.conf \
527 test_fs_search_data.conf \
528 test_fs_unindex_data.conf \
529 test_gnunet_service_fs_migration_data.conf \
530 test_gnunet_service_fs_p2p_cadet.conf \
531 test_gnunet_fs_idx_data.conf \
532 test_gnunet_fs_psd_data.conf \
533 test_gnunet_fs_rec_data.conf \
534 perf_gnunet_service_fs_p2p.conf \
535 test_gnunet_fs_rec_data.tgz \
536 test_gnunet_fs_psd.py.in \
537 test_gnunet_fs_rec.py.in \
538 test_gnunet_fs_idx.py.in \
539 test_pseudonym_data.conf \
542 CLEANFILES = $(check_SCRIPTS)