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 = \
68 configuration_loader.c \
70 container_bloomfilter.c \
72 container_meta_data.c \
73 container_multihashmap.c \
74 container_multipeermap.c \
75 container_multihashmap32.c \
104 resolver_api.c resolver.h \
117 libgnunetutil_la_LIBADD = \
118 $(GCLIBADD) $(WINLIB) \
122 -lltdl $(Z_LIBS) -lunistring $(XLIB)
124 libgnunetutil_la_LDFLAGS = \
129 libgnunetutil_taler_wallet_la_SOURCES = \
130 common_allocation.c \
134 container_multihashmap.c \
135 container_multihashmap32.c \
148 libgnunetutil_taler_wallet_la_LIBADD = \
152 libgnunetutil_taler_wallet_la_LDFLAGS = \
157 GNUNET_ECC = gnunet-ecc
158 GNUNET_SCRYPT = gnunet-scrypt
162 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
164 lib_LTLIBRARIES = libgnunetutil.la
167 gnunet-service-resolver \
183 test_common_logging_dummy
187 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
188 TESTS = $(check_PROGRAMS)
194 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
196 gnunet-qr: gnunet-qr.py.in Makefile
197 $(do_subst) < gnunet-qr.py.in > gnunet-qr
200 gnunet_service_resolver_SOURCES = \
201 gnunet-service-resolver.c
202 gnunet_service_resolver_LDADD = \
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
267 test_common_allocation \
269 test_common_logging \
271 test_container_bloomfilter \
272 test_container_meta_data \
273 test_container_multihashmap \
274 test_container_multihashmap32 \
275 test_container_multipeermap \
276 test_container_heap \
277 test_crypto_symmetric \
282 test_crypto_ecdh_eddsa \
283 test_crypto_ecc_dlog \
285 test_crypto_hash_context \
287 test_crypto_paillier \
293 test_connection_addressing.nc \
294 test_connection_receive_cancel.nc \
295 test_connection_timeout.nc \
296 test_connection_timeout_no_connect.nc \
297 test_connection_transmit_cancel.nc \
304 test_resolver_api.nc \
306 test_scheduler_delay \
308 test_server_disconnect.nc \
309 test_server_with_client.nc \
310 test_server_mst_interrupt.nc \
311 $(SERVER_CLIENT_UNIX) \
314 test_strings_to_data \
318 test_os_start_process \
319 test_common_logging_runtime_loglevels
322 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
323 # sequential execution order for them
324 TEST_EXTENSIONS = .nc
325 test_connection.log: test_client.log
326 test_connection_addressing.log: test_connection.log
327 test_connection_timeout_no_connect.log: test_connection_addressing.log
328 test_connection_transmit_cancel.log: test_connection_timeout_no_connect.log
329 test_connection_receive_cancel.log: test_connection_transmit_cancel.log
330 test_connection_timeout.log: test_connection_receive_cancel.log
331 test_mq_client.log: test_connection_timeout.log
332 test_resolver_api.log: test_mq_client.log
333 test_server.log: test_resolver_api.log
334 test_server_disconnect.log: test_server.log
335 test_server_with_client.log: test_server_disconnect.log
336 test_server_mst_interrupt.log: test_server_with_client.log
344 test_os_start_process_SOURCES = \
345 test_os_start_process.c
346 test_os_start_process_LDADD = \
348 test_os_start_process_DEPENDENCIES = \
352 test_client_nc_SOURCES = \
354 test_client_nc_LDADD = \
357 test_socks_nc_SOURCES = \
359 test_socks_nc_LDADD = \
362 test_common_allocation_SOURCES = \
363 test_common_allocation.c
364 test_common_allocation_LDADD = \
367 test_common_endian_SOURCES = \
369 test_common_endian_LDADD = \
372 test_common_logging_SOURCES = \
373 test_common_logging.c
374 test_common_logging_LDADD = \
377 test_common_logging_runtime_loglevels_SOURCES = \
378 test_common_logging_runtime_loglevels.c
379 test_common_logging_runtime_loglevels_LDADD = \
382 test_configuration_SOURCES = \
384 test_configuration_LDADD = \
387 test_container_bloomfilter_SOURCES = \
388 test_container_bloomfilter.c
389 test_container_bloomfilter_LDADD = \
392 test_container_meta_data_SOURCES = \
393 test_container_meta_data.c
394 test_container_meta_data_LDADD = \
395 libgnunetutil.la -lextractor
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_hash_SOURCES = \
459 test_crypto_hash_LDADD = \
462 test_crypto_hash_context_SOURCES = \
463 test_crypto_hash_context.c
464 test_crypto_hash_context_LDADD = \
467 test_crypto_hkdf_SOURCES = \
469 test_crypto_hkdf_LDADD = \
472 test_crypto_paillier_SOURCES = \
473 test_crypto_paillier.c
474 test_crypto_paillier_LDADD = \
478 test_crypto_random_SOURCES = \
480 test_crypto_random_LDADD = \
483 test_crypto_rsa_SOURCES = \
485 test_crypto_rsa_LDADD = \
486 libgnunetutil.la -lgcrypt
488 test_disk_SOURCES = \
493 test_getopt_SOURCES = \
495 test_getopt_LDADD = \
498 test_connection_nc_SOURCES = \
500 test_connection_nc_LDADD = \
503 test_connection_addressing_nc_SOURCES = \
504 test_connection_addressing.c
505 test_connection_addressing_nc_LDADD = \
508 test_connection_receive_cancel_nc_SOURCES = \
509 test_connection_receive_cancel.c
510 test_connection_receive_cancel_nc_LDADD = \
513 test_connection_timeout_nc_SOURCES = \
514 test_connection_timeout.c
515 test_connection_timeout_nc_LDADD = \
518 test_connection_timeout_no_connect_nc_SOURCES = \
519 test_connection_timeout_no_connect.c
520 test_connection_timeout_no_connect_nc_LDADD = \
523 test_connection_transmit_cancel_nc_SOURCES = \
524 test_connection_transmit_cancel.c
525 test_connection_transmit_cancel_nc_LDADD = \
533 test_mq_client_nc_SOURCES = \
535 test_mq_client_nc_LDADD = \
538 test_os_network_SOURCES = \
540 test_os_network_LDADD = \
543 test_peer_SOURCES = \
546 libgnunetutil.la -lgcrypt
548 test_plugin_SOURCES = \
550 test_plugin_LDADD = \
553 test_program_SOURCES = \
555 test_program_LDADD = \
558 test_resolver_api_nc_SOURCES = \
560 test_resolver_api_nc_LDADD = \
563 test_scheduler_SOURCES = \
565 test_scheduler_LDADD = \
568 test_scheduler_delay_SOURCES = \
569 test_scheduler_delay.c
570 test_scheduler_delay_LDADD = \
573 test_server_mst_interrupt_nc_SOURCES = \
574 test_server_mst_interrupt.c
575 test_server_mst_interrupt_nc_LDADD = \
578 test_server_nc_SOURCES = \
580 test_server_nc_LDADD = \
583 test_server_disconnect_nc_SOURCES = \
584 test_server_disconnect.c
585 test_server_disconnect_nc_LDADD = \
588 test_server_with_client_nc_SOURCES = \
589 test_server_with_client.c
590 test_server_with_client_nc_LDADD = \
593 test_server_with_client_unix_SOURCES = \
594 test_server_with_client_unix.c
595 test_server_with_client_unix_LDADD = \
599 test_service_SOURCES = \
601 test_service_LDADD = \
604 test_strings_SOURCES = \
606 test_strings_LDADD = \
610 test_strings_to_data_SOURCES = \
611 test_strings_to_data.c
612 test_strings_to_data_LDADD = \
616 test_time_SOURCES = \
621 test_speedup_SOURCES = \
623 test_speedup_LDADD = \
626 perf_crypto_hash_SOURCES = \
628 perf_crypto_hash_LDADD = \
631 perf_crypto_ecc_dlog_SOURCES = \
632 perf_crypto_ecc_dlog.c
633 perf_crypto_ecc_dlog_LDADD = \
637 perf_crypto_rsa_SOURCES = \
639 perf_crypto_rsa_LDADD = \
642 perf_crypto_symmetric_SOURCES = \
643 perf_crypto_symmetric.c
644 perf_crypto_symmetric_LDADD = \
647 perf_crypto_asymmetric_SOURCES = \
648 perf_crypto_asymmetric.c
649 perf_crypto_asymmetric_LDADD = \
652 perf_crypto_paillier_SOURCES = \
653 perf_crypto_paillier.c
654 perf_crypto_paillier_LDADD = \
658 perf_malloc_SOURCES = \
660 perf_malloc_LDADD = \
665 test_configuration_data.conf \
666 test_program_data.conf \
667 test_resolver_api_data.conf \
668 test_service_data.conf \
669 test_speedup_data.conf \