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 \
137 libgnunetutil_la_LIBADD = \
138 $(GCLIBADD) $(WINLIB) \
143 $(LIBIDN) $(LIBIDN2) \
149 libgnunetutil_la_LDFLAGS = \
153 libgnunetutil_taler_wallet_la_SOURCES = \
154 common_allocation.c \
158 container_multihashmap.c \
159 container_multihashmap32.c \
172 libgnunetutil_taler_wallet_la_LIBADD = \
176 libgnunetutil_taler_wallet_la_LDFLAGS = \
181 GNUNET_ECC = gnunet-ecc
182 GNUNET_SCRYPT = gnunet-scrypt
186 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
188 lib_LTLIBRARIES = libgnunetutil.la
191 gnunet-service-resolver \
208 test_common_logging_dummy
212 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
213 TESTS = $(check_PROGRAMS)
220 gnunet_timeout_SOURCES = \
223 gnunet_timeout_SOURCES = \
228 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
230 gnunet-qr: gnunet-qr.py.in Makefile
231 $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr
234 gnunet_service_resolver_SOURCES = \
235 gnunet-service-resolver.c
236 gnunet_service_resolver_LDADD = \
239 if HAVE_GETADDRINFO_A
240 gnunet_service_resolver_LDADD += -lanl
244 gnunet_resolver_SOURCES = \
246 gnunet_resolver_LDADD = \
251 gnunet_ecc_SOURCES = \
255 $(GN_LIBINTL) -lgcrypt
257 gnunet_scrypt_SOURCES = \
259 gnunet_scrypt_LDADD = \
261 $(GN_LIBINTL) -lgcrypt
264 gnunet_config_SOURCES = \
266 gnunet_config_LDADD = \
271 gnunet_uri_SOURCES = \
277 plugin_LTLIBRARIES = \
278 libgnunet_plugin_test.la
280 libgnunet_plugin_test_la_SOURCES = \
282 libgnunet_plugin_test_la_LDFLAGS = \
288 perf_crypto_ecc_dlog \
290 perf_crypto_paillier \
291 perf_crypto_symmetric \
292 perf_crypto_asymmetric \
297 # SSH_USING_TESTS = test_socks.nc
303 $(TEST_CLIENT_UNIX_NC) \
304 test_common_allocation \
306 test_common_logging \
308 test_container_bloomfilter \
310 test_container_meta_data \
311 test_container_multihashmap \
312 test_container_multihashmap32 \
313 test_container_multipeermap \
314 test_container_heap \
315 test_crypto_symmetric \
320 test_crypto_ecdh_eddsa \
321 test_crypto_ecc_dlog \
323 test_crypto_hash_context \
326 test_crypto_paillier \
338 test_resolver_api.nc \
340 test_scheduler_delay \
343 test_strings_to_data \
348 test_os_start_process \
349 test_common_logging_runtime_loglevels
352 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
353 # sequential execution order for them
354 TEST_EXTENSIONS = .nc
355 test_test_client_unix.log: test_client.log
362 test_hexcoder_SOURCES = \
364 test_hexcoder_LDADD = \
372 test_regex_SOURCES = \
377 test_os_start_process_SOURCES = \
378 test_os_start_process.c
379 test_os_start_process_LDADD = \
381 test_os_start_process_DEPENDENCIES = \
385 test_client_nc_SOURCES = \
387 test_client_nc_LDADD = \
390 test_client_unix_nc_SOURCES = \
392 test_client_unix_nc_LDADD = \
395 #test_socks_nc_SOURCES = \
397 #test_socks_nc_LDADD = \
400 test_common_allocation_SOURCES = \
401 test_common_allocation.c
402 test_common_allocation_LDADD = \
405 test_common_endian_SOURCES = \
407 test_common_endian_LDADD = \
410 test_common_logging_SOURCES = \
411 test_common_logging.c
412 test_common_logging_LDADD = \
415 test_common_logging_runtime_loglevels_SOURCES = \
416 test_common_logging_runtime_loglevels.c
417 test_common_logging_runtime_loglevels_LDADD = \
420 test_configuration_SOURCES = \
422 test_configuration_LDADD = \
425 test_container_bloomfilter_SOURCES = \
426 test_container_bloomfilter.c
427 test_container_bloomfilter_LDADD = \
430 test_container_dll_SOURCES = \
432 test_container_dll_LDADD = \
435 test_container_meta_data_SOURCES = \
436 test_container_meta_data.c
437 test_container_meta_data_LDADD = \
440 test_container_multihashmap_SOURCES = \
441 test_container_multihashmap.c
442 test_container_multihashmap_LDADD = \
445 test_container_multihashmap32_SOURCES = \
446 test_container_multihashmap32.c
447 test_container_multihashmap32_LDADD = \
450 test_container_multipeermap_SOURCES = \
451 test_container_multipeermap.c
452 test_container_multipeermap_LDADD = \
455 test_container_heap_SOURCES = \
456 test_container_heap.c
457 test_container_heap_LDADD = \
460 test_crypto_symmetric_SOURCES = \
461 test_crypto_symmetric.c
462 test_crypto_symmetric_LDADD = \
465 test_crypto_crc_SOURCES = \
467 test_crypto_crc_LDADD = \
470 test_crypto_ecdsa_SOURCES = \
472 test_crypto_ecdsa_LDADD = \
476 test_crypto_eddsa_SOURCES = \
478 test_crypto_eddsa_LDADD = \
482 test_crypto_ecc_dlog_SOURCES = \
483 test_crypto_ecc_dlog.c
484 test_crypto_ecc_dlog_LDADD = \
488 test_crypto_ecdhe_SOURCES = \
490 test_crypto_ecdhe_LDADD = \
494 test_crypto_ecdh_eddsa_SOURCES = \
495 test_crypto_ecdh_eddsa.c
496 test_crypto_ecdh_eddsa_LDADD = \
500 test_crypto_hash_SOURCES = \
502 test_crypto_hash_LDADD = \
505 test_crypto_hash_context_SOURCES = \
506 test_crypto_hash_context.c
507 test_crypto_hash_context_LDADD = \
510 test_crypto_hkdf_SOURCES = \
512 test_crypto_hkdf_LDADD = \
515 test_crypto_kdf_SOURCES = \
517 test_crypto_kdf_LDADD = \
518 libgnunetutil.la -lgcrypt
520 test_crypto_paillier_SOURCES = \
521 test_crypto_paillier.c
522 test_crypto_paillier_LDADD = \
526 test_crypto_random_SOURCES = \
528 test_crypto_random_LDADD = \
531 test_crypto_rsa_SOURCES = \
533 test_crypto_rsa_LDADD = \
534 libgnunetutil.la -lgcrypt
536 test_disk_SOURCES = \
541 test_getopt_SOURCES = \
543 test_getopt_LDADD = \
551 test_os_network_SOURCES = \
553 test_os_network_LDADD = \
556 test_peer_SOURCES = \
559 libgnunetutil.la -lgcrypt
561 test_plugin_SOURCES = \
563 test_plugin_LDADD = \
566 test_program_SOURCES = \
568 test_program_LDADD = \
571 test_resolver_api_nc_SOURCES = \
573 test_resolver_api_nc_LDADD = \
576 test_scheduler_SOURCES = \
578 test_scheduler_LDADD = \
581 test_scheduler_delay_SOURCES = \
582 test_scheduler_delay.c
583 test_scheduler_delay_LDADD = \
586 test_service_SOURCES = \
588 test_service_LDADD = \
591 test_strings_SOURCES = \
593 test_strings_LDADD = \
596 test_strings_to_data_SOURCES = \
597 test_strings_to_data.c
598 test_strings_to_data_LDADD = \
602 test_time_SOURCES = \
607 test_speedup_SOURCES = \
609 test_speedup_LDADD = \
612 perf_crypto_hash_SOURCES = \
614 perf_crypto_hash_LDADD = \
617 perf_crypto_ecc_dlog_SOURCES = \
618 perf_crypto_ecc_dlog.c
619 perf_crypto_ecc_dlog_LDADD = \
623 perf_crypto_rsa_SOURCES = \
625 perf_crypto_rsa_LDADD = \
628 perf_crypto_symmetric_SOURCES = \
629 perf_crypto_symmetric.c
630 perf_crypto_symmetric_LDADD = \
633 perf_crypto_asymmetric_SOURCES = \
634 perf_crypto_asymmetric.c
635 perf_crypto_asymmetric_LDADD = \
638 perf_crypto_paillier_SOURCES = \
639 perf_crypto_paillier.c
640 perf_crypto_paillier_LDADD = \
644 perf_malloc_SOURCES = \
646 perf_malloc_LDADD = \
651 test_client_data.conf \
652 test_client_unix.conf \
653 test_configuration_data.conf \
654 test_program_data.conf \
655 test_resolver_api_data.conf \
656 test_service_data.conf \
657 test_speedup_data.conf \