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