blob: 1ee2dcc78d3efac5263ef0f71e42940d23ed0b6d (
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
|
# $OpenBSD: Makefile,v 1.5 2024/12/20 00:07:12 tb Exp $
PROGS += mlkem_unittest
PROGS += mlkem768_nist_keygen_tests
PROGS += mlkem768_keygen_tests
PROGS += mlkem768_nist_decap_tests
PROGS += mlkem768_decap_tests
PROGS += mlkem768_encap_tests
PROGS += mlkem768_iteration_test
PROGS += mlkem1024_nist_keygen_tests
PROGS += mlkem1024_keygen_tests
PROGS += mlkem1024_nist_decap_tests
PROGS += mlkem1024_decap_tests
PROGS += mlkem1024_encap_tests
PROGS += mlkem1024_iteration_test
# Link test programs with mlkem_tests_util.c and use custom target
.for p in ${PROGS}
SRCS_$p += $p.c mlkem_tests_util.c
REGRESS_TARGETS += run-$p
run-$p: $p
./$p ${.CURDIR}/$p.txt
.endfor
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
WARNINS = Yes
.include <bsd.regress.mk>
|