Add t_cksum under unix
authorPaul Park <pjpark@mit.edu>
Fri, 7 Jul 1995 21:02:21 +0000 (21:02 +0000)
committerPaul Park <pjpark@mit.edu>
Fri, 7 Jul 1995 21:02:21 +0000 (21:02 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6256 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/md4/Makefile.in

index 3fbe4869082d8fcfd2ec45a29153dd023ba99ba2..faecdffc48efd8bf6910a998d745bf4303aee45c 100644 (file)
@@ -36,11 +36,27 @@ t_mddriver.exe:
        $(CC) -DMD=4 $(CFLAGS2) -o t_mddriver t_mddriver.c md4.c
        $(RM) md4.obj
 
-check:: t_mddriver$(EXEEXT)
+t_cksum.c: $(srcdir)/../md5/t_cksum.c
+       $(CP) $(srcdir)/../md5/t_cksum.c t_cksum.c
+
+t_cksum.o: t_cksum.c
+       $(CC) -DMD=4 $(CFLAGS) -c  t_cksum.c
+
+t_cksum: t_cksum.o $(TOPLIBD)/libcrypto.a
+       $(CC) $(CFLAGS) -o t_cksum t_cksum.o $(TOPLIBD)/libcrypto.a $(LIBS)
+
+check-unix:: t_mddriver t_cksum
+       $(C)t_mddriver -x
+       $(C)t_cksum "this is a test"
+
+check-windows:: t_mddriver$(EXEEXT)
        $(C)t_mddriver$(EXEEXT) -x
 
+check:: check-$(WHAT)
+
 clean:: clean-$(WHAT)
        $(RM) t_mddriver$(EXEEXT) t_mddriver.$(OBJEXT) t_mddriver.c
+       $(RM) t_cksum$(EXEEXT) t_cksum.$(OBJEXT) t_cksum.c
 
 clean-unix::
        $(RM) shared/*