blob: 9a8153d007f77cc0390d9663f9dd621524e0d5eb (
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
57
|
# $OpenBSD: Makefile,v 1.6 2020/08/11 08:44:53 djm Exp $
.PATH: ${.CURDIR}/man ${.CURDIR}/src
CFLAGS+= -I${.CURDIR}/src -std=c99
CFLAGS+= -DHAVE_ARC4RANDOM_BUF -D_FIDO_INTERNAL -DHAVE_UNISTD_H
WARNINGS= yes
CDIAGFLAGS+= -Wall -Wextra
CDIAGFLAGS+= -Werror
LDADD+= -L${BSDOBJDIR}/lib/libcbor -lcbor
SYMBOL_LIST= Symbols.list
VERSION_SCRIPT= Symbols.map
CLEANFILES= ${SYMBOL_LIST} ${VERSION_SCRIPT}
LIB= fido2
SRCS= aes256.c assert.c authkey.c bio.c blob.c buf.c cbor.c cred.c credman.c
SRCS+= dev.c ecdh.c eddsa.c err.c es256.c hid.c hid_openbsd.c info.c io.c
SRCS+= iso7816.c log.c pin.c reset.c rs256.c u2f.c
HDRS= fido.h fido/bio.h fido/credman.h fido/eddsa.h fido/err.h
HDRS+= fido/es256.h fido/param.h fido/rs256.h fido/types.h
MAN= eddsa_pk_new.3 es256_pk_new.3 fido_assert_allow_cred.3 fido_assert_new.3
MAN+= fido_assert_set_authdata.3 fido_assert_verify.3 fido_bio_dev_get_info.3
MAN+= fido_bio_enroll_new.3 fido_bio_info_new.3 fido_bio_template.3
MAN+= fido_cbor_info_new.3 fido_cred_exclude.3 fido_cred_new.3
MAN+= fido_cred_set_authdata.3 fido_cred_verify.3 fido_credman_metadata_new.3
MAN+= fido_dev_get_assert.3 fido_dev_info_manifest.3 fido_dev_make_cred.3
MAN+= fido_dev_open.3 fido_dev_set_io_functions.3 fido_dev_set_pin.3
MAN+= fido_init.3 fido_strerr.3 rs256_pk_new.3 fido_dev_get_touch_begin.3
includes:
@for i in $(HDRS); do \
j="test -d ${DESTDIR}/usr/include/`dirname $$i` || \
${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \
${DESTDIR}/usr/include/`dirname $$i`"; \
echo $$j; \
eval "$$j"; \
j="cmp -s src/$$i ${DESTDIR}/usr/include/$$i || \
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
-m 444 ${.CURDIR}/src/$$i ${DESTDIR}/usr/include/$$i"; \
echo $$j; \
eval "$$j"; \
done
${SYMBOL_LIST}: ${.CURDIR}/src/export.llvm
sort ${.CURDIR}/src/export.llvm | sed 's/^_//' > $@.tmp && mv $@.tmp $@
${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>
|