mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
make: Modify only BUILD_*FLAGS in jw-build/make/*.mk
Assign only to BUILD_XXXFLAGS in jw-build/make/*.mk, and leave PROJECT_XXXFLAGS and LOCAL_XXXFLAGS alone. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
17a080138c
commit
49f269bdfe
12 changed files with 74 additions and 73 deletions
|
|
@ -6,25 +6,25 @@ CALLGRIND_OUT ?= callgrind.out
|
|||
OPROF_OUT_DIR ?= oprofile-data
|
||||
|
||||
ifeq ($(USE_GPROF),true)
|
||||
PROJECT_CXXFLAGS += -pg
|
||||
PROJECT_CFLAGS += -pg
|
||||
PROJECT_LDFLAGS += -pg
|
||||
BUILD_CXXFLAGS += -pg
|
||||
BUILD_CFLAGS += -pg
|
||||
BUILD_LDFLAGS += -pg
|
||||
clean: clean.gprof
|
||||
endif
|
||||
|
||||
ifeq ($(COMPILER_SUITE),gcc)
|
||||
ifeq ($(USE_GCOV),true)
|
||||
PROJECT_CXXFLAGS += -fprofile-arcs -ftest-coverage
|
||||
PROJECT_CFLAGS += -fprofile-arcs -ftest-coverage
|
||||
PROJECT_LDFLAGS += -fprofile-arcs -ftest-coverage
|
||||
BUILD_CXXFLAGS += -fprofile-arcs -ftest-coverage
|
||||
BUILD_CFLAGS += -fprofile-arcs -ftest-coverage
|
||||
BUILD_LDFLAGS += -fprofile-arcs -ftest-coverage
|
||||
clean: clean.gcov
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(COMPILER_SUITE),clang)
|
||||
ifeq ($(USE_XRAY),true)
|
||||
PROJECT_CXXFLAGS += -fxray-instrument -fxray-instruction-threshold=1
|
||||
PROJECT_CFLAGS += -fxray-instrument -fxray-instruction-threshold=1
|
||||
#PROJECT_LDFLAGS += -fxray-instrument
|
||||
BUILD_CXXFLAGS += -fxray-instrument -fxray-instruction-threshold=1
|
||||
BUILD_CFLAGS += -fxray-instrument -fxray-instruction-threshold=1
|
||||
#BUILD_LDFLAGS += -fxray-instrument
|
||||
endif
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue