mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
make: Split up profiler.mk into profiler-defs.mk and profiler-rules-run.mk
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
7faa876a18
commit
51b88d618e
5 changed files with 110 additions and 107 deletions
21
make/profiler-defs.mk
Normal file
21
make/profiler-defs.mk
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
all:
|
||||
clean:
|
||||
|
||||
PROF_EXE_PATH ?= $(EXE_PATH)
|
||||
CALLGRIND_OUT ?= callgrind.out
|
||||
OPROF_OUT_DIR ?= oprofile-dir
|
||||
|
||||
ifeq ($(USE_GPROF),true)
|
||||
PROJECT_CPPFLAGS += -pg
|
||||
PROJECT_CFLAGS += -pg
|
||||
PROJECT_LDFLAGS += -pg
|
||||
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
|
||||
endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue