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
227 test_common_logging_dummy
231 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
232 TESTS = $(check_PROGRAMS)
239 gnunet_timeout_SOURCES = \
242 gnunet_timeout_SOURCES = \
246 gnunet_service_resolver_SOURCES = \
247 gnunet-service-resolver.c
248 gnunet_service_resolver_LDADD = \
251 if HAVE_GETADDRINFO_A
252 gnunet_service_resolver_LDADD += -lanl
256 gnunet_resolver_SOURCES = \
258 gnunet_resolver_LDADD = \
263 gnunet_ecc_SOURCES = \
267 $(GN_LIBINTL) -lgcrypt
269 gnunet_scrypt_SOURCES = \
271 gnunet_scrypt_LDADD = \
273 $(GN_LIBINTL) -lgcrypt
276 gnunet_config_SOURCES = \
278 gnunet_config_LDADD = \
283 gnunet_uri_SOURCES = \
289 plugin_LTLIBRARIES = \
290 libgnunet_plugin_test.la
292 libgnunet_plugin_test_la_SOURCES = \
294 libgnunet_plugin_test_la_LDFLAGS = \
300 perf_crypto_ecc_dlog \
302 perf_crypto_paillier \
303 perf_crypto_symmetric \
304 perf_crypto_asymmetric \
309 # SSH_USING_TESTS = test_socks.nc
315 $(TEST_CLIENT_UNIX_NC) \
316 test_common_allocation \
318 test_common_logging \
320 test_container_bloomfilter \
322 test_container_meta_data \
323 test_container_multihashmap \
324 test_container_multihashmap32 \
325 test_container_multipeermap \
326 test_container_heap \
327 test_crypto_symmetric \
332 test_crypto_ecdh_eddsa \
333 test_crypto_ecc_dlog \
335 test_crypto_hash_context \
338 test_crypto_paillier \
350 test_resolver_api.nc \
352 test_scheduler_delay \
355 test_strings_to_data \
360 test_os_start_process \
361 test_common_logging_runtime_loglevels
364 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
365 # sequential execution order for them
366 TEST_EXTENSIONS = .nc
367 test_test_client_unix.log: test_client.log
374 test_hexcoder_SOURCES = \
376 test_hexcoder_LDADD = \
384 test_regex_SOURCES = \
389 test_os_start_process_SOURCES = \
390 test_os_start_process.c
391 test_os_start_process_LDADD = \
393 test_os_start_process_DEPENDENCIES = \
397 test_client_nc_SOURCES = \
399 test_client_nc_LDADD = \
402 test_client_unix_nc_SOURCES = \
404 test_client_unix_nc_LDADD = \
407 #test_socks_nc_SOURCES = \
409 #test_socks_nc_LDADD = \
412 test_common_allocation_SOURCES = \
413 test_common_allocation.c
414 test_common_allocation_LDADD = \
417 test_common_endian_SOURCES = \
419 test_common_endian_LDADD = \
422 test_common_logging_SOURCES = \
423 test_common_logging.c
424 test_common_logging_LDADD = \
427 test_common_logging_runtime_loglevels_SOURCES = \
428 test_common_logging_runtime_loglevels.c
429 test_common_logging_runtime_loglevels_LDADD = \
432 test_configuration_SOURCES = \
434 test_configuration_LDADD = \
437 test_container_bloomfilter_SOURCES = \
438 test_container_bloomfilter.c
439 test_container_bloomfilter_LDADD = \
442 test_container_dll_SOURCES = \
444 test_container_dll_LDADD = \
447 test_container_meta_data_SOURCES = \
448 test_container_meta_data.c
449 test_container_meta_data_LDADD = \
452 test_container_multihashmap_SOURCES = \
453 test_container_multihashmap.c
454 test_container_multihashmap_LDADD = \
457 test_container_multihashmap32_SOURCES = \
458 test_container_multihashmap32.c
459 test_container_multihashmap32_LDADD = \
462 test_container_multipeermap_SOURCES = \
463 test_container_multipeermap.c
464 test_container_multipeermap_LDADD = \
467 test_container_heap_SOURCES = \
468 test_container_heap.c
469 test_container_heap_LDADD = \
472 test_crypto_symmetric_SOURCES = \
473 test_crypto_symmetric.c
474 test_crypto_symmetric_LDADD = \
477 test_crypto_crc_SOURCES = \
479 test_crypto_crc_LDADD = \
482 test_crypto_ecdsa_SOURCES = \
484 test_crypto_ecdsa_LDADD = \
488 test_crypto_eddsa_SOURCES = \
490 test_crypto_eddsa_LDADD = \
494 test_crypto_ecc_dlog_SOURCES = \
495 test_crypto_ecc_dlog.c
496 test_crypto_ecc_dlog_LDADD = \
500 test_crypto_ecdhe_SOURCES = \
502 test_crypto_ecdhe_LDADD = \
506 test_crypto_ecdh_eddsa_SOURCES = \
507 test_crypto_ecdh_eddsa.c
508 test_crypto_ecdh_eddsa_LDADD = \
512 test_crypto_hash_SOURCES = \
514 test_crypto_hash_LDADD = \
517 test_crypto_hash_context_SOURCES = \
518 test_crypto_hash_context.c
519 test_crypto_hash_context_LDADD = \
522 test_crypto_hkdf_SOURCES = \
524 test_crypto_hkdf_LDADD = \
527 test_crypto_kdf_SOURCES = \
529 test_crypto_kdf_LDADD = \
530 libgnunetutil.la -lgcrypt
532 test_crypto_paillier_SOURCES = \
533 test_crypto_paillier.c
534 test_crypto_paillier_LDADD = \
538 test_crypto_random_SOURCES = \
540 test_crypto_random_LDADD = \
543 test_crypto_rsa_SOURCES = \
545 test_crypto_rsa_LDADD = \
546 libgnunetutil.la -lgcrypt
548 test_disk_SOURCES = \
553 test_getopt_SOURCES = \
555 test_getopt_LDADD = \
563 test_os_network_SOURCES = \
565 test_os_network_LDADD = \
568 test_peer_SOURCES = \
571 libgnunetutil.la -lgcrypt
573 test_plugin_SOURCES = \
575 test_plugin_LDADD = \
578 test_program_SOURCES = \
580 test_program_LDADD = \
583 test_resolver_api_nc_SOURCES = \
585 test_resolver_api_nc_LDADD = \
588 test_scheduler_SOURCES = \
590 test_scheduler_LDADD = \
593 test_scheduler_delay_SOURCES = \
594 test_scheduler_delay.c
595 test_scheduler_delay_LDADD = \
598 test_service_SOURCES = \
600 test_service_LDADD = \
603 test_strings_SOURCES = \
605 test_strings_LDADD = \
608 test_strings_to_data_SOURCES = \
609 test_strings_to_data.c
610 test_strings_to_data_LDADD = \
614 test_time_SOURCES = \
619 test_speedup_SOURCES = \
621 test_speedup_LDADD = \
624 perf_crypto_hash_SOURCES = \
626 perf_crypto_hash_LDADD = \
629 perf_crypto_ecc_dlog_SOURCES = \
630 perf_crypto_ecc_dlog.c
631 perf_crypto_ecc_dlog_LDADD = \
635 perf_crypto_rsa_SOURCES = \
637 perf_crypto_rsa_LDADD = \
640 perf_crypto_symmetric_SOURCES = \
641 perf_crypto_symmetric.c
642 perf_crypto_symmetric_LDADD = \
645 perf_crypto_asymmetric_SOURCES = \
646 perf_crypto_asymmetric.c
647 perf_crypto_asymmetric_LDADD = \
650 perf_crypto_paillier_SOURCES = \
651 perf_crypto_paillier.c
652 perf_crypto_paillier_LDADD = \
656 perf_malloc_SOURCES = \
658 perf_malloc_LDADD = \
663 test_client_data.conf \
664 test_client_unix.conf \
665 test_configuration_data.conf \
666 test_program_data.conf \
667 test_resolver_api_data.conf \
668 test_service_data.conf \
669 test_speedup_data.conf \