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 \
215 test_common_allocation \
217 test_common_logging \
219 test_container_bloomfilter \
220 test_container_meta_data \
221 test_container_multihashmap \
222 test_container_multihashmap32 \
223 test_container_multipeermap \
224 test_container_heap \
225 test_crypto_symmetric \
230 test_crypto_ecdh_eddsa \
232 test_crypto_hash_context \
234 test_crypto_paillier \
240 test_connection_addressing.nc \
241 test_connection_receive_cancel.nc \
242 test_connection_timeout.nc \
243 test_connection_timeout_no_connect.nc \
244 test_connection_transmit_cancel.nc \
251 test_resolver_api.nc \
253 test_scheduler_delay \
255 test_server_disconnect.nc \
256 test_server_with_client.nc \
257 test_server_mst_interrupt.nc \
258 $(SERVER_CLIENT_UNIX) \
261 test_strings_to_data \
265 test_os_start_process \
266 test_common_logging_runtime_loglevels
269 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
270 TESTS = $(check_PROGRAMS)
273 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
274 # sequential execution order for them
275 TEST_EXTENSIONS = .nc
276 test_connection.log: test_client.log
277 test_connection_addressing.log: test_connection.log
278 test_connection_timeout_no_connect.log: test_connection_addressing.log
279 test_connection_transmit_cancel.log: test_connection_timeout_no_connect.log
280 test_connection_receive_cancel.log: test_connection_transmit_cancel.log
281 test_connection_timeout.log: test_connection_receive_cancel.log
282 test_mq_client.log: test_connection_timeout.log
283 test_resolver_api.log: test_mq_client.log
284 test_server.log: test_resolver_api.log
285 test_server_disconnect.log: test_server.log
286 test_server_with_client.log: test_server_disconnect.log
287 test_server_mst_interrupt.log: test_server_with_client.log
295 test_os_start_process_SOURCES = \
296 test_os_start_process.c
297 test_os_start_process_LDADD = \
299 test_os_start_process_DEPENDENCIES = \
303 test_client_nc_SOURCES = \
305 test_client_nc_LDADD = \
308 test_common_allocation_SOURCES = \
309 test_common_allocation.c
310 test_common_allocation_LDADD = \
313 test_common_endian_SOURCES = \
315 test_common_endian_LDADD = \
318 test_common_logging_SOURCES = \
319 test_common_logging.c
320 test_common_logging_LDADD = \
323 test_common_logging_runtime_loglevels_SOURCES = \
324 test_common_logging_runtime_loglevels.c
325 test_common_logging_runtime_loglevels_LDADD = \
328 test_configuration_SOURCES = \
330 test_configuration_LDADD = \
333 test_container_bloomfilter_SOURCES = \
334 test_container_bloomfilter.c
335 test_container_bloomfilter_LDADD = \
338 test_container_meta_data_SOURCES = \
339 test_container_meta_data.c
340 test_container_meta_data_LDADD = \
341 libgnunetutil.la -lextractor
343 test_container_multihashmap_SOURCES = \
344 test_container_multihashmap.c
345 test_container_multihashmap_LDADD = \
348 test_container_multihashmap32_SOURCES = \
349 test_container_multihashmap32.c
350 test_container_multihashmap32_LDADD = \
353 test_container_multipeermap_SOURCES = \
354 test_container_multipeermap.c
355 test_container_multipeermap_LDADD = \
358 test_container_heap_SOURCES = \
359 test_container_heap.c
360 test_container_heap_LDADD = \
363 test_crypto_symmetric_SOURCES = \
364 test_crypto_symmetric.c
365 test_crypto_symmetric_LDADD = \
368 test_crypto_crc_SOURCES = \
370 test_crypto_crc_LDADD = \
373 test_crypto_ecdsa_SOURCES = \
375 test_crypto_ecdsa_LDADD = \
379 test_crypto_eddsa_SOURCES = \
381 test_crypto_eddsa_LDADD = \
385 test_crypto_ecdhe_SOURCES = \
387 test_crypto_ecdhe_LDADD = \
391 test_crypto_ecdh_eddsa_SOURCES = \
392 test_crypto_ecdh_eddsa.c
393 test_crypto_ecdh_eddsa_LDADD = \
397 test_crypto_hash_SOURCES = \
399 test_crypto_hash_LDADD = \
402 test_crypto_hash_context_SOURCES = \
403 test_crypto_hash_context.c
404 test_crypto_hash_context_LDADD = \
407 test_crypto_hkdf_SOURCES = \
409 test_crypto_hkdf_LDADD = \
412 test_crypto_paillier_SOURCES = \
413 test_crypto_paillier.c
414 test_crypto_paillier_LDADD = \
418 test_crypto_random_SOURCES = \
420 test_crypto_random_LDADD = \
423 test_crypto_rsa_SOURCES = \
425 test_crypto_rsa_LDADD = \
428 test_disk_SOURCES = \
433 test_getopt_SOURCES = \
435 test_getopt_LDADD = \
438 test_connection_nc_SOURCES = \
440 test_connection_nc_LDADD = \
443 test_connection_addressing_nc_SOURCES = \
444 test_connection_addressing.c
445 test_connection_addressing_nc_LDADD = \
448 test_connection_receive_cancel_nc_SOURCES = \
449 test_connection_receive_cancel.c
450 test_connection_receive_cancel_nc_LDADD = \
453 test_connection_timeout_nc_SOURCES = \
454 test_connection_timeout.c
455 test_connection_timeout_nc_LDADD = \
458 test_connection_timeout_no_connect_nc_SOURCES = \
459 test_connection_timeout_no_connect.c
460 test_connection_timeout_no_connect_nc_LDADD = \
463 test_connection_transmit_cancel_nc_SOURCES = \
464 test_connection_transmit_cancel.c
465 test_connection_transmit_cancel_nc_LDADD = \
473 test_mq_client_nc_SOURCES = \
475 test_mq_client_nc_LDADD = \
478 test_os_network_SOURCES = \
480 test_os_network_LDADD = \
483 test_peer_SOURCES = \
486 libgnunetutil.la -lgcrypt
488 test_plugin_SOURCES = \
490 test_plugin_LDADD = \
493 test_program_SOURCES = \
495 test_program_LDADD = \
498 test_resolver_api_nc_SOURCES = \
500 test_resolver_api_nc_LDADD = \
503 test_scheduler_SOURCES = \
505 test_scheduler_LDADD = \
508 test_scheduler_delay_SOURCES = \
509 test_scheduler_delay.c
510 test_scheduler_delay_LDADD = \
513 test_server_mst_interrupt_nc_SOURCES = \
514 test_server_mst_interrupt.c
515 test_server_mst_interrupt_nc_LDADD = \
518 test_server_nc_SOURCES = \
520 test_server_nc_LDADD = \
523 test_server_disconnect_nc_SOURCES = \
524 test_server_disconnect.c
525 test_server_disconnect_nc_LDADD = \
528 test_server_with_client_nc_SOURCES = \
529 test_server_with_client.c
530 test_server_with_client_nc_LDADD = \
533 test_server_with_client_unix_SOURCES = \
534 test_server_with_client_unix.c
535 test_server_with_client_unix_LDADD = \
539 test_service_SOURCES = \
541 test_service_LDADD = \
544 test_strings_SOURCES = \
546 test_strings_LDADD = \
550 test_strings_to_data_SOURCES = \
551 test_strings_to_data.c
552 test_strings_to_data_LDADD = \
556 test_time_SOURCES = \
561 test_speedup_SOURCES = \
563 test_speedup_LDADD = \
566 perf_crypto_hash_SOURCES = \
568 perf_crypto_hash_LDADD = \
571 perf_crypto_symmetric_SOURCES = \
572 perf_crypto_symmetric.c
573 perf_crypto_symmetric_LDADD = \
576 perf_crypto_paillier_SOURCES = \
577 perf_crypto_paillier.c
578 perf_crypto_paillier_LDADD = \
582 perf_malloc_SOURCES = \
584 perf_malloc_LDADD = \
589 test_configuration_data.conf \
590 test_program_data.conf \
591 test_resolver_api_data.conf \
592 test_service_data.conf \
593 test_speedup_data.conf \