aboutsummaryrefslogtreecommitdiff
path: root/lib/libfido2/Makefile
blob: edf737b9dafc4971658588a72b77f45f0b99efb5 (plain) (blame)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
PACKAGE=ssh
LIB=	fido2
PRIVATELIB=
DIST=	${SRCTOP}/contrib/libfido2

.PATH:	${DIST}/src ${DIST}

SRCS+=	aes256.c
SRCS+=	assert.c
SRCS+=	authkey.c
SRCS+=	bio.c
SRCS+=	blob.c
SRCS+=	buf.c
SRCS+=	cbor.c
SRCS+=	compress.c
SRCS+=	config.c
SRCS+=	cred.c
SRCS+=	credman.c
SRCS+=	dev.c
SRCS+=	ecdh.c
SRCS+=	eddsa.c
SRCS+=	err.c
SRCS+=	es256.c
SRCS+=	hid_freebsd.c
SRCS+=	hid_unix.c
SRCS+=	hid.c
SRCS+=	info.c
SRCS+=	io.c
SRCS+=	iso7816.c
SRCS+=	largeblob.c
SRCS+=	log.c
SRCS+=	pin.c
SRCS+=	random.c
SRCS+=	reset.c
SRCS+=	rs256.c
SRCS+=	u2f.c

SRCS+=	openbsd-compat/freezero.c
SRCS+=	openbsd-compat/recallocarray.c

CFLAGS+= -I ${DIST}/src -I${SRCTOP}/contrib/libcbor/src -I${.CURDIR}/../libcbor
CFLAGS+= -D_FIDO_INTERNAL
CFLAGS+= -DHAVE_ARC4RANDOM_BUF
CFLAGS+= -DHAVE_CLOCK_GETTIME
CFLAGS+= -DHAVE_DEV_URANDOM
CFLAGS+= -DHAVE_ERR_H
CFLAGS+= -DHAVE_EXPLICIT_BZERO
CFLAGS+= -DHAVE_GETLINE
CFLAGS+= -DHAVE_GETOPT
CFLAGS+= -DHAVE_GETPAGESIZE
CFLAGS+= -DHAVE_GETRANDOM
CFLAGS+= -DHAVE_OPENSSLV_H
CFLAGS+= -DHAVE_READPASSPHRASE
CFLAGS+= -DHAVE_SIGNAL_H
CFLAGS+= -DHAVE_STRLCAT
CFLAGS+= -DHAVE_STRLCPY
CFLAGS+= -DHAVE_STRSEP
CFLAGS+= -DHAVE_SYSCONF
CFLAGS+= -DHAVE_SYS_RANDOM_H
CFLAGS+= -DHAVE_TIMESPECSUB
CFLAGS+= -DHAVE_TIMINGSAFE_BCMP
CFLAGS+= -DHAVE_UNISTD_H
CFLAGS+= -DTLS=__thread
CFLAGS+= -D_FIDO_MAJOR=1
CFLAGS+= -D_FIDO_MINOR=9
CFLAGS+= -D_FIDO_PATCH=0

LIBADD=	crypto z

WARNS=2
MAN=

.include <bsd.lib.mk>