Théophile Bastian
f587eadbcc
This is only a beginning: this does so far load the appropriate eh_elf.so files and read a context. Unwinding is still absent.
18 lines
266 B
Makefile
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)
|