Théophile Bastian
c4895ed0d1
It now actually returns the context at the call site of the function, instead of somewhere inside DwarfInterpret
25 lines
539 B
Makefile
25 lines
539 B
Makefile
CXX=g++
|
|
CXXFLAGS=-Wall -Wextra -O0 -g --std=c++14
|
|
CXXLIBS=-ldwarfpp -ldwarf -lelf -lc++fileno -ldwarfinterpret
|
|
CXXDIRS=-I../include -L../lib
|
|
|
|
|
|
OBJS = $(SRC:.cpp=.o)
|
|
|
|
###############################################################################
|
|
|
|
all: $(TARGET)
|
|
|
|
%.bin: %.o
|
|
$(CXX) $(CXXFLAGS) $(CXXDIRS) $(CXXLIBS) $< -o "$@"
|
|
|
|
dump_my_stack.bin: dump_my_stack.o
|
|
$(CXX) $(CXXFLAGS) $(CXXDIRS) $(CXXLIBS) -ldl -rdynamic $< -o "$@"
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) $(CXXDIRS) -c "$<" -o "$@"
|
|
|
|
.PRECIOUS: %.o
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(TARGET)
|