diff options
Diffstat (limited to 'src/regress/lib/libcrypto/c2sp/Makefile')
-rw-r--r-- | src/regress/lib/libcrypto/c2sp/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/c2sp/Makefile b/src/regress/lib/libcrypto/c2sp/Makefile index 9b2c944ba4..73ee0b8c22 100644 --- a/src/regress/lib/libcrypto/c2sp/Makefile +++ b/src/regress/lib/libcrypto/c2sp/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.4 2024/10/28 16:27:14 tb Exp $ | 1 | # $OpenBSD: Makefile,v 1.7 2025/07/23 07:35:21 tb Exp $ |
2 | 2 | ||
3 | C2SP_TESTVECTORS = /usr/local/share/c2sp-testvectors/ | 3 | C2SP_TESTVECTORS = /usr/local/share/c2sp-testvectors/ |
4 | 4 | ||
@@ -13,12 +13,12 @@ PROGS += cctv | |||
13 | SRCS_cctv = | 13 | SRCS_cctv = |
14 | 14 | ||
15 | cctv: cctv.go | 15 | cctv: cctv.go |
16 | go build -o $@ ${.CURDIR}/cctv.go | 16 | env GOCACHE=${.OBJDIR}/go-build go build -o $@ ${.CURDIR}/cctv.go |
17 | 17 | ||
18 | OSSL_LIB = /usr/local/lib/eopenssl | 18 | OSSL_LIB = /usr/local/lib/eopenssl |
19 | OSSL_INC = /usr/local/include/eopenssl | 19 | OSSL_INC = /usr/local/include/eopenssl |
20 | 20 | ||
21 | . for V in 11 32 33 34 | 21 | . for V in 35 |
22 | . if exists(/usr/local/bin/eopenssl$V) | 22 | . if exists(/usr/local/bin/eopenssl$V) |
23 | PROGS += cctv-openssl$V | 23 | PROGS += cctv-openssl$V |
24 | SRCS_cctv-openssl$V = | 24 | SRCS_cctv-openssl$V = |
@@ -29,10 +29,17 @@ CGO_LDFLAGS_$V += -L${OSSL_LIB}$V | |||
29 | 29 | ||
30 | cctv-openssl$V: cctv.go | 30 | cctv-openssl$V: cctv.go |
31 | env CGO_CFLAGS="${CGO_CFLAGS_$V}" CGO_LDFLAGS="${CGO_LDFLAGS_$V}" \ | 31 | env CGO_CFLAGS="${CGO_CFLAGS_$V}" CGO_LDFLAGS="${CGO_LDFLAGS_$V}" \ |
32 | GOCACHE=${.OBJDIR}/go-build \ | ||
32 | go build -o $@ ${.CURDIR}/cctv.go | 33 | go build -o $@ ${.CURDIR}/cctv.go |
33 | . endif | 34 | . endif |
34 | . endfor | 35 | . endfor |
35 | 36 | ||
37 | REGRESS_CLEANUP = clean-go-cache | ||
38 | |||
39 | clean-go-cache: | ||
40 | env GOCACHE=${.OBJDIR}/go-build go clean -cache | ||
41 | rm -rf ${.OBJDIR}/go-build | ||
42 | |||
36 | .endif | 43 | .endif |
37 | 44 | ||
38 | .include <bsd.regress.mk> | 45 | .include <bsd.regress.mk> |