Théophile Bastian
4595bb48fb
Includes adding a few failsafe guards, translating the instruction pointer before handing it to the eh_elf.so, a few cosmetic changes, ...
18 lines
263 B
Makefile
18 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)
|