about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2018-08-11 09:55:29 +0200
committervan Hauser <vh@thc.org>2018-08-11 09:55:29 +0200
commita636700dc22a631d158879e4ef26f27c5c1b5581 (patch)
tree205f29500c9c4bc07872dcb003f1bcc63fc7f75b /Makefile
parentf571cf145ca1f6dc6c503770c3b132e5d1ffc1d9 (diff)
downloadafl-dyninst-a636700dc22a631d158879e4ef26f27c5c1b5581.tar.gz
vanHauser added 100% performance :)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f48af58..8ed2c0b 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ DEPS_ROOT = /usr/local
 INSTALL_ROOT = /usr/local
 
 CXX = g++
-CXXFLAGS = -g -Wall -O3 -std=c++11
+CXXFLAGS = -Wall -O3 -std=c++11 -g
 LIBFLAGS = -fpic -shared
 
 CC = gcc
@@ -19,6 +19,7 @@ CFLAGS = -Wall -pedantic -g -std=gnu99
 
 
 all: afl-dyninst libAflDyninst.so
+# afl-dyninst2 
 
 afl-dyninst: afl-dyninst.o
 	$(CXX) $(CXXFLAGS) -L$(DYNINST_ROOT)/lib \
@@ -28,12 +29,23 @@ afl-dyninst: afl-dyninst.o
 		-liberty \
 		-ldyninstAPI 
 
+afl-dyninst2: afl-dyninst2.o
+	$(CXX) $(CXXFLAGS) -L$(DYNINST_ROOT)/lib \
+		-L$(DEPS_ROOT)/lib \
+		-o afl-dyninst2 afl-dyninst2.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
 
+afl-dyninst2.o: afl-dyninst2.cpp
+	$(CXX) $(CXXFLAGS) -I$(DEPS_ROOT)/include -I$(DYNINST_ROOT)/include  -c afl-dyninst2.cpp
+
 clean:
 	rm -f afl-dyninst *.so *.o