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

src/lib/crypto/md5/Makefile.in

index f5829d9639ab7cf29aeb242720330fa9526f09a7..cd882e692f519f1b2deff85cf80e436501647e85 100644 (file)
@@ -27,11 +27,21 @@ t_mddriver: t_mddriver.o md5.o
 t_mddriver.exe:
        $(CC) $(CFLAGS2) -o t_mddriver.exe t_mddriver.c md5.c
 
-check:: t_mddriver$(EXEEXT)
+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)
+       $(RM) t_cksum$(EXEEXT) t_cksum.$(OBJEXT)
 
 clean-unix::
        $(RM) shared/*