1# $OpenBSD: Makefile,v 1.9 2024/12/29 20:14:15 tb Exp $ 2 3REGRESS_SLOW_TARGETS += run-regress-mlkem_iteration_tests 4 5PROGS += mlkem_tests 6PROGS += mlkem_unittest 7PROGS += mlkem_iteration_tests 8 9FILE_TEST += mlkem768_decap_tests 10FILE_TEST += mlkem768_encap_tests 11FILE_TEST += mlkem768_keygen_tests 12FILE_TEST += mlkem768_nist_decap_tests 13FILE_TEST += mlkem768_nist_keygen_tests 14FILE_TEST += mlkem1024_decap_tests 15FILE_TEST += mlkem1024_encap_tests 16FILE_TEST += mlkem1024_keygen_tests 17FILE_TEST += mlkem1024_nist_decap_tests 18FILE_TEST += mlkem1024_nist_keygen_tests 19 20run-regress-mlkem_tests: mlkem_tests 21.for f in ${FILE_TEST} 22 ./mlkem_tests $f ${.CURDIR}/$f.txt 23.endfor 24 25SRCS_mlkem_tests = mlkem_tests.c mlkem_tests_util.c parse_test_file.c 26SRCS_mlkem_iteration_tests = mlkem_iteration_tests.c mlkem_tests_util.c 27SRCS_mlkem_unittest = mlkem_unittest.c mlkem_tests_util.c 28 29LDADD = ${CRYPTO_INT} 30DPADD = ${LIBCRYPTO} 31 32CFLAGS += -DLIBRESSL_INTERNAL -Wall -Werror 33CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/bytestring 34CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/mlkem 35CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/sha 36 37WARNINGS = Yes 38 39.include <bsd.regress.mk> 40