blob: 9df34a644bd3934ca0cc8bf3a170214860a5713a (
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
|
# $OpenBSD: Makefile,v 1.2 2026/01/25 14:57:43 tb Exp $
EGCC = /usr/local/bin/egcc
.if !exists(${EGCC})
regress:
@echo package gcc is required for this regress
@echo SKIPPED
.else
.if ${MACHINE_ARCH} == "aarch64"
ASSEMBLY += sha/sha1_aarch64_ce.S
ASSEMBLY += sha/sha256_aarch64_ce.S
ASSEMBLY += sha/sha512_aarch64_ce.S
.elif ${MACHINE_ARCH} == "amd64"
ASSEMBLY += md5/md5_amd64_generic.S
ASSEMBLY += sha/sha1_amd64_generic.S
ASSEMBLY += sha/sha1_amd64_shani.S
ASSEMBLY += sha/sha256_amd64_generic.S
ASSEMBLY += sha/sha256_amd64_shani.S
ASSEMBLY += sha/sha512_amd64_generic.S
.endif
.for assembly in ${ASSEMBLY}
regress-${assembly}:
@echo "Checking ${assembly} compiles with gcc"
@${EGCC} -o /dev/null -c ${.CURDIR}/../../../../lib/libcrypto/${assembly}
REGRESS_TARGETS += regress-${assembly}
.endfor
.endif
.include <bsd.regress.mk>
|