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 SERVER_CLIENT_UNIX = test_server_with_client_unix
37 AM_CFLAGS = --coverage -O0
41 w32cat_SOURCES = w32cat.c
43 gnunet_helper_w32_console_SOURCES = \
44 gnunet-helper-w32-console.c \
45 gnunet-helper-w32-console.h
46 gnunet_helper_w32_console_LDADD = \
49 gnunet_config_diff_SOURCES = \
51 gnunet_config_diff_LDADD = \
54 test_common_logging_dummy_SOURCES = \
55 test_common_logging_dummy.c
56 test_common_logging_dummy_LDADD = \
59 libgnunetutil_la_SOURCES = \
67 configuration_loader.c \
69 container_bloomfilter.c \
71 container_meta_data.c \
72 container_multihashmap.c \
73 container_multishortmap.c \
74 container_multipeermap.c \
75 container_multihashmap32.c \
106 resolver_api.c resolver.h \
120 libgnunetutil_la_LIBADD = \
121 $(GCLIBADD) $(WINLIB) \
125 -lltdl $(Z_LIBS) -lunistring $(XLIB)
127 libgnunetutil_la_LDFLAGS = \
132 libgnunetutil_taler_wallet_la_SOURCES = \
133 common_allocation.c \
137 container_multihashmap.c \
138 container_multihashmap32.c \
151 libgnunetutil_taler_wallet_la_LIBADD = \
155 libgnunetutil_taler_wallet_la_LDFLAGS = \
160 GNUNET_ECC = gnunet-ecc
161 GNUNET_SCRYPT = gnunet-scrypt
165 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
167 lib_LTLIBRARIES = libgnunetutil.la
170 gnunet-service-resolver \
186 test_common_logging_dummy
190 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
191 TESTS = $(check_PROGRAMS)
197 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
199 gnunet-qr: gnunet-qr.py.in Makefile
200 $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr
203 gnunet_service_resolver_SOURCES = \
204 gnunet-service-resolver.c
205 gnunet_service_resolver_LDADD = \
210 gnunet_resolver_SOURCES = \
212 gnunet_resolver_LDADD = \
217 gnunet_ecc_SOURCES = \
221 $(GN_LIBINTL) -lgcrypt
223 gnunet_scrypt_SOURCES = \
225 gnunet_scrypt_LDADD = \
227 $(GN_LIBINTL) -lgcrypt
230 gnunet_config_SOURCES = \
232 gnunet_config_LDADD = \
237 gnunet_uri_SOURCES = \
243 plugin_LTLIBRARIES = \
244 libgnunet_plugin_test.la
246 libgnunet_plugin_test_la_SOURCES = \
248 libgnunet_plugin_test_la_LDFLAGS = \
254 perf_crypto_ecc_dlog \
256 perf_crypto_paillier \
257 perf_crypto_symmetric \
258 perf_crypto_asymmetric \
263 SSH_USING_TESTS = test_socks.nc
269 test_client_unix.nc \
271 test_common_allocation \
273 test_common_logging \
275 test_container_bloomfilter \
277 test_container_meta_data \
278 test_container_multihashmap \
279 test_container_multihashmap32 \
280 test_container_multipeermap \
281 test_container_heap \
282 test_crypto_symmetric \
287 test_crypto_ecdh_eddsa \
288 test_crypto_ecc_dlog \
290 test_crypto_hash_context \
293 test_crypto_paillier \
299 test_connection_addressing.nc \
300 test_connection_receive_cancel.nc \
301 test_connection_timeout.nc \
302 test_connection_timeout_no_connect.nc \
303 test_connection_transmit_cancel.nc \
309 test_resolver_api.nc \
311 test_scheduler_delay \
313 test_server_disconnect.nc \
314 test_server_with_client.nc \
315 test_server_mst_interrupt.nc \
316 $(SERVER_CLIENT_UNIX) \
319 test_strings_to_data \
323 test_os_start_process \
324 test_common_logging_runtime_loglevels
327 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
328 # sequential execution order for them
329 TEST_EXTENSIONS = .nc
330 test_connection.log: test_client.log
331 test_connection_addressing.log: test_connection.log
332 test_connection_timeout_no_connect.log: test_connection_addressing.log
333 test_connection_transmit_cancel.log: test_connection_timeout_no_connect.log
334 test_connection_receive_cancel.log: test_connection_transmit_cancel.log
335 test_connection_timeout.log: test_connection_receive_cancel.log
336 test_resolver_api.log: test_connection_timeout.log
337 test_server.log: test_resolver_api.log
338 test_server_disconnect.log: test_server.log
339 test_server_with_client.log: test_server_disconnect.log
340 test_server_mst_interrupt.log: test_server_with_client.log
341 test_client_unix.log: test_server_mst_interrupt.log
349 test_os_start_process_SOURCES = \
350 test_os_start_process.c
351 test_os_start_process_LDADD = \
353 test_os_start_process_DEPENDENCIES = \
357 test_client_nc_SOURCES = \
359 test_client_nc_LDADD = \
362 test_client_unix_nc_SOURCES = \
364 test_client_unix_nc_LDADD = \
367 test_socks_nc_SOURCES = \
369 test_socks_nc_LDADD = \
372 test_common_allocation_SOURCES = \
373 test_common_allocation.c
374 test_common_allocation_LDADD = \
377 test_common_endian_SOURCES = \
379 test_common_endian_LDADD = \
382 test_common_logging_SOURCES = \
383 test_common_logging.c
384 test_common_logging_LDADD = \
387 test_common_logging_runtime_loglevels_SOURCES = \
388 test_common_logging_runtime_loglevels.c
389 test_common_logging_runtime_loglevels_LDADD = \
392 test_configuration_SOURCES = \
394 test_configuration_LDADD = \
397 test_container_bloomfilter_SOURCES = \
398 test_container_bloomfilter.c
399 test_container_bloomfilter_LDADD = \
402 test_container_dll_SOURCES = \
404 test_container_dll_LDADD = \
407 test_container_meta_data_SOURCES = \
408 test_container_meta_data.c
409 test_container_meta_data_LDADD = \
410 libgnunetutil.la -lextractor
412 test_container_multihashmap_SOURCES = \
413 test_container_multihashmap.c
414 test_container_multihashmap_LDADD = \
417 test_container_multihashmap32_SOURCES = \
418 test_container_multihashmap32.c
419 test_container_multihashmap32_LDADD = \
422 test_container_multipeermap_SOURCES = \
423 test_container_multipeermap.c
424 test_container_multipeermap_LDADD = \
427 test_container_heap_SOURCES = \
428 test_container_heap.c
429 test_container_heap_LDADD = \
432 test_crypto_symmetric_SOURCES = \
433 test_crypto_symmetric.c
434 test_crypto_symmetric_LDADD = \
437 test_crypto_crc_SOURCES = \
439 test_crypto_crc_LDADD = \
442 test_crypto_ecdsa_SOURCES = \
444 test_crypto_ecdsa_LDADD = \
448 test_crypto_eddsa_SOURCES = \
450 test_crypto_eddsa_LDADD = \
454 test_crypto_ecc_dlog_SOURCES = \
455 test_crypto_ecc_dlog.c
456 test_crypto_ecc_dlog_LDADD = \
460 test_crypto_ecdhe_SOURCES = \
462 test_crypto_ecdhe_LDADD = \
466 test_crypto_ecdh_eddsa_SOURCES = \
467 test_crypto_ecdh_eddsa.c
468 test_crypto_ecdh_eddsa_LDADD = \
472 test_crypto_hash_SOURCES = \
474 test_crypto_hash_LDADD = \
477 test_crypto_hash_context_SOURCES = \
478 test_crypto_hash_context.c
479 test_crypto_hash_context_LDADD = \
482 test_crypto_hkdf_SOURCES = \
484 test_crypto_hkdf_LDADD = \
487 test_crypto_kdf_SOURCES = \
489 test_crypto_kdf_LDADD = \
490 libgnunetutil.la -lgcrypt
492 test_crypto_paillier_SOURCES = \
493 test_crypto_paillier.c
494 test_crypto_paillier_LDADD = \
498 test_crypto_random_SOURCES = \
500 test_crypto_random_LDADD = \
503 test_crypto_rsa_SOURCES = \
505 test_crypto_rsa_LDADD = \
506 libgnunetutil.la -lgcrypt
508 test_disk_SOURCES = \
513 test_getopt_SOURCES = \
515 test_getopt_LDADD = \
518 test_connection_nc_SOURCES = \
520 test_connection_nc_LDADD = \
523 test_connection_addressing_nc_SOURCES = \
524 test_connection_addressing.c
525 test_connection_addressing_nc_LDADD = \
528 test_connection_receive_cancel_nc_SOURCES = \
529 test_connection_receive_cancel.c
530 test_connection_receive_cancel_nc_LDADD = \
533 test_connection_timeout_nc_SOURCES = \
534 test_connection_timeout.c
535 test_connection_timeout_nc_LDADD = \
538 test_connection_timeout_no_connect_nc_SOURCES = \
539 test_connection_timeout_no_connect.c
540 test_connection_timeout_no_connect_nc_LDADD = \
543 test_connection_transmit_cancel_nc_SOURCES = \
544 test_connection_transmit_cancel.c
545 test_connection_transmit_cancel_nc_LDADD = \
553 test_os_network_SOURCES = \
555 test_os_network_LDADD = \
558 test_peer_SOURCES = \
561 libgnunetutil.la -lgcrypt
563 test_plugin_SOURCES = \
565 test_plugin_LDADD = \
568 test_program_SOURCES = \
570 test_program_LDADD = \
573 test_resolver_api_nc_SOURCES = \
575 test_resolver_api_nc_LDADD = \
578 test_scheduler_SOURCES = \
580 test_scheduler_LDADD = \
583 test_scheduler_delay_SOURCES = \
584 test_scheduler_delay.c
585 test_scheduler_delay_LDADD = \
588 test_server_mst_interrupt_nc_SOURCES = \
589 test_server_mst_interrupt.c
590 test_server_mst_interrupt_nc_LDADD = \
593 test_server_nc_SOURCES = \
595 test_server_nc_LDADD = \
598 test_server_disconnect_nc_SOURCES = \
599 test_server_disconnect.c
600 test_server_disconnect_nc_LDADD = \
603 test_server_with_client_nc_SOURCES = \
604 test_server_with_client.c
605 test_server_with_client_nc_LDADD = \
608 test_server_with_client_unix_SOURCES = \
609 test_server_with_client_unix.c
610 test_server_with_client_unix_LDADD = \
614 test_service_SOURCES = \
616 test_service_LDADD = \
619 test_strings_SOURCES = \
621 test_strings_LDADD = \
625 test_strings_to_data_SOURCES = \
626 test_strings_to_data.c
627 test_strings_to_data_LDADD = \
631 test_time_SOURCES = \
636 test_speedup_SOURCES = \
638 test_speedup_LDADD = \
641 perf_crypto_hash_SOURCES = \
643 perf_crypto_hash_LDADD = \
646 perf_crypto_ecc_dlog_SOURCES = \
647 perf_crypto_ecc_dlog.c
648 perf_crypto_ecc_dlog_LDADD = \
652 perf_crypto_rsa_SOURCES = \
654 perf_crypto_rsa_LDADD = \
657 perf_crypto_symmetric_SOURCES = \
658 perf_crypto_symmetric.c
659 perf_crypto_symmetric_LDADD = \
662 perf_crypto_asymmetric_SOURCES = \
663 perf_crypto_asymmetric.c
664 perf_crypto_asymmetric_LDADD = \
667 perf_crypto_paillier_SOURCES = \
668 perf_crypto_paillier.c
669 perf_crypto_paillier_LDADD = \
673 perf_malloc_SOURCES = \
675 perf_malloc_LDADD = \
680 test_client_data.conf \
681 test_client_unix.conf \
682 test_configuration_data.conf \
683 test_program_data.conf \
684 test_resolver_api_data.conf \
685 test_service_data.conf \
686 test_speedup_data.conf \