usr/src/boot: add .PARALLEL to makefiles
[unleashed.git] / lib / libtls / Makefile
blobca090080e3853efe5df0f09bc93921d5375cda77
1 # $OpenBSD: Makefile,v 1.33 2018/02/08 05:56:49 jsing Exp $
3 .include <bsd.own.mk>
4 .ifndef NOMAN
5 SUBDIR= man
6 .endif
8 CFLAGS+= -Wall -Wimplicit -Wundef
9 .if ${COMPILER_VERSION:L} == "clang"
10 CFLAGS+= -Werror
11 .endif
12 CFLAGS+= -DLIBRESSL_INTERNAL
14 CLEANFILES= ${VERSION_SCRIPT}
16 WARNINGS= Yes
18 LIB= tls
20 DPADD= ${LIBCRYPTO} ${LIBSSL}
22 LDADD+= -L${BSDOBJDIR}/lib/libcrypto -lcrypto
23 LDADD+= -L${BSDOBJDIR}/lib/libssl -lssl
25 VERSION_SCRIPT= Symbols.map
26 SYMBOL_LIST= ${.CURDIR}/Symbols.list
28 HDRS= tls.h
30 SRCS= tls.c \
31 tls_bio_cb.c \
32 tls_client.c \
33 tls_config.c \
34 tls_conninfo.c \
35 tls_keypair.c \
36 tls_peer.c \
37 tls_server.c \
38 tls_util.c \
39 tls_ocsp.c \
40 tls_verify.c
42 includes:
43 @cd ${.CURDIR}; for i in $(HDRS); do \
44 j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \
45 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $$i\
46 ${DESTDIR}/usr/include/"; \
47 echo $$j; \
48 eval "$$j"; \
49 done;
51 ${VERSION_SCRIPT}: ${SYMBOL_LIST}
52 { printf '{\n\tglobal:\n'; \
53 sed '/^[._a-zA-Z]/s/$$/;/; s/^/ /' ${SYMBOL_LIST}; \
54 printf '\n\tlocal:\n\t\t*;\n};\n'; } >$@.tmp && mv $@.tmp $@
56 .include "compat.mk"
57 .include <bsd.lib.mk>