freebsd-dev/lib/libc/tests/hash/Makefile
Enji Cooper 70cf851cc5 Build/install lib/libc/tests/hash/t_sha2 if MK_OPENSSL == yes
Reported by: Beeblebrox <zaphod@berentweb.com>
2014-12-27 20:48:36 +00:00

38 lines
678 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
TESTSDIR= ${TESTSBASE}/lib/libc/hash
NETBSD_ATF_TESTS_C=
.if ${MK_OPENSSL} != "no"
NETBSD_ATF_TESTS_C+= sha2_test
.endif
NETBSD_ATF_TESTS_SH= hash_test
BINDIR= ${TESTSDIR}
PROGS+= h_hash
FILESDIR= ${TESTSDIR}/data
FILES+= data/md5test-in
FILES+= data/md5test-out
FILES+= data/sha1test-in
FILES+= data/sha1test-out
FILES+= data/sha1test2-out
DPADD+= ${LIBMD}
LDADD+= -lmd
DPADD.sha2_test+= ${LIBCRYPTO}
LDADD.sha2_test+= -lcrypto
CFLAGS.sha2_test+= -I${.CURDIR}/../../../../crypto/openssh/openbsd-compat
CFLAGS.sha2_test+= -I${.CURDIR}/../../../../crypto/openssh
.include "../Makefile.netbsd-tests"
.include <bsd.test.mk>