defs.mk: Profile with -pg --coverage

- USE_PROFILER now adds -pg to FLAGS
  - --coverage (ex -fprofile-args -ftest-coverage) is now triggered
    by USE_GCOV
This commit is contained in:
Jan Lindemann 2007-12-01 22:42:38 +00:00 committed by Jan Lindemann
commit 0be8219671

View file

@ -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)