# $OpenBSD: Makefile,v 1.3 2026/03/29 06:19:12 anton 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} -I${.CURDIR}/../../../../lib/libcrypto -o /dev/null -c \ ${.CURDIR}/../../../../lib/libcrypto/${assembly} REGRESS_TARGETS += regress-${assembly} .endfor .endif .include