Add Makefile

This commit is contained in:
Théophile Bastian 2018-04-12 13:31:48 +02:00
parent 48e08d0eda
commit b78f3abdab

15
Makefile Normal file
View file

@ -0,0 +1,15 @@
CXX=g++
CXXFLAGS=-Wall -Wextra -O2 -g -rdynamic
CXXLIBS=-ldwarfinterpret -ldl -ldwarf -ldwarfpp -lelf
frame-machine.bin: frame-machine.o
$(CXX) -o $@ $(CXXFLAGS) $< $(CXXLIBS)
.PRECIOUS: %.o
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
.PHONY: clean
clean:
rm -rf *.o *.bin