summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authortalos-vulndev <vulndev@cisco.com>2016-04-08 18:11:31 -0700
committertalos-vulndev <vulndev@cisco.com>2016-04-08 18:11:31 -0700
commiteb5bf85c86ed788539758f54ff1a3c6b22af40c2 (patch)
tree6c0da64caa251b2cd22832cec96e20d160f067a2 /Makefile
parent10e289336bf204feeda7bc12942786ec39ff969e (diff)
downloadafl-dyninst-eb5bf85c86ed788539758f54ff1a3c6b22af40c2.tar.gz
initial checkin
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7646251
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,35 @@
+# path to  dyninst binaries
+DYNINST_ROOT = /usr/local
+
+# path to afl src 
+AFL_ROOT = ./afl 
+
+# path to libelf and libdwarf
+DEPS_ROOT = /usr/local
+
+CXX = g++
+CXXFLAGS = -g -Wall -O3
+LIBFLAGS = -fpic -shared
+
+CC = gcc
+CFLAGS = -Wall -pedantic -g -std=gnu99
+
+
+all: afl-dyninst libAflDyninst.so
+
+afl-dyninst: afl-dyninst.o
+	$(CXX) $(CXXFLAGS) -L$(DYNINST_ROOT)/lib \
+		-L$(DEPS_ROOT)/lib \
+		-o afl-dyninst afl-dyninst.o \
+		-lcommon \
+		-liberty \
+		-ldyninstAPI 
+
+libAflDyninst.so: libAflDyninst.cpp
+	$(CXX) $(CXXFLAGS) $(LIBFLAGS) -I$(AFL_ROOT) -I$(DEPS_ROOT)/include libAflDyninst.cpp -o libAflDyninst.so
+
+afl-dyninst.o: afl-dyninst.cpp
+	$(CXX) $(CXXFLAGS) -I$(DEPS_ROOT)/include -I$(DYNINST_ROOT)/include  -c afl-dyninst.cpp
+
+clean:
+	rm -f afl-dyninst *.so *.o