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 = \
202 if HAVE_GETADDRINFO_A
203 gnunet_service_resolver_LDADD += -lanl
207 gnunet_resolver_SOURCES = \
209 gnunet_resolver_LDADD = \
214 gnunet_ecc_SOURCES = \
218 $(GN_LIBINTL) -lgcrypt
220 gnunet_scrypt_SOURCES = \
222 gnunet_scrypt_LDADD = \
224 $(GN_LIBINTL) -lgcrypt
227 gnunet_config_SOURCES = \
229 gnunet_config_LDADD = \
234 gnunet_uri_SOURCES = \
240 plugin_LTLIBRARIES = \
241 libgnunet_plugin_test.la
243 libgnunet_plugin_test_la_SOURCES = \
245 libgnunet_plugin_test_la_LDFLAGS = \
251 perf_crypto_ecc_dlog \
253 perf_crypto_paillier \
254 perf_crypto_symmetric \
255 perf_crypto_asymmetric \
260 # SSH_USING_TESTS = test_socks.nc
266 $(TEST_CLIENT_UNIX_NC) \
267 test_common_allocation \
269 test_common_logging \
271 test_container_bloomfilter \
273 test_container_meta_data \
274 test_container_multihashmap \
275 test_container_multihashmap32 \
276 test_container_multipeermap \
277 test_container_heap \
278 test_crypto_symmetric \
283 test_crypto_ecdh_eddsa \
284 test_crypto_ecc_dlog \
286 test_crypto_hash_context \
289 test_crypto_paillier \
299 test_resolver_api.nc \
301 test_scheduler_delay \
304 test_strings_to_data \
308 test_os_start_process \
309 test_common_logging_runtime_loglevels
312 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
313 # sequential execution order for them
314 TEST_EXTENSIONS = .nc
315 test_test_client_unix.log: test_client.log
323 test_os_start_process_SOURCES = \
324 test_os_start_process.c
325 test_os_start_process_LDADD = \
327 test_os_start_process_DEPENDENCIES = \
331 test_client_nc_SOURCES = \
333 test_client_nc_LDADD = \
336 test_client_unix_nc_SOURCES = \
338 test_client_unix_nc_LDADD = \
341 #test_socks_nc_SOURCES = \
343 #test_socks_nc_LDADD = \
346 test_common_allocation_SOURCES = \
347 test_common_allocation.c
348 test_common_allocation_LDADD = \
351 test_common_endian_SOURCES = \
353 test_common_endian_LDADD = \
356 test_common_logging_SOURCES = \
357 test_common_logging.c
358 test_common_logging_LDADD = \
361 test_common_logging_runtime_loglevels_SOURCES = \
362 test_common_logging_runtime_loglevels.c
363 test_common_logging_runtime_loglevels_LDADD = \
366 test_configuration_SOURCES = \
368 test_configuration_LDADD = \
371 test_container_bloomfilter_SOURCES = \
372 test_container_bloomfilter.c
373 test_container_bloomfilter_LDADD = \
376 test_container_dll_SOURCES = \
378 test_container_dll_LDADD = \
381 test_container_meta_data_SOURCES = \
382 test_container_meta_data.c
383 test_container_meta_data_LDADD = \
386 test_container_multihashmap_SOURCES = \
387 test_container_multihashmap.c
388 test_container_multihashmap_LDADD = \
391 test_container_multihashmap32_SOURCES = \
392 test_container_multihashmap32.c
393 test_container_multihashmap32_LDADD = \
396 test_container_multipeermap_SOURCES = \
397 test_container_multipeermap.c
398 test_container_multipeermap_LDADD = \
401 test_container_heap_SOURCES = \
402 test_container_heap.c
403 test_container_heap_LDADD = \
406 test_crypto_symmetric_SOURCES = \
407 test_crypto_symmetric.c
408 test_crypto_symmetric_LDADD = \
411 test_crypto_crc_SOURCES = \
413 test_crypto_crc_LDADD = \
416 test_crypto_ecdsa_SOURCES = \
418 test_crypto_ecdsa_LDADD = \
422 test_crypto_eddsa_SOURCES = \
424 test_crypto_eddsa_LDADD = \
428 test_crypto_ecc_dlog_SOURCES = \
429 test_crypto_ecc_dlog.c
430 test_crypto_ecc_dlog_LDADD = \
434 test_crypto_ecdhe_SOURCES = \
436 test_crypto_ecdhe_LDADD = \
440 test_crypto_ecdh_eddsa_SOURCES = \
441 test_crypto_ecdh_eddsa.c
442 test_crypto_ecdh_eddsa_LDADD = \
446 test_crypto_hash_SOURCES = \
448 test_crypto_hash_LDADD = \
451 test_crypto_hash_context_SOURCES = \
452 test_crypto_hash_context.c
453 test_crypto_hash_context_LDADD = \
456 test_crypto_hkdf_SOURCES = \
458 test_crypto_hkdf_LDADD = \
461 test_crypto_kdf_SOURCES = \
463 test_crypto_kdf_LDADD = \
464 libgnunetutil.la -lgcrypt
466 test_crypto_paillier_SOURCES = \
467 test_crypto_paillier.c
468 test_crypto_paillier_LDADD = \
472 test_crypto_random_SOURCES = \
474 test_crypto_random_LDADD = \
477 test_crypto_rsa_SOURCES = \
479 test_crypto_rsa_LDADD = \
480 libgnunetutil.la -lgcrypt
482 test_disk_SOURCES = \
487 test_getopt_SOURCES = \
489 test_getopt_LDADD = \
497 test_os_network_SOURCES = \
499 test_os_network_LDADD = \
502 test_peer_SOURCES = \
505 libgnunetutil.la -lgcrypt
507 test_plugin_SOURCES = \
509 test_plugin_LDADD = \
512 test_program_SOURCES = \
514 test_program_LDADD = \
517 test_resolver_api_nc_SOURCES = \
519 test_resolver_api_nc_LDADD = \
522 test_scheduler_SOURCES = \
524 test_scheduler_LDADD = \
527 test_scheduler_delay_SOURCES = \
528 test_scheduler_delay.c
529 test_scheduler_delay_LDADD = \
532 test_service_SOURCES = \
534 test_service_LDADD = \
537 test_strings_SOURCES = \
539 test_strings_LDADD = \
542 test_strings_to_data_SOURCES = \
543 test_strings_to_data.c
544 test_strings_to_data_LDADD = \
548 test_time_SOURCES = \
553 test_speedup_SOURCES = \
555 test_speedup_LDADD = \
558 perf_crypto_hash_SOURCES = \
560 perf_crypto_hash_LDADD = \
563 perf_crypto_ecc_dlog_SOURCES = \
564 perf_crypto_ecc_dlog.c
565 perf_crypto_ecc_dlog_LDADD = \
569 perf_crypto_rsa_SOURCES = \
571 perf_crypto_rsa_LDADD = \
574 perf_crypto_symmetric_SOURCES = \
575 perf_crypto_symmetric.c
576 perf_crypto_symmetric_LDADD = \
579 perf_crypto_asymmetric_SOURCES = \
580 perf_crypto_asymmetric.c
581 perf_crypto_asymmetric_LDADD = \
584 perf_crypto_paillier_SOURCES = \
585 perf_crypto_paillier.c
586 perf_crypto_paillier_LDADD = \
590 perf_malloc_SOURCES = \
592 perf_malloc_LDADD = \
597 test_client_data.conf \
598 test_client_unix.conf \
599 test_configuration_data.conf \
600 test_program_data.conf \
601 test_resolver_api_data.conf \
602 test_service_data.conf \
603 test_speedup_data.conf \