nfs: fix getattr hint extracting checks
[unleashed/lotheac.git] / lib / libssl / compat.mk
blob15c15b976262bc0aa152099e5f491c4b1d11afc9
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 # 'includes' assumes usr/include exists
30 includes: mkincdir
31 mkincdir:
32 ${INSTALL} -d ${DESTDIR}/usr/include
33 .endif