summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libmd/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile
index 40848f6..214594b 100644
--- a/lib/libmd/Makefile
+++ b/lib/libmd/Makefile
@@ -12,6 +12,8 @@ MLINKS+=mdX.3 MD5End.3 mdX.3 MD5File.3 mdX.3 MD5Data.3
CLEANFILES+= md[245]hl.c md[245].ref md[245].3 mddriver
CFLAGS+= -I${.CURDIR}
+all: md2.3 md2.ref md4.3 md4.ref md5.3 md5.ref
+
md2hl.c: mdXhl.c
sed -e 's/mdX/md2/g' -e 's/MDX/MD2/g' $> > $@
@@ -63,7 +65,7 @@ md5.ref:
@echo 'MD5 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") = d174ab98d277d9f5a5611c2c9f419d9f' >> $@
@echo 'MD5 ("12345678901234567890123456789012345678901234567890123456789012345678901234567890") = 57edf4a22be3c955ac49da2e2107b67a' >> $@
-beforeinstall: md2.ref md4.ref md5.ref md2.3 md4.3 md5.3
+beforeinstall:
@${ECHO} if any of these test fail, the code produces wrong results
@${ECHO} and should NOT be used.
${CC} -static ${CFLAGS} ${LDFLAGS} -DMD=2 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
OpenPOWER on IntegriCloud