make: Clean up profiling options

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-12-17 14:48:21 +00:00
commit 5882227628
4 changed files with 8 additions and 20 deletions

View file

@ -12,11 +12,13 @@ ifeq ($(USE_GPROF),true)
clean: clean.gprof
endif
ifeq ($(USE_GCOV),true)
PROJECT_CPPFLAGS += -fprofile-arcs -ftest-coverage
PROJECT_CFLAGS += -fprofile-arcs -ftest-coverage
PROJECT_LDFLAGS += -fprofile-arcs -ftest-coverage
clean: clean.gcov
ifeq ($(COMPILER_SUITE),gcc)
ifeq ($(USE_GCOV),true)
PROJECT_CPPFLAGS += -fprofile-arcs -ftest-coverage
PROJECT_CFLAGS += -fprofile-arcs -ftest-coverage
PROJECT_LDFLAGS += -fprofile-arcs -ftest-coverage
clean: clean.gcov
endif
endif
ifeq ($(COMPILER_SUITE),clang)