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 \
124 libgnunetutil_la_LIBADD = \
125 $(GCLIBADD) $(WINLIB) \
131 $(LIBIDN) $(LIBIDN2) \
138 libgnunetutil_la_LDFLAGS = \
143 GNUNET_ECC = gnunet-ecc
144 GNUNET_SCRYPT = gnunet-scrypt
147 lib_LTLIBRARIES = libgnunetutil.la
150 gnunet-service-resolver \
161 bin_PROGRAMS += gnunet-qr
166 test_common_logging_dummy
170 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
171 TESTS = $(check_PROGRAMS)
174 gnunet_timeout_SOURCES = \
177 gnunet_service_resolver_SOURCES = \
178 gnunet-service-resolver.c
179 gnunet_service_resolver_LDADD = \
182 if HAVE_GETADDRINFO_A
183 gnunet_service_resolver_LDADD += -lanl
187 gnunet_resolver_SOURCES = \
189 gnunet_resolver_LDADD = \
193 gnunet_crypto_tvg_SOURCES = \
195 gnunet_crypto_tvg_LDADD = \
197 $(GN_LIBINTL) -lgcrypt
199 gnunet_ecc_SOURCES = \
203 $(GN_LIBINTL) -lgcrypt
205 gnunet_scrypt_SOURCES = \
207 gnunet_scrypt_LDADD = \
209 $(GN_LIBINTL) -lgcrypt
212 gnunet_config_SOURCES = \
214 gnunet_config_LDADD = \
218 gnunet_uri_SOURCES = \
225 gnunet_qr_SOURCES = \
230 gnunet_qr_LDFLAGS= -lzbar
232 plugin_LTLIBRARIES = \
233 libgnunet_plugin_test.la
235 libgnunet_plugin_test_la_SOURCES = \
237 libgnunet_plugin_test_la_LDFLAGS = \
243 perf_crypto_ecc_dlog \
245 perf_crypto_paillier \
246 perf_crypto_symmetric \
247 perf_crypto_asymmetric \
254 # SSH_USING_TESTS = test_socks.nc
260 $(TEST_CLIENT_UNIX_NC) \
261 test_common_allocation \
263 test_common_logging \
265 test_container_bloomfilter \
267 test_container_meta_data \
268 test_container_multihashmap \
269 test_container_multihashmap32 \
270 test_container_multipeermap \
271 test_container_heap \
272 test_crypto_symmetric \
277 test_crypto_ecdh_eddsa \
278 test_crypto_ecdh_ecdsa \
279 test_crypto_ecc_dlog \
281 test_crypto_hash_context \
284 test_crypto_paillier \
296 test_resolver_api.nc \
298 test_scheduler_delay \
301 test_strings_to_data \
306 test_os_start_process \
307 test_common_logging_runtime_loglevels
310 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
311 # sequential execution order for them
312 TEST_EXTENSIONS = .nc
313 test_test_client_unix.log: test_client.log
320 test_hexcoder_SOURCES = \
322 test_hexcoder_LDADD = \
330 test_regex_SOURCES = \
335 test_os_start_process_SOURCES = \
336 test_os_start_process.c
337 test_os_start_process_LDADD = \
339 test_os_start_process_DEPENDENCIES = \
342 test_client_nc_SOURCES = \
344 test_client_nc_LDADD = \
347 test_client_unix_nc_SOURCES = \
349 test_client_unix_nc_LDADD = \
352 #test_socks_nc_SOURCES = \
354 #test_socks_nc_LDADD = \
357 test_common_allocation_SOURCES = \
358 test_common_allocation.c
359 test_common_allocation_LDADD = \
362 test_common_endian_SOURCES = \
364 test_common_endian_LDADD = \
367 test_common_logging_SOURCES = \
368 test_common_logging.c
369 test_common_logging_LDADD = \
372 test_common_logging_runtime_loglevels_SOURCES = \
373 test_common_logging_runtime_loglevels.c
374 test_common_logging_runtime_loglevels_LDADD = \
377 test_configuration_SOURCES = \
379 test_configuration_LDADD = \
382 test_container_bloomfilter_SOURCES = \
383 test_container_bloomfilter.c
384 test_container_bloomfilter_LDADD = \
387 test_container_dll_SOURCES = \
389 test_container_dll_LDADD = \
392 test_container_meta_data_SOURCES = \
393 test_container_meta_data.c
394 test_container_meta_data_LDADD = \
397 test_container_multihashmap_SOURCES = \
398 test_container_multihashmap.c
399 test_container_multihashmap_LDADD = \
402 test_container_multihashmap32_SOURCES = \
403 test_container_multihashmap32.c
404 test_container_multihashmap32_LDADD = \
407 test_container_multipeermap_SOURCES = \
408 test_container_multipeermap.c
409 test_container_multipeermap_LDADD = \
412 test_container_heap_SOURCES = \
413 test_container_heap.c
414 test_container_heap_LDADD = \
417 test_crypto_symmetric_SOURCES = \
418 test_crypto_symmetric.c
419 test_crypto_symmetric_LDADD = \
422 test_crypto_crc_SOURCES = \
424 test_crypto_crc_LDADD = \
427 test_crypto_ecdsa_SOURCES = \
429 test_crypto_ecdsa_LDADD = \
433 test_crypto_eddsa_SOURCES = \
435 test_crypto_eddsa_LDADD = \
439 test_crypto_ecc_dlog_SOURCES = \
440 test_crypto_ecc_dlog.c
441 test_crypto_ecc_dlog_LDADD = \
445 test_crypto_ecdhe_SOURCES = \
447 test_crypto_ecdhe_LDADD = \
451 test_crypto_ecdh_eddsa_SOURCES = \
452 test_crypto_ecdh_eddsa.c
453 test_crypto_ecdh_eddsa_LDADD = \
457 test_crypto_ecdh_ecdsa_SOURCES = \
458 test_crypto_ecdh_ecdsa.c
459 test_crypto_ecdh_ecdsa_LDADD = \
464 test_crypto_hash_SOURCES = \
466 test_crypto_hash_LDADD = \
469 test_crypto_hash_context_SOURCES = \
470 test_crypto_hash_context.c
471 test_crypto_hash_context_LDADD = \
474 test_crypto_hkdf_SOURCES = \
476 test_crypto_hkdf_LDADD = \
479 test_crypto_kdf_SOURCES = \
481 test_crypto_kdf_LDADD = \
482 libgnunetutil.la -lgcrypt
484 test_crypto_paillier_SOURCES = \
485 test_crypto_paillier.c
486 test_crypto_paillier_LDADD = \
490 test_crypto_random_SOURCES = \
492 test_crypto_random_LDADD = \
495 test_crypto_rsa_SOURCES = \
497 test_crypto_rsa_LDADD = \
498 libgnunetutil.la -lgcrypt
500 test_disk_SOURCES = \
505 test_getopt_SOURCES = \
507 test_getopt_LDADD = \
515 test_os_network_SOURCES = \
517 test_os_network_LDADD = \
520 test_peer_SOURCES = \
523 libgnunetutil.la -lgcrypt
525 test_plugin_SOURCES = \
527 test_plugin_LDADD = \
530 test_program_SOURCES = \
532 test_program_LDADD = \
535 test_resolver_api_nc_SOURCES = \
537 test_resolver_api_nc_LDADD = \
540 test_scheduler_SOURCES = \
542 test_scheduler_LDADD = \
545 test_scheduler_delay_SOURCES = \
546 test_scheduler_delay.c
547 test_scheduler_delay_LDADD = \
550 test_service_SOURCES = \
552 test_service_LDADD = \
555 test_strings_SOURCES = \
557 test_strings_LDADD = \
560 test_strings_to_data_SOURCES = \
561 test_strings_to_data.c
562 test_strings_to_data_LDADD = \
566 test_time_SOURCES = \
571 test_speedup_SOURCES = \
573 test_speedup_LDADD = \
576 perf_crypto_hash_SOURCES = \
578 perf_crypto_hash_LDADD = \
581 perf_crypto_ecc_dlog_SOURCES = \
582 perf_crypto_ecc_dlog.c
583 perf_crypto_ecc_dlog_LDADD = \
587 perf_crypto_rsa_SOURCES = \
589 perf_crypto_rsa_LDADD = \
592 perf_crypto_symmetric_SOURCES = \
593 perf_crypto_symmetric.c
594 perf_crypto_symmetric_LDADD = \
597 perf_crypto_asymmetric_SOURCES = \
598 perf_crypto_asymmetric.c
599 perf_crypto_asymmetric_LDADD = \
602 perf_crypto_paillier_SOURCES = \
603 perf_crypto_paillier.c
604 perf_crypto_paillier_LDADD = \
608 perf_malloc_SOURCES = \
610 perf_malloc_LDADD = \
618 perf_scheduler_SOURCES = \
620 perf_scheduler_LDADD = \
625 test_client_data.conf \
626 test_client_unix.conf \
627 test_configuration_data.conf \
628 test_program_data.conf \
629 test_resolver_api_data.conf \
630 test_service_data.conf \
631 test_speedup_data.conf