summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1994-10-13 21:54:56 +0000
committerTheodore Tso <tytso@mit.edu>1994-10-13 21:54:56 +0000
commite5c936e3fab12e863c4d9162889ca609546d6b54 (patch)
treeecf10a007bf275be29773c8a844c98ae34f2aaad /src/lib
parent06af443156311748e48b03ddbee6f8ba1e7fb462 (diff)
Add support for the MDx test driver t_mddriver. Run t_mddriver on a
"make check", to make sure we have a valid MD4 implementation. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4500 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/crypto/md4/ChangeLog4
-rw-r--r--src/lib/crypto/md4/Makefile.in17
2 files changed, 20 insertions, 1 deletions
diff --git a/src/lib/crypto/md4/ChangeLog b/src/lib/crypto/md4/ChangeLog
index 68ae47e21..1b71d8d86 100644
--- a/src/lib/crypto/md4/ChangeLog
+++ b/src/lib/crypto/md4/ChangeLog
@@ -1,5 +1,9 @@
Thu Oct 13 17:48:21 1994 Theodore Y. Ts'o (tytso@dcl)
+ * Makefile.in: Add support for the MDx test driver t_mddriver.
+ Run t_mddriver on a "make check", to make sure we have a
+ valid MD4 implementation.
+
* md4.c (UL): Add the UL macro to control how unsigned long
constants are compiled. If we have an ANSI C environment,
use the UL suffix to keep the compiler from warning about
diff --git a/src/lib/crypto/md4/Makefile.in b/src/lib/crypto/md4/Makefile.in
index 192730009..625fab524 100644
--- a/src/lib/crypto/md4/Makefile.in
+++ b/src/lib/crypto/md4/Makefile.in
@@ -1,10 +1,25 @@
CFLAGS = $(CCOPTS) $(DEFS)
LDFLAGS = -g
-all:: $(OBJS)
+all:: $(OBJS) t_mddriver
OBJS= md4.o md4glue.o md4crypto.o
SRCS= $(srcdir)/md4.c $(srcdir)/md4glue.c $(srcdir)/md4crypto.c
+
+t_mddriver.c: $(srcdir)/../md5/t_mddriver.c
+ $(CP) $(srcdir)/../md5/t_mddriver.c t_mddriver.c
+
+t_mddriver.o: t_mddriver.c
+ $(CC) -DMD=4 $(CFLAGS) -c t_mddriver.c
+
+t_mddriver: t_mddriver.o md4.o
+ $(CC) $(CFLAGS) -o t_mddriver t_mddriver.o md4.o
+
+check:: t_mddriver
+ ./t_mddriver -x
+
+clean::
+ $(RM) t_mddriver t_mddriver.o t_mddriver.c