import libssl (LibreSSL 2.5.4)
[unleashed.git] / lib / libssl / compat.mk
blob388b58629d2f34de8eacbe4758deb62be61ff9fa
1 .include <unleashed.mk>
2 LCRYPTO_SRC= ${SRCTOP}/lib/libcrypto
3 CPPFLAGS+= -D__BEGIN_HIDDEN_DECLS= -D__END_HIDDEN_DECLS=
4 CPPFLAGS+= -I${LCRYPTO_SRC}/compat/include
5 SRCS+= timingsafe_memcmp.c
6 .PATH: ${LCRYPTO_SRC}/compat
8 BSDOBJDIR?= ${.OBJDIR:tA:H:H}
9 SHLIB_LDADD?= ${LDADD}
11 INSTALL_COPY?= ${COPY}
12 SHAREMODE?= 444
14 # we don't use MAPFILE_VERS here, because that would cause us to ignore
15 # shlib_version
16 SHLIB_LDADD+= -M${.OBJDIR}/mapfile
17 mapfile: ${VERSION_SCRIPT}
18 { echo '$$mapfile_version 2'; \
19 printf 'SYMBOL_SCOPE '; \
20 cat ${VERSION_SCRIPT}; } > $@
21 CLEANFILES+= mapfile
22 all: mapfile
24 # XXX <openssl/*> includes need to be available in DESTDIR if DESTDIR is
25 # specified since the mk files set -isysroot in that case
26 .ifdef DESTDIR
27 beforebuild: includes
28 .endif