2018-04-04 14:47:54 +02:00
|
|
|
CXX=g++
|
2018-04-06 17:36:16 +02:00
|
|
|
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
|
|
|
|
|
2018-04-06 17:36:16 +02:00
|
|
|
CPP_FILES := $(shell ls *.cpp)
|
|
|
|
BINS := $(CPP_FILES:.cpp=.bin)
|
|
|
|
|
2018-04-04 14:47:54 +02:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
2018-04-06 17:36:16 +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 "$@"
|
|
|
|
|
2018-04-06 16:26:24 +02:00
|
|
|
.PRECIOUS: %.o
|
|
|
|
|
2018-04-04 14:47:54 +02:00
|
|
|
clean:
|
2018-04-06 16:38:24 +02:00
|
|
|
rm -f *.o *.bin
|