diff options
author | miod <> | 2016-11-05 12:45:25 +0000 |
---|---|---|
committer | miod <> | 2016-11-05 12:45:25 +0000 |
commit | 0a57be4fd4153555c860c3f645ccde030418c453 (patch) | |
tree | 56472fb6cbdf8ebe38358b1d90c2e0b3616bb392 | |
parent | 36f83cc64aba950579850268de8e1eb4819bd14a (diff) | |
download | openbsd-0a57be4fd4153555c860c3f645ccde030418c453.tar.gz openbsd-0a57be4fd4153555c860c3f645ccde030418c453.tar.bz2 openbsd-0a57be4fd4153555c860c3f645ccde030418c453.zip |
Set PROG so that the binary correctly gets recompiled when the libraries
it is linked against change.
ok beck@ jsing@
-rw-r--r-- | src/regress/lib/libcrypto/ocsp/Makefile | 16 |
1 files changed, 5 insertions, 11 deletions
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 @@ | |||
1 | # $OpenBSD: Makefile,v 1.2 2016/07/05 00:16:23 beck Exp $ | 1 | # $OpenBSD: Makefile,v 1.3 2016/11/05 12:45:25 miod Exp $ |
2 | |||
3 | TESTS = \ | ||
4 | ocsp_test | ||
5 | 2 | ||
6 | REGRESS_TARGETS= all_tests | 3 | REGRESS_TARGETS= all_tests |
7 | 4 | ||
5 | PROG= ocsp_test | ||
8 | LDADD= -lcrypto -lssl | 6 | LDADD= -lcrypto -lssl |
9 | DPADD= ${LIBCRYPTO} ${LIBSSL} | 7 | DPADD= ${LIBCRYPTO} ${LIBSSL} |
10 | WARNINGS= Yes | 8 | WARNINGS= Yes |
11 | LDFLAGS+= -lcrypto -lssl | 9 | LDFLAGS+= -lcrypto -lssl |
12 | CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror | 10 | CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror |
13 | 11 | ||
14 | CLEANFILES+= ${TESTS} | 12 | all_tests: ${PROG} |
15 | 13 | ${.OBJDIR}/${PROG} www.amazon.com 443 | |
16 | all_tests: ${TESTS} | 14 | ${.OBJDIR}/${PROG} cloudflare.com 443 |
17 | @for test in $>; do \ | ||
18 | ./$$test www.amazon.com 443; \ | ||
19 | ./$$test cloudflare.com 443; \ | ||
20 | done | ||
21 | 15 | ||
22 | .include <bsd.regress.mk> | 16 | .include <bsd.regress.mk> |