Add support for the MDx test driver t_mddriver. Run t_mddriver on a
authorTheodore Tso <tytso@mit.edu>
Thu, 13 Oct 1994 21:54:56 +0000 (21:54 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 13 Oct 1994 21:54:56 +0000 (21:54 +0000)
"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

src/lib/crypto/md4/ChangeLog
src/lib/crypto/md4/Makefile.in

index 68ae47e212709c808b51df8c890dc5ea25272c12..1b71d8d8683017ebbc64bf4f25a270c168a7386a 100644 (file)
@@ -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
index 1927300095a5538c5b8f4a73ea7aff98df98c5cb..625fab52424539903a2655b0d58b670ecb3b52b5 100644 (file)
@@ -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