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