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/
17 plugindir = $(libdir)/gnunet
20 lib_LTLIBRARIES = libgnunetfs.la
22 plugin_LTLIBRARIES = \
23 libgnunet_plugin_block_fs.la
25 noinst_LIBRARIES = libgnunetfstest.a
27 libgnunetfs_la_SOURCES = \
28 fs_api.c fs_api.h fs.h \
32 fs_file_information.c \
39 fs_namespace_advertise.c \
46 libgnunetfs_la_LIBADD = \
47 $(top_builddir)/src/datastore/libgnunetdatastore.la \
48 $(top_builddir)/src/util/libgnunetutil.la \
49 $(GN_LIBINTL) $(XLIB) -lunistring -lextractor
51 libgnunetfs_la_LDFLAGS = \
52 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
56 libgnunetfstest_a_SOURCES = \
57 fs_test_lib.c fs_test_lib.h
59 libgnunetfstest_a_LIBADD = \
60 $(top_builddir)/src/testing/libgnunettesting.la
66 gnunet-helper-fs-publish \
74 gnunet-download-manager.scm
76 gnunet_directory_SOURCES = \
78 gnunet_directory_LDADD = \
79 $(top_builddir)/src/fs/libgnunetfs.la \
80 $(top_builddir)/src/util/libgnunetutil.la \
83 gnunet_directory_DEPENDENCIES = \
89 $(top_builddir)/src/fs/libgnunetfs.la \
90 $(top_builddir)/src/util/libgnunetutil.la \
93 gnunet_fs_DEPENDENCIES = \
96 gnunet_download_SOURCES = \
98 gnunet_download_LDADD = \
99 $(top_builddir)/src/fs/libgnunetfs.la \
100 $(top_builddir)/src/util/libgnunetutil.la \
102 gnunet_download_DEPENDENCIES = \
105 gnunet_publish_SOURCES = \
107 gnunet_publish_LDADD = \
108 $(top_builddir)/src/fs/libgnunetfs.la \
109 $(top_builddir)/src/util/libgnunetutil.la \
112 gnunet_publish_DEPENDENCIES = \
115 gnunet_helper_fs_publish_SOURCES = \
116 gnunet-helper-fs-publish.c
117 gnunet_helper_fs_publish_LDADD = \
118 $(top_builddir)/src/util/libgnunetutil.la \
121 gnunet_helper_fs_publish_DEPENDENCIES = \
124 gnunet_pseudonym_SOURCES = \
126 gnunet_pseudonym_LDADD = \
127 $(top_builddir)/src/fs/libgnunetfs.la \
128 $(top_builddir)/src/util/libgnunetutil.la \
131 gnunet_pseudonym_DEPENDENCIES = \
134 gnunet_search_SOURCES = \
136 gnunet_search_LDADD = \
137 $(top_builddir)/src/fs/libgnunetfs.la \
138 $(top_builddir)/src/util/libgnunetutil.la \
141 gnunet_search_DEPENDENCIES = \
144 gnunet_service_fs_SOURCES = \
145 gnunet-service-fs.c gnunet-service-fs.h \
146 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
147 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
148 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
149 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
150 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
151 gnunet-service-fs_push.c gnunet-service-fs_push.h \
152 gnunet-service-fs_put.c gnunet-service-fs_put.h
153 gnunet_service_fs_LDADD = \
154 $(top_builddir)/src/fs/libgnunetfs.la \
155 $(top_builddir)/src/dht/libgnunetdht.la \
156 $(top_builddir)/src/block/libgnunetblock.la \
157 $(top_builddir)/src/datastore/libgnunetdatastore.la \
158 $(top_builddir)/src/statistics/libgnunetstatistics.la \
159 $(top_builddir)/src/ats/libgnunetats.la \
160 $(top_builddir)/src/core/libgnunetcore.la \
161 $(top_builddir)/src/util/libgnunetutil.la \
163 gnunet_service_fs_DEPENDENCIES = \
166 gnunet_unindex_SOURCES = \
168 gnunet_unindex_LDADD = \
169 $(top_builddir)/src/fs/libgnunetfs.la \
170 $(top_builddir)/src/util/libgnunetutil.la \
172 gnunet_unindex_DEPENDENCIES = \
176 libgnunet_plugin_block_fs_la_SOURCES = \
178 libgnunet_plugin_block_fs_la_LIBADD = \
179 $(top_builddir)/src/block/libgnunetblock.la \
180 $(top_builddir)/src/util/libgnunetutil.la
181 libgnunet_plugin_block_fs_la_LDFLAGS = \
183 libgnunet_plugin_block_fs_la_DEPENDENCIES = \
184 $(top_builddir)/src/block/libgnunetblock.la
190 perf_gnunet_service_fs_p2p \
191 perf_gnunet_service_fs_p2p_dht \
192 perf_gnunet_service_fs_p2p_index \
193 perf_gnunet_service_fs_p2p_trust
199 test_fs_download_indexed \
200 test_fs_download_persistence \
201 test_fs_file_information \
203 test_fs_list_indexed \
205 test_fs_namespace_list_updateable \
207 test_fs_publish_persistence \
209 test_fs_search_probes \
210 test_fs_search_persistence \
214 test_fs_unindex_persistence \
216 test_gnunet_service_fs_migration \
217 test_gnunet_service_fs_p2p \
221 if HAVE_PYTHON_PEXPECT
223 test_gnunet_fs_psd.py \
224 test_gnunet_fs_rec.py \
225 test_gnunet_fs_idx.py \
234 test_fs_download_indexed \
235 test_fs_download_persistence \
236 test_fs_file_information \
237 test_fs_list_indexed \
239 test_fs_namespace_list_updateable \
241 test_fs_publish_persistence \
243 test_fs_search_probes \
244 test_fs_search_persistence \
247 test_fs_unindex_persistence \
250 test_gnunet_service_fs_migration \
251 test_gnunet_service_fs_p2p \
252 perf_gnunet_service_fs_p2p \
253 perf_gnunet_service_fs_p2p_index \
254 perf_gnunet_service_fs_p2p_trust \
261 test_fs_directory_SOURCES = \
263 test_fs_directory_LDADD = \
265 $(top_builddir)/src/fs/libgnunetfs.la \
266 $(top_builddir)/src/util/libgnunetutil.la
268 test_fs_download_SOURCES = \
270 test_fs_download_LDADD = \
271 $(top_builddir)/src/fs/libgnunetfs.la \
272 $(top_builddir)/src/util/libgnunetutil.la
274 test_fs_download_indexed_SOURCES = \
275 test_fs_download_indexed.c
276 test_fs_download_indexed_LDADD = \
277 $(top_builddir)/src/fs/libgnunetfs.la \
278 $(top_builddir)/src/util/libgnunetutil.la
280 test_fs_download_persistence_SOURCES = \
281 test_fs_download_persistence.c
282 test_fs_download_persistence_LDADD = \
283 $(top_builddir)/src/fs/libgnunetfs.la \
284 $(top_builddir)/src/util/libgnunetutil.la
286 test_fs_file_information_SOURCES = \
287 test_fs_file_information.c
288 test_fs_file_information_LDADD = \
290 $(top_builddir)/src/fs/libgnunetfs.la \
291 $(top_builddir)/src/util/libgnunetutil.la
293 test_fs_getopt_SOURCES = \
295 test_fs_getopt_LDADD = \
296 $(top_builddir)/src/fs/libgnunetfs.la \
297 $(top_builddir)/src/util/libgnunetutil.la
299 test_fs_list_indexed_SOURCES = \
300 test_fs_list_indexed.c
301 test_fs_list_indexed_LDADD = \
302 $(top_builddir)/src/fs/libgnunetfs.la \
303 $(top_builddir)/src/util/libgnunetutil.la
305 test_fs_namespace_SOURCES = \
307 test_fs_namespace_LDADD = \
308 $(top_builddir)/src/fs/libgnunetfs.la \
309 $(top_builddir)/src/util/libgnunetutil.la
311 test_fs_namespace_list_updateable_SOURCES = \
312 test_fs_namespace_list_updateable.c
313 test_fs_namespace_list_updateable_LDADD = \
314 $(top_builddir)/src/fs/libgnunetfs.la \
315 $(top_builddir)/src/util/libgnunetutil.la
317 test_fs_publish_SOURCES = \
319 test_fs_publish_LDADD = \
320 $(top_builddir)/src/fs/libgnunetfs.la \
321 $(top_builddir)/src/util/libgnunetutil.la
323 test_fs_publish_persistence_SOURCES = \
324 test_fs_publish_persistence.c
325 test_fs_publish_persistence_LDADD = \
326 $(top_builddir)/src/fs/libgnunetfs.la \
327 $(top_builddir)/src/util/libgnunetutil.la
329 test_fs_search_SOURCES = \
331 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
332 $(top_builddir)/src/util/libgnunetutil.la
334 test_fs_search_probes_SOURCES = \
335 test_fs_search_probes.c
336 test_fs_search_probes_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
337 $(top_builddir)/src/util/libgnunetutil.la
339 test_fs_search_persistence_SOURCES = \
340 test_fs_search_persistence.c
341 test_fs_search_persistence_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
342 $(top_builddir)/src/util/libgnunetutil.la
344 test_fs_start_stop_SOURCES = \
346 test_fs_start_stop_LDADD = \
347 $(top_builddir)/src/fs/libgnunetfs.la \
348 $(top_builddir)/src/util/libgnunetutil.la
350 test_fs_unindex_SOURCES = \
352 test_fs_unindex_LDADD = \
353 $(top_builddir)/src/fs/libgnunetfs.la \
354 $(top_builddir)/src/util/libgnunetutil.la
356 test_fs_unindex_persistence_SOURCES = \
357 test_fs_unindex_persistence.c
358 test_fs_unindex_persistence_LDADD = \
359 $(top_builddir)/src/fs/libgnunetfs.la \
360 $(top_builddir)/src/util/libgnunetutil.la
362 test_fs_uri_SOURCES = \
364 test_fs_uri_LDADD = \
365 $(top_builddir)/src/fs/libgnunetfs.la \
366 $(top_builddir)/src/util/libgnunetutil.la
368 test_fs_test_lib_SOURCES = \
370 test_fs_test_lib_LDADD = \
371 $(top_builddir)/src/fs/libgnunetfstest.a \
372 $(top_builddir)/src/testing/libgnunettesting.la \
373 $(top_builddir)/src/fs/libgnunetfs.la \
374 $(top_builddir)/src/util/libgnunetutil.la
376 test_gnunet_service_fs_p2p_SOURCES = \
377 test_gnunet_service_fs_p2p.c
378 test_gnunet_service_fs_p2p_LDADD = \
379 $(top_builddir)/src/fs/libgnunetfstest.a \
380 $(top_builddir)/src/testing/libgnunettesting.la \
381 $(top_builddir)/src/fs/libgnunetfs.la \
382 $(top_builddir)/src/util/libgnunetutil.la
384 test_gnunet_service_fs_migration_SOURCES = \
385 test_gnunet_service_fs_migration.c
386 test_gnunet_service_fs_migration_LDADD = \
387 $(top_builddir)/src/fs/libgnunetfstest.a \
388 $(top_builddir)/src/testing/libgnunettesting.la \
389 $(top_builddir)/src/fs/libgnunetfs.la \
390 $(top_builddir)/src/util/libgnunetutil.la
392 perf_gnunet_service_fs_p2p_SOURCES = \
393 perf_gnunet_service_fs_p2p.c
394 perf_gnunet_service_fs_p2p_LDADD = \
395 $(top_builddir)/src/fs/libgnunetfstest.a \
396 $(top_builddir)/src/statistics/libgnunetstatistics.la \
397 $(top_builddir)/src/testing/libgnunettesting.la \
398 $(top_builddir)/src/fs/libgnunetfs.la \
399 $(top_builddir)/src/util/libgnunetutil.la
401 perf_gnunet_service_fs_p2p_index_SOURCES = \
402 perf_gnunet_service_fs_p2p.c
403 perf_gnunet_service_fs_p2p_index_LDADD = \
404 $(top_builddir)/src/fs/libgnunetfstest.a \
405 $(top_builddir)/src/statistics/libgnunetstatistics.la \
406 $(top_builddir)/src/testing/libgnunettesting.la \
407 $(top_builddir)/src/fs/libgnunetfs.la \
408 $(top_builddir)/src/util/libgnunetutil.la
410 perf_gnunet_service_fs_p2p_dht_SOURCES = \
411 perf_gnunet_service_fs_p2p.c
412 perf_gnunet_service_fs_p2p_dht_LDADD = \
413 $(top_builddir)/src/fs/libgnunetfstest.a \
414 $(top_builddir)/src/statistics/libgnunetstatistics.la \
415 $(top_builddir)/src/testing/libgnunettesting.la \
416 $(top_builddir)/src/fs/libgnunetfs.la \
417 $(top_builddir)/src/util/libgnunetutil.la
419 perf_gnunet_service_fs_p2p_trust_SOURCES = \
420 perf_gnunet_service_fs_p2p_trust.c
421 perf_gnunet_service_fs_p2p_trust_LDADD = \
422 $(top_builddir)/src/fs/libgnunetfstest.a \
423 $(top_builddir)/src/statistics/libgnunetstatistics.la \
424 $(top_builddir)/src/testing/libgnunettesting.la \
425 $(top_builddir)/src/fs/libgnunetfs.la \
426 $(top_builddir)/src/util/libgnunetutil.la
429 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
431 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
432 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
433 chmod +x test_gnunet_fs_psd.py
435 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
436 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
437 chmod +x test_gnunet_fs_rec.py
439 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
440 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
441 chmod +x test_gnunet_fs_ns.py
443 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
444 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
445 chmod +x test_gnunet_fs_idx.py
449 test_fs_defaults.conf \
450 fs_test_lib_data.conf \
452 test_fs_download_data.conf \
453 test_fs_file_information_data.conf \
454 fs_test_lib_data.conf \
455 test_fs_list_indexed_data.conf \
456 test_fs_namespace_data.conf \
457 test_fs_publish_data.conf \
458 test_fs_search_data.conf \
459 test_fs_unindex_data.conf \
460 test_fs_uri_data.conf \
461 test_gnunet_service_fs_migration_data.conf \
462 test_gnunet_fs_idx_data.conf \
463 test_gnunet_fs_ns_data.conf \
464 test_gnunet_fs_psd_data.conf \
465 test_gnunet_fs_rec_data.conf \
466 test_gnunet_fs_rec_data.tgz \
467 test_gnunet_fs_psd.py.in \
468 test_gnunet_fs_rec.py.in \
469 test_gnunet_fs_ns.py.in \
470 test_gnunet_fs_idx.py.in \
473 CLEANFILES = $(check_SCRIPTS)