Make/CMake: Fix use of compiler flags

CMake: Option was not enabled by default as intended.
Makefile: Flags were not passed when building the tests
This commit is contained in:
Max Bruckner
2016-11-26 12:57:12 +07:00
parent d0a9f46888
commit 4703f01cf4
2 changed files with 4 additions and 4 deletions

View File

@@ -62,15 +62,15 @@ test: tests
./$(UTILS_TEST)
.c.o:
$(CC) -ansi -pedantic -c $(R_CFLAGS) $<
$(CC) -c $(R_CFLAGS) $<
#tests
#cJSON
$(CJSON_TEST): cJSON.c cJSON.h test.c
$(CC) $^ -o $@ $(LDLIBS) -I.
$(CC) $(R_CFLAGS) $^ -o $@ $(LDLIBS) -I.
#cJSON_Utils
$(UTILS_TEST): cJSON.c cJSON.h test.c
$(CC) $^ -o $@ $(LDLIBS) -I.
$(CC) $(R_CFLAGS) $^ -o $@ $(LDLIBS) -I.
#static libraries
#cJSON