remove ws
[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 libgnunetfs_la_SOURCES = \
17   fs.c \
18   fs_collection.c \
19   fs_directory.c \
20   fs_download.c \
21   fs_file_information.c \
22   fs_getopt.c \
23   fs_list_indexed.c \
24   fs_publish.c \
25   fs_namespace.c \
26   fs_search.c \
27   fs_tree.c fs_tree.h \
28   fs_unindex.c \
29   fs_uri.c 
30
31 libgnunetfs_la_LIBADD = \
32   $(top_builddir)/src/datastore/libgnunetdatastore.la \
33   $(top_builddir)/src/util/libgnunetutil.la \
34   -lextractor \
35   $(GN_LIBINTL) $(XLIB)
36
37 libgnunetfs_la_LDFLAGS = \
38   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
39   -version-info 0:0:0
40
41
42 bin_PROGRAMS = \
43   gnunet-directory \
44   gnunet-download \
45   gnunet-publish \
46   gnunet-pseudonym \
47   gnunet-search \
48   gnunet-service-fs \
49   gnunet-unindex 
50
51 gnunet_directory_SOURCES = \
52  gnunet-directory.c
53 gnunet_directory_LDADD = \
54   $(top_builddir)/src/fs/libgnunetfs.la \
55   $(top_builddir)/src/util/libgnunetutil.la \
56   $(GN_LIBINTL)
57
58 gnunet_download_SOURCES =  \
59  gnunet-download.c         
60 gnunet_download_LDADD =  \
61  $(top_builddir)/src/fs/libgnunetfs.la \
62  $(top_builddir)/src/util/libgnunetutil.la \
63  $(GN_LIBINTL)
64
65 gnunet_publish_SOURCES =  \
66  gnunet-publish.c         
67 gnunet_publish_LDADD =  \
68  $(top_builddir)/src/fs/libgnunetfs.la \
69  $(top_builddir)/src/util/libgnunetutil.la \
70  $(GN_LIBINTL)
71
72 gnunet_pseudonym_SOURCES = \
73  gnunet-pseudonym.c
74 gnunet_pseudonym_LDADD = \
75   $(top_builddir)/src/fs/libgnunetfs.la \
76   $(top_builddir)/src/util/libgnunetutil.la \
77   $(GN_LIBINTL)
78
79 gnunet_search_SOURCES = \
80  gnunet-search.c         
81 gnunet_search_LDADD = \
82   $(top_builddir)/src/fs/libgnunetfs.la \
83   $(top_builddir)/src/util/libgnunetutil.la \
84   $(GN_LIBINTL)
85
86 gnunet_service_fs_SOURCES =  \
87  gnunet-service-fs.c         
88 gnunet_service_fs_LDADD =  \
89  $(top_builddir)/src/fs/libgnunetfs.la \
90  $(top_builddir)/src/datastore/libgnunetdatastore.la \
91  $(top_builddir)/src/core/libgnunetcore.la \
92  $(top_builddir)/src/util/libgnunetutil.la \
93  $(GN_LIBINTL)
94
95 gnunet_unindex_SOURCES = \
96  gnunet-unindex.c         
97 gnunet_unindex_LDADD = \
98   $(top_builddir)/src/fs/libgnunetfs.la \
99   $(top_builddir)/src/util/libgnunetutil.la \
100   $(GN_LIBINTL)
101
102
103
104
105 check_PROGRAMS = \
106  test_fs_collection \
107  test_fs_directory \
108  test_fs_download \
109  test_fs_file_information \
110  test_fs_getopt \
111  test_fs_list_indexed \
112  test_fs_namespace \
113  test_fs_publish \
114  test_fs_search \
115  test_fs_start_stop \
116  test_fs_unindex \
117  test_fs_uri
118
119 TESTS = \
120  test_fs_directory \
121  test_fs_download \
122  test_fs_file_information \
123  test_fs_search \
124  test_fs_start_stop \
125  test_fs_unindex \
126  test_fs_uri
127 # $(check_PROGRAMS)
128
129 test_fs_collection_SOURCES = \
130  test_fs_collection.c
131 test_fs_collection_LDADD = \
132   $(top_builddir)/src/fs/libgnunetfs.la  \
133   $(top_builddir)/src/util/libgnunetutil.la  
134
135 test_fs_directory_SOURCES = \
136  test_fs_directory.c
137 test_fs_directory_LDADD = \
138   $(top_builddir)/src/fs/libgnunetfs.la  \
139   $(top_builddir)/src/util/libgnunetutil.la  
140
141 test_fs_download_SOURCES = \
142  test_fs_download.c
143 test_fs_download_LDADD = \
144   $(top_builddir)/src/fs/libgnunetfs.la  \
145   $(top_builddir)/src/arm/libgnunetarm.la  \
146   $(top_builddir)/src/util/libgnunetutil.la  
147
148 test_fs_file_information_SOURCES = \
149  test_fs_file_information.c
150 test_fs_file_information_LDADD = \
151   $(top_builddir)/src/fs/libgnunetfs.la  \
152   $(top_builddir)/src/util/libgnunetutil.la  
153
154 test_fs_getopt_SOURCES = \
155  test_fs_getopt.c
156 test_fs_getopt_LDADD = \
157   $(top_builddir)/src/fs/libgnunetfs.la  \
158   $(top_builddir)/src/util/libgnunetutil.la  
159
160 test_fs_list_indexed_SOURCES = \
161  test_fs_list_indexed.c
162 test_fs_list_indexed_LDADD = \
163   $(top_builddir)/src/fs/libgnunetfs.la  \
164   $(top_builddir)/src/arm/libgnunetarm.la  \
165   $(top_builddir)/src/util/libgnunetutil.la  
166
167 test_fs_namespace_SOURCES = \
168  test_fs_namespace.c
169 test_fs_namespace_LDADD = \
170   $(top_builddir)/src/fs/libgnunetfs.la  \
171   $(top_builddir)/src/arm/libgnunetarm.la  \
172   $(top_builddir)/src/util/libgnunetutil.la  
173
174 test_fs_publish_SOURCES = \
175  test_fs_publish.c
176 test_fs_publish_LDADD = \
177   $(top_builddir)/src/fs/libgnunetfs.la  \
178   $(top_builddir)/src/arm/libgnunetarm.la  \
179   $(top_builddir)/src/util/libgnunetutil.la  
180
181 test_fs_search_SOURCES = \
182  test_fs_search.c
183 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la    \
184   $(top_builddir)/src/arm/libgnunetarm.la                       \
185   $(top_builddir)/src/util/libgnunetutil.la
186
187 test_fs_start_stop_SOURCES = \
188  test_fs_start_stop.c
189 test_fs_start_stop_LDADD = \
190   $(top_builddir)/src/fs/libgnunetfs.la  \
191   $(top_builddir)/src/arm/libgnunetarm.la  \
192   $(top_builddir)/src/util/libgnunetutil.la  
193
194 test_fs_unindex_SOURCES = \
195  test_fs_unindex.c
196 test_fs_unindex_LDADD = \
197   $(top_builddir)/src/fs/libgnunetfs.la  \
198   $(top_builddir)/src/arm/libgnunetarm.la  \
199   $(top_builddir)/src/util/libgnunetutil.la  
200
201 test_fs_uri_SOURCES = \
202  test_fs_uri.c
203 test_fs_uri_LDADD = \
204   $(top_builddir)/src/fs/libgnunetfs.la  \
205   $(top_builddir)/src/util/libgnunetutil.la  
206
207 EXTRA_DIST = \
208   test_fs_data.conf \
209   test_fs_collection_data.conf \
210   test_fs_download_data.conf \
211   test_fs_file_information_data.conf \
212   test_fs_list_indexed_data.conf \
213   test_fs_namespace_data.conf \
214   test_fs_publish_data.conf \
215   test_fs_search_data.conf \
216   test_fs_unindex_data.conf \
217   test_fs_uri_data.conf