Add --enable-coverage for gcov.

This commit is contained in:
Nicholas Marriott
2015-09-11 13:16:35 +01:00
parent 66c4ed98d6
commit ef35c9f765
2 changed files with 14 additions and 2 deletions

View File

@ -33,6 +33,10 @@ CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align
CFLAGS += -Wdeclaration-after-statement -Wno-pointer-sign
CPPFLAGS += -DDEBUG
endif
if IS_COVERAGE
CFLAGS += -g -O0 --coverage
LDFLAGS += --coverage
endif
CPPFLAGS += -iquote.
endif