23 lines
490 B
Makefile
23 lines
490 B
Makefile
CXX=g++
|
|
CXXFLAGS=-Wall -Wextra -O0 -g --std=c++14 -rdynamic
|
|
CXXLIBS=-ldwarfpp -ldwarf -lelf -lc++fileno -ldwarfinterpret -ldl -lpthread
|
|
CXXDIRS=-I../include -L../lib
|
|
|
|
CPP_FILES := $(shell ls *.cpp)
|
|
BINS := $(CPP_FILES:.cpp=.bin)
|
|
|
|
|
|
###############################################################################
|
|
|
|
all: $(BINS)
|
|
|
|
%.bin: %.o
|
|
$(CXX) $(CXXFLAGS) $(CXXDIRS) $(CXXLIBS) $< -o "$@"
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) $(CXXDIRS) -c "$<" -o "$@"
|
|
|
|
.PRECIOUS: %.o
|
|
|
|
clean:
|
|
rm -f *.o *.bin
|