Merge branch 'troff'
[unleashed.git] / lib / libssl / compat.mk
blob3f7e2fc145d645cb49457c4b02e4096d5e2c7a91
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+= -Mmapfile
17 .NOPATH: mapfile ${VERSION_SCRIPT}
18 mapfile: ${VERSION_SCRIPT}
19 { echo '$$mapfile_version 2'; \
20 printf 'SYMBOL_SCOPE '; \
21 fgrep -v '/* ' ${VERSION_SCRIPT}; } > $@
22 CLEANFILES+= mapfile
23 BUILDFIRST+= mapfile
25 # XXX <openssl/*> includes need to be available in DESTDIR if DESTDIR is
26 # specified since the mk files set -isysroot in that case
27 .ifdef DESTDIR
28 beforebuild: includes
29 .endif