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 \
108 resolver_api.c resolver.h \
116 libgnunetutil_la_LIBADD = \
117 $(GCLIBADD) $(WINLIB) \
126 -lltdl $(Z_LIBS) -lunistring $(XLIB)
128 libgnunetutil_la_LDFLAGS = \
133 libgnunetutil_la_CFLAGS = \
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 \
190 test_common_logging_dummy
194 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
195 TESTS = $(check_PROGRAMS)
201 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
203 gnunet-qr: gnunet-qr.py.in Makefile
204 $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr
207 gnunet_service_resolver_SOURCES = \
208 gnunet-service-resolver.c
209 gnunet_service_resolver_LDADD = \
214 gnunet_resolver_SOURCES = \
216 gnunet_resolver_LDADD = \
221 gnunet_ecc_SOURCES = \
225 $(GN_LIBINTL) -lgcrypt
227 gnunet_scrypt_SOURCES = \
229 gnunet_scrypt_LDADD = \
231 $(GN_LIBINTL) -lgcrypt
234 gnunet_config_SOURCES = \
236 gnunet_config_LDADD = \
241 gnunet_uri_SOURCES = \
247 plugin_LTLIBRARIES = \
248 libgnunet_plugin_test.la
250 libgnunet_plugin_test_la_SOURCES = \
252 libgnunet_plugin_test_la_LDFLAGS = \
258 perf_crypto_ecc_dlog \
260 perf_crypto_paillier \
261 perf_crypto_symmetric \
262 perf_crypto_asymmetric \
267 # SSH_USING_TESTS = test_socks.nc
273 $(TEST_CLIENT_UNIX_NC) \
274 test_common_allocation \
276 test_common_logging \
278 test_container_bloomfilter \
280 test_container_meta_data \
281 test_container_multihashmap \
282 test_container_multihashmap32 \
283 test_container_multipeermap \
284 test_container_heap \
285 test_crypto_symmetric \
291 test_crypto_ecdh_eddsa \
292 test_crypto_ecc_dlog \
294 test_crypto_hash_context \
297 test_crypto_paillier \
307 test_resolver_api.nc \
309 test_scheduler_delay \
312 test_strings_to_data \
316 test_os_start_process \
317 test_common_logging_runtime_loglevels
320 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
321 # sequential execution order for them
322 TEST_EXTENSIONS = .nc
323 test_test_client_unix.log: test_client.log
331 test_os_start_process_SOURCES = \
332 test_os_start_process.c
333 test_os_start_process_LDADD = \
335 test_os_start_process_DEPENDENCIES = \
339 test_client_nc_SOURCES = \
341 test_client_nc_LDADD = \
344 test_client_unix_nc_SOURCES = \
346 test_client_unix_nc_LDADD = \
349 test_socks_nc_SOURCES = \
351 test_socks_nc_LDADD = \
354 test_common_allocation_SOURCES = \
355 test_common_allocation.c
356 test_common_allocation_LDADD = \
359 test_common_endian_SOURCES = \
361 test_common_endian_LDADD = \
364 test_common_logging_SOURCES = \
365 test_common_logging.c
366 test_common_logging_LDADD = \
369 test_common_logging_runtime_loglevels_SOURCES = \
370 test_common_logging_runtime_loglevels.c
371 test_common_logging_runtime_loglevels_LDADD = \
374 test_configuration_SOURCES = \
376 test_configuration_LDADD = \
379 test_container_bloomfilter_SOURCES = \
380 test_container_bloomfilter.c
381 test_container_bloomfilter_LDADD = \
384 test_container_dll_SOURCES = \
386 test_container_dll_LDADD = \
389 test_container_meta_data_SOURCES = \
390 test_container_meta_data.c
391 test_container_meta_data_LDADD = \
394 test_container_multihashmap_SOURCES = \
395 test_container_multihashmap.c
396 test_container_multihashmap_LDADD = \
399 test_container_multihashmap32_SOURCES = \
400 test_container_multihashmap32.c
401 test_container_multihashmap32_LDADD = \
404 test_container_multipeermap_SOURCES = \
405 test_container_multipeermap.c
406 test_container_multipeermap_LDADD = \
409 test_container_heap_SOURCES = \
410 test_container_heap.c
411 test_container_heap_LDADD = \
414 test_crypto_symmetric_SOURCES = \
415 test_crypto_symmetric.c
416 test_crypto_symmetric_LDADD = \
419 test_crypto_abe_SOURCES = \
421 test_crypto_abe_LDADD = \
424 test_crypto_crc_SOURCES = \
426 test_crypto_crc_LDADD = \
429 test_crypto_ecdsa_SOURCES = \
431 test_crypto_ecdsa_LDADD = \
435 test_crypto_eddsa_SOURCES = \
437 test_crypto_eddsa_LDADD = \
441 test_crypto_ecc_dlog_SOURCES = \
442 test_crypto_ecc_dlog.c
443 test_crypto_ecc_dlog_LDADD = \
447 test_crypto_ecdhe_SOURCES = \
449 test_crypto_ecdhe_LDADD = \
453 test_crypto_ecdh_eddsa_SOURCES = \
454 test_crypto_ecdh_eddsa.c
455 test_crypto_ecdh_eddsa_LDADD = \
459 test_crypto_hash_SOURCES = \
461 test_crypto_hash_LDADD = \
464 test_crypto_hash_context_SOURCES = \
465 test_crypto_hash_context.c
466 test_crypto_hash_context_LDADD = \
469 test_crypto_hkdf_SOURCES = \
471 test_crypto_hkdf_LDADD = \
474 test_crypto_kdf_SOURCES = \
476 test_crypto_kdf_LDADD = \
477 libgnunetutil.la -lgcrypt
479 test_crypto_paillier_SOURCES = \
480 test_crypto_paillier.c
481 test_crypto_paillier_LDADD = \
485 test_crypto_random_SOURCES = \
487 test_crypto_random_LDADD = \
490 test_crypto_rsa_SOURCES = \
492 test_crypto_rsa_LDADD = \
493 libgnunetutil.la -lgcrypt
495 test_disk_SOURCES = \
500 test_getopt_SOURCES = \
502 test_getopt_LDADD = \
510 test_os_network_SOURCES = \
512 test_os_network_LDADD = \
515 test_peer_SOURCES = \
518 libgnunetutil.la -lgcrypt
520 test_plugin_SOURCES = \
522 test_plugin_LDADD = \
525 test_program_SOURCES = \
527 test_program_LDADD = \
530 test_resolver_api_nc_SOURCES = \
532 test_resolver_api_nc_LDADD = \
535 test_scheduler_SOURCES = \
537 test_scheduler_LDADD = \
540 test_scheduler_delay_SOURCES = \
541 test_scheduler_delay.c
542 test_scheduler_delay_LDADD = \
545 test_service_SOURCES = \
547 test_service_LDADD = \
550 test_strings_SOURCES = \
552 test_strings_LDADD = \
555 test_strings_to_data_SOURCES = \
556 test_strings_to_data.c
557 test_strings_to_data_LDADD = \
561 test_time_SOURCES = \
566 test_speedup_SOURCES = \
568 test_speedup_LDADD = \
571 perf_crypto_hash_SOURCES = \
573 perf_crypto_hash_LDADD = \
576 perf_crypto_ecc_dlog_SOURCES = \
577 perf_crypto_ecc_dlog.c
578 perf_crypto_ecc_dlog_LDADD = \
582 perf_crypto_rsa_SOURCES = \
584 perf_crypto_rsa_LDADD = \
587 perf_crypto_symmetric_SOURCES = \
588 perf_crypto_symmetric.c
589 perf_crypto_symmetric_LDADD = \
592 perf_crypto_asymmetric_SOURCES = \
593 perf_crypto_asymmetric.c
594 perf_crypto_asymmetric_LDADD = \
597 perf_crypto_paillier_SOURCES = \
598 perf_crypto_paillier.c
599 perf_crypto_paillier_LDADD = \
603 perf_malloc_SOURCES = \
605 perf_malloc_LDADD = \
610 test_client_data.conf \
611 test_client_unix.conf \
612 test_configuration_data.conf \
613 test_program_data.conf \
614 test_resolver_api_data.conf \
615 test_service_data.conf \
616 test_speedup_data.conf \