HardenedBSD/sbin/md5/Makefile
Shawn Webb a726e724d7
Merge remote-tracking branch 'internal/freebsd/current/main' into hardened/current/master
Conflicts:
	lib/libexecinfo/Makefile (unresolved)
	libexec/rtld-elf/amd64/Makefile.inc (unresolved)
	sbin/ldconfig/Makefile (unresolved)
	secure/usr.bin/openssl/Makefile (unresolved)
	share/keys/Makefile (unresolved)
	sys/modules/aout/Makefile (deleted)
	sys/modules/sgx/Makefile (deleted)
	sys/modules/sgx_linux/Makefile (deleted)
	usr.sbin/bsdinstall/Makefile (unresolved)
	usr.sbin/unbound/Makefile (unresolved)
2024-07-16 00:28:21 +00:00

79 lines
2.1 KiB
Makefile

PACKAGE=runtime
PROG= md5
CFI_OVERRIDE=-fno-sanitize=cfi-icall
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
.include <src.opts.mk>
.if ${MK_CASPER} != "no" && !defined(RESCUE) && !defined(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
CFLAGS+=-DWITH_CASPER
LIBADD+= casper
LIBADD+= cap_fileargs
.endif
HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>