dwarfinterpret/test/Makefile

23 lines
508 B
Makefile

CXX=g++
CXXFLAGS=-Wall -Wextra -O0 -g --std=c++14
CXXLIBS=-ldwarfpp -ldwarf -lelf -lc++fileno -ldwarfinterpret
CXXDIRS=-I../include -L../lib
###############################################################################
all: $(TARGET)
%.bin: %.o
$(CXX) $(CXXFLAGS) $(CXXDIRS) $(CXXLIBS) $< -o "$@"
dump_my_stack.bin: dump_my_stack.o
$(CXX) $(CXXFLAGS) $(CXXDIRS) $(CXXLIBS) -ldl -rdynamic $< -o "$@"
%.o: %.cpp
$(CXX) $(CXXFLAGS) $(CXXDIRS) -c "$<" -o "$@"
.PRECIOUS: %.o
clean:
rm -f *.o *.bin