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
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 \
138 libgnunetutil_la_LIBADD = \
139 $(GCLIBADD) $(WINLIB) \
144 $(LIBIDN) $(LIBIDN2) \
150 libgnunetutil_la_LDFLAGS = \
154 libgnunetutil_taler_wallet_la_SOURCES = \
155 common_allocation.c \
159 container_multihashmap.c \
160 container_multihashmap32.c \
173 libgnunetutil_taler_wallet_la_LIBADD = \
177 libgnunetutil_taler_wallet_la_LDFLAGS = \
182 GNUNET_ECC = gnunet-ecc
183 GNUNET_SCRYPT = gnunet-scrypt
187 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
189 lib_LTLIBRARIES = libgnunetutil.la
192 gnunet-service-resolver \
209 test_common_logging_dummy
213 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
214 TESTS = $(check_PROGRAMS)
221 gnunet_timeout_SOURCES = \
224 gnunet_timeout_SOURCES = \
229 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
231 gnunet-qr: gnunet-qr.py.in Makefile
232 $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr
235 gnunet_service_resolver_SOURCES = \
236 gnunet-service-resolver.c
237 gnunet_service_resolver_LDADD = \
240 if HAVE_GETADDRINFO_A
241 gnunet_service_resolver_LDADD += -lanl
245 gnunet_resolver_SOURCES = \
247 gnunet_resolver_LDADD = \
252 gnunet_ecc_SOURCES = \
256 $(GN_LIBINTL) -lgcrypt
258 gnunet_scrypt_SOURCES = \
260 gnunet_scrypt_LDADD = \
262 $(GN_LIBINTL) -lgcrypt
265 gnunet_config_SOURCES = \
267 gnunet_config_LDADD = \
272 gnunet_uri_SOURCES = \
278 plugin_LTLIBRARIES = \
279 libgnunet_plugin_test.la
281 libgnunet_plugin_test_la_SOURCES = \
283 libgnunet_plugin_test_la_LDFLAGS = \
289 perf_crypto_ecc_dlog \
291 perf_crypto_paillier \
292 perf_crypto_symmetric \
293 perf_crypto_asymmetric \
298 # SSH_USING_TESTS = test_socks.nc
304 $(TEST_CLIENT_UNIX_NC) \
305 test_common_allocation \
307 test_common_logging \
309 test_container_bloomfilter \
311 test_container_meta_data \
312 test_container_multihashmap \
313 test_container_multihashmap32 \
314 test_container_multipeermap \
315 test_container_heap \
316 test_crypto_symmetric \
321 test_crypto_ecdh_eddsa \
322 test_crypto_ecc_dlog \
324 test_crypto_hash_context \
327 test_crypto_paillier \
339 test_resolver_api.nc \
341 test_scheduler_delay \
344 test_strings_to_data \
349 test_os_start_process \
350 test_common_logging_runtime_loglevels
353 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
354 # sequential execution order for them
355 TEST_EXTENSIONS = .nc
356 test_test_client_unix.log: test_client.log
363 test_hexcoder_SOURCES = \
365 test_hexcoder_LDADD = \
373 test_regex_SOURCES = \
378 test_os_start_process_SOURCES = \
379 test_os_start_process.c
380 test_os_start_process_LDADD = \
382 test_os_start_process_DEPENDENCIES = \
386 test_client_nc_SOURCES = \
388 test_client_nc_LDADD = \
391 test_client_unix_nc_SOURCES = \
393 test_client_unix_nc_LDADD = \
396 #test_socks_nc_SOURCES = \
398 #test_socks_nc_LDADD = \
401 test_common_allocation_SOURCES = \
402 test_common_allocation.c
403 test_common_allocation_LDADD = \
406 test_common_endian_SOURCES = \
408 test_common_endian_LDADD = \
411 test_common_logging_SOURCES = \
412 test_common_logging.c
413 test_common_logging_LDADD = \
416 test_common_logging_runtime_loglevels_SOURCES = \
417 test_common_logging_runtime_loglevels.c
418 test_common_logging_runtime_loglevels_LDADD = \
421 test_configuration_SOURCES = \
423 test_configuration_LDADD = \
426 test_container_bloomfilter_SOURCES = \
427 test_container_bloomfilter.c
428 test_container_bloomfilter_LDADD = \
431 test_container_dll_SOURCES = \
433 test_container_dll_LDADD = \
436 test_container_meta_data_SOURCES = \
437 test_container_meta_data.c
438 test_container_meta_data_LDADD = \
441 test_container_multihashmap_SOURCES = \
442 test_container_multihashmap.c
443 test_container_multihashmap_LDADD = \
446 test_container_multihashmap32_SOURCES = \
447 test_container_multihashmap32.c
448 test_container_multihashmap32_LDADD = \
451 test_container_multipeermap_SOURCES = \
452 test_container_multipeermap.c
453 test_container_multipeermap_LDADD = \
456 test_container_heap_SOURCES = \
457 test_container_heap.c
458 test_container_heap_LDADD = \
461 test_crypto_symmetric_SOURCES = \
462 test_crypto_symmetric.c
463 test_crypto_symmetric_LDADD = \
466 test_crypto_crc_SOURCES = \
468 test_crypto_crc_LDADD = \
471 test_crypto_ecdsa_SOURCES = \
473 test_crypto_ecdsa_LDADD = \
477 test_crypto_eddsa_SOURCES = \
479 test_crypto_eddsa_LDADD = \
483 test_crypto_ecc_dlog_SOURCES = \
484 test_crypto_ecc_dlog.c
485 test_crypto_ecc_dlog_LDADD = \
489 test_crypto_ecdhe_SOURCES = \
491 test_crypto_ecdhe_LDADD = \
495 test_crypto_ecdh_eddsa_SOURCES = \
496 test_crypto_ecdh_eddsa.c
497 test_crypto_ecdh_eddsa_LDADD = \
501 test_crypto_hash_SOURCES = \
503 test_crypto_hash_LDADD = \
506 test_crypto_hash_context_SOURCES = \
507 test_crypto_hash_context.c
508 test_crypto_hash_context_LDADD = \
511 test_crypto_hkdf_SOURCES = \
513 test_crypto_hkdf_LDADD = \
516 test_crypto_kdf_SOURCES = \
518 test_crypto_kdf_LDADD = \
519 libgnunetutil.la -lgcrypt
521 test_crypto_paillier_SOURCES = \
522 test_crypto_paillier.c
523 test_crypto_paillier_LDADD = \
527 test_crypto_random_SOURCES = \
529 test_crypto_random_LDADD = \
532 test_crypto_rsa_SOURCES = \
534 test_crypto_rsa_LDADD = \
535 libgnunetutil.la -lgcrypt
537 test_disk_SOURCES = \
542 test_getopt_SOURCES = \
544 test_getopt_LDADD = \
552 test_os_network_SOURCES = \
554 test_os_network_LDADD = \
557 test_peer_SOURCES = \
560 libgnunetutil.la -lgcrypt
562 test_plugin_SOURCES = \
564 test_plugin_LDADD = \
567 test_program_SOURCES = \
569 test_program_LDADD = \
572 test_resolver_api_nc_SOURCES = \
574 test_resolver_api_nc_LDADD = \
577 test_scheduler_SOURCES = \
579 test_scheduler_LDADD = \
582 test_scheduler_delay_SOURCES = \
583 test_scheduler_delay.c
584 test_scheduler_delay_LDADD = \
587 test_service_SOURCES = \
589 test_service_LDADD = \
592 test_strings_SOURCES = \
594 test_strings_LDADD = \
597 test_strings_to_data_SOURCES = \
598 test_strings_to_data.c
599 test_strings_to_data_LDADD = \
603 test_time_SOURCES = \
608 test_speedup_SOURCES = \
610 test_speedup_LDADD = \
613 perf_crypto_hash_SOURCES = \
615 perf_crypto_hash_LDADD = \
618 perf_crypto_ecc_dlog_SOURCES = \
619 perf_crypto_ecc_dlog.c
620 perf_crypto_ecc_dlog_LDADD = \
624 perf_crypto_rsa_SOURCES = \
626 perf_crypto_rsa_LDADD = \
629 perf_crypto_symmetric_SOURCES = \
630 perf_crypto_symmetric.c
631 perf_crypto_symmetric_LDADD = \
634 perf_crypto_asymmetric_SOURCES = \
635 perf_crypto_asymmetric.c
636 perf_crypto_asymmetric_LDADD = \
639 perf_crypto_paillier_SOURCES = \
640 perf_crypto_paillier.c
641 perf_crypto_paillier_LDADD = \
645 perf_malloc_SOURCES = \
647 perf_malloc_LDADD = \
652 test_client_data.conf \
653 test_client_unix.conf \
654 test_configuration_data.conf \
655 test_program_data.conf \
656 test_resolver_api_data.conf \
657 test_service_data.conf \
658 test_speedup_data.conf \