xref: /freebsd/lib/libfido2/Makefile (revision 60a517b66a69b8c011b04063ef63a938738719bd)
17b1e19adSEd MastePACKAGE=ssh
27b1e19adSEd MasteLIB=	fido2
37b1e19adSEd MastePRIVATELIB=
47b1e19adSEd MasteDIST=	${SRCTOP}/contrib/libfido2
57b1e19adSEd Maste
67b1e19adSEd Maste.PATH:	${DIST}/src ${DIST}
77b1e19adSEd Maste
87b1e19adSEd MasteSRCS+=	aes256.c
97b1e19adSEd MasteSRCS+=	assert.c
107b1e19adSEd MasteSRCS+=	authkey.c
117b1e19adSEd MasteSRCS+=	bio.c
127b1e19adSEd MasteSRCS+=	blob.c
137b1e19adSEd MasteSRCS+=	buf.c
147b1e19adSEd MasteSRCS+=	cbor.c
157b1e19adSEd MasteSRCS+=	compress.c
167b1e19adSEd MasteSRCS+=	config.c
177b1e19adSEd MasteSRCS+=	cred.c
187b1e19adSEd MasteSRCS+=	credman.c
197b1e19adSEd MasteSRCS+=	dev.c
207b1e19adSEd MasteSRCS+=	ecdh.c
217b1e19adSEd MasteSRCS+=	eddsa.c
227b1e19adSEd MasteSRCS+=	err.c
237b1e19adSEd MasteSRCS+=	es256.c
242ccfa855SEd MasteSRCS+=	es384.c
257b1e19adSEd MasteSRCS+=	hid_freebsd.c
267b1e19adSEd MasteSRCS+=	hid_unix.c
277b1e19adSEd MasteSRCS+=	hid.c
287b1e19adSEd MasteSRCS+=	info.c
297b1e19adSEd MasteSRCS+=	io.c
307b1e19adSEd MasteSRCS+=	iso7816.c
317b1e19adSEd MasteSRCS+=	largeblob.c
327b1e19adSEd MasteSRCS+=	log.c
337b1e19adSEd MasteSRCS+=	pin.c
347b1e19adSEd MasteSRCS+=	random.c
357b1e19adSEd MasteSRCS+=	reset.c
36f540a430SEd MasteSRCS+=	rs1.c
377b1e19adSEd MasteSRCS+=	rs256.c
38f540a430SEd MasteSRCS+=	time.c
392ccfa855SEd MasteSRCS+=	touch.c
40f540a430SEd MasteSRCS+=	tpm.c
41f540a430SEd MasteSRCS+=	types.c
427b1e19adSEd MasteSRCS+=	u2f.c
432ccfa855SEd MasteSRCS+=	util.c
447b1e19adSEd Maste
457b1e19adSEd MasteSRCS+=	openbsd-compat/freezero.c
467b1e19adSEd MasteSRCS+=	openbsd-compat/recallocarray.c
477b1e19adSEd Maste
487b1e19adSEd MasteCFLAGS+= -I ${DIST}/src -I${SRCTOP}/contrib/libcbor/src -I${.CURDIR}/../libcbor
497b1e19adSEd MasteCFLAGS+= -D_FIDO_INTERNAL
507b1e19adSEd MasteCFLAGS+= -DHAVE_ARC4RANDOM_BUF
512ccfa855SEd MasteCFLAGS+= -DHAVE_ASPRINTF
527b1e19adSEd MasteCFLAGS+= -DHAVE_CLOCK_GETTIME
537b1e19adSEd MasteCFLAGS+= -DHAVE_DEV_URANDOM
547b1e19adSEd MasteCFLAGS+= -DHAVE_ERR_H
557b1e19adSEd MasteCFLAGS+= -DHAVE_EXPLICIT_BZERO
567b1e19adSEd MasteCFLAGS+= -DHAVE_GETLINE
577b1e19adSEd MasteCFLAGS+= -DHAVE_GETOPT
587b1e19adSEd MasteCFLAGS+= -DHAVE_GETPAGESIZE
597b1e19adSEd MasteCFLAGS+= -DHAVE_GETRANDOM
607b1e19adSEd MasteCFLAGS+= -DHAVE_OPENSSLV_H
617b1e19adSEd MasteCFLAGS+= -DHAVE_READPASSPHRASE
627b1e19adSEd MasteCFLAGS+= -DHAVE_SIGNAL_H
637b1e19adSEd MasteCFLAGS+= -DHAVE_STRLCAT
647b1e19adSEd MasteCFLAGS+= -DHAVE_STRLCPY
657b1e19adSEd MasteCFLAGS+= -DHAVE_STRSEP
667b1e19adSEd MasteCFLAGS+= -DHAVE_SYSCONF
677b1e19adSEd MasteCFLAGS+= -DHAVE_SYS_RANDOM_H
687b1e19adSEd MasteCFLAGS+= -DHAVE_TIMESPECSUB
697b1e19adSEd MasteCFLAGS+= -DHAVE_TIMINGSAFE_BCMP
707b1e19adSEd MasteCFLAGS+= -DHAVE_UNISTD_H
71469c325aSEd MasteCFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L
727b1e19adSEd MasteCFLAGS+= -DTLS=__thread
737b1e19adSEd MasteCFLAGS+= -D_FIDO_MAJOR=1
74*60a517b6SEd MasteCFLAGS+= -D_FIDO_MINOR=14
757b1e19adSEd MasteCFLAGS+= -D_FIDO_PATCH=0
767b1e19adSEd Maste
777b1e19adSEd MasteLIBADD=	crypto z
787b1e19adSEd Maste
797b1e19adSEd MasteWARNS=2
807b1e19adSEd MasteMAN=
817b1e19adSEd Maste
827b1e19adSEd Maste.include <bsd.lib.mk>
83