xref: /freebsd/lib/libfido2/Makefile (revision bc7512cc58af2e8bbe5bbf5ca0059b1daa1da897)
1PACKAGE=ssh
2LIB=	fido2
3PRIVATELIB=
4DIST=	${SRCTOP}/contrib/libfido2
5
6.PATH:	${DIST}/src ${DIST}
7
8SRCS+=	aes256.c
9SRCS+=	assert.c
10SRCS+=	authkey.c
11SRCS+=	bio.c
12SRCS+=	blob.c
13SRCS+=	buf.c
14SRCS+=	cbor.c
15SRCS+=	compress.c
16SRCS+=	config.c
17SRCS+=	cred.c
18SRCS+=	credman.c
19SRCS+=	dev.c
20SRCS+=	ecdh.c
21SRCS+=	eddsa.c
22SRCS+=	err.c
23SRCS+=	es256.c
24SRCS+=	hid_freebsd.c
25SRCS+=	hid_unix.c
26SRCS+=	hid.c
27SRCS+=	info.c
28SRCS+=	io.c
29SRCS+=	iso7816.c
30SRCS+=	largeblob.c
31SRCS+=	log.c
32SRCS+=	pin.c
33SRCS+=	random.c
34SRCS+=	reset.c
35SRCS+=	rs256.c
36SRCS+=	u2f.c
37
38SRCS+=	openbsd-compat/freezero.c
39SRCS+=	openbsd-compat/recallocarray.c
40
41CFLAGS+= -I ${DIST}/src -I${SRCTOP}/contrib/libcbor/src -I${.CURDIR}/../libcbor
42CFLAGS+= -D_FIDO_INTERNAL
43CFLAGS+= -DHAVE_ARC4RANDOM_BUF
44CFLAGS+= -DHAVE_CLOCK_GETTIME
45CFLAGS+= -DHAVE_DEV_URANDOM
46CFLAGS+= -DHAVE_ERR_H
47CFLAGS+= -DHAVE_EXPLICIT_BZERO
48CFLAGS+= -DHAVE_GETLINE
49CFLAGS+= -DHAVE_GETOPT
50CFLAGS+= -DHAVE_GETPAGESIZE
51CFLAGS+= -DHAVE_GETRANDOM
52CFLAGS+= -DHAVE_OPENSSLV_H
53CFLAGS+= -DHAVE_READPASSPHRASE
54CFLAGS+= -DHAVE_SIGNAL_H
55CFLAGS+= -DHAVE_STRLCAT
56CFLAGS+= -DHAVE_STRLCPY
57CFLAGS+= -DHAVE_STRSEP
58CFLAGS+= -DHAVE_SYSCONF
59CFLAGS+= -DHAVE_SYS_RANDOM_H
60CFLAGS+= -DHAVE_TIMESPECSUB
61CFLAGS+= -DHAVE_TIMINGSAFE_BCMP
62CFLAGS+= -DHAVE_UNISTD_H
63CFLAGS+= -DTLS=__thread
64CFLAGS+= -D_FIDO_MAJOR=1
65CFLAGS+= -D_FIDO_MINOR=9
66CFLAGS+= -D_FIDO_PATCH=0
67
68LIBADD=	crypto z
69
70WARNS=2
71MAN=
72
73.include <bsd.lib.mk>
74