FEATURES: amd64 stuff in /lib
[unleashed.git] / lib / libtls / compat.mk
blob38ecb7b96174142e69dff77e0dbd7e300106b956
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 # see libressl-portable/portable:m4/disable-compiler-warnings.m4
6 CFLAGS+= -Wno-pointer-sign
7 SRCS+= timingsafe_memcmp.c
8 .PATH: ${LCRYPTO_SRC}/compat
10 BSDOBJDIR?= ${.OBJDIR:tA:H:H}
11 SHLIB_LDADD?= ${LDADD}
13 INSTALL_COPY?= ${COPY}
14 SHAREMODE?= 444
16 # XXX includes need to be available in DESTDIR if DESTDIR is specified since
17 # the mk files set -isysroot in that case
18 .ifdef DESTDIR
19 beforebuild: includes
20 # 'includes' assumes usr/include exists
21 includes: mkincdir
22 mkincdir:
23 ${INSTALL} -d ${DESTDIR}/usr/include
24 .endif