1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
4 plugindir = $(libdir)/gnunet
6 libexecdir= $(pkglibdir)/libexec/
8 pkgcfgdir= $(pkgdatadir)/config.d/
16 TEST_CLIENT_UNIX_NC = test_client_unix.nc
19 AM_CFLAGS = --coverage -O0
24 BENCHMARK = benchmark.c benchmark.h
28 gnunet_config_diff_SOURCES = \
30 gnunet_config_diff_LDADD = \
33 test_common_logging_dummy_SOURCES = \
34 test_common_logging_dummy.c
35 test_common_logging_dummy_LDADD = \
38 libgnunetutil_la_SOURCES = \
47 configuration_loader.c \
48 container_bloomfilter.c \
50 container_meta_data.c \
51 container_multihashmap.c \
52 container_multishortmap.c \
53 container_multiuuidmap.c \
54 container_multipeermap.c \
55 container_multihashmap32.c \
89 resolver_api.c resolver.h \
123 libgnunetutil_la_LIBADD = \
124 $(GCLIBADD) $(WINLIB) \
130 $(LIBIDN) $(LIBIDN2) \
136 libgnunetutil_la_LDFLAGS = \
140 libgnunetutil_taler_wallet_la_SOURCES = \
141 common_allocation.c \
145 container_multihashmap.c \
146 container_multihashmap32.c \
159 libgnunetutil_taler_wallet_la_LIBADD = \
163 libgnunetutil_taler_wallet_la_LDFLAGS = \
168 GNUNET_ECC = gnunet-ecc
169 GNUNET_SCRYPT = gnunet-scrypt
173 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
175 lib_LTLIBRARIES = libgnunetutil.la
178 gnunet-service-resolver \
188 bin_PROGRAMS += gnunet-qr
193 test_common_logging_dummy
197 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
198 TESTS = $(check_PROGRAMS)
203 gnunet_timeout_SOURCES = \
206 gnunet_service_resolver_SOURCES = \
207 gnunet-service-resolver.c
208 gnunet_service_resolver_LDADD = \
211 if HAVE_GETADDRINFO_A
212 gnunet_service_resolver_LDADD += -lanl
216 gnunet_resolver_SOURCES = \
218 gnunet_resolver_LDADD = \
223 gnunet_ecc_SOURCES = \
227 $(GN_LIBINTL) -lgcrypt
229 gnunet_scrypt_SOURCES = \
231 gnunet_scrypt_LDADD = \
233 $(GN_LIBINTL) -lgcrypt
236 gnunet_config_SOURCES = \
238 gnunet_config_LDADD = \
242 gnunet_uri_SOURCES = \
249 gnunet_qr_SOURCES = \
254 gnunet_qr_LDFLAGS= -lzbar
256 plugin_LTLIBRARIES = \
257 libgnunet_plugin_test.la
259 libgnunet_plugin_test_la_SOURCES = \
261 libgnunet_plugin_test_la_LDFLAGS = \
267 perf_crypto_ecc_dlog \
269 perf_crypto_paillier \
270 perf_crypto_symmetric \
271 perf_crypto_asymmetric \
276 # SSH_USING_TESTS = test_socks.nc
282 $(TEST_CLIENT_UNIX_NC) \
283 test_common_allocation \
285 test_common_logging \
287 test_container_bloomfilter \
289 test_container_meta_data \
290 test_container_multihashmap \
291 test_container_multihashmap32 \
292 test_container_multipeermap \
293 test_container_heap \
294 test_crypto_symmetric \
299 test_crypto_ecdh_eddsa \
300 test_crypto_ecc_dlog \
302 test_crypto_hash_context \
305 test_crypto_paillier \
317 test_resolver_api.nc \
319 test_scheduler_delay \
322 test_strings_to_data \
327 test_os_start_process \
328 test_common_logging_runtime_loglevels
331 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
332 # sequential execution order for them
333 TEST_EXTENSIONS = .nc
334 test_test_client_unix.log: test_client.log
341 test_hexcoder_SOURCES = \
343 test_hexcoder_LDADD = \
351 test_regex_SOURCES = \
356 test_os_start_process_SOURCES = \
357 test_os_start_process.c
358 test_os_start_process_LDADD = \
360 test_os_start_process_DEPENDENCIES = \
363 test_client_nc_SOURCES = \
365 test_client_nc_LDADD = \
368 test_client_unix_nc_SOURCES = \
370 test_client_unix_nc_LDADD = \
373 #test_socks_nc_SOURCES = \
375 #test_socks_nc_LDADD = \
378 test_common_allocation_SOURCES = \
379 test_common_allocation.c
380 test_common_allocation_LDADD = \
383 test_common_endian_SOURCES = \
385 test_common_endian_LDADD = \
388 test_common_logging_SOURCES = \
389 test_common_logging.c
390 test_common_logging_LDADD = \
393 test_common_logging_runtime_loglevels_SOURCES = \
394 test_common_logging_runtime_loglevels.c
395 test_common_logging_runtime_loglevels_LDADD = \
398 test_configuration_SOURCES = \
400 test_configuration_LDADD = \
403 test_container_bloomfilter_SOURCES = \
404 test_container_bloomfilter.c
405 test_container_bloomfilter_LDADD = \
408 test_container_dll_SOURCES = \
410 test_container_dll_LDADD = \
413 test_container_meta_data_SOURCES = \
414 test_container_meta_data.c
415 test_container_meta_data_LDADD = \
418 test_container_multihashmap_SOURCES = \
419 test_container_multihashmap.c
420 test_container_multihashmap_LDADD = \
423 test_container_multihashmap32_SOURCES = \
424 test_container_multihashmap32.c
425 test_container_multihashmap32_LDADD = \
428 test_container_multipeermap_SOURCES = \
429 test_container_multipeermap.c
430 test_container_multipeermap_LDADD = \
433 test_container_heap_SOURCES = \
434 test_container_heap.c
435 test_container_heap_LDADD = \
438 test_crypto_symmetric_SOURCES = \
439 test_crypto_symmetric.c
440 test_crypto_symmetric_LDADD = \
443 test_crypto_crc_SOURCES = \
445 test_crypto_crc_LDADD = \
448 test_crypto_ecdsa_SOURCES = \
450 test_crypto_ecdsa_LDADD = \
454 test_crypto_eddsa_SOURCES = \
456 test_crypto_eddsa_LDADD = \
460 test_crypto_ecc_dlog_SOURCES = \
461 test_crypto_ecc_dlog.c
462 test_crypto_ecc_dlog_LDADD = \
466 test_crypto_ecdhe_SOURCES = \
468 test_crypto_ecdhe_LDADD = \
472 test_crypto_ecdh_eddsa_SOURCES = \
473 test_crypto_ecdh_eddsa.c
474 test_crypto_ecdh_eddsa_LDADD = \
478 test_crypto_hash_SOURCES = \
480 test_crypto_hash_LDADD = \
483 test_crypto_hash_context_SOURCES = \
484 test_crypto_hash_context.c
485 test_crypto_hash_context_LDADD = \
488 test_crypto_hkdf_SOURCES = \
490 test_crypto_hkdf_LDADD = \
493 test_crypto_kdf_SOURCES = \
495 test_crypto_kdf_LDADD = \
496 libgnunetutil.la -lgcrypt
498 test_crypto_paillier_SOURCES = \
499 test_crypto_paillier.c
500 test_crypto_paillier_LDADD = \
504 test_crypto_random_SOURCES = \
506 test_crypto_random_LDADD = \
509 test_crypto_rsa_SOURCES = \
511 test_crypto_rsa_LDADD = \
512 libgnunetutil.la -lgcrypt
514 test_disk_SOURCES = \
519 test_getopt_SOURCES = \
521 test_getopt_LDADD = \
529 test_os_network_SOURCES = \
531 test_os_network_LDADD = \
534 test_peer_SOURCES = \
537 libgnunetutil.la -lgcrypt
539 test_plugin_SOURCES = \
541 test_plugin_LDADD = \
544 test_program_SOURCES = \
546 test_program_LDADD = \
549 test_resolver_api_nc_SOURCES = \
551 test_resolver_api_nc_LDADD = \
554 test_scheduler_SOURCES = \
556 test_scheduler_LDADD = \
559 test_scheduler_delay_SOURCES = \
560 test_scheduler_delay.c
561 test_scheduler_delay_LDADD = \
564 test_service_SOURCES = \
566 test_service_LDADD = \
569 test_strings_SOURCES = \
571 test_strings_LDADD = \
574 test_strings_to_data_SOURCES = \
575 test_strings_to_data.c
576 test_strings_to_data_LDADD = \
580 test_time_SOURCES = \
585 test_speedup_SOURCES = \
587 test_speedup_LDADD = \
590 perf_crypto_hash_SOURCES = \
592 perf_crypto_hash_LDADD = \
595 perf_crypto_ecc_dlog_SOURCES = \
596 perf_crypto_ecc_dlog.c
597 perf_crypto_ecc_dlog_LDADD = \
601 perf_crypto_rsa_SOURCES = \
603 perf_crypto_rsa_LDADD = \
606 perf_crypto_symmetric_SOURCES = \
607 perf_crypto_symmetric.c
608 perf_crypto_symmetric_LDADD = \
611 perf_crypto_asymmetric_SOURCES = \
612 perf_crypto_asymmetric.c
613 perf_crypto_asymmetric_LDADD = \
616 perf_crypto_paillier_SOURCES = \
617 perf_crypto_paillier.c
618 perf_crypto_paillier_LDADD = \
622 perf_malloc_SOURCES = \
624 perf_malloc_LDADD = \
629 test_client_data.conf \
630 test_client_unix.conf \
631 test_configuration_data.conf \
632 test_program_data.conf \
633 test_resolver_api_data.conf \
634 test_service_data.conf \
635 test_speedup_data.conf