21 lines
419 B
Makefile
21 lines
419 B
Makefile
|
CXX=g++
|
||
|
CXXFLAGS=-Wall -Wextra -O1 -g --std=c++14
|
||
|
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)
|