set continued flag on client side -- towards fixing 1786:
[oweals/gnunet.git] / src / fs / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12 pkgcfgdir= $(pkgdatadir)/config.d/
13
14 dist_pkgcfg_DATA = \
15   fs.conf
16
17
18 lib_LTLIBRARIES = libgnunetfs.la
19
20 noinst_LIBRARIES = libgnunetfstest.a
21
22 libgnunetfs_la_SOURCES = \
23   fs_api.c fs_api.h fs.h \
24   fs_directory.c \
25   fs_download.c \
26   fs_file_information.c \
27   fs_getopt.c \
28   fs_list_indexed.c \
29   fs_publish.c \
30   fs_misc.c \
31   fs_namespace.c \
32   fs_search.c \
33   fs_tree.c fs_tree.h \
34   fs_unindex.c \
35   fs_uri.c 
36
37 libgnunetfs_la_LIBADD = \
38   $(top_builddir)/src/datastore/libgnunetdatastore.la \
39   $(top_builddir)/src/util/libgnunetutil.la \
40   -lextractor \
41   $(GN_LIBINTL) $(XLIB)
42
43 libgnunetfs_la_LDFLAGS = \
44   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
45   -version-info 0:0:0
46
47
48 libgnunetfstest_a_SOURCES = \
49   fs_test_lib.c fs_test_lib.h
50
51 libgnunetfstest_a_LIBADD = \
52   $(top_builddir)/src/testing/libgnunettesting.la 
53
54 bin_PROGRAMS = \
55   gnunet-directory \
56   gnunet-download \
57   gnunet-publish \
58   gnunet-pseudonym \
59   gnunet-search \
60   gnunet-service-fs \
61   gnunet-fs \
62   gnunet-unindex 
63
64 gnunet_directory_SOURCES = \
65  gnunet-directory.c
66 gnunet_directory_LDADD = \
67   $(top_builddir)/src/fs/libgnunetfs.la \
68   $(top_builddir)/src/util/libgnunetutil.la \
69   -lextractor \
70   $(GN_LIBINTL)
71 gnunet_directory_DEPENDENCIES = \
72   libgnunetfs.la
73
74 gnunet_fs_SOURCES = \
75  gnunet-fs.c
76 gnunet_fs_LDADD = \
77   $(top_builddir)/src/fs/libgnunetfs.la \
78   $(top_builddir)/src/util/libgnunetutil.la \
79   -lextractor \
80   $(GN_LIBINTL)
81 gnunet_fs_DEPENDENCIES = \
82   libgnunetfs.la
83
84 gnunet_download_SOURCES =  \
85  gnunet-download.c         
86 gnunet_download_LDADD =  \
87  $(top_builddir)/src/fs/libgnunetfs.la \
88  $(top_builddir)/src/util/libgnunetutil.la \
89  $(GN_LIBINTL)
90 gnunet_download_DEPENDENCIES = \
91   libgnunetfs.la
92
93 gnunet_publish_SOURCES =  \
94  gnunet-publish.c         
95 gnunet_publish_LDADD =  \
96  $(top_builddir)/src/fs/libgnunetfs.la \
97  $(top_builddir)/src/util/libgnunetutil.la \
98  -lextractor \
99  $(GN_LIBINTL)
100 gnunet_publish_DEPENDENCIES = \
101   libgnunetfs.la
102
103 gnunet_pseudonym_SOURCES = \
104  gnunet-pseudonym.c
105 gnunet_pseudonym_LDADD = \
106   $(top_builddir)/src/fs/libgnunetfs.la \
107   $(top_builddir)/src/util/libgnunetutil.la \
108   -lextractor \
109   $(GN_LIBINTL)
110 gnunet_pseudonym_DEPENDENCIES = \
111   libgnunetfs.la
112
113 gnunet_search_SOURCES = \
114  gnunet-search.c         
115 gnunet_search_LDADD = \
116   $(top_builddir)/src/fs/libgnunetfs.la \
117   $(top_builddir)/src/util/libgnunetutil.la \
118  -lextractor \
119   $(GN_LIBINTL)
120 gnunet_search_DEPENDENCIES = \
121   libgnunetfs.la
122
123 gnunet_service_fs_SOURCES =  \
124  gnunet-service-fs.c gnunet-service-fs.h \
125  gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
126  gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
127  gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
128  gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
129  gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
130  gnunet-service-fs_push.c gnunet-service-fs_push.h \
131  gnunet-service-fs_put.c gnunet-service-fs_put.h 
132 gnunet_service_fs_LDADD =  \
133  $(top_builddir)/src/fs/libgnunetfs.la \
134  $(top_builddir)/src/dht/libgnunetdht.la \
135  $(top_builddir)/src/block/libgnunetblock.la \
136  $(top_builddir)/src/datastore/libgnunetdatastore.la \
137  $(top_builddir)/src/statistics/libgnunetstatistics.la \
138  $(top_builddir)/src/ats/libgnunetats.la \
139  $(top_builddir)/src/core/libgnunetcore.la \
140  $(top_builddir)/src/util/libgnunetutil.la \
141  $(GN_LIBINTL) -lm
142 gnunet_service_fs_DEPENDENCIES = \
143   libgnunetfs.la
144
145 gnunet_unindex_SOURCES = \
146  gnunet-unindex.c         
147 gnunet_unindex_LDADD = \
148   $(top_builddir)/src/fs/libgnunetfs.la \
149   $(top_builddir)/src/util/libgnunetutil.la \
150   $(GN_LIBINTL)
151 gnunet_unindex_DEPENDENCIES = \
152   libgnunetfs.la
153
154 if HAVE_BENCHMARKS
155  FS_BENCHMARKS = \
156  perf_gnunet_service_fs_p2p \
157  perf_gnunet_service_fs_p2p_dht \
158  perf_gnunet_service_fs_p2p_index \
159  perf_gnunet_service_fs_p2p_trust 
160 endif
161
162 check_PROGRAMS = \
163  test_fs_directory \
164  test_fs_download \
165  test_fs_download_indexed \
166  test_fs_download_persistence \
167  test_fs_file_information \
168  test_fs_getopt \
169  test_fs_list_indexed \
170  test_fs_namespace \
171  test_fs_namespace_list_updateable \
172  test_fs_publish \
173  test_fs_publish_persistence \
174  test_fs_search \
175  test_fs_search_persistence \
176  test_fs_start_stop \
177  test_fs_test_lib \
178  test_fs_unindex \
179  test_fs_unindex_persistence \
180  test_fs_uri \
181  test_gnunet_service_fs_migration \
182  test_gnunet_service_fs_p2p \
183  $(FS_BENCHMARKS)
184
185
186 if HAVE_PYTHON_PEXPECT
187 check_SCRIPTS = \
188  test_gnunet_fs_psd.py \
189  test_gnunet_fs_rec.py \
190  test_gnunet_fs_idx.py \
191  test_gnunet_fs_ns.py 
192 endif
193
194
195 if ENABLE_TEST_RUN
196 TESTS = \
197  test_fs_directory \
198  test_fs_download \
199  test_fs_download_indexed \
200  test_fs_download_persistence \
201  test_fs_file_information \
202  test_fs_list_indexed \
203  test_fs_namespace \
204  test_fs_namespace_list_updateable \
205  test_fs_publish \
206  test_fs_publish_persistence \
207  test_fs_search \
208  test_fs_search_persistence \
209  test_fs_start_stop \
210  test_fs_unindex \
211  test_fs_unindex_persistence \
212  test_fs_uri \
213  test_fs_test_lib \
214  test_gnunet_service_fs_migration \
215  test_gnunet_service_fs_p2p \
216  perf_gnunet_service_fs_p2p \
217  perf_gnunet_service_fs_p2p_index \
218  perf_gnunet_service_fs_p2p_trust \
219  $(check_SCRIPTS)  
220 endif
221
222
223
224
225 test_fs_directory_SOURCES = \
226  test_fs_directory.c
227 test_fs_directory_LDADD = \
228   -lextractor \
229   $(top_builddir)/src/fs/libgnunetfs.la  \
230   $(top_builddir)/src/util/libgnunetutil.la  
231
232 test_fs_download_SOURCES = \
233  test_fs_download.c
234 test_fs_download_LDADD = \
235   $(top_builddir)/src/fs/libgnunetfs.la  \
236   $(top_builddir)/src/util/libgnunetutil.la  
237
238 test_fs_download_indexed_SOURCES = \
239  test_fs_download_indexed.c
240 test_fs_download_indexed_LDADD = \
241   $(top_builddir)/src/fs/libgnunetfs.la  \
242   $(top_builddir)/src/util/libgnunetutil.la  
243
244 test_fs_download_persistence_SOURCES = \
245  test_fs_download_persistence.c
246 test_fs_download_persistence_LDADD = \
247   $(top_builddir)/src/fs/libgnunetfs.la  \
248   $(top_builddir)/src/util/libgnunetutil.la  
249
250 test_fs_file_information_SOURCES = \
251  test_fs_file_information.c
252 test_fs_file_information_LDADD = \
253   -lextractor \
254   $(top_builddir)/src/fs/libgnunetfs.la  \
255   $(top_builddir)/src/util/libgnunetutil.la  
256
257 test_fs_getopt_SOURCES = \
258  test_fs_getopt.c
259 test_fs_getopt_LDADD = \
260   $(top_builddir)/src/fs/libgnunetfs.la  \
261   $(top_builddir)/src/util/libgnunetutil.la  
262
263 test_fs_list_indexed_SOURCES = \
264  test_fs_list_indexed.c
265 test_fs_list_indexed_LDADD = \
266   $(top_builddir)/src/fs/libgnunetfs.la  \
267   $(top_builddir)/src/util/libgnunetutil.la  
268
269 test_fs_namespace_SOURCES = \
270  test_fs_namespace.c
271 test_fs_namespace_LDADD = \
272   $(top_builddir)/src/fs/libgnunetfs.la  \
273   $(top_builddir)/src/util/libgnunetutil.la  
274
275 test_fs_namespace_list_updateable_SOURCES = \
276  test_fs_namespace_list_updateable.c
277 test_fs_namespace_list_updateable_LDADD = \
278   $(top_builddir)/src/fs/libgnunetfs.la  \
279   $(top_builddir)/src/util/libgnunetutil.la  
280
281 test_fs_publish_SOURCES = \
282  test_fs_publish.c
283 test_fs_publish_LDADD = \
284   $(top_builddir)/src/fs/libgnunetfs.la  \
285   $(top_builddir)/src/util/libgnunetutil.la  
286
287 test_fs_publish_persistence_SOURCES = \
288  test_fs_publish_persistence.c
289 test_fs_publish_persistence_LDADD = \
290   $(top_builddir)/src/fs/libgnunetfs.la  \
291   $(top_builddir)/src/util/libgnunetutil.la  
292
293 test_fs_search_SOURCES = \
294  test_fs_search.c
295 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la    \
296   $(top_builddir)/src/util/libgnunetutil.la
297
298 test_fs_search_persistence_SOURCES = \
299  test_fs_search_persistence.c
300 test_fs_search_persistence_LDADD = $(top_builddir)/src/fs/libgnunetfs.la        \
301   $(top_builddir)/src/util/libgnunetutil.la
302
303 test_fs_start_stop_SOURCES = \
304  test_fs_start_stop.c
305 test_fs_start_stop_LDADD = \
306   $(top_builddir)/src/fs/libgnunetfs.la  \
307   $(top_builddir)/src/util/libgnunetutil.la  
308
309 test_fs_unindex_SOURCES = \
310  test_fs_unindex.c
311 test_fs_unindex_LDADD = \
312   $(top_builddir)/src/fs/libgnunetfs.la  \
313   $(top_builddir)/src/util/libgnunetutil.la  
314
315 test_fs_unindex_persistence_SOURCES = \
316  test_fs_unindex_persistence.c
317 test_fs_unindex_persistence_LDADD = \
318   $(top_builddir)/src/fs/libgnunetfs.la  \
319   $(top_builddir)/src/util/libgnunetutil.la  
320
321 test_fs_uri_SOURCES = \
322  test_fs_uri.c
323 test_fs_uri_LDADD = \
324   $(top_builddir)/src/fs/libgnunetfs.la  \
325   $(top_builddir)/src/util/libgnunetutil.la  
326
327 test_fs_test_lib_SOURCES = \
328  test_fs_test_lib.c
329 test_fs_test_lib_LDADD = \
330   $(top_builddir)/src/fs/libgnunetfstest.a \
331   $(top_builddir)/src/testing/libgnunettesting.la \
332   $(top_builddir)/src/fs/libgnunetfs.la  \
333   $(top_builddir)/src/util/libgnunetutil.la  
334
335 test_gnunet_service_fs_p2p_SOURCES = \
336  test_gnunet_service_fs_p2p.c
337 test_gnunet_service_fs_p2p_LDADD = \
338   $(top_builddir)/src/fs/libgnunetfstest.a \
339   $(top_builddir)/src/testing/libgnunettesting.la \
340   $(top_builddir)/src/fs/libgnunetfs.la  \
341   $(top_builddir)/src/util/libgnunetutil.la  
342
343 test_gnunet_service_fs_migration_SOURCES = \
344  test_gnunet_service_fs_migration.c
345 test_gnunet_service_fs_migration_LDADD = \
346   $(top_builddir)/src/fs/libgnunetfstest.a \
347   $(top_builddir)/src/testing/libgnunettesting.la \
348   $(top_builddir)/src/fs/libgnunetfs.la  \
349   $(top_builddir)/src/util/libgnunetutil.la  
350
351 perf_gnunet_service_fs_p2p_SOURCES = \
352  perf_gnunet_service_fs_p2p.c
353 perf_gnunet_service_fs_p2p_LDADD = \
354   $(top_builddir)/src/fs/libgnunetfstest.a \
355   $(top_builddir)/src/statistics/libgnunetstatistics.la \
356   $(top_builddir)/src/testing/libgnunettesting.la \
357   $(top_builddir)/src/fs/libgnunetfs.la  \
358   $(top_builddir)/src/util/libgnunetutil.la  
359
360 perf_gnunet_service_fs_p2p_index_SOURCES = \
361  perf_gnunet_service_fs_p2p.c
362 perf_gnunet_service_fs_p2p_index_LDADD = \
363   $(top_builddir)/src/fs/libgnunetfstest.a \
364   $(top_builddir)/src/statistics/libgnunetstatistics.la \
365   $(top_builddir)/src/testing/libgnunettesting.la \
366   $(top_builddir)/src/fs/libgnunetfs.la  \
367   $(top_builddir)/src/util/libgnunetutil.la  
368
369 perf_gnunet_service_fs_p2p_dht_SOURCES = \
370  perf_gnunet_service_fs_p2p.c
371 perf_gnunet_service_fs_p2p_dht_LDADD = \
372   $(top_builddir)/src/fs/libgnunetfstest.a \
373   $(top_builddir)/src/statistics/libgnunetstatistics.la \
374   $(top_builddir)/src/testing/libgnunettesting.la \
375   $(top_builddir)/src/fs/libgnunetfs.la  \
376   $(top_builddir)/src/util/libgnunetutil.la  
377
378 perf_gnunet_service_fs_p2p_trust_SOURCES = \
379  perf_gnunet_service_fs_p2p_trust.c
380 perf_gnunet_service_fs_p2p_trust_LDADD = \
381   $(top_builddir)/src/fs/libgnunetfstest.a \
382   $(top_builddir)/src/statistics/libgnunetstatistics.la \
383   $(top_builddir)/src/testing/libgnunettesting.la \
384   $(top_builddir)/src/fs/libgnunetfs.la  \
385   $(top_builddir)/src/util/libgnunetutil.la  
386
387
388 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
389
390 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
391         $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
392         chmod +x test_gnunet_fs_psd.py
393
394 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
395         $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
396         chmod +x test_gnunet_fs_rec.py
397
398 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
399         $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
400         chmod +x test_gnunet_fs_ns.py
401
402 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
403         $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
404         chmod +x test_gnunet_fs_idx.py
405
406
407 EXTRA_DIST = \
408   test_fs_defaults.conf \
409   fs_test_lib_data.conf \
410   test_fs_data.conf \
411   test_fs_download_data.conf \
412   test_fs_file_information_data.conf \
413   test_fs_file_information_meta_data_image.jpg \
414   fs_test_lib_data.conf \
415   test_fs_list_indexed_data.conf \
416   test_fs_namespace_data.conf \
417   test_fs_publish_data.conf \
418   test_fs_search_data.conf \
419   test_fs_unindex_data.conf \
420   test_fs_uri_data.conf \
421   test_gnunet_service_fs_migration_data.conf \
422   test_gnunet_fs_idx_data.conf \
423   test_gnunet_fs_ns_data.conf \
424   test_gnunet_fs_psd_data.conf \
425   test_gnunet_fs_rec_data.conf \
426   test_gnunet_fs_rec_data.tgz \
427   test_gnunet_fs_psd.py.in \
428   test_gnunet_fs_rec.py.in \
429   test_gnunet_fs_ns.py.in \
430   test_gnunet_fs_idx.py.in
431
432 CLEANFILES = $(check_SCRIPTS)