1 Star 0 Fork 1

weimingtom/v7

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 757 Bytes
一键复制 编辑 原始数据 按行查看 历史
Marko Mikulicic 提交于 2016-10-03 15:53 +08:00 . Fix test runner flags
WARNS = -W -Wall -pedantic -Wno-comment -Wno-variadic-macros -Wno-unused-function
V7_FLAGS = -DCS_ENABLE_UTF8
CFLAGS = $(WARNS) -g -O3 -lm $(V7_FLAGS) $(CFLAGS_PLATFORM) $(CFLAGS_EXTRA)
TEST_CFLAGS = $(CFLAGS) -DV7_EXPOSE_PRIVATE -DV7_UNIT_TEST -DV7_FILENAMES_SUPPRESS_CFUNC_ADDR
.PHONY: examples test
all: v7 examples test
examples:
@$(MAKE) -C examples
tests/unit_test: tests/unit_test.c tests/common/test_util.c tests/common/test_util.h v7.c v7.h Makefile
$(CC) tests/unit_test.c tests/common/test_util.c $(TEST_CFLAGS) -lm -o tests/unit_test
test: tests/unit_test
cd tests; TZ=UTC ./unit_test $(TEST_FILTER)
v7: v7.c v7.h Makefile
$(CC) v7.c -o $@ -DV7_EXE $(CFLAGS) -lm
clean:
@$(MAKE) -C examples clean
rm -fr v7 v7.dSYM tests/unit_test
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/weimingtom/v7.git
git@gitee.com:weimingtom/v7.git
weimingtom
v7
v7
master

搜索帮助