blob: 913a3db19b0c91b7c55bf801f199adf164567cf9 (
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
41
42
43
44
45
|
# $OpenBSD: Makefile,v 1.13 2022/06/23 18:09:19 tb Exp $
.include "../../Makefile.inc"
PROGS += bntest
PROGS += bn_mod_exp2_mont
PROGS += bn_mod_sqrt
PROGS += bn_primes
PROGS += bn_to_string
DPADD += ${LIBCRYPTO}
LDFLAGS += -lcrypto
WARNINGS = Yes
CFLAGS += -Werror
CFLAGS += -I${.CURDIR}/../../../../../lib/libcrypto/bn/
CLEANFILES = bntest.out bc.out
LDADD_bntest = ${CRYPTO_INT}
REGRESS_TARGETS += run-bntest
run-bntest bntest.out: bntest
./bntest -out bntest.out
REGRESS_TARGETS += run-bc
run-bc: bntest.out
bc < bntest.out | tee bc.out | grep -v '^0$$'
! grep -v '^test ' <bc.out | grep -v '^0$$'
REGRESS_TARGETS += run-bn_mod_exp2_mont
run-bn_mod_exp2_mont: bn_mod_exp2_mont
./bn_mod_exp2_mont
REGRESS_TARGETS += run-bn_mod_sqrt
run-bn_mod_sqrt: bn_mod_sqrt
./bn_mod_sqrt
REGRESS_TARGETS += run-bn_primes
run-bn_primes: bn_primes
./bn_primes
LDADD_bn_to_string = ${CRYPTO_INT}
REGRESS_TARGETS += run-bn_to_string
run-bn_to_string: bn_to_string
./bn_to_string
.include <bsd.regress.mk>
|