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
50 REST_PLUGIN = libgnunet_plugin_rest_copying.la
55 libgnunet_plugin_rest_copying_la_SOURCES = \
57 libgnunet_plugin_rest_copying_la_LIBADD = \
58 $(top_builddir)/src/rest/libgnunetrest.la \
59 libgnunetutil.la $(XLIBS) \
60 $(LTLIBINTL) -lmicrohttpd
61 libgnunet_plugin_rest_copying_la_LDFLAGS = \
65 w32cat_SOURCES = w32cat.c
67 gnunet_helper_w32_console_SOURCES = \
68 gnunet-helper-w32-console.c \
69 gnunet-helper-w32-console.h
70 gnunet_helper_w32_console_LDADD = \
73 gnunet_config_diff_SOURCES = \
75 gnunet_config_diff_LDADD = \
78 test_common_logging_dummy_SOURCES = \
79 test_common_logging_dummy.c
80 test_common_logging_dummy_LDADD = \
83 libgnunetutil_la_SOURCES = \
92 configuration_loader.c \
93 container_bloomfilter.c \
95 container_meta_data.c \
96 container_multihashmap.c \
97 container_multishortmap.c \
98 container_multipeermap.c \
99 container_multihashmap32.c \
133 resolver_api.c resolver.h \
140 speedup.c speedup.h \
165 libgnunetutil_la_LIBADD = \
166 $(GCLIBADD) $(WINLIB) \
172 $(LIBIDN) $(LIBIDN2) \
178 libgnunetutil_la_LDFLAGS = \
182 libgnunetutil_taler_wallet_la_SOURCES = \
183 common_allocation.c \
187 container_multihashmap.c \
188 container_multihashmap32.c \
201 libgnunetutil_taler_wallet_la_LIBADD = \
205 libgnunetutil_taler_wallet_la_LDFLAGS = \
210 GNUNET_ECC = gnunet-ecc
211 GNUNET_SCRYPT = gnunet-scrypt
215 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
217 lib_LTLIBRARIES = libgnunetutil.la
220 gnunet-service-resolver \
224 do_subst = $(SED) -e 's,[@]PREFIX[@],$(prefix),g'
226 gnunet-qr: gnunet-qr.in Makefile
227 $(do_subst) < $(srcdir)/gnunet-qr.in > gnunet-qr
230 CLEANFILES = gnunet-qr
248 test_common_logging_dummy
252 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
253 TESTS = $(check_PROGRAMS)
260 gnunet_timeout_SOURCES = \
263 gnunet_timeout_SOURCES = \
267 gnunet_service_resolver_SOURCES = \
268 gnunet-service-resolver.c
269 gnunet_service_resolver_LDADD = \
272 if HAVE_GETADDRINFO_A
273 gnunet_service_resolver_LDADD += -lanl
277 gnunet_resolver_SOURCES = \
279 gnunet_resolver_LDADD = \
284 gnunet_ecc_SOURCES = \
288 $(GN_LIBINTL) -lgcrypt
290 gnunet_scrypt_SOURCES = \
292 gnunet_scrypt_LDADD = \
294 $(GN_LIBINTL) -lgcrypt
297 gnunet_config_SOURCES = \
299 gnunet_config_LDADD = \
304 gnunet_uri_SOURCES = \
310 plugin_LTLIBRARIES = \
311 libgnunet_plugin_test.la \
314 libgnunet_plugin_test_la_SOURCES = \
316 libgnunet_plugin_test_la_LDFLAGS = \
322 perf_crypto_ecc_dlog \
324 perf_crypto_paillier \
325 perf_crypto_symmetric \
326 perf_crypto_asymmetric \
331 # SSH_USING_TESTS = test_socks.nc
337 $(TEST_CLIENT_UNIX_NC) \
338 test_common_allocation \
340 test_common_logging \
342 test_container_bloomfilter \
344 test_container_meta_data \
345 test_container_multihashmap \
346 test_container_multihashmap32 \
347 test_container_multipeermap \
348 test_container_heap \
349 test_crypto_symmetric \
354 test_crypto_ecdh_eddsa \
355 test_crypto_ecc_dlog \
357 test_crypto_hash_context \
360 test_crypto_paillier \
372 test_resolver_api.nc \
374 test_scheduler_delay \
377 test_strings_to_data \
382 test_os_start_process \
383 test_common_logging_runtime_loglevels
386 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
387 # sequential execution order for them
388 TEST_EXTENSIONS = .nc
389 test_test_client_unix.log: test_client.log
396 test_hexcoder_SOURCES = \
398 test_hexcoder_LDADD = \
406 test_regex_SOURCES = \
411 test_os_start_process_SOURCES = \
412 test_os_start_process.c
413 test_os_start_process_LDADD = \
415 test_os_start_process_DEPENDENCIES = \
419 test_client_nc_SOURCES = \
421 test_client_nc_LDADD = \
424 test_client_unix_nc_SOURCES = \
426 test_client_unix_nc_LDADD = \
429 #test_socks_nc_SOURCES = \
431 #test_socks_nc_LDADD = \
434 test_common_allocation_SOURCES = \
435 test_common_allocation.c
436 test_common_allocation_LDADD = \
439 test_common_endian_SOURCES = \
441 test_common_endian_LDADD = \
444 test_common_logging_SOURCES = \
445 test_common_logging.c
446 test_common_logging_LDADD = \
449 test_common_logging_runtime_loglevels_SOURCES = \
450 test_common_logging_runtime_loglevels.c
451 test_common_logging_runtime_loglevels_LDADD = \
454 test_configuration_SOURCES = \
456 test_configuration_LDADD = \
459 test_container_bloomfilter_SOURCES = \
460 test_container_bloomfilter.c
461 test_container_bloomfilter_LDADD = \
464 test_container_dll_SOURCES = \
466 test_container_dll_LDADD = \
469 test_container_meta_data_SOURCES = \
470 test_container_meta_data.c
471 test_container_meta_data_LDADD = \
474 test_container_multihashmap_SOURCES = \
475 test_container_multihashmap.c
476 test_container_multihashmap_LDADD = \
479 test_container_multihashmap32_SOURCES = \
480 test_container_multihashmap32.c
481 test_container_multihashmap32_LDADD = \
484 test_container_multipeermap_SOURCES = \
485 test_container_multipeermap.c
486 test_container_multipeermap_LDADD = \
489 test_container_heap_SOURCES = \
490 test_container_heap.c
491 test_container_heap_LDADD = \
494 test_crypto_symmetric_SOURCES = \
495 test_crypto_symmetric.c
496 test_crypto_symmetric_LDADD = \
499 test_crypto_crc_SOURCES = \
501 test_crypto_crc_LDADD = \
504 test_crypto_ecdsa_SOURCES = \
506 test_crypto_ecdsa_LDADD = \
510 test_crypto_eddsa_SOURCES = \
512 test_crypto_eddsa_LDADD = \
516 test_crypto_ecc_dlog_SOURCES = \
517 test_crypto_ecc_dlog.c
518 test_crypto_ecc_dlog_LDADD = \
522 test_crypto_ecdhe_SOURCES = \
524 test_crypto_ecdhe_LDADD = \
528 test_crypto_ecdh_eddsa_SOURCES = \
529 test_crypto_ecdh_eddsa.c
530 test_crypto_ecdh_eddsa_LDADD = \
534 test_crypto_hash_SOURCES = \
536 test_crypto_hash_LDADD = \
539 test_crypto_hash_context_SOURCES = \
540 test_crypto_hash_context.c
541 test_crypto_hash_context_LDADD = \
544 test_crypto_hkdf_SOURCES = \
546 test_crypto_hkdf_LDADD = \
549 test_crypto_kdf_SOURCES = \
551 test_crypto_kdf_LDADD = \
552 libgnunetutil.la -lgcrypt
554 test_crypto_paillier_SOURCES = \
555 test_crypto_paillier.c
556 test_crypto_paillier_LDADD = \
560 test_crypto_random_SOURCES = \
562 test_crypto_random_LDADD = \
565 test_crypto_rsa_SOURCES = \
567 test_crypto_rsa_LDADD = \
568 libgnunetutil.la -lgcrypt
570 test_disk_SOURCES = \
575 test_getopt_SOURCES = \
577 test_getopt_LDADD = \
585 test_os_network_SOURCES = \
587 test_os_network_LDADD = \
590 test_peer_SOURCES = \
593 libgnunetutil.la -lgcrypt
595 test_plugin_SOURCES = \
597 test_plugin_LDADD = \
600 test_program_SOURCES = \
602 test_program_LDADD = \
605 test_resolver_api_nc_SOURCES = \
607 test_resolver_api_nc_LDADD = \
610 test_scheduler_SOURCES = \
612 test_scheduler_LDADD = \
615 test_scheduler_delay_SOURCES = \
616 test_scheduler_delay.c
617 test_scheduler_delay_LDADD = \
620 test_service_SOURCES = \
622 test_service_LDADD = \
625 test_strings_SOURCES = \
627 test_strings_LDADD = \
630 test_strings_to_data_SOURCES = \
631 test_strings_to_data.c
632 test_strings_to_data_LDADD = \
636 test_time_SOURCES = \
641 test_speedup_SOURCES = \
643 test_speedup_LDADD = \
646 perf_crypto_hash_SOURCES = \
648 perf_crypto_hash_LDADD = \
651 perf_crypto_ecc_dlog_SOURCES = \
652 perf_crypto_ecc_dlog.c
653 perf_crypto_ecc_dlog_LDADD = \
657 perf_crypto_rsa_SOURCES = \
659 perf_crypto_rsa_LDADD = \
662 perf_crypto_symmetric_SOURCES = \
663 perf_crypto_symmetric.c
664 perf_crypto_symmetric_LDADD = \
667 perf_crypto_asymmetric_SOURCES = \
668 perf_crypto_asymmetric.c
669 perf_crypto_asymmetric_LDADD = \
672 perf_crypto_paillier_SOURCES = \
673 perf_crypto_paillier.c
674 perf_crypto_paillier_LDADD = \
678 perf_malloc_SOURCES = \
680 perf_malloc_LDADD = \
685 test_client_data.conf \
686 test_client_unix.conf \
687 test_configuration_data.conf \
688 test_program_data.conf \
689 test_resolver_api_data.conf \
690 test_service_data.conf \
691 test_speedup_data.conf \