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