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 \
125 libgnunetutil_la_LIBADD = \
126 $(GCLIBADD) $(WINLIB) \
130 -lltdl -lidn $(Z_LIBS) -lunistring $(XLIB) $(PTHREAD)
132 libgnunetutil_la_LDFLAGS = \
136 libgnunetutil_taler_wallet_la_SOURCES = \
137 common_allocation.c \
141 container_multihashmap.c \
142 container_multihashmap32.c \
155 libgnunetutil_taler_wallet_la_LIBADD = \
159 libgnunetutil_taler_wallet_la_LDFLAGS = \
164 GNUNET_ECC = gnunet-ecc
165 GNUNET_SCRYPT = gnunet-scrypt
169 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
171 lib_LTLIBRARIES = libgnunetutil.la
174 gnunet-service-resolver \
191 test_common_logging_dummy
195 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
196 TESTS = $(check_PROGRAMS)
203 gnunet_timeout_SOURCES = \
206 gnunet_timeout_SOURCES = \
211 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
213 gnunet-qr: gnunet-qr.py.in Makefile
214 $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr
217 gnunet_service_resolver_SOURCES = \
218 gnunet-service-resolver.c
219 gnunet_service_resolver_LDADD = \
222 if HAVE_GETADDRINFO_A
223 gnunet_service_resolver_LDADD += -lanl
227 gnunet_resolver_SOURCES = \
229 gnunet_resolver_LDADD = \
234 gnunet_ecc_SOURCES = \
238 $(GN_LIBINTL) -lgcrypt
240 gnunet_scrypt_SOURCES = \
242 gnunet_scrypt_LDADD = \
244 $(GN_LIBINTL) -lgcrypt
247 gnunet_config_SOURCES = \
249 gnunet_config_LDADD = \
254 gnunet_uri_SOURCES = \
260 plugin_LTLIBRARIES = \
261 libgnunet_plugin_test.la
263 libgnunet_plugin_test_la_SOURCES = \
265 libgnunet_plugin_test_la_LDFLAGS = \
271 perf_crypto_ecc_dlog \
273 perf_crypto_paillier \
274 perf_crypto_symmetric \
275 perf_crypto_asymmetric \
280 # SSH_USING_TESTS = test_socks.nc
286 $(TEST_CLIENT_UNIX_NC) \
287 test_common_allocation \
289 test_common_logging \
291 test_container_bloomfilter \
293 test_container_meta_data \
294 test_container_multihashmap \
295 test_container_multihashmap32 \
296 test_container_multipeermap \
297 test_container_heap \
298 test_crypto_symmetric \
303 test_crypto_ecdh_eddsa \
304 test_crypto_ecc_dlog \
306 test_crypto_hash_context \
309 test_crypto_paillier \
321 test_resolver_api.nc \
323 test_scheduler_delay \
326 test_strings_to_data \
331 test_os_start_process \
332 test_common_logging_runtime_loglevels
335 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
336 # sequential execution order for them
337 TEST_EXTENSIONS = .nc
338 test_test_client_unix.log: test_client.log
345 test_hexcoder_SOURCES = \
347 test_hexcoder_LDADD = \
355 test_regex_SOURCES = \
360 test_os_start_process_SOURCES = \
361 test_os_start_process.c
362 test_os_start_process_LDADD = \
364 test_os_start_process_DEPENDENCIES = \
368 test_client_nc_SOURCES = \
370 test_client_nc_LDADD = \
373 test_client_unix_nc_SOURCES = \
375 test_client_unix_nc_LDADD = \
378 #test_socks_nc_SOURCES = \
380 #test_socks_nc_LDADD = \
383 test_common_allocation_SOURCES = \
384 test_common_allocation.c
385 test_common_allocation_LDADD = \
388 test_common_endian_SOURCES = \
390 test_common_endian_LDADD = \
393 test_common_logging_SOURCES = \
394 test_common_logging.c
395 test_common_logging_LDADD = \
398 test_common_logging_runtime_loglevels_SOURCES = \
399 test_common_logging_runtime_loglevels.c
400 test_common_logging_runtime_loglevels_LDADD = \
403 test_configuration_SOURCES = \
405 test_configuration_LDADD = \
408 test_container_bloomfilter_SOURCES = \
409 test_container_bloomfilter.c
410 test_container_bloomfilter_LDADD = \
413 test_container_dll_SOURCES = \
415 test_container_dll_LDADD = \
418 test_container_meta_data_SOURCES = \
419 test_container_meta_data.c
420 test_container_meta_data_LDADD = \
423 test_container_multihashmap_SOURCES = \
424 test_container_multihashmap.c
425 test_container_multihashmap_LDADD = \
428 test_container_multihashmap32_SOURCES = \
429 test_container_multihashmap32.c
430 test_container_multihashmap32_LDADD = \
433 test_container_multipeermap_SOURCES = \
434 test_container_multipeermap.c
435 test_container_multipeermap_LDADD = \
438 test_container_heap_SOURCES = \
439 test_container_heap.c
440 test_container_heap_LDADD = \
443 test_crypto_symmetric_SOURCES = \
444 test_crypto_symmetric.c
445 test_crypto_symmetric_LDADD = \
448 test_crypto_crc_SOURCES = \
450 test_crypto_crc_LDADD = \
453 test_crypto_ecdsa_SOURCES = \
455 test_crypto_ecdsa_LDADD = \
459 test_crypto_eddsa_SOURCES = \
461 test_crypto_eddsa_LDADD = \
465 test_crypto_ecc_dlog_SOURCES = \
466 test_crypto_ecc_dlog.c
467 test_crypto_ecc_dlog_LDADD = \
471 test_crypto_ecdhe_SOURCES = \
473 test_crypto_ecdhe_LDADD = \
477 test_crypto_ecdh_eddsa_SOURCES = \
478 test_crypto_ecdh_eddsa.c
479 test_crypto_ecdh_eddsa_LDADD = \
483 test_crypto_hash_SOURCES = \
485 test_crypto_hash_LDADD = \
488 test_crypto_hash_context_SOURCES = \
489 test_crypto_hash_context.c
490 test_crypto_hash_context_LDADD = \
493 test_crypto_hkdf_SOURCES = \
495 test_crypto_hkdf_LDADD = \
498 test_crypto_kdf_SOURCES = \
500 test_crypto_kdf_LDADD = \
501 libgnunetutil.la -lgcrypt
503 test_crypto_paillier_SOURCES = \
504 test_crypto_paillier.c
505 test_crypto_paillier_LDADD = \
509 test_crypto_random_SOURCES = \
511 test_crypto_random_LDADD = \
514 test_crypto_rsa_SOURCES = \
516 test_crypto_rsa_LDADD = \
517 libgnunetutil.la -lgcrypt
519 test_disk_SOURCES = \
524 test_getopt_SOURCES = \
526 test_getopt_LDADD = \
534 test_os_network_SOURCES = \
536 test_os_network_LDADD = \
539 test_peer_SOURCES = \
542 libgnunetutil.la -lgcrypt
544 test_plugin_SOURCES = \
546 test_plugin_LDADD = \
549 test_program_SOURCES = \
551 test_program_LDADD = \
554 test_resolver_api_nc_SOURCES = \
556 test_resolver_api_nc_LDADD = \
559 test_scheduler_SOURCES = \
561 test_scheduler_LDADD = \
564 test_scheduler_delay_SOURCES = \
565 test_scheduler_delay.c
566 test_scheduler_delay_LDADD = \
569 test_service_SOURCES = \
571 test_service_LDADD = \
574 test_strings_SOURCES = \
576 test_strings_LDADD = \
579 test_strings_to_data_SOURCES = \
580 test_strings_to_data.c
581 test_strings_to_data_LDADD = \
585 test_time_SOURCES = \
590 test_speedup_SOURCES = \
592 test_speedup_LDADD = \
595 perf_crypto_hash_SOURCES = \
597 perf_crypto_hash_LDADD = \
600 perf_crypto_ecc_dlog_SOURCES = \
601 perf_crypto_ecc_dlog.c
602 perf_crypto_ecc_dlog_LDADD = \
606 perf_crypto_rsa_SOURCES = \
608 perf_crypto_rsa_LDADD = \
611 perf_crypto_symmetric_SOURCES = \
612 perf_crypto_symmetric.c
613 perf_crypto_symmetric_LDADD = \
616 perf_crypto_asymmetric_SOURCES = \
617 perf_crypto_asymmetric.c
618 perf_crypto_asymmetric_LDADD = \
621 perf_crypto_paillier_SOURCES = \
622 perf_crypto_paillier.c
623 perf_crypto_paillier_LDADD = \
627 perf_malloc_SOURCES = \
629 perf_malloc_LDADD = \
634 test_client_data.conf \
635 test_client_unix.conf \
636 test_configuration_data.conf \
637 test_program_data.conf \
638 test_resolver_api_data.conf \
639 test_service_data.conf \
640 test_speedup_data.conf \