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