freebsd-dev/lib/libcbor/Makefile
Ed Maste 2e85df652c Add libcbor to the build
From https://github.com/PJK/libcbor:

    libcbor is a C library for parsing and generating CBOR, the general-
    purpose schema-less binary data format.

libcbor will be used by ssh to support FIDO/U2F keys.  It is currently
intended only for use by ssh, and so is installed as a PRIVATELIB and is
placed in the ssh pkgbase package.

cbor_export.h and configuration.h were generated by the upstream CMake
build.  We could create them with bmake rules instead (as NetBSD has
done) but this is a fine start.

This is currently disabled for the 32-bit library build as libfido2 is
not compatible with the COMPAT_32BIT hack in usb_ioctl.h, and there is
no need for libcbor without libfido2.

Reviewed by:	kevans
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32347
2021-10-15 15:10:24 -04:00

36 lines
661 B
Makefile

# $FreeBSD$
PACKAGE=ssh
LIB= cbor
PRIVATELIB=
DIST=${SRCTOP}/contrib/libcbor
.PATH: ${DIST}/src
SRCS= cbor.c
SRCS+= cbor/arrays.c
SRCS+= cbor/bytestrings.c
SRCS+= cbor/callbacks.c
SRCS+= cbor/common.c
SRCS+= cbor/encoding.c
SRCS+= cbor/floats_ctrls.c
SRCS+= cbor/ints.c
SRCS+= cbor/maps.c
SRCS+= cbor/serialization.c
SRCS+= cbor/streaming.c
SRCS+= cbor/strings.c
SRCS+= cbor/tags.c
SRCS+= cbor/internal/builder_callbacks.c
SRCS+= cbor/internal/encoders.c
SRCS+= cbor/internal/loaders.c
SRCS+= cbor/internal/memory_utils.c
SRCS+= cbor/internal/stack.c
SRCS+= cbor/internal/unicode.c
CFLAGS+= -I${DIST}/src -I${.CURDIR}
WARNS?= 2
MAN=
.include <bsd.lib.mk>