Returns now GNUNET_SYSERR
[oweals/gnunet.git] / src / util / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 plugindir = $(libdir)/gnunet
4
5 if MINGW
6 noinst_LTLIBRARIES = \
7   libgnunetutilwin.la
8 libgnunetutilwin_la_SOURCES = \
9   win.cc \
10   winproc.c
11 libgnunetutilwin_la_LDFLAGS = \
12   -Wl,--no-undefined -Wl,--export-all-symbols 
13 libgnunetutilwin_la_LIBADD = \
14   -lshell32 -liconv -lstdc++ \
15   -lcomdlg32 -lgdi32
16 WINLIB = libgnunetutilwin.la
17 endif
18
19 if USE_COVERAGE
20   AM_CFLAGS = --coverage -O0
21   XLIB = -lgcov
22 endif
23
24 lib_LTLIBRARIES = libgnunetutil.la
25
26 libgnunetutil_la_SOURCES = \
27   bandwidth.c \
28   bio.c \
29   client.c \
30   common_allocation.c \
31   common_endian.c \
32   common_logging.c \
33   configuration.c \
34   connection.c \
35   container_bloomfilter.c \
36   container_heap.c \
37   container_meta_data.c \
38   container_multihashmap.c \
39   container_slist.c \
40   crypto_aes.c \
41   crypto_crc.c \
42   crypto_hash.c \
43   crypto_hkdf.c \
44   crypto_kdf.c \
45   crypto_ksk.c \
46   crypto_random.c \
47   crypto_rsa.c \
48   disk.c \
49   disk.h \
50   getopt.c \
51   getopt_helpers.c \
52   load.c \
53   network.c \
54   os_installation.c \
55   os_network.c \
56   os_priority.c \
57   peer.c \
58   plugin.c \
59   program.c \
60   pseudonym.c \
61   resolver_api.c resolver.h \
62   scheduler.c \
63   server.c \
64   server_mst.c \
65   server_nc.c \
66   server_tc.c \
67   service.c \
68   signal.c \
69   strings.c \
70   time.c
71
72
73 libgnunetutil_la_LIBADD = \
74   $(GCLIBADD) $(WINLIB) \
75   $(LIBGCRYPT_LIBS) \
76   $(LTLIBICONV) \
77   -lltdl -lz $(XLIB)
78
79 libgnunetutil_la_LDFLAGS = \
80   $(GN_LIB_LDFLAGS) \
81   -version-info 4:0:0
82
83
84 bin_PROGRAMS = \
85  gnunet-service-resolver \
86  gnunet-resolver
87
88 gnunet_service_resolver_SOURCES = \
89  gnunet-service-resolver.c         
90 gnunet_service_resolver_LDADD = \
91   $(top_builddir)/src/util/libgnunetutil.la \
92   $(GN_LIBINTL)
93
94
95 gnunet_resolver_SOURCES = \
96  gnunet-resolver.c         
97 gnunet_resolver_LDADD = \
98   $(top_builddir)/src/util/libgnunetutil.la \
99   $(GN_LIBINTL)
100
101
102 plugin_LTLIBRARIES = \
103   libgnunet_plugin_test.la
104
105 libgnunet_plugin_test_la_SOURCES = \
106   test_plugin_plug.c
107 libgnunet_plugin_test_la_LDFLAGS = \
108  $(GN_PLUGIN_LDFLAGS)
109
110 check_PROGRAMS = \
111  test_bio \
112  test_client \
113  test_common_allocation \
114  test_common_endian \
115  test_common_logging \
116  test_configuration \
117  test_container_bloomfilter \
118  test_container_meta_data \
119  test_container_multihashmap \
120  test_container_heap \
121  test_container_slist \
122  test_crypto_aes \
123  test_crypto_aes_weak \
124  test_crypto_crc \
125  test_crypto_hash \
126  test_crypto_hkdf \
127  test_crypto_ksk \
128  test_crypto_random \
129  test_crypto_rsa \
130  test_disk \
131  test_getopt \
132  test_connection \
133  test_connection_addressing \
134  test_connection_receive_cancel \
135  test_connection_timeout \
136  test_connection_timeout_no_connect \
137  test_connection_transmit_cancel \
138  test_os_network \
139  test_os_priority \
140  test_peer \
141  test_plugin \
142  test_program \
143  test_pseudonym \
144  test_resolver_api \
145  test_scheduler \
146  test_scheduler_delay \
147  test_server \
148  test_server_disconnect \
149  test_server_with_client \
150  test_service \
151  test_strings \
152  test_time \
153  perf_crypto_hash \
154  test_os_start_process 
155
156 if !DISABLE_TEST_RUN
157 TESTS = $(check_PROGRAMS)
158 endif
159
160 test_bio_SOURCES = \
161  test_bio.c
162 test_bio_LDADD = \
163  $(top_builddir)/src/util/libgnunetutil.la
164
165
166 test_os_start_process_SOURCES = \
167  test_os_start_process.c
168 test_os_start_process_LDADD = \
169  $(top_builddir)/src/util/libgnunetutil.la
170
171 test_client_SOURCES = \
172  test_client.c
173 test_client_LDADD = \
174  $(top_builddir)/src/util/libgnunetutil.la  
175
176 test_common_allocation_SOURCES = \
177  test_common_allocation.c
178 test_common_allocation_LDADD = \
179  $(top_builddir)/src/util/libgnunetutil.la  
180
181 test_common_endian_SOURCES = \
182  test_common_endian.c
183 test_common_endian_LDADD = \
184  $(top_builddir)/src/util/libgnunetutil.la  
185
186 test_common_logging_SOURCES = \
187  test_common_logging.c
188 test_common_logging_LDADD = \
189  $(top_builddir)/src/util/libgnunetutil.la  
190
191 test_configuration_SOURCES = \
192  test_configuration.c
193 test_configuration_LDADD = \
194  $(top_builddir)/src/util/libgnunetutil.la  
195
196 test_container_bloomfilter_SOURCES = \
197  test_container_bloomfilter.c
198 test_container_bloomfilter_LDADD = \
199  $(top_builddir)/src/util/libgnunetutil.la  
200
201 test_container_meta_data_SOURCES = \
202  test_container_meta_data.c
203 test_container_meta_data_LDADD = \
204  $(top_builddir)/src/util/libgnunetutil.la -lextractor
205
206 test_container_multihashmap_SOURCES = \
207  test_container_multihashmap.c
208 test_container_multihashmap_LDADD = \
209  $(top_builddir)/src/util/libgnunetutil.la  
210
211 test_container_heap_SOURCES = \
212  test_container_heap.c
213 test_container_heap_LDADD = \
214  $(top_builddir)/src/util/libgnunetutil.la   
215
216 test_container_slist_SOURCES = \
217  test_container_slist.c
218 test_container_slist_LDADD = \
219  $(top_builddir)/src/util/libgnunetutil.la  
220
221 test_crypto_aes_SOURCES = \
222  test_crypto_aes.c
223 test_crypto_aes_LDADD = \
224  $(top_builddir)/src/util/libgnunetutil.la  
225
226 test_crypto_aes_weak_SOURCES = \
227  test_crypto_aes_weak.c
228 test_crypto_aes_weak_LDADD = \
229  $(top_builddir)/src/util/libgnunetutil.la  
230
231 test_crypto_crc_SOURCES = \
232  test_crypto_crc.c
233 test_crypto_crc_LDADD = \
234  $(top_builddir)/src/util/libgnunetutil.la  
235
236 test_crypto_hash_SOURCES = \
237  test_crypto_hash.c
238 test_crypto_hash_LDADD = \
239  $(top_builddir)/src/util/libgnunetutil.la  
240
241 test_crypto_hkdf_SOURCES = \
242  test_crypto_hkdf.c
243 test_crypto_hkdf_LDADD = \
244  $(top_builddir)/src/util/libgnunetutil.la  
245
246 test_crypto_ksk_SOURCES = \
247  test_crypto_ksk.c
248 test_crypto_ksk_LDADD = \
249  $(top_builddir)/src/util/libgnunetutil.la  
250
251 test_crypto_random_SOURCES = \
252  test_crypto_random.c
253 test_crypto_random_LDADD = \
254  $(top_builddir)/src/util/libgnunetutil.la  
255
256 test_crypto_rsa_SOURCES = \
257  test_crypto_rsa.c
258 test_crypto_rsa_LDADD = \
259  $(top_builddir)/src/util/libgnunetutil.la  
260
261 test_disk_SOURCES = \
262  test_disk.c
263 test_disk_LDADD = \
264  $(top_builddir)/src/util/libgnunetutil.la  
265
266 test_getopt_SOURCES = \
267  test_getopt.c
268 test_getopt_LDADD = \
269  $(top_builddir)/src/util/libgnunetutil.la  
270
271 test_connection_SOURCES = \
272  test_connection.c
273 test_connection_LDADD = \
274  $(top_builddir)/src/util/libgnunetutil.la  
275
276 test_connection_addressing_SOURCES = \
277  test_connection_addressing.c
278 test_connection_addressing_LDADD = \
279  $(top_builddir)/src/util/libgnunetutil.la  
280
281 test_connection_receive_cancel_SOURCES = \
282  test_connection_receive_cancel.c
283 test_connection_receive_cancel_LDADD = \
284  $(top_builddir)/src/util/libgnunetutil.la  
285
286 test_connection_timeout_SOURCES = \
287  test_connection_timeout.c
288 test_connection_timeout_LDADD = \
289  $(top_builddir)/src/util/libgnunetutil.la  
290
291 test_connection_timeout_no_connect_SOURCES = \
292  test_connection_timeout_no_connect.c
293 test_connection_timeout_no_connect_LDADD = \
294  $(top_builddir)/src/util/libgnunetutil.la  
295
296 test_connection_transmit_cancel_SOURCES = \
297  test_connection_transmit_cancel.c
298 test_connection_transmit_cancel_LDADD = \
299  $(top_builddir)/src/util/libgnunetutil.la  
300
301 test_os_network_SOURCES = \
302  test_os_network.c
303 test_os_network_LDADD = \
304  $(top_builddir)/src/util/libgnunetutil.la  
305
306 test_os_priority_SOURCES = \
307  test_os_priority.c
308 test_os_priority_LDADD = \
309  $(top_builddir)/src/util/libgnunetutil.la  
310
311 test_peer_SOURCES = \
312  test_peer.c
313 test_peer_LDADD = \
314 $(top_builddir)/src/util/libgnunetutil.la
315
316 test_plugin_SOURCES = \
317  test_plugin.c
318 test_plugin_LDADD = \
319  $(top_builddir)/src/util/libgnunetutil.la  
320
321 test_program_SOURCES = \
322  test_program.c
323 test_program_LDADD = \
324  $(top_builddir)/src/util/libgnunetutil.la  
325
326 test_pseudonym_SOURCES = \
327  test_pseudonym.c
328 test_pseudonym_LDADD = \
329  $(top_builddir)/src/util/libgnunetutil.la  
330
331 test_resolver_api_SOURCES = \
332  test_resolver_api.c
333 test_resolver_api_LDADD = \
334   $(top_builddir)/src/util/libgnunetutil.la  
335
336 test_scheduler_SOURCES = \
337  test_scheduler.c
338 test_scheduler_LDADD = \
339  $(top_builddir)/src/util/libgnunetutil.la  
340
341 test_scheduler_delay_SOURCES = \
342  test_scheduler_delay.c
343 test_scheduler_delay_LDADD = \
344  $(top_builddir)/src/util/libgnunetutil.la  
345
346 test_server_SOURCES = \
347  test_server.c
348 test_server_LDADD = \
349  $(top_builddir)/src/util/libgnunetutil.la  
350
351 test_server_disconnect_SOURCES = \
352  test_server_disconnect.c
353 test_server_disconnect_LDADD = \
354  $(top_builddir)/src/util/libgnunetutil.la  
355
356 test_server_with_client_SOURCES = \
357  test_server_with_client.c
358 test_server_with_client_LDADD = \
359  $(top_builddir)/src/util/libgnunetutil.la  
360
361 test_service_SOURCES = \
362  test_service.c
363 test_service_LDADD = \
364  $(top_builddir)/src/util/libgnunetutil.la  
365
366 test_strings_SOURCES = \
367  test_strings.c
368 test_strings_LDADD = \
369  $(top_builddir)/src/util/libgnunetutil.la  
370
371 test_time_SOURCES = \
372  test_time.c
373 test_time_LDADD = \
374  $(top_builddir)/src/util/libgnunetutil.la  
375
376 perf_crypto_hash_SOURCES = \
377  perf_crypto_hash.c
378 perf_crypto_hash_LDADD = \
379  $(top_builddir)/src/util/libgnunetutil.la  
380
381
382 EXTRA_DIST = \
383   test_configuration_data.conf \
384   test_program_data.conf \
385   test_pseudonym_data.conf \
386   test_resolver_api_data.conf \
387   test_service_data.conf