-# $OpenBSD: Makefile,v 1.122 2023/04/26 21:36:42 tb Exp $
+# $OpenBSD: Makefile,v 1.123 2023/04/28 16:14:46 tb Exp $
LIB= crypto
LIBREBUILD=y
LCRYPTO_SRC= ${.CURDIR}
CFLAGS+= -Wall -Wundef
-.ifdef HAS_DAG
-CFLAGS+= -DLIBRESSL_HAS_POLICY_DAG
-.endif
.if ${COMPILER_VERSION:L} == "clang"
CFLAGS+= -Werror
.endif
CFLAGS+= -DLIBRESSL_INTERNAL -DLIBRESSL_CRYPTO_INTERNAL
+CFLAGS+= -DLIBRESSL_HAS_POLICY_DAG
.ifdef NAMESPACE
CFLAGS+= -DLIBRESSL_NAMESPACE -DLIBRESSL_CRYPTO_NAMESPACE
.endif