This way a top-down "make obj" does nothing but symlink creation and "make"
or "make regress" still does the eopenssl11 check at the very end.
This is how the rest of the regress suite does it, e.g. sys/netinet/pmtu.
OK tb
-# $OpenBSD: Makefile,v 1.10 2020/11/09 15:49:48 tb Exp $
+# $OpenBSD: Makefile,v 1.11 2021/11/08 23:06:49 kn Exp $
SUBDIR += libressl
-.if exists(/usr/local/bin/eopenssl11)
SUBDIR += openssl11
-.else
-.END:
- @echo 'Run "pkg_add openssl--%1.1" to run tests against OpenSSL 1.1'
- @echo SKIPPED
-.endif
.include <bsd.subdir.mk>
-.include <bsd.regress.mk>
+.if ! exists(/usr/local/bin/eopenssl11)
+regress:
+ @echo 'Run "pkg_add openssl--%1.1" to run tests against OpenSSL 1.1'
+ @echo SKIPPED
+.endif
+
LDADD += -Wl,-rpath,/usr/local/lib/eopenssl11 -L/usr/local/lib/eopenssl11
CFLAGS += -I${.CURDIR}/ -I/usr/local/include/eopenssl11/