Видалити 'cv4/list-ops/makefile'
This commit is contained in:
parent
c046e196fb
commit
9e8dba415a
@ -1,37 +0,0 @@
|
|||||||
### If you wish to use extra libraries (math.h for instance),
|
|
||||||
### add their flags here (-lm in our case) in the "LIBS" variable.
|
|
||||||
|
|
||||||
LIBS = -lm
|
|
||||||
|
|
||||||
###
|
|
||||||
CFLAGS = -std=c99
|
|
||||||
CFLAGS += -g
|
|
||||||
CFLAGS += -Wall
|
|
||||||
CFLAGS += -Wextra
|
|
||||||
CFLAGS += -pedantic
|
|
||||||
CFLAGS += -Werror
|
|
||||||
CFLAGS += -Wmissing-declarations
|
|
||||||
CFLAGS += -DUNITY_SUPPORT_64 -DUNITY_OUTPUT_COLOR
|
|
||||||
|
|
||||||
ASANFLAGS = -fsanitize=address
|
|
||||||
ASANFLAGS += -fno-common
|
|
||||||
ASANFLAGS += -fno-omit-frame-pointer
|
|
||||||
|
|
||||||
.PHONY: test
|
|
||||||
test: tests.out
|
|
||||||
@./tests.out
|
|
||||||
|
|
||||||
.PHONY: memcheck
|
|
||||||
memcheck: ./*.c ./*.h
|
|
||||||
@echo Compiling $@
|
|
||||||
@$(CC) $(ASANFLAGS) $(CFLAGS) test-framework/unity.c ./*.c -o memcheck.out $(LIBS)
|
|
||||||
@./memcheck.out
|
|
||||||
@echo "Memory check passed"
|
|
||||||
|
|
||||||
.PHONY: clean
|
|
||||||
clean:
|
|
||||||
rm -rf *.o *.out *.out.dSYM
|
|
||||||
|
|
||||||
tests.out: ./*.c ./*.h
|
|
||||||
@echo Compiling $@
|
|
||||||
@$(CC) $(CFLAGS) test-framework/unity.c ./*.c -o tests.out $(LIBS)
|
|
||||||
Loading…
Reference in New Issue
Block a user