2 # Hacked Makefile to compile and run the DES-certification program,
3 # but not install anything.
5 # $FreeBSD: src/secure/lib/libcipher/test/Makefile,v 1.5 1999/08/28 01:30:21 peter Exp $
6 # $DragonFly: src/secure/lib/libcipher/test/Makefile,v 1.2 2003/06/17 04:27:48 dillon Exp $
8 LIBCRYPT!=cd $(.CURDIR)/..; \
9 printf "xxx:\n\techo \$${.OBJDIR}/libcipher.a\n" | make -r -s -f - xxx
11 #CFLAGS+= -DHAVE_CRYPT16
14 TARGETS=cert speedcrypt speeddes
18 test: all testcrypt testencrypt testdes testspeed
24 @./cert -e < ${.CURDIR}/cert.input
27 @./cert -d < ${.CURDIR}/cert.input
29 testspeed: cryptspeed desspeed
31 cryptspeed: speedcrypt
43 cert: cert.c ${LIBCRYPT}
44 $(CC) $(CFLAGS) -o cert ${.CURDIR}/cert.c ${LIBCRYPT}
46 speedcrypt: speedcrypt.c ${LIBCRYPT}
47 $(CC) $(CFLAGS) -o speedcrypt ${.CURDIR}/speedcrypt.c ${LIBCRYPT}
49 speeddes: speeddes.c ${LIBCRYPT}
50 $(CC) $(CFLAGS) -o speeddes ${.CURDIR}/speeddes.c ${LIBCRYPT}
57 .include <bsd.prog.mk>