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
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