debug fun
[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 \
20   fs_collection.c \
21   fs_directory.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_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   $(GN_LIBINTL)
65
66 gnunet_download_SOURCES =  \
67  gnunet-download.c         
68 gnunet_download_LDADD =  \
69  $(top_builddir)/src/fs/libgnunetfs.la \
70  $(top_builddir)/src/util/libgnunetutil.la \
71  $(GN_LIBINTL)
72
73 gnunet_publish_SOURCES =  \
74  gnunet-publish.c         
75 gnunet_publish_LDADD =  \
76  $(top_builddir)/src/fs/libgnunetfs.la \
77  $(top_builddir)/src/util/libgnunetutil.la \
78  $(GN_LIBINTL)
79
80 gnunet_pseudonym_SOURCES = \
81  gnunet-pseudonym.c
82 gnunet_pseudonym_LDADD = \
83   $(top_builddir)/src/fs/libgnunetfs.la \
84   $(top_builddir)/src/util/libgnunetutil.la \
85   $(GN_LIBINTL)
86
87 gnunet_search_SOURCES = \
88  gnunet-search.c         
89 gnunet_search_LDADD = \
90   $(top_builddir)/src/fs/libgnunetfs.la \
91   $(top_builddir)/src/util/libgnunetutil.la \
92   $(GN_LIBINTL)
93
94 gnunet_service_fs_SOURCES =  \
95  gnunet-service-fs.c \
96  gnunet-service-fs_drq.c gnunet-service-fs_drq.h \
97  gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h 
98 gnunet_service_fs_LDADD =  \
99  $(top_builddir)/src/fs/libgnunetfs.la \
100  $(top_builddir)/src/datastore/libgnunetdatastore.la \
101  $(top_builddir)/src/core/libgnunetcore.la \
102  $(top_builddir)/src/util/libgnunetutil.la \
103  $(GN_LIBINTL)
104
105 gnunet_unindex_SOURCES = \
106  gnunet-unindex.c         
107 gnunet_unindex_LDADD = \
108   $(top_builddir)/src/fs/libgnunetfs.la \
109   $(top_builddir)/src/util/libgnunetutil.la \
110   $(GN_LIBINTL)
111
112
113
114
115 check_PROGRAMS = \
116  test_fs_collection \
117  test_fs_directory \
118  test_fs_download \
119  test_fs_file_information \
120  test_fs_getopt \
121  test_fs_list_indexed \
122  test_fs_namespace \
123  test_fs_publish \
124  test_fs_search \
125  test_fs_start_stop \
126  test_fs_test_lib \
127  test_fs_unindex \
128  test_fs_uri \
129  test_gnunet_service_fs_p2p
130
131 TESTS = \
132  test_fs_directory \
133  test_fs_download \
134  test_fs_file_information \
135  test_fs_list_indexed \
136  test_fs_publish \
137  test_fs_search \
138  test_fs_start_stop \
139  test_fs_unindex \
140  test_fs_uri \
141  test_fs_test_lib 
142 # test_gnunet_service_fs_p2p
143 # $(check_PROGRAMS)
144
145
146 test_fs_collection_SOURCES = \
147  test_fs_collection.c
148 test_fs_collection_LDADD = \
149   $(top_builddir)/src/fs/libgnunetfs.la  \
150   $(top_builddir)/src/util/libgnunetutil.la  
151
152 test_fs_directory_SOURCES = \
153  test_fs_directory.c
154 test_fs_directory_LDADD = \
155   $(top_builddir)/src/fs/libgnunetfs.la  \
156   $(top_builddir)/src/util/libgnunetutil.la  
157
158 test_fs_download_SOURCES = \
159  test_fs_download.c
160 test_fs_download_LDADD = \
161   $(top_builddir)/src/fs/libgnunetfs.la  \
162   $(top_builddir)/src/arm/libgnunetarm.la  \
163   $(top_builddir)/src/util/libgnunetutil.la  
164
165 test_fs_file_information_SOURCES = \
166  test_fs_file_information.c
167 test_fs_file_information_LDADD = \
168   $(top_builddir)/src/fs/libgnunetfs.la  \
169   $(top_builddir)/src/util/libgnunetutil.la  
170
171 test_fs_getopt_SOURCES = \
172  test_fs_getopt.c
173 test_fs_getopt_LDADD = \
174   $(top_builddir)/src/fs/libgnunetfs.la  \
175   $(top_builddir)/src/util/libgnunetutil.la  
176
177 test_fs_list_indexed_SOURCES = \
178  test_fs_list_indexed.c
179 test_fs_list_indexed_LDADD = \
180   $(top_builddir)/src/fs/libgnunetfs.la  \
181   $(top_builddir)/src/arm/libgnunetarm.la  \
182   $(top_builddir)/src/util/libgnunetutil.la  
183
184 test_fs_namespace_SOURCES = \
185  test_fs_namespace.c
186 test_fs_namespace_LDADD = \
187   $(top_builddir)/src/fs/libgnunetfs.la  \
188   $(top_builddir)/src/arm/libgnunetarm.la  \
189   $(top_builddir)/src/util/libgnunetutil.la  
190
191 test_fs_publish_SOURCES = \
192  test_fs_publish.c
193 test_fs_publish_LDADD = \
194   $(top_builddir)/src/fs/libgnunetfs.la  \
195   $(top_builddir)/src/arm/libgnunetarm.la  \
196   $(top_builddir)/src/util/libgnunetutil.la  
197
198 test_fs_search_SOURCES = \
199  test_fs_search.c
200 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la    \
201   $(top_builddir)/src/arm/libgnunetarm.la                       \
202   $(top_builddir)/src/util/libgnunetutil.la
203
204 test_fs_start_stop_SOURCES = \
205  test_fs_start_stop.c
206 test_fs_start_stop_LDADD = \
207   $(top_builddir)/src/fs/libgnunetfs.la  \
208   $(top_builddir)/src/arm/libgnunetarm.la  \
209   $(top_builddir)/src/util/libgnunetutil.la  
210
211 test_fs_unindex_SOURCES = \
212  test_fs_unindex.c
213 test_fs_unindex_LDADD = \
214   $(top_builddir)/src/fs/libgnunetfs.la  \
215   $(top_builddir)/src/arm/libgnunetarm.la  \
216   $(top_builddir)/src/util/libgnunetutil.la  
217
218 test_fs_uri_SOURCES = \
219  test_fs_uri.c
220 test_fs_uri_LDADD = \
221   $(top_builddir)/src/fs/libgnunetfs.la  \
222   $(top_builddir)/src/util/libgnunetutil.la  
223
224 test_fs_test_lib_SOURCES = \
225  test_fs_test_lib.c
226 test_fs_test_lib_LDADD = \
227   $(top_builddir)/src/fs/libgnunetfstest.a \
228   $(top_builddir)/src/testing/libgnunettesting.la \
229   $(top_builddir)/src/fs/libgnunetfs.la  \
230   $(top_builddir)/src/util/libgnunetutil.la  
231
232 test_gnunet_service_fs_p2p_SOURCES = \
233  test_gnunet_service_fs_p2p.c
234 test_gnunet_service_fs_p2p_LDADD = \
235   $(top_builddir)/src/fs/libgnunetfstest.a \
236   $(top_builddir)/src/testing/libgnunettesting.la \
237   $(top_builddir)/src/fs/libgnunetfs.la  \
238   $(top_builddir)/src/util/libgnunetutil.la  
239
240
241 EXTRA_DIST = \
242   test_fs_data.conf \
243   test_fs_collection_data.conf \
244   test_fs_download_data.conf \
245   test_fs_file_information_data.conf \
246   test_fs_lib_data.conf \
247   test_fs_list_indexed_data.conf \
248   test_fs_namespace_data.conf \
249   test_fs_publish_data.conf \
250   test_fs_search_data.conf \
251   test_fs_unindex_data.conf \
252   test_fs_uri_data.conf