summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2018-03-01 13:20:26 +0100
committervan Hauser <vh@thc.org>2018-03-01 13:20:26 +0100
commit7867e610b5cffd2c0749703eca1333bdd7840824 (patch)
treebff82df29777761e5eb5a19dfeb4e10357fb91e9 /Makefile
parent004d0b084fa51dbf10da19d83859c0500f57dfbd (diff)
downloadafl-dyninst-7867e610b5cffd2c0749703eca1333bdd7840824.tar.gz
added -S switch, make install, updated README
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9685c96..25ef545 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,9 @@ AFL_ROOT = ./afl
 # path to libelf and libdwarf
 DEPS_ROOT = /usr/local
 
+# where to install
+INSTALL_ROOT = /usr/local
+
 CXX = g++
 CXXFLAGS = -g -Wall -O3 -std=c++11
 LIBFLAGS = -fpic -shared
@@ -33,3 +36,9 @@ afl-dyninst.o: afl-dyninst.cpp
 
 clean:
 	rm -f afl-dyninst *.so *.o 
+
+install: all
+	install -d $(INSTALL_ROOT)/bin
+	install -d $(INSTALL_ROOT)/lib
+	install afl-dyninst $(INSTALL_ROOT)/bin
+	install libAflDyninst.so $(INSTALL_ROOT)/lib