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/
16 TEST_CLIENT_UNIX_NC = test_client_unix.nc
19 AM_CFLAGS = --coverage -O0
24 BENCHMARK = benchmark.c benchmark.h
28 gnunet_config_diff_SOURCES = \
30 gnunet_config_diff_LDADD = \
33 test_common_logging_dummy_SOURCES = \
34 test_common_logging_dummy.c
35 test_common_logging_dummy_LDADD = \
38 libgnunetutil_la_SOURCES = \
48 configuration_loader.c \
50 container_bloomfilter.c \
52 container_meta_data.c \
53 container_multihashmap.c \
54 container_multishortmap.c \
55 container_multiuuidmap.c \
56 container_multipeermap.c \
57 container_multihashmap32.c \
92 resolver_api.c resolver.h \
101 speedup.c speedup.h \
126 libgnunetutil_la_LIBADD = \
127 $(GCLIBADD) $(WINLIB) \
133 $(LIBIDN) $(LIBIDN2) \
139 libgnunetutil_la_LDFLAGS = \
144 GNUNET_ECC = gnunet-ecc
145 GNUNET_SCRYPT = gnunet-scrypt
148 lib_LTLIBRARIES = libgnunetutil.la
151 gnunet-service-resolver \
162 bin_PROGRAMS += gnunet-qr
167 test_common_logging_dummy
171 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
172 TESTS = $(check_PROGRAMS)
175 gnunet_timeout_SOURCES = \
178 gnunet_service_resolver_SOURCES = \
179 gnunet-service-resolver.c
180 gnunet_service_resolver_LDADD = \
183 if HAVE_GETADDRINFO_A
184 gnunet_service_resolver_LDADD += -lanl
188 gnunet_resolver_SOURCES = \
190 gnunet_resolver_LDADD = \
194 gnunet_crypto_tvg_SOURCES = \
196 gnunet_crypto_tvg_LDADD = \
198 $(GN_LIBINTL) -lgcrypt
200 gnunet_ecc_SOURCES = \
204 $(GN_LIBINTL) -lgcrypt
206 gnunet_scrypt_SOURCES = \
208 gnunet_scrypt_LDADD = \
210 $(GN_LIBINTL) -lgcrypt
213 gnunet_config_SOURCES = \
215 gnunet_config_LDADD = \
219 gnunet_uri_SOURCES = \
226 gnunet_qr_SOURCES = \
231 gnunet_qr_LDFLAGS= -lzbar
233 plugin_LTLIBRARIES = \
234 libgnunet_plugin_test.la
236 libgnunet_plugin_test_la_SOURCES = \
238 libgnunet_plugin_test_la_LDFLAGS = \
244 perf_crypto_ecc_dlog \
246 perf_crypto_paillier \
247 perf_crypto_symmetric \
248 perf_crypto_asymmetric \
255 # SSH_USING_TESTS = test_socks.nc
261 $(TEST_CLIENT_UNIX_NC) \
262 test_common_allocation \
264 test_common_logging \
266 test_container_bloomfilter \
268 test_container_meta_data \
269 test_container_multihashmap \
270 test_container_multihashmap32 \
271 test_container_multipeermap \
272 test_container_heap \
273 test_crypto_symmetric \
278 test_crypto_ecdh_eddsa \
279 test_crypto_ecdh_ecdsa \
280 test_crypto_ecc_dlog \
282 test_crypto_hash_context \
285 test_crypto_paillier \
297 test_resolver_api.nc \
299 test_scheduler_delay \
302 test_strings_to_data \
307 test_os_start_process \
308 test_common_logging_runtime_loglevels
311 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
312 # sequential execution order for them
313 TEST_EXTENSIONS = .nc
314 test_test_client_unix.log: test_client.log
321 test_hexcoder_SOURCES = \
323 test_hexcoder_LDADD = \
331 test_regex_SOURCES = \
336 test_os_start_process_SOURCES = \
337 test_os_start_process.c
338 test_os_start_process_LDADD = \
340 test_os_start_process_DEPENDENCIES = \
343 test_client_nc_SOURCES = \
345 test_client_nc_LDADD = \
348 test_client_unix_nc_SOURCES = \
350 test_client_unix_nc_LDADD = \
353 #test_socks_nc_SOURCES = \
355 #test_socks_nc_LDADD = \
358 test_common_allocation_SOURCES = \
359 test_common_allocation.c
360 test_common_allocation_LDADD = \
363 test_common_endian_SOURCES = \
365 test_common_endian_LDADD = \
368 test_common_logging_SOURCES = \
369 test_common_logging.c
370 test_common_logging_LDADD = \
373 test_common_logging_runtime_loglevels_SOURCES = \
374 test_common_logging_runtime_loglevels.c
375 test_common_logging_runtime_loglevels_LDADD = \
378 test_configuration_SOURCES = \
380 test_configuration_LDADD = \
383 test_container_bloomfilter_SOURCES = \
384 test_container_bloomfilter.c
385 test_container_bloomfilter_LDADD = \
388 test_container_dll_SOURCES = \
390 test_container_dll_LDADD = \
393 test_container_meta_data_SOURCES = \
394 test_container_meta_data.c
395 test_container_meta_data_LDADD = \
398 test_container_multihashmap_SOURCES = \
399 test_container_multihashmap.c
400 test_container_multihashmap_LDADD = \
403 test_container_multihashmap32_SOURCES = \
404 test_container_multihashmap32.c
405 test_container_multihashmap32_LDADD = \
408 test_container_multipeermap_SOURCES = \
409 test_container_multipeermap.c
410 test_container_multipeermap_LDADD = \
413 test_container_heap_SOURCES = \
414 test_container_heap.c
415 test_container_heap_LDADD = \
418 test_crypto_symmetric_SOURCES = \
419 test_crypto_symmetric.c
420 test_crypto_symmetric_LDADD = \
423 test_crypto_crc_SOURCES = \
425 test_crypto_crc_LDADD = \
428 test_crypto_ecdsa_SOURCES = \
430 test_crypto_ecdsa_LDADD = \
434 test_crypto_eddsa_SOURCES = \
436 test_crypto_eddsa_LDADD = \
440 test_crypto_ecc_dlog_SOURCES = \
441 test_crypto_ecc_dlog.c
442 test_crypto_ecc_dlog_LDADD = \
446 test_crypto_ecdhe_SOURCES = \
448 test_crypto_ecdhe_LDADD = \
452 test_crypto_ecdh_eddsa_SOURCES = \
453 test_crypto_ecdh_eddsa.c
454 test_crypto_ecdh_eddsa_LDADD = \
458 test_crypto_ecdh_ecdsa_SOURCES = \
459 test_crypto_ecdh_ecdsa.c
460 test_crypto_ecdh_ecdsa_LDADD = \
465 test_crypto_hash_SOURCES = \
467 test_crypto_hash_LDADD = \
470 test_crypto_hash_context_SOURCES = \
471 test_crypto_hash_context.c
472 test_crypto_hash_context_LDADD = \
475 test_crypto_hkdf_SOURCES = \
477 test_crypto_hkdf_LDADD = \
480 test_crypto_kdf_SOURCES = \
482 test_crypto_kdf_LDADD = \
483 libgnunetutil.la -lgcrypt
485 test_crypto_paillier_SOURCES = \
486 test_crypto_paillier.c
487 test_crypto_paillier_LDADD = \
491 test_crypto_random_SOURCES = \
493 test_crypto_random_LDADD = \
496 test_crypto_rsa_SOURCES = \
498 test_crypto_rsa_LDADD = \
499 libgnunetutil.la -lgcrypt
501 test_disk_SOURCES = \
506 test_getopt_SOURCES = \
508 test_getopt_LDADD = \
516 test_os_network_SOURCES = \
518 test_os_network_LDADD = \
521 test_peer_SOURCES = \
524 libgnunetutil.la -lgcrypt
526 test_plugin_SOURCES = \
528 test_plugin_LDADD = \
531 test_program_SOURCES = \
533 test_program_LDADD = \
536 test_resolver_api_nc_SOURCES = \
538 test_resolver_api_nc_LDADD = \
541 test_scheduler_SOURCES = \
543 test_scheduler_LDADD = \
546 test_scheduler_delay_SOURCES = \
547 test_scheduler_delay.c
548 test_scheduler_delay_LDADD = \
551 test_service_SOURCES = \
553 test_service_LDADD = \
556 test_strings_SOURCES = \
558 test_strings_LDADD = \
561 test_strings_to_data_SOURCES = \
562 test_strings_to_data.c
563 test_strings_to_data_LDADD = \
567 test_time_SOURCES = \
572 test_speedup_SOURCES = \
574 test_speedup_LDADD = \
577 perf_crypto_hash_SOURCES = \
579 perf_crypto_hash_LDADD = \
582 perf_crypto_ecc_dlog_SOURCES = \
583 perf_crypto_ecc_dlog.c
584 perf_crypto_ecc_dlog_LDADD = \
588 perf_crypto_rsa_SOURCES = \
590 perf_crypto_rsa_LDADD = \
593 perf_crypto_symmetric_SOURCES = \
594 perf_crypto_symmetric.c
595 perf_crypto_symmetric_LDADD = \
598 perf_crypto_asymmetric_SOURCES = \
599 perf_crypto_asymmetric.c
600 perf_crypto_asymmetric_LDADD = \
603 perf_crypto_paillier_SOURCES = \
604 perf_crypto_paillier.c
605 perf_crypto_paillier_LDADD = \
609 perf_malloc_SOURCES = \
611 perf_malloc_LDADD = \
619 perf_scheduler_SOURCES = \
621 perf_scheduler_LDADD = \
626 test_client_data.conf \
627 test_client_unix.conf \
628 test_configuration_data.conf \
629 test_program_data.conf \
630 test_resolver_api_data.conf \
631 test_service_data.conf \
632 test_speedup_data.conf