2018-04-26 19:16:01 +02:00
|
|
|
CXX=g++
|
|
|
|
CXXLIBS=-ldl
|
2018-04-27 17:31:53 +02:00
|
|
|
CXXFLAGS=-O2 -fPIC -Wall -Wextra
|
2018-04-26 19:16:01 +02:00
|
|
|
|
|
|
|
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)
|