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