libc: remove THIRDPARTYLICENSE/extract-copyright
[unleashed.git] / lib / libtls / compat.mk
blobc702d5d5820b04dbd89888ee47f9631dd0e49b66
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 # we don't use MAPFILE_VERS here, because that would cause us to ignore
17 # shlib_version
18 SHLIB_LDADD+= -Mmapfile
19 .NOPATH: mapfile ${VERSION_SCRIPT}
20 mapfile: ${VERSION_SCRIPT}
21 { echo '$$mapfile_version 2'; \
22 printf 'SYMBOL_SCOPE '; \
23 cat ${VERSION_SCRIPT}; } > $@
24 CLEANFILES+= mapfile
25 BUILDFIRST+= mapfile
27 # XXX includes need to be available in DESTDIR if DESTDIR is specified since
28 # the mk files set -isysroot in that case
29 .ifdef DESTDIR
30 beforebuild: includes
31 # 'includes' assumes usr/include exists
32 includes: mkincdir
33 mkincdir:
34 ${INSTALL} -d ${DESTDIR}/usr/include
35 .endif