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
43 w32cat_SOURCES = w32cat.c
45 gnunet_helper_w32_console_SOURCES = \
46 gnunet-helper-w32-console.c \
47 gnunet-helper-w32-console.h
48 gnunet_helper_w32_console_LDADD = \
51 gnunet_config_diff_SOURCES = \
53 gnunet_config_diff_LDADD = \
56 test_common_logging_dummy_SOURCES = \
57 test_common_logging_dummy.c
58 test_common_logging_dummy_LDADD = \
61 libgnunetutil_la_SOURCES = \
69 configuration_loader.c \
70 container_bloomfilter.c \
72 container_meta_data.c \
73 container_multihashmap.c \
74 container_multishortmap.c \
75 container_multipeermap.c \
76 container_multihashmap32.c \
107 resolver_api.c resolver.h \
115 libgnunetutil_la_LIBADD = \
116 $(GCLIBADD) $(WINLIB) \
120 -lltdl $(Z_LIBS) -lunistring $(XLIB)
122 libgnunetutil_la_LDFLAGS = \
126 libgnunetutil_taler_wallet_la_SOURCES = \
127 common_allocation.c \
131 container_multihashmap.c \
132 container_multihashmap32.c \
145 libgnunetutil_taler_wallet_la_LIBADD = \
149 libgnunetutil_taler_wallet_la_LDFLAGS = \
154 GNUNET_ECC = gnunet-ecc
155 GNUNET_SCRYPT = gnunet-scrypt
159 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
161 lib_LTLIBRARIES = libgnunetutil.la
164 gnunet-service-resolver \
180 test_common_logging_dummy
184 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
185 TESTS = $(check_PROGRAMS)
191 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
193 gnunet-qr: gnunet-qr.py.in Makefile
194 $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr
197 gnunet_service_resolver_SOURCES = \
198 gnunet-service-resolver.c
199 gnunet_service_resolver_LDADD = \
204 gnunet_resolver_SOURCES = \
206 gnunet_resolver_LDADD = \
211 gnunet_ecc_SOURCES = \
215 $(GN_LIBINTL) -lgcrypt
217 gnunet_scrypt_SOURCES = \
219 gnunet_scrypt_LDADD = \
221 $(GN_LIBINTL) -lgcrypt
224 gnunet_config_SOURCES = \
226 gnunet_config_LDADD = \
231 gnunet_uri_SOURCES = \
237 plugin_LTLIBRARIES = \
238 libgnunet_plugin_test.la
240 libgnunet_plugin_test_la_SOURCES = \
242 libgnunet_plugin_test_la_LDFLAGS = \
248 perf_crypto_ecc_dlog \
250 perf_crypto_paillier \
251 perf_crypto_symmetric \
252 perf_crypto_asymmetric \
257 # SSH_USING_TESTS = test_socks.nc
263 $(TEST_CLIENT_UNIX_NC) \
264 test_common_allocation \
266 test_common_logging \
268 test_container_bloomfilter \
270 test_container_meta_data \
271 test_container_multihashmap \
272 test_container_multihashmap32 \
273 test_container_multipeermap \
274 test_container_heap \
275 test_crypto_symmetric \
280 test_crypto_ecdh_eddsa \
281 test_crypto_ecc_dlog \
283 test_crypto_hash_context \
286 test_crypto_paillier \
296 test_resolver_api.nc \
298 test_scheduler_delay \
301 test_strings_to_data \
305 test_os_start_process \
306 test_common_logging_runtime_loglevels
309 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
310 # sequential execution order for them
311 TEST_EXTENSIONS = .nc
312 test_test_client_unix.log: test_client.log
320 test_os_start_process_SOURCES = \
321 test_os_start_process.c
322 test_os_start_process_LDADD = \
324 test_os_start_process_DEPENDENCIES = \
328 test_client_nc_SOURCES = \
330 test_client_nc_LDADD = \
333 test_client_unix_nc_SOURCES = \
335 test_client_unix_nc_LDADD = \
338 #test_socks_nc_SOURCES = \
340 #test_socks_nc_LDADD = \
343 test_common_allocation_SOURCES = \
344 test_common_allocation.c
345 test_common_allocation_LDADD = \
348 test_common_endian_SOURCES = \
350 test_common_endian_LDADD = \
353 test_common_logging_SOURCES = \
354 test_common_logging.c
355 test_common_logging_LDADD = \
358 test_common_logging_runtime_loglevels_SOURCES = \
359 test_common_logging_runtime_loglevels.c
360 test_common_logging_runtime_loglevels_LDADD = \
363 test_configuration_SOURCES = \
365 test_configuration_LDADD = \
368 test_container_bloomfilter_SOURCES = \
369 test_container_bloomfilter.c
370 test_container_bloomfilter_LDADD = \
373 test_container_dll_SOURCES = \
375 test_container_dll_LDADD = \
378 test_container_meta_data_SOURCES = \
379 test_container_meta_data.c
380 test_container_meta_data_LDADD = \
383 test_container_multihashmap_SOURCES = \
384 test_container_multihashmap.c
385 test_container_multihashmap_LDADD = \
388 test_container_multihashmap32_SOURCES = \
389 test_container_multihashmap32.c
390 test_container_multihashmap32_LDADD = \
393 test_container_multipeermap_SOURCES = \
394 test_container_multipeermap.c
395 test_container_multipeermap_LDADD = \
398 test_container_heap_SOURCES = \
399 test_container_heap.c
400 test_container_heap_LDADD = \
403 test_crypto_symmetric_SOURCES = \
404 test_crypto_symmetric.c
405 test_crypto_symmetric_LDADD = \
408 test_crypto_crc_SOURCES = \
410 test_crypto_crc_LDADD = \
413 test_crypto_ecdsa_SOURCES = \
415 test_crypto_ecdsa_LDADD = \
419 test_crypto_eddsa_SOURCES = \
421 test_crypto_eddsa_LDADD = \
425 test_crypto_ecc_dlog_SOURCES = \
426 test_crypto_ecc_dlog.c
427 test_crypto_ecc_dlog_LDADD = \
431 test_crypto_ecdhe_SOURCES = \
433 test_crypto_ecdhe_LDADD = \
437 test_crypto_ecdh_eddsa_SOURCES = \
438 test_crypto_ecdh_eddsa.c
439 test_crypto_ecdh_eddsa_LDADD = \
443 test_crypto_hash_SOURCES = \
445 test_crypto_hash_LDADD = \
448 test_crypto_hash_context_SOURCES = \
449 test_crypto_hash_context.c
450 test_crypto_hash_context_LDADD = \
453 test_crypto_hkdf_SOURCES = \
455 test_crypto_hkdf_LDADD = \
458 test_crypto_kdf_SOURCES = \
460 test_crypto_kdf_LDADD = \
461 libgnunetutil.la -lgcrypt
463 test_crypto_paillier_SOURCES = \
464 test_crypto_paillier.c
465 test_crypto_paillier_LDADD = \
469 test_crypto_random_SOURCES = \
471 test_crypto_random_LDADD = \
474 test_crypto_rsa_SOURCES = \
476 test_crypto_rsa_LDADD = \
477 libgnunetutil.la -lgcrypt
479 test_disk_SOURCES = \
484 test_getopt_SOURCES = \
486 test_getopt_LDADD = \
494 test_os_network_SOURCES = \
496 test_os_network_LDADD = \
499 test_peer_SOURCES = \
502 libgnunetutil.la -lgcrypt
504 test_plugin_SOURCES = \
506 test_plugin_LDADD = \
509 test_program_SOURCES = \
511 test_program_LDADD = \
514 test_resolver_api_nc_SOURCES = \
516 test_resolver_api_nc_LDADD = \
519 test_scheduler_SOURCES = \
521 test_scheduler_LDADD = \
524 test_scheduler_delay_SOURCES = \
525 test_scheduler_delay.c
526 test_scheduler_delay_LDADD = \
529 test_service_SOURCES = \
531 test_service_LDADD = \
534 test_strings_SOURCES = \
536 test_strings_LDADD = \
539 test_strings_to_data_SOURCES = \
540 test_strings_to_data.c
541 test_strings_to_data_LDADD = \
545 test_time_SOURCES = \
550 test_speedup_SOURCES = \
552 test_speedup_LDADD = \
555 perf_crypto_hash_SOURCES = \
557 perf_crypto_hash_LDADD = \
560 perf_crypto_ecc_dlog_SOURCES = \
561 perf_crypto_ecc_dlog.c
562 perf_crypto_ecc_dlog_LDADD = \
566 perf_crypto_rsa_SOURCES = \
568 perf_crypto_rsa_LDADD = \
571 perf_crypto_symmetric_SOURCES = \
572 perf_crypto_symmetric.c
573 perf_crypto_symmetric_LDADD = \
576 perf_crypto_asymmetric_SOURCES = \
577 perf_crypto_asymmetric.c
578 perf_crypto_asymmetric_LDADD = \
581 perf_crypto_paillier_SOURCES = \
582 perf_crypto_paillier.c
583 perf_crypto_paillier_LDADD = \
587 perf_malloc_SOURCES = \
589 perf_malloc_LDADD = \
594 test_client_data.conf \
595 test_client_unix.conf \
596 test_configuration_data.conf \
597 test_program_data.conf \
598 test_resolver_api_data.conf \
599 test_service_data.conf \
600 test_speedup_data.conf \