Add Makefile

This commit is contained in:
Théophile Bastian 2018-04-23 16:12:19 +02:00
parent f9f64e9606
commit f6e9b8ebd2

22
src/Makefile Normal file
View file

@ -0,0 +1,22 @@
CXX=g++
CXXLOCS?=-L. -I.
CXXFLAGS=$(CXXLOCS) -Wall -Wextra -std=c++14 -O2 -g
CXXLIBS=-lelf -ldwarf -ldwarfpp -lsrk31c++ -lc++fileno
TARGET=dwarf-assembly
OBJS=DwarfReader.o SimpleDwarf.o
###############################################################################
all: $(TARGET)
$(TARGET): $(OBJS)
$(CXX) -o $@ $(CXXFLAGS) $^ $(CXXLIBS)
%.o: %.cpp
$(CXX) -o $@ $(CXXFLAGS) -c $<
.PHONY: clean
clean:
rm -f $(TARGET) *.o