aboutsummaryrefslogtreecommitdiff
path: root/deps/yyjson/Makefile
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-06-25 22:26:00 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-06-25 22:26:00 +0200
commitfe3fe5d737e61e6e179b63f0480216c421810fd8 (patch)
tree3ba8b7ce178187b31261d8a1cd2ae2e97a1e9d05 /deps/yyjson/Makefile
parent6a9aa3302362e7d129b804cd621d39a1c1e7c43d (diff)
downloadffwd-fe3fe5d737e61e6e179b63f0480216c421810fd8.tar.gz
ffwd-fe3fe5d737e61e6e179b63f0480216c421810fd8.zip
build: vendor yyjson 0.12.0 in deps/yyjson
Diffstat (limited to 'deps/yyjson/Makefile')
-rw-r--r--deps/yyjson/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/deps/yyjson/Makefile b/deps/yyjson/Makefile
new file mode 100644
index 0000000..f8ffd61
--- /dev/null
+++ b/deps/yyjson/Makefile
@@ -0,0 +1,17 @@
+ROOT := ../..
+COMPONENT := yyjson
+include $(ROOT)/build.mk
+
+LIB := yyjson
+
+SRCS := yyjson.c
+HEADERS := yyjson.h
+
+# yyjson has its own IEEE-754 number parser and printer, so it must build with
+# standard floating-point semantics. Strip the project-wide reassociation flags
+# (used by the math kernels) from this unit; they would change number output.
+FP_UNSAFE := -fno-math-errno -ffp-contract=fast -fno-trapping-math \
+ -fno-signed-zeros -fassociative-math -freciprocal-math
+CFLAGS := $(filter-out $(FP_UNSAFE),$(CFLAGS)) -std=c11
+
+$(eval $(simple_library))