1 INCLUDES = -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
27 noinst_LIBRARIES = libgnunetfstest.a
29 libgnunetfs_la_SOURCES = \
30 fs_api.c fs_api.h fs.h \
34 fs_file_information.c \
41 fs_namespace_advertise.c \
48 libgnunetfs_la_LIBADD = \
49 $(top_builddir)/src/datastore/libgnunetdatastore.la \
50 $(top_builddir)/src/util/libgnunetutil.la \
51 $(GN_LIBINTL) $(XLIB) -lunistring -lextractor
53 libgnunetfs_la_LDFLAGS = \
54 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
58 libgnunetfstest_a_SOURCES = \
59 fs_test_lib.c fs_test_lib.h
61 libgnunetfstest_a_LIBADD = \
62 $(top_builddir)/src/testing/libgnunettesting.la \
63 $(top_builddir)/src/testbed/libgnunettestbed.la
66 gnunet-helper-fs-publish \
83 gnunet-download-manager.scm
85 gnunet_directory_SOURCES = \
87 gnunet_directory_LDADD = \
88 $(top_builddir)/src/fs/libgnunetfs.la \
89 $(top_builddir)/src/util/libgnunetutil.la \
92 gnunet_directory_DEPENDENCIES = \
95 gnunet_fs_profiler_SOURCES = \
97 gnunet_fs_profiler_LDADD = \
98 $(top_builddir)/src/testbed/libgnunettestbed.la \
99 $(top_builddir)/src/util/libgnunetutil.la \
102 gnunet_fs_SOURCES = \
105 $(top_builddir)/src/fs/libgnunetfs.la \
106 $(top_builddir)/src/util/libgnunetutil.la \
109 gnunet_fs_DEPENDENCIES = \
112 gnunet_download_SOURCES = \
114 gnunet_download_LDADD = \
115 $(top_builddir)/src/fs/libgnunetfs.la \
116 $(top_builddir)/src/util/libgnunetutil.la \
118 gnunet_download_DEPENDENCIES = \
121 gnunet_publish_SOURCES = \
123 gnunet_publish_LDADD = \
124 $(top_builddir)/src/fs/libgnunetfs.la \
125 $(top_builddir)/src/util/libgnunetutil.la \
128 gnunet_publish_DEPENDENCIES = \
131 gnunet_auto_share_SOURCES = \
133 gnunet_auto_share_LDADD = \
134 $(top_builddir)/src/util/libgnunetutil.la \
137 gnunet_auto_share_DEPENDENCIES = \
140 gnunet_helper_fs_publish_SOURCES = \
141 gnunet-helper-fs-publish.c
142 gnunet_helper_fs_publish_LDADD = \
143 $(top_builddir)/src/util/libgnunetutil.la \
146 gnunet_helper_fs_publish_DEPENDENCIES = \
149 gnunet_pseudonym_SOURCES = \
151 gnunet_pseudonym_LDADD = \
152 $(top_builddir)/src/fs/libgnunetfs.la \
153 $(top_builddir)/src/util/libgnunetutil.la \
156 gnunet_pseudonym_DEPENDENCIES = \
159 gnunet_search_SOURCES = \
161 gnunet_search_LDADD = \
162 $(top_builddir)/src/fs/libgnunetfs.la \
163 $(top_builddir)/src/util/libgnunetutil.la \
166 gnunet_search_DEPENDENCIES = \
169 gnunet_service_fs_SOURCES = \
170 gnunet-service-fs.c gnunet-service-fs.h \
171 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
172 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
173 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
174 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
175 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
176 gnunet-service-fs_push.c gnunet-service-fs_push.h \
177 gnunet-service-fs_put.c gnunet-service-fs_put.h \
178 gnunet-service-fs_stream.c gnunet-service-fs_sream.h
179 gnunet_service_fs_LDADD = \
180 $(top_builddir)/src/fs/libgnunetfs.la \
181 $(top_builddir)/src/dht/libgnunetdht.la \
182 $(top_builddir)/src/block/libgnunetblock.la \
183 $(top_builddir)/src/datastore/libgnunetdatastore.la \
184 $(top_builddir)/src/statistics/libgnunetstatistics.la \
185 $(top_builddir)/src/stream/libgnunetstream.la \
186 $(top_builddir)/src/ats/libgnunetats.la \
187 $(top_builddir)/src/core/libgnunetcore.la \
188 $(top_builddir)/src/util/libgnunetutil.la \
190 gnunet_service_fs_DEPENDENCIES = \
193 gnunet_unindex_SOURCES = \
195 gnunet_unindex_LDADD = \
196 $(top_builddir)/src/fs/libgnunetfs.la \
197 $(top_builddir)/src/util/libgnunetutil.la \
199 gnunet_unindex_DEPENDENCIES = \
203 libgnunet_plugin_block_fs_la_SOURCES = \
205 libgnunet_plugin_block_fs_la_LIBADD = \
206 $(top_builddir)/src/block/libgnunetblock.la \
207 $(top_builddir)/src/util/libgnunetutil.la \
209 libgnunet_plugin_block_fs_la_LDFLAGS = \
211 libgnunet_plugin_block_fs_la_DEPENDENCIES = \
212 $(top_builddir)/src/block/libgnunetblock.la
218 perf_gnunet_service_fs_p2p \
219 perf_gnunet_service_fs_p2p_dht \
220 perf_gnunet_service_fs_p2p_index \
221 perf_gnunet_service_fs_p2p_respect
225 test_plugin_block_fs \
228 test_fs_download_stream \
229 test_fs_download_indexed \
230 test_fs_download_persistence \
231 test_fs_file_information \
233 test_fs_list_indexed \
235 test_fs_namespace_list_updateable \
237 test_fs_publish_persistence \
239 test_fs_search_probes \
240 test_fs_search_persistence \
244 test_fs_unindex_persistence \
246 test_gnunet_service_fs_migration \
247 test_gnunet_service_fs_p2p \
248 test_gnunet_service_fs_p2p_stream \
251 test_plugin_block_fs_SOURCES = \
252 test_plugin_block_fs.c
253 test_plugin_block_fs_LDADD = \
254 $(top_builddir)/src/block/libgnunetblock.la \
255 $(top_builddir)/src/util/libgnunetutil.la
259 test_gnunet_fs_psd.py \
260 test_gnunet_fs_rec.py \
261 test_gnunet_fs_idx.py \
266 TESTS_ENVIRONMENT = @MONKEYPREFIX@
267 AM_LDFLAGS = -no-install
275 test_fs_download_indexed \
276 test_fs_download_persistence \
277 test_fs_file_information \
278 test_fs_list_indexed \
280 test_fs_namespace_list_updateable \
282 test_fs_publish_persistence \
284 test_fs_search_probes \
285 test_fs_search_persistence \
288 test_fs_unindex_persistence \
291 test_gnunet_service_fs_migration \
292 test_gnunet_service_fs_p2p \
293 test_gnunet_service_fs_p2p_stream \
294 perf_gnunet_service_fs_p2p \
295 perf_gnunet_service_fs_p2p_index \
296 perf_gnunet_service_fs_p2p_respect \
301 test_fs_directory_SOURCES = \
303 test_fs_directory_LDADD = \
305 $(top_builddir)/src/fs/libgnunetfs.la \
306 $(top_builddir)/src/util/libgnunetutil.la
308 test_fs_download_SOURCES = \
310 test_fs_download_LDADD = \
311 $(top_builddir)/src/testing/libgnunettesting.la \
312 $(top_builddir)/src/fs/libgnunetfs.la \
313 $(top_builddir)/src/util/libgnunetutil.la
315 test_fs_download_indexed_SOURCES = \
317 test_fs_download_indexed_LDADD = \
318 $(top_builddir)/src/testing/libgnunettesting.la \
319 $(top_builddir)/src/fs/libgnunetfs.la \
320 $(top_builddir)/src/util/libgnunetutil.la
322 test_fs_download_stream_SOURCES = \
324 test_fs_download_stream_LDADD = \
325 $(top_builddir)/src/testing/libgnunettesting.la \
326 $(top_builddir)/src/fs/libgnunetfs.la \
327 $(top_builddir)/src/util/libgnunetutil.la
329 test_fs_download_persistence_SOURCES = \
330 test_fs_download_persistence.c
331 test_fs_download_persistence_LDADD = \
332 $(top_builddir)/src/testing/libgnunettesting.la \
333 $(top_builddir)/src/fs/libgnunetfs.la \
334 $(top_builddir)/src/util/libgnunetutil.la
336 test_fs_file_information_SOURCES = \
337 test_fs_file_information.c
338 test_fs_file_information_LDADD = \
340 $(top_builddir)/src/fs/libgnunetfs.la \
341 $(top_builddir)/src/util/libgnunetutil.la
343 test_fs_getopt_SOURCES = \
345 test_fs_getopt_LDADD = \
346 $(top_builddir)/src/fs/libgnunetfs.la \
347 $(top_builddir)/src/util/libgnunetutil.la
349 test_fs_list_indexed_SOURCES = \
350 test_fs_list_indexed.c
351 test_fs_list_indexed_LDADD = \
352 $(top_builddir)/src/testing/libgnunettesting.la \
353 $(top_builddir)/src/fs/libgnunetfs.la \
354 $(top_builddir)/src/util/libgnunetutil.la
356 test_fs_namespace_SOURCES = \
358 test_fs_namespace_LDADD = \
359 $(top_builddir)/src/testing/libgnunettesting.la \
360 $(top_builddir)/src/fs/libgnunetfs.la \
361 $(top_builddir)/src/util/libgnunetutil.la
363 test_fs_namespace_list_updateable_SOURCES = \
364 test_fs_namespace_list_updateable.c
365 test_fs_namespace_list_updateable_LDADD = \
366 $(top_builddir)/src/testing/libgnunettesting.la \
367 $(top_builddir)/src/fs/libgnunetfs.la \
368 $(top_builddir)/src/util/libgnunetutil.la
370 test_fs_publish_SOURCES = \
372 test_fs_publish_LDADD = \
373 $(top_builddir)/src/testing/libgnunettesting.la \
374 $(top_builddir)/src/fs/libgnunetfs.la \
375 $(top_builddir)/src/util/libgnunetutil.la
377 test_fs_publish_persistence_SOURCES = \
378 test_fs_publish_persistence.c
379 test_fs_publish_persistence_LDADD = \
380 $(top_builddir)/src/testing/libgnunettesting.la \
381 $(top_builddir)/src/fs/libgnunetfs.la \
382 $(top_builddir)/src/util/libgnunetutil.la
384 test_fs_search_SOURCES = \
386 test_fs_search_LDADD = \
387 $(top_builddir)/src/testing/libgnunettesting.la \
388 $(top_builddir)/src/fs/libgnunetfs.la \
389 $(top_builddir)/src/util/libgnunetutil.la
391 test_fs_search_probes_SOURCES = \
392 test_fs_search_probes.c
393 test_fs_search_probes_LDADD = \
394 $(top_builddir)/src/testing/libgnunettesting.la \
395 $(top_builddir)/src/fs/libgnunetfs.la \
396 $(top_builddir)/src/util/libgnunetutil.la
398 test_fs_search_persistence_SOURCES = \
399 test_fs_search_persistence.c
400 test_fs_search_persistence_LDADD = \
401 $(top_builddir)/src/testing/libgnunettesting.la \
402 $(top_builddir)/src/fs/libgnunetfs.la \
403 $(top_builddir)/src/util/libgnunetutil.la
405 test_fs_start_stop_SOURCES = \
407 test_fs_start_stop_LDADD = \
408 $(top_builddir)/src/testing/libgnunettesting.la \
409 $(top_builddir)/src/fs/libgnunetfs.la \
410 $(top_builddir)/src/util/libgnunetutil.la
412 test_fs_unindex_SOURCES = \
414 test_fs_unindex_LDADD = \
415 $(top_builddir)/src/testing/libgnunettesting.la \
416 $(top_builddir)/src/fs/libgnunetfs.la \
417 $(top_builddir)/src/util/libgnunetutil.la
419 test_fs_unindex_persistence_SOURCES = \
420 test_fs_unindex_persistence.c
421 test_fs_unindex_persistence_LDADD = \
422 $(top_builddir)/src/testing/libgnunettesting.la \
423 $(top_builddir)/src/fs/libgnunetfs.la \
424 $(top_builddir)/src/util/libgnunetutil.la
426 test_fs_uri_SOURCES = \
428 test_fs_uri_LDADD = \
429 $(top_builddir)/src/fs/libgnunetfs.la \
430 $(top_builddir)/src/util/libgnunetutil.la
432 test_fs_test_lib_SOURCES = \
434 test_fs_test_lib_LDADD = \
435 $(top_builddir)/src/fs/libgnunetfstest.a \
436 $(top_builddir)/src/testbed/libgnunettestbed.la \
437 $(top_builddir)/src/fs/libgnunetfs.la \
438 $(top_builddir)/src/util/libgnunetutil.la
440 test_gnunet_service_fs_p2p_SOURCES = \
441 test_gnunet_service_fs_p2p.c
442 test_gnunet_service_fs_p2p_LDADD = \
443 $(top_builddir)/src/fs/libgnunetfstest.a \
444 $(top_builddir)/src/testbed/libgnunettestbed.la \
445 $(top_builddir)/src/fs/libgnunetfs.la \
446 $(top_builddir)/src/util/libgnunetutil.la
448 test_gnunet_service_fs_p2p_stream_SOURCES = \
449 test_gnunet_service_fs_p2p.c
450 test_gnunet_service_fs_p2p_stream_LDADD = \
451 $(top_builddir)/src/fs/libgnunetfstest.a \
452 $(top_builddir)/src/testbed/libgnunettestbed.la \
453 $(top_builddir)/src/fs/libgnunetfs.la \
454 $(top_builddir)/src/util/libgnunetutil.la
456 test_gnunet_service_fs_migration_SOURCES = \
457 test_gnunet_service_fs_migration.c
458 test_gnunet_service_fs_migration_LDADD = \
459 $(top_builddir)/src/fs/libgnunetfstest.a \
460 $(top_builddir)/src/testbed/libgnunettestbed.la \
461 $(top_builddir)/src/fs/libgnunetfs.la \
462 $(top_builddir)/src/util/libgnunetutil.la
464 perf_gnunet_service_fs_p2p_SOURCES = \
465 perf_gnunet_service_fs_p2p.c
466 perf_gnunet_service_fs_p2p_LDADD = \
467 $(top_builddir)/src/fs/libgnunetfstest.a \
468 $(top_builddir)/src/statistics/libgnunetstatistics.la \
469 $(top_builddir)/src/testbed/libgnunettestbed.la \
470 $(top_builddir)/src/fs/libgnunetfs.la \
471 $(top_builddir)/src/util/libgnunetutil.la
473 perf_gnunet_service_fs_p2p_index_SOURCES = \
474 perf_gnunet_service_fs_p2p.c
475 perf_gnunet_service_fs_p2p_index_LDADD = \
476 $(top_builddir)/src/fs/libgnunetfstest.a \
477 $(top_builddir)/src/statistics/libgnunetstatistics.la \
478 $(top_builddir)/src/testbed/libgnunettestbed.la \
479 $(top_builddir)/src/fs/libgnunetfs.la \
480 $(top_builddir)/src/util/libgnunetutil.la
482 perf_gnunet_service_fs_p2p_dht_SOURCES = \
483 perf_gnunet_service_fs_p2p.c
484 perf_gnunet_service_fs_p2p_dht_LDADD = \
485 $(top_builddir)/src/fs/libgnunetfstest.a \
486 $(top_builddir)/src/statistics/libgnunetstatistics.la \
487 $(top_builddir)/src/testbed/libgnunettestbed.la \
488 $(top_builddir)/src/fs/libgnunetfs.la \
489 $(top_builddir)/src/util/libgnunetutil.la
491 perf_gnunet_service_fs_p2p_respect_SOURCES = \
492 perf_gnunet_service_fs_p2p_respect.c
493 perf_gnunet_service_fs_p2p_respect_LDADD = \
494 $(top_builddir)/src/fs/libgnunetfstest.a \
495 $(top_builddir)/src/statistics/libgnunetstatistics.la \
496 $(top_builddir)/src/testbed/libgnunettestbed.la \
497 $(top_builddir)/src/fs/libgnunetfs.la \
498 $(top_builddir)/src/util/libgnunetutil.la
501 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
503 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
504 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
505 chmod +x test_gnunet_fs_psd.py
507 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
508 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
509 chmod +x test_gnunet_fs_rec.py
511 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
512 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
513 chmod +x test_gnunet_fs_ns.py
515 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
516 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
517 chmod +x test_gnunet_fs_idx.py
521 test_fs_defaults.conf \
522 fs_test_lib_data.conf \
524 test_fs_download_data.conf \
525 test_fs_download_index.conf \
526 test_fs_download_stream.conf \
527 test_fs_file_information_data.conf \
528 fs_test_lib_data.conf \
529 test_fs_list_indexed_data.conf \
530 test_fs_namespace_data.conf \
531 test_fs_publish_data.conf \
532 test_fs_search_data.conf \
533 test_fs_unindex_data.conf \
534 test_fs_uri_data.conf \
535 test_gnunet_service_fs_migration_data.conf \
536 test_gnunet_service_fs_p2p_stream.conf \
537 test_gnunet_fs_idx_data.conf \
538 test_gnunet_fs_ns_data.conf \
539 test_gnunet_fs_psd_data.conf \
540 test_gnunet_fs_rec_data.conf \
541 perf_gnunet_service_fs_p2p.conf \
542 test_gnunet_fs_rec_data.tgz \
543 test_gnunet_fs_psd.py.in \
544 test_gnunet_fs_rec.py.in \
545 test_gnunet_fs_ns.py.in \
546 test_gnunet_fs_idx.py.in \
549 CLEANFILES = $(check_SCRIPTS)