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 \
207 do_subst = $(SED) -e 's,[@]PREFIX[@],$(prefix),g'
209 gnunet-qr: gnunet-qr.in Makefile
210 $(do_subst) < $(srcdir)/gnunet-qr.in > gnunet-qr
213 CLEANFILES = gnunet-qr
231 test_common_logging_dummy
235 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
236 TESTS = $(check_PROGRAMS)
243 gnunet_timeout_SOURCES = \
246 gnunet_timeout_SOURCES = \
250 gnunet_service_resolver_SOURCES = \
251 gnunet-service-resolver.c
252 gnunet_service_resolver_LDADD = \
255 if HAVE_GETADDRINFO_A
256 gnunet_service_resolver_LDADD += -lanl
260 gnunet_resolver_SOURCES = \
262 gnunet_resolver_LDADD = \
267 gnunet_ecc_SOURCES = \
271 $(GN_LIBINTL) -lgcrypt
273 gnunet_scrypt_SOURCES = \
275 gnunet_scrypt_LDADD = \
277 $(GN_LIBINTL) -lgcrypt
280 gnunet_config_SOURCES = \
282 gnunet_config_LDADD = \
287 gnunet_uri_SOURCES = \
293 plugin_LTLIBRARIES = \
294 libgnunet_plugin_test.la
296 libgnunet_plugin_test_la_SOURCES = \
298 libgnunet_plugin_test_la_LDFLAGS = \
304 perf_crypto_ecc_dlog \
306 perf_crypto_paillier \
307 perf_crypto_symmetric \
308 perf_crypto_asymmetric \
313 # SSH_USING_TESTS = test_socks.nc
319 $(TEST_CLIENT_UNIX_NC) \
320 test_common_allocation \
322 test_common_logging \
324 test_container_bloomfilter \
326 test_container_meta_data \
327 test_container_multihashmap \
328 test_container_multihashmap32 \
329 test_container_multipeermap \
330 test_container_heap \
331 test_crypto_symmetric \
336 test_crypto_ecdh_eddsa \
337 test_crypto_ecc_dlog \
339 test_crypto_hash_context \
342 test_crypto_paillier \
354 test_resolver_api.nc \
356 test_scheduler_delay \
359 test_strings_to_data \
364 test_os_start_process \
365 test_common_logging_runtime_loglevels
368 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
369 # sequential execution order for them
370 TEST_EXTENSIONS = .nc
371 test_test_client_unix.log: test_client.log
378 test_hexcoder_SOURCES = \
380 test_hexcoder_LDADD = \
388 test_regex_SOURCES = \
393 test_os_start_process_SOURCES = \
394 test_os_start_process.c
395 test_os_start_process_LDADD = \
397 test_os_start_process_DEPENDENCIES = \
401 test_client_nc_SOURCES = \
403 test_client_nc_LDADD = \
406 test_client_unix_nc_SOURCES = \
408 test_client_unix_nc_LDADD = \
411 #test_socks_nc_SOURCES = \
413 #test_socks_nc_LDADD = \
416 test_common_allocation_SOURCES = \
417 test_common_allocation.c
418 test_common_allocation_LDADD = \
421 test_common_endian_SOURCES = \
423 test_common_endian_LDADD = \
426 test_common_logging_SOURCES = \
427 test_common_logging.c
428 test_common_logging_LDADD = \
431 test_common_logging_runtime_loglevels_SOURCES = \
432 test_common_logging_runtime_loglevels.c
433 test_common_logging_runtime_loglevels_LDADD = \
436 test_configuration_SOURCES = \
438 test_configuration_LDADD = \
441 test_container_bloomfilter_SOURCES = \
442 test_container_bloomfilter.c
443 test_container_bloomfilter_LDADD = \
446 test_container_dll_SOURCES = \
448 test_container_dll_LDADD = \
451 test_container_meta_data_SOURCES = \
452 test_container_meta_data.c
453 test_container_meta_data_LDADD = \
456 test_container_multihashmap_SOURCES = \
457 test_container_multihashmap.c
458 test_container_multihashmap_LDADD = \
461 test_container_multihashmap32_SOURCES = \
462 test_container_multihashmap32.c
463 test_container_multihashmap32_LDADD = \
466 test_container_multipeermap_SOURCES = \
467 test_container_multipeermap.c
468 test_container_multipeermap_LDADD = \
471 test_container_heap_SOURCES = \
472 test_container_heap.c
473 test_container_heap_LDADD = \
476 test_crypto_symmetric_SOURCES = \
477 test_crypto_symmetric.c
478 test_crypto_symmetric_LDADD = \
481 test_crypto_crc_SOURCES = \
483 test_crypto_crc_LDADD = \
486 test_crypto_ecdsa_SOURCES = \
488 test_crypto_ecdsa_LDADD = \
492 test_crypto_eddsa_SOURCES = \
494 test_crypto_eddsa_LDADD = \
498 test_crypto_ecc_dlog_SOURCES = \
499 test_crypto_ecc_dlog.c
500 test_crypto_ecc_dlog_LDADD = \
504 test_crypto_ecdhe_SOURCES = \
506 test_crypto_ecdhe_LDADD = \
510 test_crypto_ecdh_eddsa_SOURCES = \
511 test_crypto_ecdh_eddsa.c
512 test_crypto_ecdh_eddsa_LDADD = \
516 test_crypto_hash_SOURCES = \
518 test_crypto_hash_LDADD = \
521 test_crypto_hash_context_SOURCES = \
522 test_crypto_hash_context.c
523 test_crypto_hash_context_LDADD = \
526 test_crypto_hkdf_SOURCES = \
528 test_crypto_hkdf_LDADD = \
531 test_crypto_kdf_SOURCES = \
533 test_crypto_kdf_LDADD = \
534 libgnunetutil.la -lgcrypt
536 test_crypto_paillier_SOURCES = \
537 test_crypto_paillier.c
538 test_crypto_paillier_LDADD = \
542 test_crypto_random_SOURCES = \
544 test_crypto_random_LDADD = \
547 test_crypto_rsa_SOURCES = \
549 test_crypto_rsa_LDADD = \
550 libgnunetutil.la -lgcrypt
552 test_disk_SOURCES = \
557 test_getopt_SOURCES = \
559 test_getopt_LDADD = \
567 test_os_network_SOURCES = \
569 test_os_network_LDADD = \
572 test_peer_SOURCES = \
575 libgnunetutil.la -lgcrypt
577 test_plugin_SOURCES = \
579 test_plugin_LDADD = \
582 test_program_SOURCES = \
584 test_program_LDADD = \
587 test_resolver_api_nc_SOURCES = \
589 test_resolver_api_nc_LDADD = \
592 test_scheduler_SOURCES = \
594 test_scheduler_LDADD = \
597 test_scheduler_delay_SOURCES = \
598 test_scheduler_delay.c
599 test_scheduler_delay_LDADD = \
602 test_service_SOURCES = \
604 test_service_LDADD = \
607 test_strings_SOURCES = \
609 test_strings_LDADD = \
612 test_strings_to_data_SOURCES = \
613 test_strings_to_data.c
614 test_strings_to_data_LDADD = \
618 test_time_SOURCES = \
623 test_speedup_SOURCES = \
625 test_speedup_LDADD = \
628 perf_crypto_hash_SOURCES = \
630 perf_crypto_hash_LDADD = \
633 perf_crypto_ecc_dlog_SOURCES = \
634 perf_crypto_ecc_dlog.c
635 perf_crypto_ecc_dlog_LDADD = \
639 perf_crypto_rsa_SOURCES = \
641 perf_crypto_rsa_LDADD = \
644 perf_crypto_symmetric_SOURCES = \
645 perf_crypto_symmetric.c
646 perf_crypto_symmetric_LDADD = \
649 perf_crypto_asymmetric_SOURCES = \
650 perf_crypto_asymmetric.c
651 perf_crypto_asymmetric_LDADD = \
654 perf_crypto_paillier_SOURCES = \
655 perf_crypto_paillier.c
656 perf_crypto_paillier_LDADD = \
660 perf_malloc_SOURCES = \
662 perf_malloc_LDADD = \
667 test_client_data.conf \
668 test_client_unix.conf \
669 test_configuration_data.conf \
670 test_program_data.conf \
671 test_resolver_api_data.conf \
672 test_service_data.conf \
673 test_speedup_data.conf \