1 INCLUDES = -I$(top_srcdir)/src/include
4 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
8 AM_CFLAGS = --coverage -O0
13 lib_LTLIBRARIES = libgnunetfs.la
15 noinst_LIBRARIES = libgnunetfstest.a
17 libgnunetfs_la_SOURCES = \
21 fs_file_information.c \
32 libgnunetfs_la_LIBADD = \
33 $(top_builddir)/src/datastore/libgnunetdatastore.la \
34 $(top_builddir)/src/util/libgnunetutil.la \
38 libgnunetfs_la_LDFLAGS = \
39 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
43 libgnunetfstest_a_SOURCES = \
44 fs_test_lib.c fs_test_lib.h
46 libgnunetfstest_a_LIBADD = \
47 $(top_builddir)/src/testing/libgnunettesting.la
58 gnunet_directory_SOURCES = \
60 gnunet_directory_LDADD = \
61 $(top_builddir)/src/fs/libgnunetfs.la \
62 $(top_builddir)/src/util/libgnunetutil.la \
65 gnunet_directory_DEPENDENCIES = \
68 gnunet_download_SOURCES = \
70 gnunet_download_LDADD = \
71 $(top_builddir)/src/fs/libgnunetfs.la \
72 $(top_builddir)/src/util/libgnunetutil.la \
74 gnunet_download_DEPENDENCIES = \
77 gnunet_publish_SOURCES = \
79 gnunet_publish_LDADD = \
80 $(top_builddir)/src/fs/libgnunetfs.la \
81 $(top_builddir)/src/util/libgnunetutil.la \
84 gnunet_publish_DEPENDENCIES = \
87 gnunet_pseudonym_SOURCES = \
89 gnunet_pseudonym_LDADD = \
90 $(top_builddir)/src/fs/libgnunetfs.la \
91 $(top_builddir)/src/util/libgnunetutil.la \
94 gnunet_pseudonym_DEPENDENCIES = \
97 gnunet_search_SOURCES = \
99 gnunet_search_LDADD = \
100 $(top_builddir)/src/fs/libgnunetfs.la \
101 $(top_builddir)/src/util/libgnunetutil.la \
104 gnunet_search_DEPENDENCIES = \
107 gnunet_service_fs_SOURCES = \
108 gnunet-service-fs.c gnunet-service-fs.h \
109 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
110 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
111 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
112 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
113 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
114 gnunet-service-fs_push.c gnunet-service-fs_push.h \
115 gnunet-service-fs_put.c gnunet-service-fs_put.h
116 gnunet_service_fs_LDADD = \
117 $(top_builddir)/src/fs/libgnunetfs.la \
118 $(top_builddir)/src/dht/libgnunetdht.la \
119 $(top_builddir)/src/block/libgnunetblock.la \
120 $(top_builddir)/src/datastore/libgnunetdatastore.la \
121 $(top_builddir)/src/statistics/libgnunetstatistics.la \
122 $(top_builddir)/src/core/libgnunetcore.la \
123 $(top_builddir)/src/util/libgnunetutil.la \
125 gnunet_service_fs_DEPENDENCIES = \
128 gnunet_unindex_SOURCES = \
130 gnunet_unindex_LDADD = \
131 $(top_builddir)/src/fs/libgnunetfs.la \
132 $(top_builddir)/src/util/libgnunetutil.la \
134 gnunet_unindex_DEPENDENCIES = \
143 test_fs_download_indexed \
144 test_fs_download_persistence \
145 test_fs_file_information \
147 test_fs_list_indexed \
149 test_fs_namespace_list_updateable \
151 test_fs_publish_persistence \
153 test_fs_search_persistence \
157 test_fs_unindex_persistence \
159 test_gnunet_service_fs_migration \
160 test_gnunet_service_fs_p2p \
161 perf_gnunet_service_fs_p2p \
162 perf_gnunet_service_fs_p2p_dht \
163 perf_gnunet_service_fs_p2p_index \
164 perf_gnunet_service_fs_p2p_trust
167 if HAVE_PYTHON_PEXPECT
169 test_gnunet_fs_psd.py \
170 test_gnunet_fs_rec.py \
171 test_gnunet_fs_idx.py \
180 test_fs_download_indexed \
181 test_fs_download_persistence \
182 test_fs_file_information \
183 test_fs_list_indexed \
185 test_fs_namespace_list_updateable \
187 test_fs_publish_persistence \
189 test_fs_search_persistence \
192 test_fs_unindex_persistence \
195 test_gnunet_service_fs_migration \
196 test_gnunet_service_fs_p2p \
197 perf_gnunet_service_fs_p2p \
198 perf_gnunet_service_fs_p2p_index \
201 # perf_gnunet_service_fs_p2p_trust
206 test_fs_directory_SOURCES = \
208 test_fs_directory_LDADD = \
210 $(top_builddir)/src/fs/libgnunetfs.la \
211 $(top_builddir)/src/util/libgnunetutil.la
213 test_fs_download_SOURCES = \
215 test_fs_download_LDADD = \
216 $(top_builddir)/src/fs/libgnunetfs.la \
217 $(top_builddir)/src/util/libgnunetutil.la
219 test_fs_download_indexed_SOURCES = \
220 test_fs_download_indexed.c
221 test_fs_download_indexed_LDADD = \
222 $(top_builddir)/src/fs/libgnunetfs.la \
223 $(top_builddir)/src/util/libgnunetutil.la
225 test_fs_download_persistence_SOURCES = \
226 test_fs_download_persistence.c
227 test_fs_download_persistence_LDADD = \
228 $(top_builddir)/src/fs/libgnunetfs.la \
229 $(top_builddir)/src/util/libgnunetutil.la
231 test_fs_file_information_SOURCES = \
232 test_fs_file_information.c
233 test_fs_file_information_LDADD = \
235 $(top_builddir)/src/fs/libgnunetfs.la \
236 $(top_builddir)/src/util/libgnunetutil.la
238 test_fs_getopt_SOURCES = \
240 test_fs_getopt_LDADD = \
241 $(top_builddir)/src/fs/libgnunetfs.la \
242 $(top_builddir)/src/util/libgnunetutil.la
244 test_fs_list_indexed_SOURCES = \
245 test_fs_list_indexed.c
246 test_fs_list_indexed_LDADD = \
247 $(top_builddir)/src/fs/libgnunetfs.la \
248 $(top_builddir)/src/util/libgnunetutil.la
250 test_fs_namespace_SOURCES = \
252 test_fs_namespace_LDADD = \
253 $(top_builddir)/src/fs/libgnunetfs.la \
254 $(top_builddir)/src/util/libgnunetutil.la
256 test_fs_namespace_list_updateable_SOURCES = \
257 test_fs_namespace_list_updateable.c
258 test_fs_namespace_list_updateable_LDADD = \
259 $(top_builddir)/src/fs/libgnunetfs.la \
260 $(top_builddir)/src/util/libgnunetutil.la
262 test_fs_publish_SOURCES = \
264 test_fs_publish_LDADD = \
265 $(top_builddir)/src/fs/libgnunetfs.la \
266 $(top_builddir)/src/util/libgnunetutil.la
268 test_fs_publish_persistence_SOURCES = \
269 test_fs_publish_persistence.c
270 test_fs_publish_persistence_LDADD = \
271 $(top_builddir)/src/fs/libgnunetfs.la \
272 $(top_builddir)/src/util/libgnunetutil.la
274 test_fs_search_SOURCES = \
276 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
277 $(top_builddir)/src/util/libgnunetutil.la
279 test_fs_search_persistence_SOURCES = \
280 test_fs_search_persistence.c
281 test_fs_search_persistence_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
282 $(top_builddir)/src/util/libgnunetutil.la
284 test_fs_start_stop_SOURCES = \
286 test_fs_start_stop_LDADD = \
287 $(top_builddir)/src/fs/libgnunetfs.la \
288 $(top_builddir)/src/util/libgnunetutil.la
290 test_fs_unindex_SOURCES = \
292 test_fs_unindex_LDADD = \
293 $(top_builddir)/src/fs/libgnunetfs.la \
294 $(top_builddir)/src/util/libgnunetutil.la
296 test_fs_unindex_persistence_SOURCES = \
297 test_fs_unindex_persistence.c
298 test_fs_unindex_persistence_LDADD = \
299 $(top_builddir)/src/fs/libgnunetfs.la \
300 $(top_builddir)/src/util/libgnunetutil.la
302 test_fs_uri_SOURCES = \
304 test_fs_uri_LDADD = \
305 $(top_builddir)/src/fs/libgnunetfs.la \
306 $(top_builddir)/src/util/libgnunetutil.la
308 test_fs_test_lib_SOURCES = \
310 test_fs_test_lib_LDADD = \
311 $(top_builddir)/src/fs/libgnunetfstest.a \
312 $(top_builddir)/src/testing/libgnunettesting.la \
313 $(top_builddir)/src/fs/libgnunetfs.la \
314 $(top_builddir)/src/util/libgnunetutil.la
316 test_gnunet_service_fs_p2p_SOURCES = \
317 test_gnunet_service_fs_p2p.c
318 test_gnunet_service_fs_p2p_LDADD = \
319 $(top_builddir)/src/fs/libgnunetfstest.a \
320 $(top_builddir)/src/testing/libgnunettesting.la \
321 $(top_builddir)/src/fs/libgnunetfs.la \
322 $(top_builddir)/src/util/libgnunetutil.la
324 test_gnunet_service_fs_migration_SOURCES = \
325 test_gnunet_service_fs_migration.c
326 test_gnunet_service_fs_migration_LDADD = \
327 $(top_builddir)/src/fs/libgnunetfstest.a \
328 $(top_builddir)/src/testing/libgnunettesting.la \
329 $(top_builddir)/src/fs/libgnunetfs.la \
330 $(top_builddir)/src/util/libgnunetutil.la
332 perf_gnunet_service_fs_p2p_SOURCES = \
333 perf_gnunet_service_fs_p2p.c
334 perf_gnunet_service_fs_p2p_LDADD = \
335 $(top_builddir)/src/fs/libgnunetfstest.a \
336 $(top_builddir)/src/statistics/libgnunetstatistics.la \
337 $(top_builddir)/src/testing/libgnunettesting.la \
338 $(top_builddir)/src/fs/libgnunetfs.la \
339 $(top_builddir)/src/util/libgnunetutil.la
341 perf_gnunet_service_fs_p2p_index_SOURCES = \
342 perf_gnunet_service_fs_p2p.c
343 perf_gnunet_service_fs_p2p_index_LDADD = \
344 $(top_builddir)/src/fs/libgnunetfstest.a \
345 $(top_builddir)/src/statistics/libgnunetstatistics.la \
346 $(top_builddir)/src/testing/libgnunettesting.la \
347 $(top_builddir)/src/fs/libgnunetfs.la \
348 $(top_builddir)/src/util/libgnunetutil.la
350 perf_gnunet_service_fs_p2p_dht_SOURCES = \
351 perf_gnunet_service_fs_p2p.c
352 perf_gnunet_service_fs_p2p_dht_LDADD = \
353 $(top_builddir)/src/fs/libgnunetfstest.a \
354 $(top_builddir)/src/statistics/libgnunetstatistics.la \
355 $(top_builddir)/src/testing/libgnunettesting.la \
356 $(top_builddir)/src/fs/libgnunetfs.la \
357 $(top_builddir)/src/util/libgnunetutil.la
359 perf_gnunet_service_fs_p2p_trust_SOURCES = \
360 perf_gnunet_service_fs_p2p_trust.c
361 perf_gnunet_service_fs_p2p_trust_LDADD = \
362 $(top_builddir)/src/fs/libgnunetfstest.a \
363 $(top_builddir)/src/statistics/libgnunetstatistics.la \
364 $(top_builddir)/src/testing/libgnunettesting.la \
365 $(top_builddir)/src/fs/libgnunetfs.la \
366 $(top_builddir)/src/util/libgnunetutil.la
369 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
371 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
372 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
373 chmod +x test_gnunet_fs_psd.py
375 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
376 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
377 chmod +x test_gnunet_fs_rec.py
379 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
380 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
381 chmod +x test_gnunet_fs_ns.py
383 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
384 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
385 chmod +x test_gnunet_fs_idx.py
389 fs_test_lib_data.conf \
391 test_fs_download_data.conf \
392 test_fs_file_information_data.conf \
393 test_fs_file_information_meta_data_image.jpg \
394 fs_test_lib_data.conf \
395 test_fs_list_indexed_data.conf \
396 test_fs_namespace_data.conf \
397 test_fs_publish_data.conf \
398 test_fs_search_data.conf \
399 test_fs_unindex_data.conf \
400 test_fs_uri_data.conf \
401 test_gnunet_service_fs_migration_data.conf \
402 test_gnunet_fs_idx_data.conf \
403 test_gnunet_fs_ns_data.conf \
404 test_gnunet_fs_psd_data.conf \
405 test_gnunet_fs_rec_data.conf \
406 test_gnunet_fs_rec_data.tgz \
407 test_gnunet_fs_psd.py.in \
408 test_gnunet_fs_rec.py.in \
409 test_gnunet_fs_ns.py.in \
410 test_gnunet_fs_idx.py.in
412 CLEANFILES = $(check_SCRIPTS)