dwarf-assembly/stack_walker/Makefile
Théophile Bastian 4595bb48fb StackWalker: multiple fixes
Includes adding a few failsafe guards, translating the instruction
pointer before handing it to the eh_elf.so, a few cosmetic changes, ...
2018-04-27 17:31:53 +02:00

19 lines
263 B
Makefile

CXX=g++
CXXLIBS=-ldl
CXXFLAGS=-O2 -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)