dwarfinterpret/test/Makefile

24 lines
490 B
Makefile
Raw Permalink Normal View History

2018-04-04 14:47:54 +02:00
CXX=g++
CXXFLAGS=-Wall -Wextra -O0 -g --std=c++14 -rdynamic
CXXLIBS=-ldwarfpp -ldwarf -lelf -lc++fileno -ldwarfinterpret -ldl -lpthread
2018-04-04 14:47:54 +02:00
CXXDIRS=-I../include -L../lib
CPP_FILES := $(shell ls *.cpp)
BINS := $(CPP_FILES:.cpp=.bin)
2018-04-04 14:47:54 +02:00
###############################################################################
all: $(BINS)
2018-04-04 14:47:54 +02:00
%.bin: %.o
$(CXX) $(CXXFLAGS) $(CXXDIRS) $(CXXLIBS) $< -o "$@"
%.o: %.cpp
$(CXX) $(CXXFLAGS) $(CXXDIRS) -c "$<" -o "$@"
.PRECIOUS: %.o
2018-04-04 14:47:54 +02:00
clean:
2018-04-06 16:38:24 +02:00
rm -f *.o *.bin