blob: 0a98ea61b492fa64217eca64e2ca55a559002841 (
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
|
# $OpenBSD: Makefile,v 1.1 2018/06/02 17:40:33 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
CFLAGS+= -I ${.CURDIR}
CLEANFILES= ${VERSION_SCRIPT}
WARNINGS= Yes
LIB= csi
DPADD= ${LIBCRYPTO}
LDADD+= -L${BSDOBJDIR}/lib/libcrypto -lcrypto
VERSION_SCRIPT= Symbols.map
SYMBOL_LIST= ${.CURDIR}/Symbols.list
HDRS= csi.h
SRCS= csi.c \
csi_dh.c \
csi_dh_groups.c \
csi_util.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>
|