Add Makefile
This commit is contained in:
parent
f9f64e9606
commit
f6e9b8ebd2
1 changed files with 22 additions and 0 deletions
22
src/Makefile
Normal file
22
src/Makefile
Normal 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
|
Loading…
Reference in a new issue