Unleashed v1.4
[unleashed.git] / lib / libcrypto / compat.mk
blob8f5b1b9621b2bccd2a950852585827f6e3289914
1 MACHINE_CPU?= ${MACHINE}
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 # sizeof(time_t) == 4 (2038 problem)
8 CFLAGS+= -DSMALL_TIME_T
10 SRCS+= compat/timingsafe_bcmp.c compat/timingsafe_memcmp.c
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 prereq
18 # 'includes' assumes usr/include exists
19 includes: mkincdir
20 mkincdir:
21 ${INSTALL} -d ${DESTDIR}/usr/include
22 .endif
23 # install config files as well
24 afterinstall: distribution
25 distribution: mkdir_etc_ssl
26 mkdir_etc_ssl:
27 ${INSTALL} -d ${DESTDIR}/etc/ssl