import less(1)
[unleashed/tickless.git] / lib / libtls / Makefile
blob76efebb91d6c108d6f24b4f4d02ab592e2607c40
1 # $OpenBSD: Makefile,v 1.32 2017/08/13 19:42:33 doug 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_peer.c \
36 tls_server.c \
37 tls_util.c \
38 tls_ocsp.c \
39 tls_verify.c
41 includes:
42 @cd ${.CURDIR}; for i in $(HDRS); do \
43 j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \
44 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $$i\
45 ${DESTDIR}/usr/include/"; \
46 echo $$j; \
47 eval "$$j"; \
48 done;
50 ${VERSION_SCRIPT}: ${SYMBOL_LIST}
51 { printf '{\n\tglobal:\n'; \
52 sed '/^[._a-zA-Z]/s/$$/;/; s/^/ /' ${SYMBOL_LIST}; \
53 printf '\n\tlocal:\n\t\t*;\n};\n'; } >$@.tmp && mv $@.tmp $@
55 .include "compat.mk"
56 .include <bsd.lib.mk>