freebsd-dev/sbin/md5/Makefile
Dag-Erling Smørgrav 4849767cb1 md5: Improve compatibility.
* Overhaul the GNU compatibility mode to more closely emulate what the GNU tools do.

* Add a Perl compatibility mode which emulates the shasum tool that ships with Perl.  This is currently not installed.

* Overhaul the tests.

Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D39446
2023-05-08 06:56:22 +00:00

77 lines
2.0 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}/sha512t224 \
${BINDIR}/md5 ${BINDIR}/sha512t224sum \
${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 sha512t224.1 \
md5.1 sha512t224sum.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
# md5 can also emulate the shasum script that comes with Perl, except
# that, in bits input mode, it can only handle input lengths that are
# a multiple of 8 (see manual page).
#LINKS+= ${BINDIR}/md5 ${BINDIR}/shasum
#MLINKS+= md5.1 shasum.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 <src.opts.mk>
HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>