2018-04-26 19:17:34 +02:00
|
|
|
CXX=g++
|
2018-04-27 17:32:49 +02:00
|
|
|
CXXFLAGS=-Wall -Wextra -O0 -g -I../stack_walker -rdynamic
|
2018-04-26 19:17:34 +02:00
|
|
|
|
2018-05-09 12:40:52 +02:00
|
|
|
all: stack_walked.per_func.bin stack_walked.global.bin
|
|
|
|
|
|
|
|
stack_walked.%.bin: stack_walked.cpp
|
|
|
|
LD_RUN_PATH=eh_elfs.$* $(CXX) $(CXXFLAGS) -o $@ $^ \
|
|
|
|
-L../stack_walker -ldl -lstack_walker.$*
|
|
|
|
|
|
|
|
eh_elfs.per_func: stack_walked.per_func.bin
|
|
|
|
../generate_eh_elf.py --remote seneve --deps -o $@ --switch-per-func $<
|
|
|
|
.PHONY: eh_elfs.per_func
|
|
|
|
|
|
|
|
eh_elfs.global: stack_walked.global.bin
|
|
|
|
../generate_eh_elf.py --remote seneve --deps -o $@ --global-switch $<
|
|
|
|
.PHONY: eh_elfs.global
|
2018-04-26 19:17:34 +02:00
|
|
|
|
|
|
|
clean:
|
2018-05-09 12:40:52 +02:00
|
|
|
rm -f *.bin
|