dwarf-assembly/stack_walker_libunwind/Makefile
Théophile Bastian df2d6179a8 Add a libunwind-powered stack_walker
Preserves stack_walker's interface (one can link against stack_walker or
stack_walker_unwind indifferently).
2018-05-18 11:33:39 +02:00

18 lines
315 B
Makefile

CXX=g++
CXXLIBS=-lunwind -lunwind-x86_64
CXXFLAGS=-O2 -fPIC -Wall -Wextra -rdynamic
TARGET=libstack_walker.so
OBJS=stack_walker.o
all: $(TARGET)
$(TARGET): $(OBJS)
$(CXX) $(CXXFLAGS) -shared $< $(CXXLIBS) -o $@
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
.PHONY: clean
clean:
rm -f $(OBJS) $(TARGET_BASE)*.so