summaryrefslogtreecommitdiff
path: root/lib/libcbor/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcbor/Makefile')
-rw-r--r--lib/libcbor/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libcbor/Makefile b/lib/libcbor/Makefile
index 204997cb948..561cba6e4bc 100644
--- a/lib/libcbor/Makefile
+++ b/lib/libcbor/Makefile
@@ -1,8 +1,10 @@
-# $OpenBSD: Makefile,v 1.3 2020/08/03 02:34:31 djm Exp $
+# $OpenBSD: Makefile,v 1.4 2022/12/31 03:35:21 djm Exp $
.PATH: ${.CURDIR}/src ${.CURDIR}/src/cbor ${.CURDIR}/src/cbor/internal
CFLAGS+= -I${.CURDIR}/src -DHAVE_ENDIAN_H -std=c99
+# We don't support custom allocators.
+CFLAGS+= -D_cbor_malloc=malloc -D_cbor_realloc=realloc -D_cbor_free=free
LIB= cbor
SRCS= cbor.c
@@ -26,6 +28,8 @@ HDRS+= cbor/arrays.h cbor/bytestrings.h cbor/callbacks.h cbor/common.h
HDRS+= cbor/configuration.h cbor/data.h cbor/encoding.h cbor/floats_ctrls.h
HDRS+= cbor/ints.h cbor/maps.h cbor/serialization.h cbor/streaming.h
HDRS+= cbor/strings.h cbor/tags.h
+# This file is generated by upstream's CMake rules.
+HDRS+= cbor/cbor_export.h
NOMAN=