diff options
Diffstat (limited to 'src/regress/lib/libcrypto/bn/Makefile')
-rw-r--r-- | src/regress/lib/libcrypto/bn/Makefile | 66 |
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 | ||
3 | SUBDIR= \ | 3 | PROGS += bn_add_sub |
4 | addsub \ | 4 | PROGS += bn_cmp |
5 | general \ | 5 | PROGS += bn_isqrt |
6 | mont \ | 6 | PROGS += bn_mod_exp2_mont |
7 | rand | 7 | PROGS += bn_mod_sqrt |
8 | PROGS += bn_mont | ||
9 | PROGS += bn_primes | ||
10 | PROGS += bn_rand_interval | ||
11 | PROGS += bn_to_string | ||
12 | PROGS += bn_unit | ||
8 | 13 | ||
9 | PROGS+= bn_cmp | 14 | STATIC_LINK += bn_isqrt |
15 | STATIC_LINK += bn_primes | ||
16 | STATIC_LINK += bn_to_string | ||
17 | STATIC_LINK += bn_rand_interval | ||
10 | 18 | ||
11 | LDADD= -lcrypto | 19 | LDADD = -lcrypto |
12 | DPADD= ${LIBCRYPTO} | 20 | DPADD = ${LIBCRYPTO} |
13 | WARNINGS= Yes | 21 | WARNINGS = Yes |
14 | CFLAGS+= -Wall -Wundef -Werror | 22 | CFLAGS += -Wall -Wundef -Werror |
23 | CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/bn/ | ||
15 | 24 | ||
16 | REGRESS_TARGETS += run-bn_cmp | 25 | .for p in ${PROGS} |
17 | run-bn_cmp: bn_cmp | 26 | REGRESS_TARGETS += run-$p |
18 | ./bn_cmp | 27 | .PHONY += run-$p |
28 | |||
29 | run-$p: $p | ||
30 | ./$p | ||
31 | .endfor | ||
32 | |||
33 | isqrt-print-tables: bn_isqrt | ||
34 | @./bn_isqrt -C | ||
35 | |||
36 | # Keep bn_test last since it is special | ||
37 | PROGS += bn_test | ||
38 | STATIC_LINK += bn_test | ||
39 | CLEANFILES += bn_test.out bc.out | ||
40 | |||
41 | REGRESS_TARGETS += run-bn_test | ||
42 | .PHONY: run-bn_test | ||
43 | run-bn_test bntest.out: bn_test | ||
44 | ./bn_test -out bn_test.out | ||
45 | |||
46 | REGRESS_TARGETS += run-bc | ||
47 | .PHONY: run-bc | ||
48 | run-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} | ||
53 | LDADD_$p += ${CRYPTO_INT} | ||
54 | .endfor | ||
55 | |||
56 | .PHONY: isqrt-print-tables | ||
19 | 57 | ||
20 | .include <bsd.regress.mk> | 58 | .include <bsd.regress.mk> |