diff options
Diffstat (limited to 'src/service/fs/Makefile.am')
-rw-r--r-- | src/service/fs/Makefile.am | 376 |
1 files changed, 376 insertions, 0 deletions
diff --git a/src/service/fs/Makefile.am b/src/service/fs/Makefile.am new file mode 100644 index 000000000..0a10f688a --- /dev/null +++ b/src/service/fs/Makefile.am | |||
@@ -0,0 +1,376 @@ | |||
1 | # This Makefile.am is in the public domain | ||
2 | AM_CPPFLAGS = -I$(top_srcdir)/src/include | ||
3 | |||
4 | if USE_COVERAGE | ||
5 | AM_CFLAGS = --coverage -O0 | ||
6 | XLIB = -lgcov | ||
7 | endif | ||
8 | |||
9 | pkgcfgdir= $(pkgdatadir)/config.d/ | ||
10 | |||
11 | libexecdir= $(pkglibdir)/libexec/ | ||
12 | |||
13 | pkgcfg_DATA = \ | ||
14 | fs.conf | ||
15 | |||
16 | lib_LTLIBRARIES = libgnunetfs.la | ||
17 | |||
18 | libgnunetfs_la_SOURCES = \ | ||
19 | fs_api.c fs_api.h fs.h \ | ||
20 | fs_directory.c \ | ||
21 | fs_dirmetascan.c \ | ||
22 | fs_download.c \ | ||
23 | fs_file_information.c \ | ||
24 | fs_getopt.c \ | ||
25 | fs_list_indexed.c \ | ||
26 | fs_publish.c \ | ||
27 | fs_publish_ksk.c \ | ||
28 | fs_publish_ublock.c fs_publish_ublock.h \ | ||
29 | fs_misc.c \ | ||
30 | fs_namespace.c \ | ||
31 | fs_search.c \ | ||
32 | fs_sharetree.c \ | ||
33 | fs_tree.c fs_tree.h \ | ||
34 | fs_unindex.c \ | ||
35 | fs_uri.c \ | ||
36 | meta_data.c | ||
37 | |||
38 | libgnunetfs_la_LIBADD = \ | ||
39 | $(top_builddir)/src/service/datastore/libgnunetdatastore.la \ | ||
40 | $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
41 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
42 | $(GN_LIBINTL) $(XLIB) $(LIBGCRYPT_LIBS) -lunistring | ||
43 | |||
44 | if HAVE_LIBEXTRACTOR | ||
45 | libgnunetfs_la_LIBADD += \ | ||
46 | -lextractor | ||
47 | endif | ||
48 | |||
49 | libgnunetfs_la_LDFLAGS = \ | ||
50 | $(GN_LIB_LDFLAGS) \ | ||
51 | -version-info 3:1:1 | ||
52 | |||
53 | |||
54 | libexec_PROGRAMS = \ | ||
55 | gnunet-helper-fs-publish \ | ||
56 | gnunet-service-fs | ||
57 | |||
58 | noinst_PROGRAMS = \ | ||
59 | gnunet-daemon-fsprofiler | ||
60 | |||
61 | gnunet_helper_fs_publish_SOURCES = \ | ||
62 | gnunet-helper-fs-publish.c | ||
63 | gnunet_helper_fs_publish_LDADD = \ | ||
64 | libgnunetfs.la \ | ||
65 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
66 | $(GN_LIBINTL) | ||
67 | |||
68 | if HAVE_LIBEXTRACTOR | ||
69 | gnunet_helper_fs_publish_LDADD += \ | ||
70 | -lextractor | ||
71 | endif | ||
72 | |||
73 | gnunet_daemon_fsprofiler_SOURCES = \ | ||
74 | gnunet-daemon-fsprofiler.c | ||
75 | gnunet_daemon_fsprofiler_LDADD = \ | ||
76 | libgnunetfs.la \ | ||
77 | $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
78 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
79 | $(GN_LIBINTL) | ||
80 | |||
81 | gnunet_service_fs_SOURCES = \ | ||
82 | gnunet-service-fs.c gnunet-service-fs.h \ | ||
83 | gnunet-service-fs_cp.c gnunet-service-fs_cp.h \ | ||
84 | gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \ | ||
85 | gnunet-service-fs_pe.c gnunet-service-fs_pe.h \ | ||
86 | gnunet-service-fs_pr.c gnunet-service-fs_pr.h \ | ||
87 | gnunet-service-fs_push.c gnunet-service-fs_push.h \ | ||
88 | gnunet-service-fs_put.c gnunet-service-fs_put.h \ | ||
89 | gnunet-service-fs_cadet_client.c gnunet-service-fs_cadet.h \ | ||
90 | gnunet-service-fs_cadet_server.c | ||
91 | gnunet_service_fs_LDADD = \ | ||
92 | libgnunetfs.la \ | ||
93 | $(top_builddir)/src/service/dht/libgnunetdht.la \ | ||
94 | $(top_builddir)/src/lib/block/libgnunetblock.la \ | ||
95 | $(top_builddir)/src/service/datastore/libgnunetdatastore.la \ | ||
96 | $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
97 | $(top_builddir)/src/service/cadet/libgnunetcadet.la \ | ||
98 | $(top_builddir)/src/service/core/libgnunetcore.la \ | ||
99 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
100 | $(top_builddir)/src/service/peerstore/libgnunetpeerstore.la \ | ||
101 | $(GN_LIBINTL) -lm | ||
102 | |||
103 | check_PROGRAMS = \ | ||
104 | test_fs_directory \ | ||
105 | test_fs_download \ | ||
106 | test_fs_download_cadet \ | ||
107 | test_fs_download_indexed \ | ||
108 | test_fs_download_persistence \ | ||
109 | test_fs_file_information \ | ||
110 | test_fs_getopt \ | ||
111 | test_fs_list_indexed \ | ||
112 | test_fs_namespace \ | ||
113 | test_fs_namespace_list_updateable \ | ||
114 | test_fs_publish \ | ||
115 | test_fs_publish_persistence \ | ||
116 | test_fs_search \ | ||
117 | test_fs_search_with_and \ | ||
118 | test_fs_search_probes \ | ||
119 | test_fs_search_persistence \ | ||
120 | test_fs_start_stop \ | ||
121 | test_fs_unindex \ | ||
122 | test_fs_unindex_persistence \ | ||
123 | test_fs_uri \ | ||
124 | test_fs_meta_data \ | ||
125 | $(FS_BENCHMARKS) | ||
126 | # test_gnunet_service_fs_migration | ||
127 | |||
128 | if ENABLE_TEST_RUN | ||
129 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
130 | TESTS = test_fs_directory \ | ||
131 | test_fs_file_information \ | ||
132 | test_fs_namespace \ | ||
133 | test_fs_namespace_list_updateable \ | ||
134 | test_fs_search \ | ||
135 | test_fs_search_with_and \ | ||
136 | test_fs_search_probes \ | ||
137 | test_fs_search_persistence \ | ||
138 | test_fs_start_stop \ | ||
139 | test_fs_uri \ | ||
140 | test_fs_meta_data | ||
141 | endif | ||
142 | |||
143 | |||
144 | test_fs_directory_SOURCES = \ | ||
145 | test_fs_directory.c | ||
146 | test_fs_directory_LDADD = \ | ||
147 | libgnunetfs.la \ | ||
148 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
149 | |||
150 | if HAVE_LIBEXTRACTOR | ||
151 | test_fs_directory_LDADD += \ | ||
152 | -lextractor | ||
153 | endif | ||
154 | |||
155 | |||
156 | test_fs_download_SOURCES = \ | ||
157 | test_fs_download.c | ||
158 | test_fs_download_LDADD = \ | ||
159 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
160 | libgnunetfs.la \ | ||
161 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
162 | |||
163 | test_fs_download_indexed_SOURCES = \ | ||
164 | test_fs_download.c | ||
165 | test_fs_download_indexed_LDADD = \ | ||
166 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
167 | libgnunetfs.la \ | ||
168 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
169 | |||
170 | test_fs_download_cadet_SOURCES = \ | ||
171 | test_fs_download.c | ||
172 | test_fs_download_cadet_LDADD = \ | ||
173 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
174 | libgnunetfs.la \ | ||
175 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
176 | |||
177 | test_fs_download_persistence_SOURCES = \ | ||
178 | test_fs_download_persistence.c | ||
179 | test_fs_download_persistence_LDADD = \ | ||
180 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
181 | libgnunetfs.la \ | ||
182 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
183 | |||
184 | test_fs_file_information_SOURCES = \ | ||
185 | test_fs_file_information.c | ||
186 | test_fs_file_information_LDADD = \ | ||
187 | libgnunetfs.la \ | ||
188 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
189 | |||
190 | if HAVE_LIBEXTRACTOR | ||
191 | test_fs_file_information_LDADD += \ | ||
192 | -lextractor | ||
193 | endif | ||
194 | |||
195 | |||
196 | test_fs_getopt_SOURCES = \ | ||
197 | test_fs_getopt.c | ||
198 | test_fs_getopt_LDADD = \ | ||
199 | libgnunetfs.la \ | ||
200 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
201 | |||
202 | test_fs_list_indexed_SOURCES = \ | ||
203 | test_fs_list_indexed.c | ||
204 | test_fs_list_indexed_LDADD = \ | ||
205 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
206 | libgnunetfs.la \ | ||
207 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
208 | |||
209 | test_fs_namespace_SOURCES = \ | ||
210 | test_fs_namespace.c | ||
211 | test_fs_namespace_LDADD = \ | ||
212 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
213 | libgnunetfs.la \ | ||
214 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
215 | |||
216 | test_fs_namespace_list_updateable_SOURCES = \ | ||
217 | test_fs_namespace_list_updateable.c | ||
218 | test_fs_namespace_list_updateable_LDADD = \ | ||
219 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
220 | libgnunetfs.la \ | ||
221 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
222 | |||
223 | test_fs_publish_SOURCES = \ | ||
224 | test_fs_publish.c | ||
225 | test_fs_publish_LDADD = \ | ||
226 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
227 | libgnunetfs.la \ | ||
228 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
229 | |||
230 | test_fs_publish_persistence_SOURCES = \ | ||
231 | test_fs_publish_persistence.c | ||
232 | test_fs_publish_persistence_LDADD = \ | ||
233 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
234 | libgnunetfs.la \ | ||
235 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
236 | |||
237 | test_fs_search_SOURCES = \ | ||
238 | test_fs_search.c | ||
239 | test_fs_search_LDADD = \ | ||
240 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
241 | libgnunetfs.la \ | ||
242 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
243 | |||
244 | test_fs_search_with_and_SOURCES = \ | ||
245 | test_fs_search_with_and.c | ||
246 | test_fs_search_with_and_LDADD = \ | ||
247 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
248 | libgnunetfs.la \ | ||
249 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
250 | |||
251 | test_fs_search_probes_SOURCES = \ | ||
252 | test_fs_search_probes.c | ||
253 | test_fs_search_probes_LDADD = \ | ||
254 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
255 | libgnunetfs.la \ | ||
256 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
257 | |||
258 | test_fs_search_persistence_SOURCES = \ | ||
259 | test_fs_search_persistence.c | ||
260 | test_fs_search_persistence_LDADD = \ | ||
261 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
262 | libgnunetfs.la \ | ||
263 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
264 | |||
265 | test_fs_start_stop_SOURCES = \ | ||
266 | test_fs_start_stop.c | ||
267 | test_fs_start_stop_LDADD = \ | ||
268 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
269 | libgnunetfs.la \ | ||
270 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
271 | |||
272 | test_fs_unindex_SOURCES = \ | ||
273 | test_fs_unindex.c | ||
274 | test_fs_unindex_LDADD = \ | ||
275 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
276 | libgnunetfs.la \ | ||
277 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
278 | |||
279 | test_fs_unindex_persistence_SOURCES = \ | ||
280 | test_fs_unindex_persistence.c | ||
281 | test_fs_unindex_persistence_LDADD = \ | ||
282 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
283 | libgnunetfs.la \ | ||
284 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
285 | |||
286 | test_fs_meta_data_SOURCES = \ | ||
287 | test_fs_meta_data.c | ||
288 | test_fs_meta_data_LDADD = \ | ||
289 | libgnunetfs.la \ | ||
290 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
291 | |||
292 | |||
293 | test_fs_uri_SOURCES = \ | ||
294 | test_fs_uri.c | ||
295 | test_fs_uri_LDADD = \ | ||
296 | libgnunetfs.la \ | ||
297 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
298 | |||
299 | # TNG | ||
300 | |||
301 | #test_gnunet_service_fs_p2p_SOURCES = \ | ||
302 | # test_gnunet_service_fs_p2p.c | ||
303 | #test_gnunet_service_fs_p2p_LDADD = \ | ||
304 | # libgnunetfstest.a \ | ||
305 | # $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
306 | # libgnunetfs.la \ | ||
307 | # $(top_builddir)/src/lib/util/libgnunetutil.la | ||
308 | # | ||
309 | #test_gnunet_service_fs_p2p_cadet_SOURCES = \ | ||
310 | # test_gnunet_service_fs_p2p.c | ||
311 | #test_gnunet_service_fs_p2p_cadet_LDADD = \ | ||
312 | # libgnunetfstest.a \ | ||
313 | # $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
314 | # libgnunetfs.la \ | ||
315 | # $(top_builddir)/src/lib/util/libgnunetutil.la | ||
316 | # | ||
317 | #test_gnunet_service_fs_migration_SOURCES = \ | ||
318 | # test_gnunet_service_fs_migration.c | ||
319 | #test_gnunet_service_fs_migration_LDADD = \ | ||
320 | # libgnunetfstest.a \ | ||
321 | # $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
322 | # libgnunetfs.la \ | ||
323 | # $(top_builddir)/src/lib/util/libgnunetutil.la | ||
324 | # | ||
325 | #perf_gnunet_service_fs_p2p_SOURCES = \ | ||
326 | # perf_gnunet_service_fs_p2p.c | ||
327 | #perf_gnunet_service_fs_p2p_LDADD = \ | ||
328 | # libgnunetfstest.a \ | ||
329 | # $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
330 | # $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
331 | # libgnunetfs.la \ | ||
332 | # $(top_builddir)/src/lib/util/libgnunetutil.la | ||
333 | # | ||
334 | #perf_gnunet_service_fs_p2p_index_SOURCES = \ | ||
335 | # perf_gnunet_service_fs_p2p.c | ||
336 | #perf_gnunet_service_fs_p2p_index_LDADD = \ | ||
337 | # libgnunetfstest.a \ | ||
338 | # $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
339 | # $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
340 | # libgnunetfs.la \ | ||
341 | # $(top_builddir)/src/lib/util/libgnunetutil.la | ||
342 | # | ||
343 | #perf_gnunet_service_fs_p2p_dht_SOURCES = \ | ||
344 | # perf_gnunet_service_fs_p2p.c | ||
345 | #perf_gnunet_service_fs_p2p_dht_LDADD = \ | ||
346 | # libgnunetfstest.a \ | ||
347 | # $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
348 | # $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
349 | # libgnunetfs.la \ | ||
350 | # $(top_builddir)/src/lib/util/libgnunetutil.la | ||
351 | # | ||
352 | #perf_gnunet_service_fs_p2p_respect_SOURCES = \ | ||
353 | # perf_gnunet_service_fs_p2p_respect.c | ||
354 | #perf_gnunet_service_fs_p2p_respect_LDADD = \ | ||
355 | # libgnunetfstest.a \ | ||
356 | # $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
357 | # $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
358 | # libgnunetfs.la \ | ||
359 | # $(top_builddir)/src/lib/util/libgnunetutil.la | ||
360 | |||
361 | EXTRA_DIST = \ | ||
362 | perf_gnunet_service_fs_p2p.conf \ | ||
363 | test_fs_data.conf \ | ||
364 | test_fs_defaults.conf \ | ||
365 | test_fs_download_data.conf \ | ||
366 | test_fs_download_indexed.conf \ | ||
367 | test_fs_file_information_data.conf \ | ||
368 | test_fs_list_indexed_data.conf \ | ||
369 | test_fs_namespace_data.conf \ | ||
370 | test_fs_publish_data.conf \ | ||
371 | test_fs_search_data.conf \ | ||
372 | test_fs_unindex_data.conf \ | ||
373 | test_gnunet_fs_rec_data.tgz \ | ||
374 | test_gnunet_service_fs_migration_data.conf \ | ||
375 | test_gnunet_service_fs_p2p_cadet.conf \ | ||
376 | test_pseudonym_data.conf | ||