regres/libssl/unit: simplify Makefile
authortb <tb@openbsd.org>
Fri, 2 Dec 2022 01:15:11 +0000 (01:15 +0000)
committertb <tb@openbsd.org>
Fri, 2 Dec 2022 01:15:11 +0000 (01:15 +0000)
regress/lib/libssl/unit/Makefile

index fbd07e5..191aadf 100644 (file)
@@ -1,28 +1,18 @@
-#      $OpenBSD: Makefile,v 1.13 2022/07/20 14:50:31 tb Exp $
+#      $OpenBSD: Makefile,v 1.14 2022/12/02 01:15:11 tb Exp $
 
-TEST_CASES+= cipher_list
-TEST_CASES+= ssl_get_shared_ciphers
-TEST_CASES+= ssl_methods
-TEST_CASES+= ssl_set_alpn_protos
-TEST_CASES+= ssl_versions
-TEST_CASES+= tls_ext_alpn
-TEST_CASES+= tls_prf
-
-REGRESS_TARGETS= all_tests
+PROGS += cipher_list
+PROGS += ssl_get_shared_ciphers
+PROGS += ssl_methods
+PROGS += ssl_set_alpn_protos
+PROGS += ssl_versions
+PROGS += tls_ext_alpn
+PROGS += tls_prf
 
 WARNINGS=      Yes
-LDLIBS=                ${SSL_INT} -lcrypto
+LDADD =                ${SSL_INT} -lcrypto
+DPADD =                ${LIBSSL} ${LIBCRYPTO}
 CFLAGS+=       -DLIBRESSL_INTERNAL -Wall -Wundef -Werror
 CFLAGS+=       -DCERTSDIR=\"${.CURDIR}/../certs\"
 CFLAGS+=       -I${.CURDIR}/../../../../lib/libssl
 
-CLEANFILES+= ${TEST_CASES}
-
-all_tests: ${TEST_CASES}
-       @for test in $>; do \
-               ./$$test; \
-       done
-
-${TEST_CASES}: ${LIBSSL} ${LIBCRYPTO}
-
 .include <bsd.regress.mk>