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