summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/bn/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libcrypto/bn/Makefile')
-rw-r--r--src/regress/lib/libcrypto/bn/Makefile66
1 files changed, 52 insertions, 14 deletions
diff --git a/src/regress/lib/libcrypto/bn/Makefile b/src/regress/lib/libcrypto/bn/Makefile
index 89c8d7861a..971ace1c77 100644
--- a/src/regress/lib/libcrypto/bn/Makefile
+++ b/src/regress/lib/libcrypto/bn/Makefile
@@ -1,20 +1,58 @@
1# $OpenBSD: Makefile,v 1.7 2022/11/30 02:51:05 jsing Exp $ 1# $OpenBSD: Makefile,v 1.8 2022/12/01 20:50:10 tb Exp $
2 2
3SUBDIR= \ 3PROGS += bn_add_sub
4 addsub \ 4PROGS += bn_cmp
5 general \ 5PROGS += bn_isqrt
6 mont \ 6PROGS += bn_mod_exp2_mont
7 rand 7PROGS += bn_mod_sqrt
8PROGS += bn_mont
9PROGS += bn_primes
10PROGS += bn_rand_interval
11PROGS += bn_to_string
12PROGS += bn_unit
8 13
9PROGS+= bn_cmp 14STATIC_LINK += bn_isqrt
15STATIC_LINK += bn_primes
16STATIC_LINK += bn_to_string
17STATIC_LINK += bn_rand_interval
10 18
11LDADD= -lcrypto 19LDADD = -lcrypto
12DPADD= ${LIBCRYPTO} 20DPADD = ${LIBCRYPTO}
13WARNINGS= Yes 21WARNINGS = Yes
14CFLAGS+= -Wall -Wundef -Werror 22CFLAGS += -Wall -Wundef -Werror
23CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/bn/
15 24
16REGRESS_TARGETS += run-bn_cmp 25.for p in ${PROGS}
17run-bn_cmp: bn_cmp 26REGRESS_TARGETS += run-$p
18 ./bn_cmp 27.PHONY += run-$p
28
29run-$p: $p
30 ./$p
31.endfor
32
33isqrt-print-tables: bn_isqrt
34 @./bn_isqrt -C
35
36# Keep bn_test last since it is special
37PROGS += bn_test
38STATIC_LINK += bn_test
39CLEANFILES += bn_test.out bc.out
40
41REGRESS_TARGETS += run-bn_test
42.PHONY: run-bn_test
43run-bn_test bntest.out: bn_test
44 ./bn_test -out bn_test.out
45
46REGRESS_TARGETS += run-bc
47.PHONY: run-bc
48run-bc: bn_test.out
49 bc < $> | tee bc.out | grep -v '^0$$'
50 ! grep -v '^test ' <bc.out | grep -v '^0$$'
51
52.for p in ${STATIC_LINK}
53LDADD_$p += ${CRYPTO_INT}
54.endfor
55
56.PHONY: isqrt-print-tables
19 57
20.include <bsd.regress.mk> 58.include <bsd.regress.mk>