mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
make, scripts: Re-add files necessary for building ytools
Re-add everthing needed for building and packaging ytools. This is a big commit, 2002 lines of code. It mostly consists of C/C++ machinery, plus some documentation-related stuff. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
0a9340af49
commit
bf16c6714b
27 changed files with 1975 additions and 0 deletions
30
make/profiler-defs.mk
Normal file
30
make/profiler-defs.mk
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
all:
|
||||
clean:
|
||||
|
||||
PROF_EXE_PATH ?= $(EXE_PATH)
|
||||
CALLGRIND_OUT ?= callgrind.out
|
||||
OPROF_OUT_DIR ?= oprofile-data
|
||||
|
||||
ifeq ($(USE_GPROF),true)
|
||||
FINAL_CXXFLAGS += -pg
|
||||
FINAL_CFLAGS += -pg
|
||||
FINAL_LDFLAGS += -pg
|
||||
clean: clean.gprof
|
||||
endif
|
||||
|
||||
ifeq ($(COMPILER_SUITE),gcc)
|
||||
ifeq ($(USE_GCOV),true)
|
||||
FINAL_CXXFLAGS += -fprofile-arcs -ftest-coverage
|
||||
FINAL_CFLAGS += -fprofile-arcs -ftest-coverage
|
||||
FINAL_LDFLAGS += -fprofile-arcs -ftest-coverage
|
||||
clean: clean.gcov
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(COMPILER_SUITE),clang)
|
||||
ifeq ($(USE_XRAY),true)
|
||||
FINAL_CXXFLAGS += -fxray-instrument -fxray-instruction-threshold=1
|
||||
FINAL_CFLAGS += -fxray-instrument -fxray-instruction-threshold=1
|
||||
#FINAL_LDFLAGS += -fxray-instrument
|
||||
endif
|
||||
endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue