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 "$@"
|
|
|
|
|
|
|
|
%.o: %.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) $(CXXDIRS) -c "$<" -o "$@"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) $(TARGET)
|