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