hostkeys timing
[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 TESTS = \
178  test_fs_directory \
179  test_fs_download \
180  test_fs_download_indexed \
181  test_fs_download_persistence \
182  test_fs_file_information \
183  test_fs_list_indexed \
184  test_fs_namespace \
185  test_fs_namespace_list_updateable \
186  test_fs_publish \
187  test_fs_publish_persistence \
188  test_fs_search \
189  test_fs_search_persistence \
190  test_fs_start_stop \
191  test_fs_unindex \
192  test_fs_unindex_persistence \
193  test_fs_uri \
194  test_fs_test_lib \
195  test_gnunet_service_fs_migration \
196  test_gnunet_service_fs_p2p \
197  $(check_SCRIPTS)  
198 endif
199
200
201 test_fs_directory_SOURCES = \
202  test_fs_directory.c
203 test_fs_directory_LDADD = \
204   -lextractor \
205   $(top_builddir)/src/fs/libgnunetfs.la  \
206   $(top_builddir)/src/util/libgnunetutil.la  
207
208 test_fs_download_SOURCES = \
209  test_fs_download.c
210 test_fs_download_LDADD = \
211   $(top_builddir)/src/fs/libgnunetfs.la  \
212   $(top_builddir)/src/util/libgnunetutil.la  
213
214 test_fs_download_indexed_SOURCES = \
215  test_fs_download_indexed.c
216 test_fs_download_indexed_LDADD = \
217   $(top_builddir)/src/fs/libgnunetfs.la  \
218   $(top_builddir)/src/util/libgnunetutil.la  
219
220 test_fs_download_persistence_SOURCES = \
221  test_fs_download_persistence.c
222 test_fs_download_persistence_LDADD = \
223   $(top_builddir)/src/fs/libgnunetfs.la  \
224   $(top_builddir)/src/util/libgnunetutil.la  
225
226 test_fs_file_information_SOURCES = \
227  test_fs_file_information.c
228 test_fs_file_information_LDADD = \
229   -lextractor \
230   $(top_builddir)/src/fs/libgnunetfs.la  \
231   $(top_builddir)/src/util/libgnunetutil.la  
232
233 test_fs_getopt_SOURCES = \
234  test_fs_getopt.c
235 test_fs_getopt_LDADD = \
236   $(top_builddir)/src/fs/libgnunetfs.la  \
237   $(top_builddir)/src/util/libgnunetutil.la  
238
239 test_fs_list_indexed_SOURCES = \
240  test_fs_list_indexed.c
241 test_fs_list_indexed_LDADD = \
242   $(top_builddir)/src/fs/libgnunetfs.la  \
243   $(top_builddir)/src/util/libgnunetutil.la  
244
245 test_fs_namespace_SOURCES = \
246  test_fs_namespace.c
247 test_fs_namespace_LDADD = \
248   $(top_builddir)/src/fs/libgnunetfs.la  \
249   $(top_builddir)/src/util/libgnunetutil.la  
250
251 test_fs_namespace_list_updateable_SOURCES = \
252  test_fs_namespace_list_updateable.c
253 test_fs_namespace_list_updateable_LDADD = \
254   $(top_builddir)/src/fs/libgnunetfs.la  \
255   $(top_builddir)/src/util/libgnunetutil.la  
256
257 test_fs_publish_SOURCES = \
258  test_fs_publish.c
259 test_fs_publish_LDADD = \
260   $(top_builddir)/src/fs/libgnunetfs.la  \
261   $(top_builddir)/src/util/libgnunetutil.la  
262
263 test_fs_publish_persistence_SOURCES = \
264  test_fs_publish_persistence.c
265 test_fs_publish_persistence_LDADD = \
266   $(top_builddir)/src/fs/libgnunetfs.la  \
267   $(top_builddir)/src/util/libgnunetutil.la  
268
269 test_fs_search_SOURCES = \
270  test_fs_search.c
271 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la    \
272   $(top_builddir)/src/util/libgnunetutil.la
273
274 test_fs_search_persistence_SOURCES = \
275  test_fs_search_persistence.c
276 test_fs_search_persistence_LDADD = $(top_builddir)/src/fs/libgnunetfs.la        \
277   $(top_builddir)/src/util/libgnunetutil.la
278
279 test_fs_start_stop_SOURCES = \
280  test_fs_start_stop.c
281 test_fs_start_stop_LDADD = \
282   $(top_builddir)/src/fs/libgnunetfs.la  \
283   $(top_builddir)/src/util/libgnunetutil.la  
284
285 test_fs_unindex_SOURCES = \
286  test_fs_unindex.c
287 test_fs_unindex_LDADD = \
288   $(top_builddir)/src/fs/libgnunetfs.la  \
289   $(top_builddir)/src/util/libgnunetutil.la  
290
291 test_fs_unindex_persistence_SOURCES = \
292  test_fs_unindex_persistence.c
293 test_fs_unindex_persistence_LDADD = \
294   $(top_builddir)/src/fs/libgnunetfs.la  \
295   $(top_builddir)/src/util/libgnunetutil.la  
296
297 test_fs_uri_SOURCES = \
298  test_fs_uri.c
299 test_fs_uri_LDADD = \
300   $(top_builddir)/src/fs/libgnunetfs.la  \
301   $(top_builddir)/src/util/libgnunetutil.la  
302
303 test_fs_test_lib_SOURCES = \
304  test_fs_test_lib.c
305 test_fs_test_lib_LDADD = \
306   $(top_builddir)/src/fs/libgnunetfstest.a \
307   $(top_builddir)/src/testing/libgnunettesting.la \
308   $(top_builddir)/src/fs/libgnunetfs.la  \
309   $(top_builddir)/src/util/libgnunetutil.la  
310
311 test_gnunet_service_fs_p2p_SOURCES = \
312  test_gnunet_service_fs_p2p.c
313 test_gnunet_service_fs_p2p_LDADD = \
314   $(top_builddir)/src/fs/libgnunetfstest.a \
315   $(top_builddir)/src/testing/libgnunettesting.la \
316   $(top_builddir)/src/fs/libgnunetfs.la  \
317   $(top_builddir)/src/util/libgnunetutil.la  
318
319 test_gnunet_service_fs_migration_SOURCES = \
320  test_gnunet_service_fs_migration.c
321 test_gnunet_service_fs_migration_LDADD = \
322   $(top_builddir)/src/fs/libgnunetfstest.a \
323   $(top_builddir)/src/testing/libgnunettesting.la \
324   $(top_builddir)/src/fs/libgnunetfs.la  \
325   $(top_builddir)/src/util/libgnunetutil.la  
326
327 perf_gnunet_service_fs_p2p_SOURCES = \
328  perf_gnunet_service_fs_p2p.c
329 perf_gnunet_service_fs_p2p_LDADD = \
330   $(top_builddir)/src/fs/libgnunetfstest.a \
331   $(top_builddir)/src/statistics/libgnunetstatistics.la \
332   $(top_builddir)/src/testing/libgnunettesting.la \
333   $(top_builddir)/src/fs/libgnunetfs.la  \
334   $(top_builddir)/src/util/libgnunetutil.la  
335
336 perf_gnunet_service_fs_p2p_index_SOURCES = \
337  perf_gnunet_service_fs_p2p.c
338 perf_gnunet_service_fs_p2p_index_LDADD = \
339   $(top_builddir)/src/fs/libgnunetfstest.a \
340   $(top_builddir)/src/statistics/libgnunetstatistics.la \
341   $(top_builddir)/src/testing/libgnunettesting.la \
342   $(top_builddir)/src/fs/libgnunetfs.la  \
343   $(top_builddir)/src/util/libgnunetutil.la  
344
345 perf_gnunet_service_fs_p2p_dht_SOURCES = \
346  perf_gnunet_service_fs_p2p.c
347 perf_gnunet_service_fs_p2p_dht_LDADD = \
348   $(top_builddir)/src/fs/libgnunetfstest.a \
349   $(top_builddir)/src/statistics/libgnunetstatistics.la \
350   $(top_builddir)/src/testing/libgnunettesting.la \
351   $(top_builddir)/src/fs/libgnunetfs.la  \
352   $(top_builddir)/src/util/libgnunetutil.la  
353
354 perf_gnunet_service_fs_p2p_trust_SOURCES = \
355  perf_gnunet_service_fs_p2p_trust.c
356 perf_gnunet_service_fs_p2p_trust_LDADD = \
357   $(top_builddir)/src/fs/libgnunetfstest.a \
358   $(top_builddir)/src/statistics/libgnunetstatistics.la \
359   $(top_builddir)/src/testing/libgnunettesting.la \
360   $(top_builddir)/src/fs/libgnunetfs.la  \
361   $(top_builddir)/src/util/libgnunetutil.la  
362
363
364 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
365
366 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
367         $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
368         chmod +x test_gnunet_fs_psd.py
369
370 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
371         $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
372         chmod +x test_gnunet_fs_rec.py
373
374 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
375         $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
376         chmod +x test_gnunet_fs_ns.py
377
378 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
379         $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
380         chmod +x test_gnunet_fs_idx.py
381
382
383 EXTRA_DIST = \
384   fs_test_lib_data.conf \
385   test_fs_data.conf \
386   test_fs_download_data.conf \
387   test_fs_file_information_data.conf \
388   test_fs_file_information_meta_data_image.jpg \
389   fs_test_lib_data.conf \
390   test_fs_list_indexed_data.conf \
391   test_fs_namespace_data.conf \
392   test_fs_publish_data.conf \
393   test_fs_search_data.conf \
394   test_fs_unindex_data.conf \
395   test_fs_uri_data.conf \
396   test_gnunet_service_fs_migration_data.conf \
397   test_gnunet_fs_idx_data.conf \
398   test_gnunet_fs_ns_data.conf \
399   test_gnunet_fs_psd_data.conf \
400   test_gnunet_fs_rec_data.conf \
401   test_gnunet_fs_rec_data.tgz \
402   test_gnunet_fs_psd.py.in \
403   test_gnunet_fs_rec.py.in \
404   test_gnunet_fs_ns.py.in \
405   test_gnunet_fs_idx.py.in
406
407 CLEANFILES = $(check_SCRIPTS)