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 \
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 = \
228 # This is horrible, but compared to the alternatives and the solution
229 # which preceded this it is a good compromise and good enough for one
230 # file. Everyone else is invited to patch it locally.
232 xENV=$(shell which env)
234 do_subst = $(SED) -e 's,[@]ENV[@],${xENV},g'
236 gnunet-qr: gnunet-qr.py.in Makefile
237 $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr
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 = \
277 gnunet_uri_SOURCES = \
283 plugin_LTLIBRARIES = \
284 libgnunet_plugin_test.la
286 libgnunet_plugin_test_la_SOURCES = \
288 libgnunet_plugin_test_la_LDFLAGS = \
294 perf_crypto_ecc_dlog \
296 perf_crypto_paillier \
297 perf_crypto_symmetric \
298 perf_crypto_asymmetric \
303 # SSH_USING_TESTS = test_socks.nc
309 $(TEST_CLIENT_UNIX_NC) \
310 test_common_allocation \
312 test_common_logging \
314 test_container_bloomfilter \
316 test_container_meta_data \
317 test_container_multihashmap \
318 test_container_multihashmap32 \
319 test_container_multipeermap \
320 test_container_heap \
321 test_crypto_symmetric \
326 test_crypto_ecdh_eddsa \
327 test_crypto_ecc_dlog \
329 test_crypto_hash_context \
332 test_crypto_paillier \
344 test_resolver_api.nc \
346 test_scheduler_delay \
349 test_strings_to_data \
354 test_os_start_process \
355 test_common_logging_runtime_loglevels
358 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
359 # sequential execution order for them
360 TEST_EXTENSIONS = .nc
361 test_test_client_unix.log: test_client.log
368 test_hexcoder_SOURCES = \
370 test_hexcoder_LDADD = \
378 test_regex_SOURCES = \
383 test_os_start_process_SOURCES = \
384 test_os_start_process.c
385 test_os_start_process_LDADD = \
387 test_os_start_process_DEPENDENCIES = \
391 test_client_nc_SOURCES = \
393 test_client_nc_LDADD = \
396 test_client_unix_nc_SOURCES = \
398 test_client_unix_nc_LDADD = \
401 #test_socks_nc_SOURCES = \
403 #test_socks_nc_LDADD = \
406 test_common_allocation_SOURCES = \
407 test_common_allocation.c
408 test_common_allocation_LDADD = \
411 test_common_endian_SOURCES = \
413 test_common_endian_LDADD = \
416 test_common_logging_SOURCES = \
417 test_common_logging.c
418 test_common_logging_LDADD = \
421 test_common_logging_runtime_loglevels_SOURCES = \
422 test_common_logging_runtime_loglevels.c
423 test_common_logging_runtime_loglevels_LDADD = \
426 test_configuration_SOURCES = \
428 test_configuration_LDADD = \
431 test_container_bloomfilter_SOURCES = \
432 test_container_bloomfilter.c
433 test_container_bloomfilter_LDADD = \
436 test_container_dll_SOURCES = \
438 test_container_dll_LDADD = \
441 test_container_meta_data_SOURCES = \
442 test_container_meta_data.c
443 test_container_meta_data_LDADD = \
446 test_container_multihashmap_SOURCES = \
447 test_container_multihashmap.c
448 test_container_multihashmap_LDADD = \
451 test_container_multihashmap32_SOURCES = \
452 test_container_multihashmap32.c
453 test_container_multihashmap32_LDADD = \
456 test_container_multipeermap_SOURCES = \
457 test_container_multipeermap.c
458 test_container_multipeermap_LDADD = \
461 test_container_heap_SOURCES = \
462 test_container_heap.c
463 test_container_heap_LDADD = \
466 test_crypto_symmetric_SOURCES = \
467 test_crypto_symmetric.c
468 test_crypto_symmetric_LDADD = \
471 test_crypto_crc_SOURCES = \
473 test_crypto_crc_LDADD = \
476 test_crypto_ecdsa_SOURCES = \
478 test_crypto_ecdsa_LDADD = \
482 test_crypto_eddsa_SOURCES = \
484 test_crypto_eddsa_LDADD = \
488 test_crypto_ecc_dlog_SOURCES = \
489 test_crypto_ecc_dlog.c
490 test_crypto_ecc_dlog_LDADD = \
494 test_crypto_ecdhe_SOURCES = \
496 test_crypto_ecdhe_LDADD = \
500 test_crypto_ecdh_eddsa_SOURCES = \
501 test_crypto_ecdh_eddsa.c
502 test_crypto_ecdh_eddsa_LDADD = \
506 test_crypto_hash_SOURCES = \
508 test_crypto_hash_LDADD = \
511 test_crypto_hash_context_SOURCES = \
512 test_crypto_hash_context.c
513 test_crypto_hash_context_LDADD = \
516 test_crypto_hkdf_SOURCES = \
518 test_crypto_hkdf_LDADD = \
521 test_crypto_kdf_SOURCES = \
523 test_crypto_kdf_LDADD = \
524 libgnunetutil.la -lgcrypt
526 test_crypto_paillier_SOURCES = \
527 test_crypto_paillier.c
528 test_crypto_paillier_LDADD = \
532 test_crypto_random_SOURCES = \
534 test_crypto_random_LDADD = \
537 test_crypto_rsa_SOURCES = \
539 test_crypto_rsa_LDADD = \
540 libgnunetutil.la -lgcrypt
542 test_disk_SOURCES = \
547 test_getopt_SOURCES = \
549 test_getopt_LDADD = \
557 test_os_network_SOURCES = \
559 test_os_network_LDADD = \
562 test_peer_SOURCES = \
565 libgnunetutil.la -lgcrypt
567 test_plugin_SOURCES = \
569 test_plugin_LDADD = \
572 test_program_SOURCES = \
574 test_program_LDADD = \
577 test_resolver_api_nc_SOURCES = \
579 test_resolver_api_nc_LDADD = \
582 test_scheduler_SOURCES = \
584 test_scheduler_LDADD = \
587 test_scheduler_delay_SOURCES = \
588 test_scheduler_delay.c
589 test_scheduler_delay_LDADD = \
592 test_service_SOURCES = \
594 test_service_LDADD = \
597 test_strings_SOURCES = \
599 test_strings_LDADD = \
602 test_strings_to_data_SOURCES = \
603 test_strings_to_data.c
604 test_strings_to_data_LDADD = \
608 test_time_SOURCES = \
613 test_speedup_SOURCES = \
615 test_speedup_LDADD = \
618 perf_crypto_hash_SOURCES = \
620 perf_crypto_hash_LDADD = \
623 perf_crypto_ecc_dlog_SOURCES = \
624 perf_crypto_ecc_dlog.c
625 perf_crypto_ecc_dlog_LDADD = \
629 perf_crypto_rsa_SOURCES = \
631 perf_crypto_rsa_LDADD = \
634 perf_crypto_symmetric_SOURCES = \
635 perf_crypto_symmetric.c
636 perf_crypto_symmetric_LDADD = \
639 perf_crypto_asymmetric_SOURCES = \
640 perf_crypto_asymmetric.c
641 perf_crypto_asymmetric_LDADD = \
644 perf_crypto_paillier_SOURCES = \
645 perf_crypto_paillier.c
646 perf_crypto_paillier_LDADD = \
650 perf_malloc_SOURCES = \
652 perf_malloc_LDADD = \
657 test_client_data.conf \
658 test_client_unix.conf \
659 test_configuration_data.conf \
660 test_program_data.conf \
661 test_resolver_api_data.conf \
662 test_service_data.conf \
663 test_speedup_data.conf \