cbuild
This commit is contained in:
21
Makefile
21
Makefile
@@ -4,12 +4,8 @@
|
||||
|
||||
all: build_exec_dbg
|
||||
|
||||
# generates different profile info
|
||||
build_profile:
|
||||
@cbuild/call_task.sh build_profile 2>&1 | tee make_raw.log
|
||||
|
||||
# creates executable using profile info generated by build_profile
|
||||
build_exec: build_profile
|
||||
# creates executable using profiling info generated by profile
|
||||
build_exec: profile
|
||||
@cbuild/call_task.sh build_exec 2>&1 | tee -a make_raw.log
|
||||
|
||||
# creates executable with debug info and no optimizations
|
||||
@@ -32,6 +28,19 @@ exec_dbg: build_exec_dbg
|
||||
valgrind: build_exec_dbg
|
||||
@cbuild/call_task.sh valgrind 2>&1 | tee -a make_raw.log
|
||||
|
||||
# generates profiling info
|
||||
profile:
|
||||
@cbuild/call_task.sh profile 2>&1 | tee make_raw.log
|
||||
|
||||
# compiles program with -pg and runs it with gprof
|
||||
# uses gprof2dot python script to generate function call tree
|
||||
gprof:
|
||||
@cbuild/call_task.sh gprof 2>&1 | tee make_raw.log
|
||||
|
||||
# compiles executable with sanitizers and executes it to find errors and warnings
|
||||
sanitize:
|
||||
@cbuild/call_task.sh sanitize 2>&1 | tee make_raw.log
|
||||
|
||||
######################################
|
||||
###### Other tasks #######
|
||||
######################################
|
||||
|
||||
Reference in New Issue
Block a user