dwarfinterpret/Makefile
Théophile Bastian 97032ee31b Actually able to unwind the stack
This is filled with debug prints, and is quite brutal: it saves the
whole stack. It has to be optimized a lot.

Also, needs a smooth stop when trying to unwind main.
2018-04-05 19:17:02 +02:00

32 lines
632 B
Makefile

LIB_DIR=lib
TARGET=$(LIB_DIR)/libdwarfinterpret.so
SRC=src/DwarfInterpret.cpp src/MemoryMap.cpp src/StackDump.cpp
INCLUDE_DIR=include
CXX=g++
CXXFLAGS=-Wall -Wextra -O1 -g --std=c++14
CXXLIBS=-ldwarfpp -ldwarf -lelf -lc++fileno
CXXINCLUDE=-I$(INCLUDE_DIR)
OBJS = $(SRC:.cpp=.o)
###############################################################################
all: $(TARGET)
$(TARGET): $(OBJS)
mkdir -p "$$(dirname "$@")"
$(CXX) $(CXXFLAGS) $(CXXLIBS) $(CXXINCLUDE) $^ -shared -o "$@"
%.o: %.cpp
$(CXX) $(CXXFLAGS) $(CXXINCLUDE) -fPIC -c "$<" -o "$@"
clean:
rm -f $(OBJS) $(TARGET)
docs:
doxygen Doxyfile
.PHONY: docs