dwarfinterpret/test/Makefile

26 lines
539 B
Makefile
Raw Normal View History

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 "$@"
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 "$@"
.PRECIOUS: %.o
2018-04-04 14:47:54 +02:00
clean:
rm -f $(OBJS) $(TARGET)