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/
17 noinst_LTLIBRARIES = \
19 libgnunetutilwin_la_SOURCES = \
22 libgnunetutilwin_la_LDFLAGS = \
23 -no-undefined -Wl,--export-all-symbols
24 libgnunetutilwin_la_LIBADD = \
25 -lshell32 -liconv -lstdc++ \
26 -lcomdlg32 -lgdi32 -liphlpapi
27 WINLIB = libgnunetutilwin.la
29 W32CONSOLEHELPER = gnunet-helper-w32-console
33 TEST_CLIENT_UNIX_NC = test_client_unix.nc
39 AM_CFLAGS = --coverage -O0
44 BENCHMARK = benchmark.c benchmark.h
48 w32cat_SOURCES = w32cat.c
50 gnunet_helper_w32_console_SOURCES = \
51 gnunet-helper-w32-console.c \
52 gnunet-helper-w32-console.h
53 gnunet_helper_w32_console_LDADD = \
56 gnunet_config_diff_SOURCES = \
58 gnunet_config_diff_LDADD = \
61 test_common_logging_dummy_SOURCES = \
62 test_common_logging_dummy.c
63 test_common_logging_dummy_LDADD = \
66 libgnunetutil_la_SOURCES = \
75 configuration_loader.c \
76 container_bloomfilter.c \
78 container_meta_data.c \
79 container_multihashmap.c \
80 container_multishortmap.c \
81 container_multipeermap.c \
82 container_multihashmap32.c \
116 resolver_api.c resolver.h \
123 speedup.c speedup.h \
148 libgnunetutil_la_LIBADD = \
149 $(GCLIBADD) $(WINLIB) \
155 $(LIBIDN) $(LIBIDN2) \
161 libgnunetutil_la_LDFLAGS = \
165 libgnunetutil_taler_wallet_la_SOURCES = \
166 common_allocation.c \
170 container_multihashmap.c \
171 container_multihashmap32.c \
184 libgnunetutil_taler_wallet_la_LIBADD = \
188 libgnunetutil_taler_wallet_la_LDFLAGS = \
193 GNUNET_ECC = gnunet-ecc
194 GNUNET_SCRYPT = gnunet-scrypt
198 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
200 lib_LTLIBRARIES = libgnunetutil.la
203 gnunet-service-resolver \
214 bin_PROGRAMS += gnunet-qr
220 test_common_logging_dummy
224 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
225 TESTS = $(check_PROGRAMS)
232 gnunet_timeout_SOURCES = \
235 gnunet_timeout_SOURCES = \
239 gnunet_service_resolver_SOURCES = \
240 gnunet-service-resolver.c
241 gnunet_service_resolver_LDADD = \
244 if HAVE_GETADDRINFO_A
245 gnunet_service_resolver_LDADD += -lanl
249 gnunet_resolver_SOURCES = \
251 gnunet_resolver_LDADD = \
256 gnunet_ecc_SOURCES = \
260 $(GN_LIBINTL) -lgcrypt
262 gnunet_scrypt_SOURCES = \
264 gnunet_scrypt_LDADD = \
266 $(GN_LIBINTL) -lgcrypt
269 gnunet_config_SOURCES = \
271 gnunet_config_LDADD = \
275 gnunet_uri_SOURCES = \
282 gnunet_qr_SOURCES = \
285 gnunet_qr_LDFLAGS= $(libzbar_LIBS)
286 gnunet_qr_CFLAGS = $(libzbar_CFLAGS)
288 plugin_LTLIBRARIES = \
289 libgnunet_plugin_test.la
291 libgnunet_plugin_test_la_SOURCES = \
293 libgnunet_plugin_test_la_LDFLAGS = \
299 perf_crypto_ecc_dlog \
301 perf_crypto_paillier \
302 perf_crypto_symmetric \
303 perf_crypto_asymmetric \
308 # SSH_USING_TESTS = test_socks.nc
314 $(TEST_CLIENT_UNIX_NC) \
315 test_common_allocation \
317 test_common_logging \
319 test_container_bloomfilter \
321 test_container_meta_data \
322 test_container_multihashmap \
323 test_container_multihashmap32 \
324 test_container_multipeermap \
325 test_container_heap \
326 test_crypto_symmetric \
331 test_crypto_ecdh_eddsa \
332 test_crypto_ecc_dlog \
334 test_crypto_hash_context \
337 test_crypto_paillier \
349 test_resolver_api.nc \
351 test_scheduler_delay \
354 test_strings_to_data \
359 test_os_start_process \
360 test_common_logging_runtime_loglevels
363 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
364 # sequential execution order for them
365 TEST_EXTENSIONS = .nc
366 test_test_client_unix.log: test_client.log
373 test_hexcoder_SOURCES = \
375 test_hexcoder_LDADD = \
383 test_regex_SOURCES = \
388 test_os_start_process_SOURCES = \
389 test_os_start_process.c
390 test_os_start_process_LDADD = \
392 test_os_start_process_DEPENDENCIES = \
396 test_client_nc_SOURCES = \
398 test_client_nc_LDADD = \
401 test_client_unix_nc_SOURCES = \
403 test_client_unix_nc_LDADD = \
406 #test_socks_nc_SOURCES = \
408 #test_socks_nc_LDADD = \
411 test_common_allocation_SOURCES = \
412 test_common_allocation.c
413 test_common_allocation_LDADD = \
416 test_common_endian_SOURCES = \
418 test_common_endian_LDADD = \
421 test_common_logging_SOURCES = \
422 test_common_logging.c
423 test_common_logging_LDADD = \
426 test_common_logging_runtime_loglevels_SOURCES = \
427 test_common_logging_runtime_loglevels.c
428 test_common_logging_runtime_loglevels_LDADD = \
431 test_configuration_SOURCES = \
433 test_configuration_LDADD = \
436 test_container_bloomfilter_SOURCES = \
437 test_container_bloomfilter.c
438 test_container_bloomfilter_LDADD = \
441 test_container_dll_SOURCES = \
443 test_container_dll_LDADD = \
446 test_container_meta_data_SOURCES = \
447 test_container_meta_data.c
448 test_container_meta_data_LDADD = \
451 test_container_multihashmap_SOURCES = \
452 test_container_multihashmap.c
453 test_container_multihashmap_LDADD = \
456 test_container_multihashmap32_SOURCES = \
457 test_container_multihashmap32.c
458 test_container_multihashmap32_LDADD = \
461 test_container_multipeermap_SOURCES = \
462 test_container_multipeermap.c
463 test_container_multipeermap_LDADD = \
466 test_container_heap_SOURCES = \
467 test_container_heap.c
468 test_container_heap_LDADD = \
471 test_crypto_symmetric_SOURCES = \
472 test_crypto_symmetric.c
473 test_crypto_symmetric_LDADD = \
476 test_crypto_crc_SOURCES = \
478 test_crypto_crc_LDADD = \
481 test_crypto_ecdsa_SOURCES = \
483 test_crypto_ecdsa_LDADD = \
487 test_crypto_eddsa_SOURCES = \
489 test_crypto_eddsa_LDADD = \
493 test_crypto_ecc_dlog_SOURCES = \
494 test_crypto_ecc_dlog.c
495 test_crypto_ecc_dlog_LDADD = \
499 test_crypto_ecdhe_SOURCES = \
501 test_crypto_ecdhe_LDADD = \
505 test_crypto_ecdh_eddsa_SOURCES = \
506 test_crypto_ecdh_eddsa.c
507 test_crypto_ecdh_eddsa_LDADD = \
511 test_crypto_hash_SOURCES = \
513 test_crypto_hash_LDADD = \
516 test_crypto_hash_context_SOURCES = \
517 test_crypto_hash_context.c
518 test_crypto_hash_context_LDADD = \
521 test_crypto_hkdf_SOURCES = \
523 test_crypto_hkdf_LDADD = \
526 test_crypto_kdf_SOURCES = \
528 test_crypto_kdf_LDADD = \
529 libgnunetutil.la -lgcrypt
531 test_crypto_paillier_SOURCES = \
532 test_crypto_paillier.c
533 test_crypto_paillier_LDADD = \
537 test_crypto_random_SOURCES = \
539 test_crypto_random_LDADD = \
542 test_crypto_rsa_SOURCES = \
544 test_crypto_rsa_LDADD = \
545 libgnunetutil.la -lgcrypt
547 test_disk_SOURCES = \
552 test_getopt_SOURCES = \
554 test_getopt_LDADD = \
562 test_os_network_SOURCES = \
564 test_os_network_LDADD = \
567 test_peer_SOURCES = \
570 libgnunetutil.la -lgcrypt
572 test_plugin_SOURCES = \
574 test_plugin_LDADD = \
577 test_program_SOURCES = \
579 test_program_LDADD = \
582 test_resolver_api_nc_SOURCES = \
584 test_resolver_api_nc_LDADD = \
587 test_scheduler_SOURCES = \
589 test_scheduler_LDADD = \
592 test_scheduler_delay_SOURCES = \
593 test_scheduler_delay.c
594 test_scheduler_delay_LDADD = \
597 test_service_SOURCES = \
599 test_service_LDADD = \
602 test_strings_SOURCES = \
604 test_strings_LDADD = \
607 test_strings_to_data_SOURCES = \
608 test_strings_to_data.c
609 test_strings_to_data_LDADD = \
613 test_time_SOURCES = \
618 test_speedup_SOURCES = \
620 test_speedup_LDADD = \
623 perf_crypto_hash_SOURCES = \
625 perf_crypto_hash_LDADD = \
628 perf_crypto_ecc_dlog_SOURCES = \
629 perf_crypto_ecc_dlog.c
630 perf_crypto_ecc_dlog_LDADD = \
634 perf_crypto_rsa_SOURCES = \
636 perf_crypto_rsa_LDADD = \
639 perf_crypto_symmetric_SOURCES = \
640 perf_crypto_symmetric.c
641 perf_crypto_symmetric_LDADD = \
644 perf_crypto_asymmetric_SOURCES = \
645 perf_crypto_asymmetric.c
646 perf_crypto_asymmetric_LDADD = \
649 perf_crypto_paillier_SOURCES = \
650 perf_crypto_paillier.c
651 perf_crypto_paillier_LDADD = \
655 perf_malloc_SOURCES = \
657 perf_malloc_LDADD = \
662 test_client_data.conf \
663 test_client_unix.conf \
664 test_configuration_data.conf \
665 test_program_data.conf \
666 test_resolver_api_data.conf \
667 test_service_data.conf \
668 test_speedup_data.conf