diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2015-09-11 13:16:35 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2015-09-11 13:16:35 +0100 |
commit | ef35c9f7659205659d6863058b9a7262b21440a5 (patch) | |
tree | 470ff53127869280ac6a6327a7cd4f814ed0b2f2 /Makefile.am | |
parent | 66c4ed98d62010421a47bcdb7a4a22a7cbcffff9 (diff) |
Add --enable-coverage for gcov.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index e9a6bd33..982a88d8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 |