summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/mlkem/Makefile
blob: 9c0c24f43271a1a3ca5e69571825378c27b468eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#       $OpenBSD: Makefile,v 1.8 2024/12/26 00:04:24 tb Exp $

REGRESS_SLOW_TARGETS += run-regress-mlkem_iteration_tests

PROGS +=	mlkem_tests
PROGS +=	mlkem_unittest
PROGS +=	mlkem_iteration_tests

FILE_TEST +=	mlkem768_decap_tests
FILE_TEST +=	mlkem768_encap_tests
FILE_TEST +=	mlkem768_keygen_tests
FILE_TEST +=	mlkem768_nist_decap_tests
FILE_TEST +=	mlkem768_nist_keygen_tests
FILE_TEST +=	mlkem1024_decap_tests
FILE_TEST +=	mlkem1024_encap_tests
FILE_TEST +=	mlkem1024_keygen_tests
FILE_TEST +=	mlkem1024_nist_decap_tests
FILE_TEST +=	mlkem1024_nist_keygen_tests

run-regress-mlkem_tests: mlkem_tests
.for f in ${FILE_TEST}
	./mlkem_tests $f ${.CURDIR}/$f.txt
.endfor

SRCS_mlkem_tests =	mlkem_tests.c mlkem_tests_util.c parse_test_file.c
SRCS_mlkem_iteration_tests = mlkem_iteration_tests.c mlkem_tests_util.c
SRCS_mlkem_unittest =	mlkem_unittest.c mlkem_tests_util.c

LDADD =		${CRYPTO_INT}
DPADD =		${LIBCRYPTO}

CFLAGS +=	-DLIBRESSL_INTERNAL -Wall -Werror
CFLAGS +=	-I${.CURDIR}/../../../../lib/libcrypto/bytestring
CFLAGS +=	-I${.CURDIR}/../../../../lib/libcrypto/mlkem
CFLAGS +=	-I${.CURDIR}/../../../../lib/libcrypto/sha
CFLAGS +=	-DLIBRESSL_INTERNAL

WARNINGS = Yes

.include <bsd.regress.mk>