diff options
Diffstat (limited to 'secure/lib/libcrypt/test/Makefile')
-rw-r--r-- | secure/lib/libcrypt/test/Makefile | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/secure/lib/libcrypt/test/Makefile b/secure/lib/libcrypt/test/Makefile index 53b0ec1..e02ae87 100644 --- a/secure/lib/libcrypt/test/Makefile +++ b/secure/lib/libcrypt/test/Makefile @@ -4,27 +4,26 @@ # # $Id: Makefile,v 1.1.1.1 1994/04/04 14:57:18 g89r4222 Exp $ # -LIBCRYPT!=cd $(.CURDIR)/..; \ - printf "xxx:\n\techo \$${.OBJDIR}/libcrypt.a\n" | make -r -s -f - xxx +.if exists (../obj) +OBJDIR = obj +.else +OBJDIR = +.endif + +LIBCRYPT= $(.CURDIR)/../$(OBJDIR)/libcrypt.a #CFLAGS+= -DHAVE_CRYPT16 -TARGETS=cert speedcrypt speeddes +TARGETS=cert speedcrypt all: ${TARGETS} -test: all testcrypt testencrypt testdes testspeed +test: all testcrypt testspeed testcrypt: cert @./cert -c -testencrypt: cert - @./cert -e < ${.CURDIR}/cert.input - -testdes: cert - @./cert -d < ${.CURDIR}/cert.input - -testspeed: cryptspeed desspeed +testspeed: cryptspeed cryptspeed: speedcrypt @./speedcrypt 30 1 @@ -32,24 +31,18 @@ cryptspeed: speedcrypt @./speedcrypt 30 0 @./speedcrypt 30 0 -desspeed: speeddes - @./speeddes 30 1 - @./speeddes 30 1 - @./speeddes 40 25 - @./speeddes 40 25 - cert: cert.c ${LIBCRYPT} $(CC) $(CFLAGS) -o cert ${.CURDIR}/cert.c ${LIBCRYPT} speedcrypt: speedcrypt.c ${LIBCRYPT} $(CC) $(CFLAGS) -o speedcrypt ${.CURDIR}/speedcrypt.c ${LIBCRYPT} -speeddes: speeddes.c ${LIBCRYPT} - $(CC) $(CFLAGS) -o speeddes ${.CURDIR}/speeddes.c ${LIBCRYPT} clean: rm -f ${TARGETS} install: -.include <bsd.obj.mk> +obj: + +.include <bsd.prog.mk> |