086feed850
On Linux, there's a similar set of programs to ours, but that end in the letters 'sum'. These act basically like FreeBSD versions run with the -r option. Add code so that when the program ends in 'sum' you get the linux -r behavior. This is enough to make most things that use sha*sum work correctly (the -c / --check options, as well as the long args are not implemented). When running with the -sum programs, ignore -t instead of running internal speed tests and make -c an error. Reviewed by: sef, and kp and allanjude (earlier version) Relnotes: yes Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D30309
62 lines
1.6 KiB
Makefile
62 lines
1.6 KiB
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/9/93
|
|
# $FreeBSD$
|
|
|
|
PACKAGE=runtime
|
|
PROG= md5
|
|
|
|
LINKS= ${BINDIR}/md5 ${BINDIR}/md5sum \
|
|
${BINDIR}/md5 ${BINDIR}/rmd160 \
|
|
${BINDIR}/md5 ${BINDIR}/rmd160sum \
|
|
${BINDIR}/md5 ${BINDIR}/sha1 \
|
|
${BINDIR}/md5 ${BINDIR}/sha1sum \
|
|
${BINDIR}/md5 ${BINDIR}/sha224 \
|
|
${BINDIR}/md5 ${BINDIR}/sha224sum \
|
|
${BINDIR}/md5 ${BINDIR}/sha256 \
|
|
${BINDIR}/md5 ${BINDIR}/sha256sum \
|
|
${BINDIR}/md5 ${BINDIR}/sha384 \
|
|
${BINDIR}/md5 ${BINDIR}/sha384sum \
|
|
${BINDIR}/md5 ${BINDIR}/sha512 \
|
|
${BINDIR}/md5 ${BINDIR}/sha512sum \
|
|
${BINDIR}/md5 ${BINDIR}/sha512t256 \
|
|
${BINDIR}/md5 ${BINDIR}/sha512t256sum \
|
|
${BINDIR}/md5 ${BINDIR}/skein256 \
|
|
${BINDIR}/md5 ${BINDIR}/skein256sum \
|
|
${BINDIR}/md5 ${BINDIR}/skein512 \
|
|
${BINDIR}/md5 ${BINDIR}/skein512sum \
|
|
${BINDIR}/md5 ${BINDIR}/skein1024 \
|
|
${BINDIR}/md5 ${BINDIR}/skein1024sum
|
|
|
|
MLINKS= md5.1 md5sum.1 \
|
|
md5.1 rmd160.1 \
|
|
md5.1 rmd160sum.1 \
|
|
md5.1 sha1.1 \
|
|
md5.1 sha1sum.1 \
|
|
md5.1 sha224.1 \
|
|
md5.1 sha224sum.1 \
|
|
md5.1 sha256.1 \
|
|
md5.1 sha256sum.1 \
|
|
md5.1 sha384.1 \
|
|
md5.1 sha384sum.1 \
|
|
md5.1 sha512.1 \
|
|
md5.1 sha512sum.1 \
|
|
md5.1 sha512t256.1 \
|
|
md5.1 sha512t256sum.1 \
|
|
md5.1 skein256.1 \
|
|
md5.1 skein256sum.1 \
|
|
md5.1 skein512.1 \
|
|
md5.1 skein512sum.1 \
|
|
md5.1 skein1024.1 \
|
|
md5.1 skein1024sum.1
|
|
|
|
LIBADD= md
|
|
|
|
.ifndef(BOOTSTRAPPING)
|
|
# Avoid depending on capsicum during bootstrap. caph_limit_stdout() is not
|
|
# available when building for Linux/MacOS or older FreeBSD hosts.
|
|
# We need to bootstrap md5 when building on Linux since the md5sum command there
|
|
# produces different output.
|
|
CFLAGS+=-DHAVE_CAPSICUM
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|