# vim:ft=automake # All paths should be given relative to the root if BUILD_WOLFCRYPT_TESTS if BUILD_BENCHMARK noinst_PROGRAMS += wolfcrypt/benchmark/benchmark wolfcrypt_benchmark_benchmark_SOURCES = wolfcrypt/benchmark/benchmark.c wolfcrypt_benchmark_benchmark_LDADD = src/libwolfssl@LIBSUFFIX@.la $(LIB_STATIC_ADD) wolfcrypt_benchmark_benchmark_DEPENDENCIES = src/libwolfssl@LIBSUFFIX@.la noinst_HEADERS += wolfcrypt/benchmark/benchmark.h # FIPS CAST benchmark - measures wc_RunCast_fips() execution time per CAST, so # operators can budget module power-on latency. Built only when FIPS is on. if BUILD_FIPS noinst_PROGRAMS += wolfcrypt/benchmark/fips_cast_bench wolfcrypt_benchmark_fips_cast_bench_SOURCES = wolfcrypt/benchmark/fips_cast_bench.c # -lm, not $(LIBM): configure.ac AC_SUBSTs LIBM but never assigns it, so # $(LIBM) expands to nothing and the sqrt() in fips_cast_bench.c would be left # to resolve transitively. wolfcrypt_benchmark_fips_cast_bench_LDADD = src/libwolfssl@LIBSUFFIX@.la $(LIB_STATIC_ADD) -lm wolfcrypt_benchmark_fips_cast_bench_DEPENDENCIES = src/libwolfssl@LIBSUFFIX@.la endif endif endif if BUILD_WOLFCRYPT_TESTS_LIBS lib_LTLIBRARIES += wolfcrypt/benchmark/libwolfcryptbench.la wolfcrypt_benchmark_libwolfcryptbench_la_SOURCES = wolfcrypt/benchmark/benchmark.c wolfcrypt_benchmark_libwolfcryptbench_la_CPPFLAGS = -DNO_MAIN_DRIVER wolfcrypt_benchmark_libwolfcryptbench_la_LIBADD = src/libwolfssl@LIBSUFFIX@.la wolfcrypt_benchmark_libwolfcryptbench_la_DEPENDENCIES = src/libwolfssl@LIBSUFFIX@.la endif EXTRA_DIST += wolfcrypt/benchmark/benchmark.sln EXTRA_DIST += wolfcrypt/benchmark/benchmark.vcproj EXTRA_DIST += wolfcrypt/benchmark/benchmark-VS2022.sln EXTRA_DIST += wolfcrypt/benchmark/benchmark-VS2022.vcxproj EXTRA_DIST += wolfcrypt/benchmark/benchmark-VS2022.vcxproj.user EXTRA_DIST += wolfcrypt/benchmark/README.md DISTCLEANFILES+= wolfcrypt/benchmark/.libs/benchmark