2018-04-04 14:47:54 +02:00
|
|
|
CXX=g++
|
2018-04-05 19:18:06 +02:00
|
|
|
CXXFLAGS=-Wall -Wextra -O0 -g --std=c++14
|
2018-04-04 14:47:54 +02:00
|
|
|
CXXLIBS=-ldwarfpp -ldwarf -lelf -lc++fileno -ldwarfinterpret
|
|
|
|
CXXDIRS=-I../include -L../lib
|
|
|
|
|
|
|
|
|
|
|
|
OBJS = $(SRC:.cpp=.o)
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
%.bin: %.o
|
|
|
|
$(CXX) $(CXXFLAGS) $(CXXDIRS) $(CXXLIBS) $< -o "$@"
|
|
|
|
|
2018-04-06 16:26:24 +02:00
|
|
|
dump_my_stack.bin: dump_my_stack.o
|
|
|
|
$(CXX) $(CXXFLAGS) $(CXXDIRS) $(CXXLIBS) -ldl -rdynamic $< -o "$@"
|
|
|
|
|
2018-04-04 14:47:54 +02:00
|
|
|
%.o: %.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) $(CXXDIRS) -c "$<" -o "$@"
|
|
|
|
|
2018-04-06 16:26:24 +02:00
|
|
|
.PRECIOUS: %.o
|
|
|
|
|
2018-04-04 14:47:54 +02:00
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) $(TARGET)
|