xref: /freebsd/sbin/md5/Makefile (revision 297a9e552b9a5adf07d195eae9649b0758f395af)
1PACKAGE=runtime
2PROG=	md5
3
4LINKS=	${BINDIR}/md5 ${BINDIR}/md5sum \
5	${BINDIR}/md5 ${BINDIR}/rmd160 \
6	${BINDIR}/md5 ${BINDIR}/rmd160sum \
7	${BINDIR}/md5 ${BINDIR}/sha1 \
8	${BINDIR}/md5 ${BINDIR}/sha1sum \
9	${BINDIR}/md5 ${BINDIR}/sha224 \
10	${BINDIR}/md5 ${BINDIR}/sha224sum \
11	${BINDIR}/md5 ${BINDIR}/sha256 \
12	${BINDIR}/md5 ${BINDIR}/sha256sum \
13	${BINDIR}/md5 ${BINDIR}/sha384 \
14	${BINDIR}/md5 ${BINDIR}/sha384sum \
15	${BINDIR}/md5 ${BINDIR}/sha512 \
16	${BINDIR}/md5 ${BINDIR}/sha512sum \
17	${BINDIR}/md5 ${BINDIR}/sha512t224 \
18	${BINDIR}/md5 ${BINDIR}/sha512t224sum \
19	${BINDIR}/md5 ${BINDIR}/sha512t256 \
20	${BINDIR}/md5 ${BINDIR}/sha512t256sum \
21	${BINDIR}/md5 ${BINDIR}/skein256 \
22	${BINDIR}/md5 ${BINDIR}/skein256sum \
23	${BINDIR}/md5 ${BINDIR}/skein512 \
24	${BINDIR}/md5 ${BINDIR}/skein512sum \
25	${BINDIR}/md5 ${BINDIR}/skein1024 \
26	${BINDIR}/md5 ${BINDIR}/skein1024sum
27
28MLINKS=	md5.1 md5sum.1 \
29	md5.1 rmd160.1 \
30	md5.1 rmd160sum.1 \
31	md5.1 sha1.1 \
32	md5.1 sha1sum.1 \
33	md5.1 sha224.1 \
34	md5.1 sha224sum.1 \
35	md5.1 sha256.1 \
36	md5.1 sha256sum.1 \
37	md5.1 sha384.1 \
38	md5.1 sha384sum.1 \
39	md5.1 sha512.1 \
40	md5.1 sha512sum.1 \
41	md5.1 sha512t224.1 \
42	md5.1 sha512t224sum.1 \
43	md5.1 sha512t256.1 \
44	md5.1 sha512t256sum.1 \
45	md5.1 skein256.1 \
46	md5.1 skein256sum.1 \
47	md5.1 skein512.1 \
48	md5.1 skein512sum.1 \
49	md5.1 skein1024.1 \
50	md5.1 skein1024sum.1
51
52# md5 can also emulate the shasum script that comes with Perl, except
53# that, in bits input mode, it can only handle input lengths that are
54# a multiple of 8 (see manual page).
55#LINKS+= ${BINDIR}/md5 ${BINDIR}/shasum
56#MLINKS+= md5.1 shasum.1
57
58LIBADD=	md
59
60.include <src.opts.mk>
61
62.if ${MK_CASPER} != "no" && !defined(RESCUE) && !defined(BOOTSTRAPPING)
63# Avoid depending on capsicum during bootstrap. caph_limit_stdout() is not
64# available when building for Linux/MacOS or older FreeBSD hosts.
65# We need to bootstrap md5 when building on Linux since the md5sum command there
66# produces different output.
67CFLAGS+=-DHAVE_CAPSICUM
68CFLAGS+=-DWITH_CASPER
69LIBADD+=	casper
70LIBADD+=	cap_fileargs
71.endif
72
73HAS_TESTS=
74SUBDIR.${MK_TESTS}+= tests
75
76.include <bsd.prog.mk>
77