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 = \
52 test_common_logging_dummy
55 gnunet_config_diff_SOURCES = \
57 gnunet_config_diff_LDADD = \
60 test_common_logging_dummy_SOURCES = \
61 test_common_logging_dummy.c
62 test_common_logging_dummy_LDADD = \
65 lib_LTLIBRARIES = libgnunetutil.la
67 libgnunetutil_la_SOURCES = \
77 container_bloomfilter.c \
79 container_meta_data.c \
80 container_multihashmap.c \
81 container_multipeermap.c \
82 container_multihashmap32.c \
107 resolver_api.c resolver.h \
119 libgnunetutil_la_LIBADD = \
120 $(GCLIBADD) $(WINLIB) \
124 -lltdl $(Z_LIBS) -lunistring $(XLIB)
126 libgnunetutil_la_LDFLAGS = \
131 GNUNET_ECC = gnunet-ecc
132 GNUNET_SCRYPT = gnunet-scrypt
137 gnunet-service-resolver \
150 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
152 gnunet-qr: gnunet-qr.py.in Makefile
153 $(do_subst) < gnunet-qr.py.in > gnunet-qr
156 gnunet_service_resolver_SOURCES = \
157 gnunet-service-resolver.c
158 gnunet_service_resolver_LDADD = \
163 gnunet_resolver_SOURCES = \
165 gnunet_resolver_LDADD = \
170 gnunet_ecc_SOURCES = \
174 $(GN_LIBINTL) -lgcrypt
176 gnunet_scrypt_SOURCES = \
178 gnunet_scrypt_LDADD = \
180 $(GN_LIBINTL) -lgcrypt
183 gnunet_config_SOURCES = \
185 gnunet_config_LDADD = \
190 gnunet_uri_SOURCES = \
196 plugin_LTLIBRARIES = \
197 libgnunet_plugin_test.la
199 libgnunet_plugin_test_la_SOURCES = \
201 libgnunet_plugin_test_la_LDFLAGS = \
207 perf_crypto_paillier \
208 perf_crypto_symmetric \
209 perf_crypto_asymmetric \
216 test_common_allocation \
218 test_common_logging \
220 test_container_bloomfilter \
221 test_container_meta_data \
222 test_container_multihashmap \
223 test_container_multihashmap32 \
224 test_container_multipeermap \
225 test_container_heap \
226 test_crypto_symmetric \
231 test_crypto_ecdh_ecdsa \
233 test_crypto_hash_context \
235 test_crypto_paillier \
241 test_connection_addressing.nc \
242 test_connection_receive_cancel.nc \
243 test_connection_timeout.nc \
244 test_connection_timeout_no_connect.nc \
245 test_connection_transmit_cancel.nc \
252 test_resolver_api.nc \
254 test_scheduler_delay \
256 test_server_disconnect.nc \
257 test_server_with_client.nc \
258 test_server_mst_interrupt.nc \
259 $(SERVER_CLIENT_UNIX) \
262 test_strings_to_data \
266 test_os_start_process \
267 test_common_logging_runtime_loglevels
270 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
271 TESTS = $(check_PROGRAMS)
274 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
275 # sequential execution order for them
276 TEST_EXTENSIONS = .nc
277 test_connection.log: test_client.log
278 test_connection_addressing.log: test_connection.log
279 test_connection_timeout_no_connect.log: test_connection_addressing.log
280 test_connection_transmit_cancel.log: test_connection_timeout_no_connect.log
281 test_connection_receive_cancel.log: test_connection_transmit_cancel.log
282 test_connection_timeout.log: test_connection_receive_cancel.log
283 test_mq_client.log: test_connection_timeout.log
284 test_resolver_api.log: test_mq_client.log
285 test_server.log: test_resolver_api.log
286 test_server_disconnect.log: test_server.log
287 test_server_with_client.log: test_server_disconnect.log
288 test_server_mst_interrupt.log: test_server_with_client.log
296 test_os_start_process_SOURCES = \
297 test_os_start_process.c
298 test_os_start_process_LDADD = \
300 test_os_start_process_DEPENDENCIES = \
304 test_client_nc_SOURCES = \
306 test_client_nc_LDADD = \
309 test_common_allocation_SOURCES = \
310 test_common_allocation.c
311 test_common_allocation_LDADD = \
314 test_common_endian_SOURCES = \
316 test_common_endian_LDADD = \
319 test_common_logging_SOURCES = \
320 test_common_logging.c
321 test_common_logging_LDADD = \
324 test_common_logging_runtime_loglevels_SOURCES = \
325 test_common_logging_runtime_loglevels.c
326 test_common_logging_runtime_loglevels_LDADD = \
329 test_configuration_SOURCES = \
331 test_configuration_LDADD = \
334 test_container_bloomfilter_SOURCES = \
335 test_container_bloomfilter.c
336 test_container_bloomfilter_LDADD = \
339 test_container_meta_data_SOURCES = \
340 test_container_meta_data.c
341 test_container_meta_data_LDADD = \
342 libgnunetutil.la -lextractor
344 test_container_multihashmap_SOURCES = \
345 test_container_multihashmap.c
346 test_container_multihashmap_LDADD = \
349 test_container_multihashmap32_SOURCES = \
350 test_container_multihashmap32.c
351 test_container_multihashmap32_LDADD = \
354 test_container_multipeermap_SOURCES = \
355 test_container_multipeermap.c
356 test_container_multipeermap_LDADD = \
359 test_container_heap_SOURCES = \
360 test_container_heap.c
361 test_container_heap_LDADD = \
364 test_crypto_symmetric_SOURCES = \
365 test_crypto_symmetric.c
366 test_crypto_symmetric_LDADD = \
369 test_crypto_crc_SOURCES = \
371 test_crypto_crc_LDADD = \
374 test_crypto_ecdsa_SOURCES = \
376 test_crypto_ecdsa_LDADD = \
380 test_crypto_eddsa_SOURCES = \
382 test_crypto_eddsa_LDADD = \
386 test_crypto_ecdhe_SOURCES = \
388 test_crypto_ecdhe_LDADD = \
392 test_crypto_ecdh_ecdsa_SOURCES = \
393 test_crypto_ecdh_ecdsa.c
394 test_crypto_ecdh_ecdsa_LDADD = \
398 test_crypto_hash_SOURCES = \
400 test_crypto_hash_LDADD = \
403 test_crypto_hash_context_SOURCES = \
404 test_crypto_hash_context.c
405 test_crypto_hash_context_LDADD = \
408 test_crypto_hkdf_SOURCES = \
410 test_crypto_hkdf_LDADD = \
413 test_crypto_paillier_SOURCES = \
414 test_crypto_paillier.c
415 test_crypto_paillier_LDADD = \
419 test_crypto_random_SOURCES = \
421 test_crypto_random_LDADD = \
424 test_crypto_rsa_SOURCES = \
426 test_crypto_rsa_LDADD = \
429 test_disk_SOURCES = \
434 test_getopt_SOURCES = \
436 test_getopt_LDADD = \
439 test_connection_nc_SOURCES = \
441 test_connection_nc_LDADD = \
444 test_connection_addressing_nc_SOURCES = \
445 test_connection_addressing.c
446 test_connection_addressing_nc_LDADD = \
449 test_connection_receive_cancel_nc_SOURCES = \
450 test_connection_receive_cancel.c
451 test_connection_receive_cancel_nc_LDADD = \
454 test_connection_timeout_nc_SOURCES = \
455 test_connection_timeout.c
456 test_connection_timeout_nc_LDADD = \
459 test_connection_timeout_no_connect_nc_SOURCES = \
460 test_connection_timeout_no_connect.c
461 test_connection_timeout_no_connect_nc_LDADD = \
464 test_connection_transmit_cancel_nc_SOURCES = \
465 test_connection_transmit_cancel.c
466 test_connection_transmit_cancel_nc_LDADD = \
474 test_mq_client_nc_SOURCES = \
476 test_mq_client_nc_LDADD = \
479 test_os_network_SOURCES = \
481 test_os_network_LDADD = \
484 test_peer_SOURCES = \
487 libgnunetutil.la -lgcrypt
489 test_plugin_SOURCES = \
491 test_plugin_LDADD = \
494 test_program_SOURCES = \
496 test_program_LDADD = \
499 test_resolver_api_nc_SOURCES = \
501 test_resolver_api_nc_LDADD = \
504 test_scheduler_SOURCES = \
506 test_scheduler_LDADD = \
509 test_scheduler_delay_SOURCES = \
510 test_scheduler_delay.c
511 test_scheduler_delay_LDADD = \
514 test_server_mst_interrupt_nc_SOURCES = \
515 test_server_mst_interrupt.c
516 test_server_mst_interrupt_nc_LDADD = \
519 test_server_nc_SOURCES = \
521 test_server_nc_LDADD = \
524 test_server_disconnect_nc_SOURCES = \
525 test_server_disconnect.c
526 test_server_disconnect_nc_LDADD = \
529 test_server_with_client_nc_SOURCES = \
530 test_server_with_client.c
531 test_server_with_client_nc_LDADD = \
534 test_server_with_client_unix_SOURCES = \
535 test_server_with_client_unix.c
536 test_server_with_client_unix_LDADD = \
540 test_service_SOURCES = \
542 test_service_LDADD = \
545 test_strings_SOURCES = \
547 test_strings_LDADD = \
551 test_strings_to_data_SOURCES = \
552 test_strings_to_data.c
553 test_strings_to_data_LDADD = \
557 test_time_SOURCES = \
562 test_speedup_SOURCES = \
564 test_speedup_LDADD = \
567 perf_crypto_hash_SOURCES = \
569 perf_crypto_hash_LDADD = \
572 perf_crypto_symmetric_SOURCES = \
573 perf_crypto_symmetric.c
574 perf_crypto_symmetric_LDADD = \
577 perf_crypto_asymmetric_SOURCES = \
578 perf_crypto_asymmetric.c
579 perf_crypto_asymmetric_LDADD = \
582 perf_crypto_paillier_SOURCES = \
583 perf_crypto_paillier.c
584 perf_crypto_paillier_LDADD = \
588 perf_malloc_SOURCES = \
590 perf_malloc_LDADD = \
595 test_configuration_data.conf \
596 test_program_data.conf \
597 test_resolver_api_data.conf \
598 test_service_data.conf \
599 test_speedup_data.conf \