xref: /openbsd/regress/lib/libcrypto/ocsp/Makefile (revision 4bdff4be)
1#	$OpenBSD: Makefile,v 1.5 2020/12/17 00:51:11 bluhm Exp $
2
3PROG=		ocsp_test
4LDADD=		-lcrypto -lssl
5DPADD=		${LIBCRYPTO} ${LIBSSL}
6WARNINGS=	Yes
7LDFLAGS+=	-lcrypto -lssl
8CFLAGS+=	-DLIBRESSL_INTERNAL -Wall -Wundef -Werror
9
10SERVERS=	www.amazon.com \
11		www.cloudflare.com
12
13REGRESS_TARGETS =
14
15.for s in ${SERVERS}
16REGRESS_TARGETS +=	run-domain-$s
17run-domain-$s: ${PROG}
18	if ping -n -c 1 -w 1 $s; then \
19	    ./${PROG} $s 443; else \
20	    echo server $s not reachable; echo SKIPPED; fi
21.endfor
22
23.include <bsd.regress.mk>
24