dwarf-assembly/stack_walker/Makefile
Théophile Bastian f587eadbcc Add a tentative stack walker using eh_elfs
This is only a beginning: this does so far load the appropriate
eh_elf.so files and read a context. Unwinding is still absent.
2018-04-26 19:16:01 +02:00

18 lines
266 B
Makefile

CXX=g++
CXXLIBS=-ldl
CXXFLAGS=-O0 -g -fPIC -Wall -Wextra
TARGET=libstack_walker.so
OBJS=stack_walker.o
all: $(TARGET)
$(TARGET): $(OBJS)
$(CXX) $(CXXFLAGS) -shared $< $(CXXLIBS) -o $@
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(TARGET)