diff options
| author | van Hauser <vh@thc.org> | 2020-05-25 22:09:00 +0200 |
|---|---|---|
| committer | van Hauser <vh@thc.org> | 2020-05-25 22:09:00 +0200 |
| commit | a0da53117081cbca03674224cad26e5dd2fe5eaf (patch) | |
| tree | f1dbff14a90814e82e896e891aed2d9bb6c9fbaa /examples/aflpp_driver/Makefile | |
| parent | de78f867a48dcfa0c7b855c32f94f88c3ede7f1b (diff) | |
| download | afl++-a0da53117081cbca03674224cad26e5dd2fe5eaf.tar.gz | |
libfuzzer driver + llvm_mode compilation optimization
Diffstat (limited to 'examples/aflpp_driver/Makefile')
| -rw-r--r-- | examples/aflpp_driver/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/aflpp_driver/Makefile b/examples/aflpp_driver/Makefile new file mode 100644 index 00000000..6f7c7bc9 --- /dev/null +++ b/examples/aflpp_driver/Makefile @@ -0,0 +1,24 @@ +ifeq "" "$(LLVM_CONFIG)" + LLVM_CONFIG=llvm-config +endif + +LLVM_BINDIR = $(shell $(LLVM_CONFIG) --bindir 2>/dev/null) +ifneq "" "$(LLVM_BINDIR)" + LLVM_BINDIR := $(LLVM_BINDIR)/ +endif + + + +all: libAFLDriver.a + +aflpp_driver.o: aflpp_driver.cpp + $(LLVM_BINDIR)clang++ -O3 -march=native -stdlib=libc++ -funroll-loops -std=c++11 -c aflpp_driver.cpp + +afl-llvm-rt.o: ../../llvm_mode/afl-llvm-rt.o.c + $(LLVM_BINDIR)clang++ -O3 -march=native -funroll-loops -stdlib=libc++ -std=c++11 -c aflpp_driver.cpp + +libAFLDriver.a: aflpp_driver.o afl-llvm-rt.o + ar ru libAFLDriver.a aflpp_driver.o + +clean: + rm -f *.o libAFLDriver.a *~ core |
