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 = \
48 configuration_loader.c \
49 container_bloomfilter.c \
51 container_meta_data.c \
52 container_multihashmap.c \
53 container_multishortmap.c \
54 container_multiuuidmap.c \
55 container_multipeermap.c \
56 container_multihashmap32.c \
91 resolver_api.c resolver.h \
100 speedup.c speedup.h \
125 libgnunetutil_la_LIBADD = \
126 $(GCLIBADD) $(WINLIB) \
132 $(LIBIDN) $(LIBIDN2) \
138 libgnunetutil_la_LDFLAGS = \
142 libgnunetutil_taler_wallet_la_SOURCES = \
143 common_allocation.c \
147 container_multihashmap.c \
148 container_multihashmap32.c \
161 libgnunetutil_taler_wallet_la_LIBADD = \
165 libgnunetutil_taler_wallet_la_LDFLAGS = \
170 GNUNET_ECC = gnunet-ecc
171 GNUNET_SCRYPT = gnunet-scrypt
175 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
177 lib_LTLIBRARIES = libgnunetutil.la
180 gnunet-service-resolver \
190 bin_PROGRAMS += gnunet-qr
195 test_common_logging_dummy
199 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
200 TESTS = $(check_PROGRAMS)
205 gnunet_timeout_SOURCES = \
208 gnunet_service_resolver_SOURCES = \
209 gnunet-service-resolver.c
210 gnunet_service_resolver_LDADD = \
213 if HAVE_GETADDRINFO_A
214 gnunet_service_resolver_LDADD += -lanl
218 gnunet_resolver_SOURCES = \
220 gnunet_resolver_LDADD = \
225 gnunet_ecc_SOURCES = \
229 $(GN_LIBINTL) -lgcrypt
231 gnunet_scrypt_SOURCES = \
233 gnunet_scrypt_LDADD = \
235 $(GN_LIBINTL) -lgcrypt
238 gnunet_config_SOURCES = \
240 gnunet_config_LDADD = \
244 gnunet_uri_SOURCES = \
251 gnunet_qr_SOURCES = \
256 gnunet_qr_LDFLAGS= -lzbar
258 plugin_LTLIBRARIES = \
259 libgnunet_plugin_test.la
261 libgnunet_plugin_test_la_SOURCES = \
263 libgnunet_plugin_test_la_LDFLAGS = \
269 perf_crypto_ecc_dlog \
271 perf_crypto_paillier \
272 perf_crypto_symmetric \
273 perf_crypto_asymmetric \
278 # SSH_USING_TESTS = test_socks.nc
284 $(TEST_CLIENT_UNIX_NC) \
285 test_common_allocation \
287 test_common_logging \
289 test_container_bloomfilter \
291 test_container_meta_data \
292 test_container_multihashmap \
293 test_container_multihashmap32 \
294 test_container_multipeermap \
295 test_container_heap \
296 test_crypto_symmetric \
301 test_crypto_ecdh_eddsa \
302 test_crypto_ecdh_ecdsa \
303 test_crypto_ecc_dlog \
305 test_crypto_hash_context \
308 test_crypto_paillier \
320 test_resolver_api.nc \
322 test_scheduler_delay \
325 test_strings_to_data \
330 test_os_start_process \
331 test_common_logging_runtime_loglevels
334 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
335 # sequential execution order for them
336 TEST_EXTENSIONS = .nc
337 test_test_client_unix.log: test_client.log
344 test_hexcoder_SOURCES = \
346 test_hexcoder_LDADD = \
354 test_regex_SOURCES = \
359 test_os_start_process_SOURCES = \
360 test_os_start_process.c
361 test_os_start_process_LDADD = \
363 test_os_start_process_DEPENDENCIES = \
366 test_client_nc_SOURCES = \
368 test_client_nc_LDADD = \
371 test_client_unix_nc_SOURCES = \
373 test_client_unix_nc_LDADD = \
376 #test_socks_nc_SOURCES = \
378 #test_socks_nc_LDADD = \
381 test_common_allocation_SOURCES = \
382 test_common_allocation.c
383 test_common_allocation_LDADD = \
386 test_common_endian_SOURCES = \
388 test_common_endian_LDADD = \
391 test_common_logging_SOURCES = \
392 test_common_logging.c
393 test_common_logging_LDADD = \
396 test_common_logging_runtime_loglevels_SOURCES = \
397 test_common_logging_runtime_loglevels.c
398 test_common_logging_runtime_loglevels_LDADD = \
401 test_configuration_SOURCES = \
403 test_configuration_LDADD = \
406 test_container_bloomfilter_SOURCES = \
407 test_container_bloomfilter.c
408 test_container_bloomfilter_LDADD = \
411 test_container_dll_SOURCES = \
413 test_container_dll_LDADD = \
416 test_container_meta_data_SOURCES = \
417 test_container_meta_data.c
418 test_container_meta_data_LDADD = \
421 test_container_multihashmap_SOURCES = \
422 test_container_multihashmap.c
423 test_container_multihashmap_LDADD = \
426 test_container_multihashmap32_SOURCES = \
427 test_container_multihashmap32.c
428 test_container_multihashmap32_LDADD = \
431 test_container_multipeermap_SOURCES = \
432 test_container_multipeermap.c
433 test_container_multipeermap_LDADD = \
436 test_container_heap_SOURCES = \
437 test_container_heap.c
438 test_container_heap_LDADD = \
441 test_crypto_symmetric_SOURCES = \
442 test_crypto_symmetric.c
443 test_crypto_symmetric_LDADD = \
446 test_crypto_crc_SOURCES = \
448 test_crypto_crc_LDADD = \
451 test_crypto_ecdsa_SOURCES = \
453 test_crypto_ecdsa_LDADD = \
457 test_crypto_eddsa_SOURCES = \
459 test_crypto_eddsa_LDADD = \
463 test_crypto_ecc_dlog_SOURCES = \
464 test_crypto_ecc_dlog.c
465 test_crypto_ecc_dlog_LDADD = \
469 test_crypto_ecdhe_SOURCES = \
471 test_crypto_ecdhe_LDADD = \
475 test_crypto_ecdh_eddsa_SOURCES = \
476 test_crypto_ecdh_eddsa.c
477 test_crypto_ecdh_eddsa_LDADD = \
481 test_crypto_ecdh_ecdsa_SOURCES = \
482 test_crypto_ecdh_ecdsa.c
483 test_crypto_ecdh_ecdsa_LDADD = \
488 test_crypto_hash_SOURCES = \
490 test_crypto_hash_LDADD = \
493 test_crypto_hash_context_SOURCES = \
494 test_crypto_hash_context.c
495 test_crypto_hash_context_LDADD = \
498 test_crypto_hkdf_SOURCES = \
500 test_crypto_hkdf_LDADD = \
503 test_crypto_kdf_SOURCES = \
505 test_crypto_kdf_LDADD = \
506 libgnunetutil.la -lgcrypt
508 test_crypto_paillier_SOURCES = \
509 test_crypto_paillier.c
510 test_crypto_paillier_LDADD = \
514 test_crypto_random_SOURCES = \
516 test_crypto_random_LDADD = \
519 test_crypto_rsa_SOURCES = \
521 test_crypto_rsa_LDADD = \
522 libgnunetutil.la -lgcrypt
524 test_disk_SOURCES = \
529 test_getopt_SOURCES = \
531 test_getopt_LDADD = \
539 test_os_network_SOURCES = \
541 test_os_network_LDADD = \
544 test_peer_SOURCES = \
547 libgnunetutil.la -lgcrypt
549 test_plugin_SOURCES = \
551 test_plugin_LDADD = \
554 test_program_SOURCES = \
556 test_program_LDADD = \
559 test_resolver_api_nc_SOURCES = \
561 test_resolver_api_nc_LDADD = \
564 test_scheduler_SOURCES = \
566 test_scheduler_LDADD = \
569 test_scheduler_delay_SOURCES = \
570 test_scheduler_delay.c
571 test_scheduler_delay_LDADD = \
574 test_service_SOURCES = \
576 test_service_LDADD = \
579 test_strings_SOURCES = \
581 test_strings_LDADD = \
584 test_strings_to_data_SOURCES = \
585 test_strings_to_data.c
586 test_strings_to_data_LDADD = \
590 test_time_SOURCES = \
595 test_speedup_SOURCES = \
597 test_speedup_LDADD = \
600 perf_crypto_hash_SOURCES = \
602 perf_crypto_hash_LDADD = \
605 perf_crypto_ecc_dlog_SOURCES = \
606 perf_crypto_ecc_dlog.c
607 perf_crypto_ecc_dlog_LDADD = \
611 perf_crypto_rsa_SOURCES = \
613 perf_crypto_rsa_LDADD = \
616 perf_crypto_symmetric_SOURCES = \
617 perf_crypto_symmetric.c
618 perf_crypto_symmetric_LDADD = \
621 perf_crypto_asymmetric_SOURCES = \
622 perf_crypto_asymmetric.c
623 perf_crypto_asymmetric_LDADD = \
626 perf_crypto_paillier_SOURCES = \
627 perf_crypto_paillier.c
628 perf_crypto_paillier_LDADD = \
632 perf_malloc_SOURCES = \
634 perf_malloc_LDADD = \
639 test_client_data.conf \
640 test_client_unix.conf \
641 test_configuration_data.conf \
642 test_program_data.conf \
643 test_resolver_api_data.conf \
644 test_service_data.conf \
645 test_speedup_data.conf