From b78f3abdab816ed2e12c46226456408e603084ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Thu, 12 Apr 2018 13:31:48 +0200 Subject: [PATCH] Add Makefile --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b09a07b --- /dev/null +++ b/Makefile @@ -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