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_multiuuidmap.c \
82 container_multipeermap.c \
83 container_multihashmap32.c \
117 resolver_api.c resolver.h \
124 speedup.c speedup.h \
149 libgnunetutil_la_LIBADD = \
150 $(GCLIBADD) $(WINLIB) \
156 $(LIBIDN) $(LIBIDN2) \
162 libgnunetutil_la_LDFLAGS = \
166 libgnunetutil_taler_wallet_la_SOURCES = \
167 common_allocation.c \
171 container_multihashmap.c \
172 container_multihashmap32.c \
185 libgnunetutil_taler_wallet_la_LIBADD = \
189 libgnunetutil_taler_wallet_la_LDFLAGS = \
194 GNUNET_ECC = gnunet-ecc
195 GNUNET_SCRYPT = gnunet-scrypt
199 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
201 lib_LTLIBRARIES = libgnunetutil.la
204 gnunet-service-resolver \
215 bin_PROGRAMS += gnunet-qr
221 test_common_logging_dummy
225 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
226 TESTS = $(check_PROGRAMS)
233 gnunet_timeout_SOURCES = \
236 gnunet_timeout_SOURCES = \
240 gnunet_service_resolver_SOURCES = \
241 gnunet-service-resolver.c
242 gnunet_service_resolver_LDADD = \
245 if HAVE_GETADDRINFO_A
246 gnunet_service_resolver_LDADD += -lanl
250 gnunet_resolver_SOURCES = \
252 gnunet_resolver_LDADD = \
257 gnunet_ecc_SOURCES = \
261 $(GN_LIBINTL) -lgcrypt
263 gnunet_scrypt_SOURCES = \
265 gnunet_scrypt_LDADD = \
267 $(GN_LIBINTL) -lgcrypt
270 gnunet_config_SOURCES = \
272 gnunet_config_LDADD = \
276 gnunet_uri_SOURCES = \
283 gnunet_qr_SOURCES = \
291 plugin_LTLIBRARIES = \
292 libgnunet_plugin_test.la
294 libgnunet_plugin_test_la_SOURCES = \
296 libgnunet_plugin_test_la_LDFLAGS = \
302 perf_crypto_ecc_dlog \
304 perf_crypto_paillier \
305 perf_crypto_symmetric \
306 perf_crypto_asymmetric \
311 # SSH_USING_TESTS = test_socks.nc
317 $(TEST_CLIENT_UNIX_NC) \
318 test_common_allocation \
320 test_common_logging \
322 test_container_bloomfilter \
324 test_container_meta_data \
325 test_container_multihashmap \
326 test_container_multihashmap32 \
327 test_container_multipeermap \
328 test_container_heap \
329 test_crypto_symmetric \
334 test_crypto_ecdh_eddsa \
335 test_crypto_ecc_dlog \
337 test_crypto_hash_context \
340 test_crypto_paillier \
352 test_resolver_api.nc \
354 test_scheduler_delay \
357 test_strings_to_data \
362 test_os_start_process \
363 test_common_logging_runtime_loglevels
366 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
367 # sequential execution order for them
368 TEST_EXTENSIONS = .nc
369 test_test_client_unix.log: test_client.log
376 test_hexcoder_SOURCES = \
378 test_hexcoder_LDADD = \
386 test_regex_SOURCES = \
391 test_os_start_process_SOURCES = \
392 test_os_start_process.c
393 test_os_start_process_LDADD = \
395 test_os_start_process_DEPENDENCIES = \
399 test_client_nc_SOURCES = \
401 test_client_nc_LDADD = \
404 test_client_unix_nc_SOURCES = \
406 test_client_unix_nc_LDADD = \
409 #test_socks_nc_SOURCES = \
411 #test_socks_nc_LDADD = \
414 test_common_allocation_SOURCES = \
415 test_common_allocation.c
416 test_common_allocation_LDADD = \
419 test_common_endian_SOURCES = \
421 test_common_endian_LDADD = \
424 test_common_logging_SOURCES = \
425 test_common_logging.c
426 test_common_logging_LDADD = \
429 test_common_logging_runtime_loglevels_SOURCES = \
430 test_common_logging_runtime_loglevels.c
431 test_common_logging_runtime_loglevels_LDADD = \
434 test_configuration_SOURCES = \
436 test_configuration_LDADD = \
439 test_container_bloomfilter_SOURCES = \
440 test_container_bloomfilter.c
441 test_container_bloomfilter_LDADD = \
444 test_container_dll_SOURCES = \
446 test_container_dll_LDADD = \
449 test_container_meta_data_SOURCES = \
450 test_container_meta_data.c
451 test_container_meta_data_LDADD = \
454 test_container_multihashmap_SOURCES = \
455 test_container_multihashmap.c
456 test_container_multihashmap_LDADD = \
459 test_container_multihashmap32_SOURCES = \
460 test_container_multihashmap32.c
461 test_container_multihashmap32_LDADD = \
464 test_container_multipeermap_SOURCES = \
465 test_container_multipeermap.c
466 test_container_multipeermap_LDADD = \
469 test_container_heap_SOURCES = \
470 test_container_heap.c
471 test_container_heap_LDADD = \
474 test_crypto_symmetric_SOURCES = \
475 test_crypto_symmetric.c
476 test_crypto_symmetric_LDADD = \
479 test_crypto_crc_SOURCES = \
481 test_crypto_crc_LDADD = \
484 test_crypto_ecdsa_SOURCES = \
486 test_crypto_ecdsa_LDADD = \
490 test_crypto_eddsa_SOURCES = \
492 test_crypto_eddsa_LDADD = \
496 test_crypto_ecc_dlog_SOURCES = \
497 test_crypto_ecc_dlog.c
498 test_crypto_ecc_dlog_LDADD = \
502 test_crypto_ecdhe_SOURCES = \
504 test_crypto_ecdhe_LDADD = \
508 test_crypto_ecdh_eddsa_SOURCES = \
509 test_crypto_ecdh_eddsa.c
510 test_crypto_ecdh_eddsa_LDADD = \
514 test_crypto_hash_SOURCES = \
516 test_crypto_hash_LDADD = \
519 test_crypto_hash_context_SOURCES = \
520 test_crypto_hash_context.c
521 test_crypto_hash_context_LDADD = \
524 test_crypto_hkdf_SOURCES = \
526 test_crypto_hkdf_LDADD = \
529 test_crypto_kdf_SOURCES = \
531 test_crypto_kdf_LDADD = \
532 libgnunetutil.la -lgcrypt
534 test_crypto_paillier_SOURCES = \
535 test_crypto_paillier.c
536 test_crypto_paillier_LDADD = \
540 test_crypto_random_SOURCES = \
542 test_crypto_random_LDADD = \
545 test_crypto_rsa_SOURCES = \
547 test_crypto_rsa_LDADD = \
548 libgnunetutil.la -lgcrypt
550 test_disk_SOURCES = \
555 test_getopt_SOURCES = \
557 test_getopt_LDADD = \
565 test_os_network_SOURCES = \
567 test_os_network_LDADD = \
570 test_peer_SOURCES = \
573 libgnunetutil.la -lgcrypt
575 test_plugin_SOURCES = \
577 test_plugin_LDADD = \
580 test_program_SOURCES = \
582 test_program_LDADD = \
585 test_resolver_api_nc_SOURCES = \
587 test_resolver_api_nc_LDADD = \
590 test_scheduler_SOURCES = \
592 test_scheduler_LDADD = \
595 test_scheduler_delay_SOURCES = \
596 test_scheduler_delay.c
597 test_scheduler_delay_LDADD = \
600 test_service_SOURCES = \
602 test_service_LDADD = \
605 test_strings_SOURCES = \
607 test_strings_LDADD = \
610 test_strings_to_data_SOURCES = \
611 test_strings_to_data.c
612 test_strings_to_data_LDADD = \
616 test_time_SOURCES = \
621 test_speedup_SOURCES = \
623 test_speedup_LDADD = \
626 perf_crypto_hash_SOURCES = \
628 perf_crypto_hash_LDADD = \
631 perf_crypto_ecc_dlog_SOURCES = \
632 perf_crypto_ecc_dlog.c
633 perf_crypto_ecc_dlog_LDADD = \
637 perf_crypto_rsa_SOURCES = \
639 perf_crypto_rsa_LDADD = \
642 perf_crypto_symmetric_SOURCES = \
643 perf_crypto_symmetric.c
644 perf_crypto_symmetric_LDADD = \
647 perf_crypto_asymmetric_SOURCES = \
648 perf_crypto_asymmetric.c
649 perf_crypto_asymmetric_LDADD = \
652 perf_crypto_paillier_SOURCES = \
653 perf_crypto_paillier.c
654 perf_crypto_paillier_LDADD = \
658 perf_malloc_SOURCES = \
660 perf_malloc_LDADD = \
665 test_client_data.conf \
666 test_client_unix.conf \
667 test_configuration_data.conf \
668 test_program_data.conf \
669 test_resolver_api_data.conf \
670 test_service_data.conf \
671 test_speedup_data.conf