dwarfinterpret/test/Makefile
Théophile Bastian c4895ed0d1 Make context acquisition behave correctly wrt. calling site
It now actually returns the context at the call site of the function,
instead of somewhere inside DwarfInterpret
2018-04-06 16:26:24 +02:00

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)