Merge illumos-gate
[unleashed.git] / lib / libssl / compat.mk
blob7f7fa6d6c2ecf914a2e86bf2fd43eafeb899e75b
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 # XXX <openssl/*> includes need to be available in DESTDIR if DESTDIR is
15 # specified since the mk files set -isysroot in that case
16 .ifdef DESTDIR
17 beforebuild: includes
18 # 'includes' assumes usr/include exists
19 includes: mkincdir
20 mkincdir:
21 ${INSTALL} -d ${DESTDIR}/usr/include
22 .endif