diff --git a/make/defs.mk b/make/defs.mk index 68057d43..59435e39 100644 --- a/make/defs.mk +++ b/make/defs.mk @@ -472,10 +472,16 @@ ifeq ($(USE_TIMER),true) CPPFLAGS += -D_USE_TIMER_ endif +ifeq ($(USE_GCOV),true) + CFLAGS += --coverage + CPPFLAGS += --coverage + LDFLAGS += --coverage +endif + ifeq ($(USE_PROFILER),true) - CFLAGS += -fprofile-arcs -ftest-coverage - CPPFLAGS += -fprofile-arcs -ftest-coverage - LDFLAGS += -fprofile-arcs -ftest-coverage + CFLAGS += -pg + CPPFLAGS += -pg + LDFLAGS += -pg endif ifeq ($(USE_YAMD),true)