about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-06-25 10:58:09 +0200
committervan Hauser <vh@thc.org>2019-06-25 10:58:09 +0200
commitc2f14ea01b9060d0b95719ff01d2ac6a2b38dcb3 (patch)
tree4990fa2d32dd9502ba7d3e2e0f3a60a8a6bed4ac
parent25cdba23bd17a7f7c371c865f84e0aa94faa29d8 (diff)
downloadafl-dyninst-c2f14ea01b9060d0b95719ff01d2ac6a2b38dcb3.tar.gz
better compile for some people
-rw-r--r--Makefile17
1 files changed, 3 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 9b42d96..991299f 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ DYNINST_ROOT = /usr/local
 DYNINST_BUILD = /path/to/dyninst/build
 
 # better dont touch these
-DYNINST9=-lcommon -liberty
+DYNINST9=-lcommon -liberty -lboost_system
 DYNINST10=-I$(DYNINST_BUILD)/tbb/src/TBB/src/include -lboost_system -L$(DYNINST_BUILD)/tbb/lib -ltbb -Wl,-rpath $(DYNINST_BUILD)/tbb/lib
 
 # EDIT: set this to either DYNINST9 or DYNINST10 depending on what you installed
@@ -21,7 +21,7 @@ DEPS_ROOT = /usr/local
 INSTALL_ROOT = /usr/local
 
 CXX = g++
-CXXFLAGS = -Wall -O3 -std=c++11 -g
+CXXFLAGS = -Wall -O3 -std=c++11 -g -O3 -std=c++11 
 LIBFLAGS = -fpic -shared
 
 CC = gcc
@@ -36,23 +36,12 @@ afl-dyninst:	afl-dyninst.o
 		$(DYNINST_OPT) \
 		-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
+	$(CXX) -O3 -std=c++11 $(LIBFLAGS) -I$(AFL_ROOT) -I$(DEPS_ROOT)/include libAflDyninst.cpp -o libAflDyninst.so
 
 afl-dyninst.o: afl-dyninst.cpp
 	$(CXX) $(CXXFLAGS) $(DYNINST_OPT) -I$(DEPS_ROOT)/include -I$(DYNINST_ROOT)/include  -c afl-dyninst.cpp
 
-afl-dyninst2.o: afl-dyninst2.cpp
-	$(CXX) $(CXXFLAGS) $(DYNINST_OPT) -I$(DEPS_ROOT)/include -I$(DYNINST_ROOT)/include  -c afl-dyninst2.cpp
-
 clean:
 	rm -f afl-dyninst *.so *.o