代码拉取完成,页面将自动刷新
同步操作将从 lengjing/json 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
############################################
# SPDX-License-Identifier: MIT #
# Copyright (C) 2021-.... Jing Leng #
# Contact: Jing Leng <lengjingzju@163.com> #
############################################
PACKAGE_NAME = ljson
major_ver = 1
minor_ver = 3
patch_ver = 3
staticlib = lib$(PACKAGE_NAME).a
sharedlib = lib$(PACKAGE_NAME).so $(major_ver) $(minor_ver) $(patch_ver)
testedbin = ljson
ldoublelib = libldouble.a
ldoublebin = ldouble
INSTALL_HEADERS = json.h
FMUL ?= 0
DTOA ?= 0
RBIT ?= 11
TCMP ?= 2
CPFLAGS += -DUSE_FLOAT_MUL_CONVERT=$(FMUL)
CPFLAGS += -DJSON_DTOA_ALGORITHM=$(DTOA) # 0:ldouble 1:sprintf 2:grisu2 3:dragonbox
CPFLAGS += -DLSHIFT_RESERVED_BIT=$(RBIT) # 2 <= RBIT <= 11
CPFLAGS += -DAPPROX_TAIL_CMP_VAL=$(TCMP) # 0 <= TCMP <= 4
.PHONY: all clean install
all:
@echo "Build $(PACKAGE_NAME) Done!"
INC_MAKES := app
object_byte_size=2304
include inc.makes
$(eval $(call add-liba-build,$(staticlib),json.c))
$(eval $(call add-libso-build,$(sharedlib),json.c))
$(eval $(call add-bin-build,$(testedbin),json_test.c,-L $(OBJ_PREFIX) $(call set_links,ljson),,$(OBJ_PREFIX)/$(staticlib)))
$(eval $(call add-liba-build,$(ldoublelib),ldouble.c))
$(eval $(call add-bin-build,$(ldoublebin),ldouble_test.c,-L $(OBJ_PREFIX) $(call set_links,ldouble),,$(OBJ_PREFIX)/$(ldoublelib)))
all: $(BIN_TARGETS) $(LIB_TARGETS)
clean: clean_objs
@rm -f $(LIB_TARGETS) $(BIN_TARGETS)
@echo "Clean $(PACKAGE_NAME) Done."
pkgconfigdir := /usr/lib/pkgconfig
INSTALL_PKGCONFIGS := pcfiles/*
$(eval $(call install_obj,pkgconfig))
install: install_hdrs install_libs install_bins install_pkgconfigs
@echo "Install $(PACKAGE_NAME) to $(INS_PREFIX) Done!"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。