aboutsummaryrefslogtreecommitdiff
path: root/examples/aflpp_driver/GNUmakefile
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-06-12 11:57:54 +0200
committervan Hauser <vh@thc.org>2020-06-12 11:57:54 +0200
commitdb2e04361da8f40a7ee99fef1c2a2ed8f08b0501 (patch)
treeec9dd5775159f1924e386ccdd18cc69b765e54d4 /examples/aflpp_driver/GNUmakefile
parent7d19b108c49510aaa437a855f2732107b770066d (diff)
downloadafl++-db2e04361da8f40a7ee99fef1c2a2ed8f08b0501.tar.gz
shm debug and fixes
Diffstat (limited to 'examples/aflpp_driver/GNUmakefile')
-rw-r--r--examples/aflpp_driver/GNUmakefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/aflpp_driver/GNUmakefile b/examples/aflpp_driver/GNUmakefile
index 90844a4a..24f959e6 100644
--- a/examples/aflpp_driver/GNUmakefile
+++ b/examples/aflpp_driver/GNUmakefile
@@ -7,7 +7,7 @@ ifneq "" "$(LLVM_BINDIR)"
LLVM_BINDIR := $(LLVM_BINDIR)/
endif
-FLAGS=-O3 -funroll-loops
+FLAGS=-O2 -funroll-loops
all: libAFLDriver.a libAFLQemuDriver.a aflpp_qemu_driver_hook.so
@@ -20,7 +20,6 @@ libAFLDriver.a: aflpp_driver.o
debug:
$(LLVM_BINDIR)clang++ -I../../include -D_DEBUG=\"1\" $(FLAGS) -stdlib=libc++ -funroll-loops -std=c++11 -c aflpp_driver.cpp
ar ru libAFLDriver.a aflpp_driver.o
-
aflpp_qemu_driver.o: aflpp_qemu_driver.c
$(LLVM_BINDIR)clang $(FLAGS) -O0 -funroll-loops -c aflpp_qemu_driver.c
@@ -35,7 +34,7 @@ aflpp_qemu_driver_hook.o: aflpp_qemu_driver_hook.c
$(LLVM_BINDIR)clang -fPIC $(FLAGS) -funroll-loops -c aflpp_qemu_driver_hook.c
test: libAFLDriver.a aflpp_driver_test.cpp
- afl-clang-fast++ -Wl,--allow-multiple-definition -stdlib=libc++ -funroll-loops -std=c++11 -o aflpp_driver_test aflpp_driver_test.cpp libAFLDriver.a
+ afl-clang-fast++ -I../../include -Wl,--allow-multiple-definition -stdlib=libc++ -funroll-loops -std=c++11 -o aflpp_driver_test aflpp_driver_test.cpp libAFLDriver.a
clean:
rm -f *.o libAFLDriver*.a libAFLQemuDriver.a aflpp_qemu_driver_hook.so *~ core aflpp_driver_test