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 \
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 # This is horrible, but compared to the alternatives and the solution
240 # which preceded this it is a good compromise and good enough for one
241 # file. Everyone else is invited to patch it locally.
242 # In case someone reads this file and is wondering about the
243 # assignment operator below, it's explained here:
244 # https://lists.gnu.org/archive/html/make-w32/2013-10/msg00021.html
248 do_subst = $(SED) -e 's,[@]ENV[@],${xENV},g'
250 gnunet-qr: gnunet-qr.py.in Makefile
251 $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr
254 gnunet_service_resolver_SOURCES = \
255 gnunet-service-resolver.c
256 gnunet_service_resolver_LDADD = \
259 if HAVE_GETADDRINFO_A
260 gnunet_service_resolver_LDADD += -lanl
264 gnunet_resolver_SOURCES = \
266 gnunet_resolver_LDADD = \
271 gnunet_ecc_SOURCES = \
275 $(GN_LIBINTL) -lgcrypt
277 gnunet_scrypt_SOURCES = \
279 gnunet_scrypt_LDADD = \
281 $(GN_LIBINTL) -lgcrypt
284 gnunet_config_SOURCES = \
286 gnunet_config_LDADD = \
291 gnunet_uri_SOURCES = \
297 plugin_LTLIBRARIES = \
298 libgnunet_plugin_test.la
300 libgnunet_plugin_test_la_SOURCES = \
302 libgnunet_plugin_test_la_LDFLAGS = \
308 perf_crypto_ecc_dlog \
310 perf_crypto_paillier \
311 perf_crypto_symmetric \
312 perf_crypto_asymmetric \
317 # SSH_USING_TESTS = test_socks.nc
323 $(TEST_CLIENT_UNIX_NC) \
324 test_common_allocation \
326 test_common_logging \
328 test_container_bloomfilter \
330 test_container_meta_data \
331 test_container_multihashmap \
332 test_container_multihashmap32 \
333 test_container_multipeermap \
334 test_container_heap \
335 test_crypto_symmetric \
340 test_crypto_ecdh_eddsa \
341 test_crypto_ecc_dlog \
343 test_crypto_hash_context \
346 test_crypto_paillier \
358 test_resolver_api.nc \
360 test_scheduler_delay \
363 test_strings_to_data \
368 test_os_start_process \
369 test_common_logging_runtime_loglevels
372 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
373 # sequential execution order for them
374 TEST_EXTENSIONS = .nc
375 test_test_client_unix.log: test_client.log
382 test_hexcoder_SOURCES = \
384 test_hexcoder_LDADD = \
392 test_regex_SOURCES = \
397 test_os_start_process_SOURCES = \
398 test_os_start_process.c
399 test_os_start_process_LDADD = \
401 test_os_start_process_DEPENDENCIES = \
405 test_client_nc_SOURCES = \
407 test_client_nc_LDADD = \
410 test_client_unix_nc_SOURCES = \
412 test_client_unix_nc_LDADD = \
415 #test_socks_nc_SOURCES = \
417 #test_socks_nc_LDADD = \
420 test_common_allocation_SOURCES = \
421 test_common_allocation.c
422 test_common_allocation_LDADD = \
425 test_common_endian_SOURCES = \
427 test_common_endian_LDADD = \
430 test_common_logging_SOURCES = \
431 test_common_logging.c
432 test_common_logging_LDADD = \
435 test_common_logging_runtime_loglevels_SOURCES = \
436 test_common_logging_runtime_loglevels.c
437 test_common_logging_runtime_loglevels_LDADD = \
440 test_configuration_SOURCES = \
442 test_configuration_LDADD = \
445 test_container_bloomfilter_SOURCES = \
446 test_container_bloomfilter.c
447 test_container_bloomfilter_LDADD = \
450 test_container_dll_SOURCES = \
452 test_container_dll_LDADD = \
455 test_container_meta_data_SOURCES = \
456 test_container_meta_data.c
457 test_container_meta_data_LDADD = \
460 test_container_multihashmap_SOURCES = \
461 test_container_multihashmap.c
462 test_container_multihashmap_LDADD = \
465 test_container_multihashmap32_SOURCES = \
466 test_container_multihashmap32.c
467 test_container_multihashmap32_LDADD = \
470 test_container_multipeermap_SOURCES = \
471 test_container_multipeermap.c
472 test_container_multipeermap_LDADD = \
475 test_container_heap_SOURCES = \
476 test_container_heap.c
477 test_container_heap_LDADD = \
480 test_crypto_symmetric_SOURCES = \
481 test_crypto_symmetric.c
482 test_crypto_symmetric_LDADD = \
485 test_crypto_crc_SOURCES = \
487 test_crypto_crc_LDADD = \
490 test_crypto_ecdsa_SOURCES = \
492 test_crypto_ecdsa_LDADD = \
496 test_crypto_eddsa_SOURCES = \
498 test_crypto_eddsa_LDADD = \
502 test_crypto_ecc_dlog_SOURCES = \
503 test_crypto_ecc_dlog.c
504 test_crypto_ecc_dlog_LDADD = \
508 test_crypto_ecdhe_SOURCES = \
510 test_crypto_ecdhe_LDADD = \
514 test_crypto_ecdh_eddsa_SOURCES = \
515 test_crypto_ecdh_eddsa.c
516 test_crypto_ecdh_eddsa_LDADD = \
520 test_crypto_hash_SOURCES = \
522 test_crypto_hash_LDADD = \
525 test_crypto_hash_context_SOURCES = \
526 test_crypto_hash_context.c
527 test_crypto_hash_context_LDADD = \
530 test_crypto_hkdf_SOURCES = \
532 test_crypto_hkdf_LDADD = \
535 test_crypto_kdf_SOURCES = \
537 test_crypto_kdf_LDADD = \
538 libgnunetutil.la -lgcrypt
540 test_crypto_paillier_SOURCES = \
541 test_crypto_paillier.c
542 test_crypto_paillier_LDADD = \
546 test_crypto_random_SOURCES = \
548 test_crypto_random_LDADD = \
551 test_crypto_rsa_SOURCES = \
553 test_crypto_rsa_LDADD = \
554 libgnunetutil.la -lgcrypt
556 test_disk_SOURCES = \
561 test_getopt_SOURCES = \
563 test_getopt_LDADD = \
571 test_os_network_SOURCES = \
573 test_os_network_LDADD = \
576 test_peer_SOURCES = \
579 libgnunetutil.la -lgcrypt
581 test_plugin_SOURCES = \
583 test_plugin_LDADD = \
586 test_program_SOURCES = \
588 test_program_LDADD = \
591 test_resolver_api_nc_SOURCES = \
593 test_resolver_api_nc_LDADD = \
596 test_scheduler_SOURCES = \
598 test_scheduler_LDADD = \
601 test_scheduler_delay_SOURCES = \
602 test_scheduler_delay.c
603 test_scheduler_delay_LDADD = \
606 test_service_SOURCES = \
608 test_service_LDADD = \
611 test_strings_SOURCES = \
613 test_strings_LDADD = \
616 test_strings_to_data_SOURCES = \
617 test_strings_to_data.c
618 test_strings_to_data_LDADD = \
622 test_time_SOURCES = \
627 test_speedup_SOURCES = \
629 test_speedup_LDADD = \
632 perf_crypto_hash_SOURCES = \
634 perf_crypto_hash_LDADD = \
637 perf_crypto_ecc_dlog_SOURCES = \
638 perf_crypto_ecc_dlog.c
639 perf_crypto_ecc_dlog_LDADD = \
643 perf_crypto_rsa_SOURCES = \
645 perf_crypto_rsa_LDADD = \
648 perf_crypto_symmetric_SOURCES = \
649 perf_crypto_symmetric.c
650 perf_crypto_symmetric_LDADD = \
653 perf_crypto_asymmetric_SOURCES = \
654 perf_crypto_asymmetric.c
655 perf_crypto_asymmetric_LDADD = \
658 perf_crypto_paillier_SOURCES = \
659 perf_crypto_paillier.c
660 perf_crypto_paillier_LDADD = \
664 perf_malloc_SOURCES = \
666 perf_malloc_LDADD = \
671 test_client_data.conf \
672 test_client_unix.conf \
673 test_configuration_data.conf \
674 test_program_data.conf \
675 test_resolver_api_data.conf \
676 test_service_data.conf \
677 test_speedup_data.conf \