提交 602c241a 编写于 作者: K Kyle Chisholm 提交者: Max Bruckner

fixed "make test" on Mac (clang)

上级 23dafa47
...@@ -5,6 +5,9 @@ UTILS_LIBNAME = libcjson_utils ...@@ -5,6 +5,9 @@ UTILS_LIBNAME = libcjson_utils
CJSON_TEST = cJSON_test CJSON_TEST = cJSON_test
UTILS_TEST = cJSON_test_utils UTILS_TEST = cJSON_test_utils
CJSON_TEST_SRC = cJSON.c test.c
UTILS_TEST_SRC = cJSON.c cJSON_Utils.c test_utils.c
LDLIBS = -lm LDLIBS = -lm
LIBVERSION = 1.0.2 LIBVERSION = 1.0.2
...@@ -66,11 +69,11 @@ test: tests ...@@ -66,11 +69,11 @@ test: tests
#tests #tests
#cJSON #cJSON
$(CJSON_TEST): cJSON.c cJSON.h test.c $(CJSON_TEST): $(CJSON_TEST_SRC) cJSON.h
$(CC) $^ -o $@ $(LDLIBS) -I. $(CC) $(CJSON_TEST_SRC) -o $@ $(LDLIBS) -I.
#cJSON_Utils #cJSON_Utils
$(UTILS_TEST): cJSON.c cJSON.h test.c $(UTILS_TEST): $(UTILS_TEST_SRC) cJSON.h cJSON_Utils.h
$(CC) $^ -o $@ $(LDLIBS) -I. $(CC) $(UTILS_TEST_SRC) -o $@ $(LDLIBS) -I.
#static libraries #static libraries
#cJSON #cJSON
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册