diff options
author | van Hauser <vh@thc.org> | 2020-06-06 11:45:08 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-06-06 11:45:08 +0200 |
commit | 372206e159f4f3d150543411872319fb8fae0b66 (patch) | |
tree | ca044eec884e61328a78371798c7172c74a62ff9 /examples/aflpp_driver/GNUmakefile | |
parent | c036108b59ffc98ff8515c94450a036c506b592c (diff) | |
download | afl++-372206e159f4f3d150543411872319fb8fae0b66.tar.gz |
aflpp_debug
Diffstat (limited to 'examples/aflpp_driver/GNUmakefile')
-rw-r--r-- | examples/aflpp_driver/GNUmakefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/examples/aflpp_driver/GNUmakefile b/examples/aflpp_driver/GNUmakefile index 988576d5..7ddfc485 100644 --- a/examples/aflpp_driver/GNUmakefile +++ b/examples/aflpp_driver/GNUmakefile @@ -17,6 +17,11 @@ aflpp_driver.o: aflpp_driver.cpp libAFLDriver.a: aflpp_driver.o ar ru libAFLDriver.a aflpp_driver.o +debug: + $(LLVM_BINDIR)clang++ -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 @@ -29,5 +34,8 @@ aflpp_qemu_driver_hook.so: aflpp_qemu_driver_hook.o 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 + clean: - rm -f *.o libAFLDriver*.a libAFLQemuDriver.a aflpp_qemu_driver_hook.so *~ core + rm -f *.o libAFLDriver*.a libAFLQemuDriver.a aflpp_qemu_driver_hook.so *~ core aflpp_driver_test |