From 1c4e965dcf73156663e7ab7a558dfc172656287b Mon Sep 17 00:00:00 2001 From: miod <> Date: Sat, 5 Nov 2016 12:45:25 +0000 Subject: Set PROG so that the binary correctly gets recompiled when the libraries it is linked against change. ok beck@ jsing@ --- src/regress/lib/libcrypto/ocsp/Makefile | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/ocsp/Makefile b/src/regress/lib/libcrypto/ocsp/Makefile index 4178f3199f..62fb985647 100644 --- a/src/regress/lib/libcrypto/ocsp/Makefile +++ b/src/regress/lib/libcrypto/ocsp/Makefile @@ -1,22 +1,16 @@ -# $OpenBSD: Makefile,v 1.2 2016/07/05 00:16:23 beck Exp $ - -TESTS = \ - ocsp_test +# $OpenBSD: Makefile,v 1.3 2016/11/05 12:45:25 miod Exp $ REGRESS_TARGETS= all_tests +PROG= ocsp_test LDADD= -lcrypto -lssl DPADD= ${LIBCRYPTO} ${LIBSSL} WARNINGS= Yes LDFLAGS+= -lcrypto -lssl CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror -CLEANFILES+= ${TESTS} - -all_tests: ${TESTS} - @for test in $>; do \ - ./$$test www.amazon.com 443; \ - ./$$test cloudflare.com 443; \ - done +all_tests: ${PROG} + ${.OBJDIR}/${PROG} www.amazon.com 443 + ${.OBJDIR}/${PROG} cloudflare.com 443 .include -- cgit v1.2.3-55-g6feb