diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-02-23 09:51:36 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-02-23 09:51:36 -0800 |
commit | 337a86ece811263b8ff2af4fce16b615c95e4bd0 (patch) | |
tree | b21f648deea3fc347654680f39a0f00788e72335 /Makefile | |
parent | 1533c8fbad3acc48e6a2f0a1e305aeb5932b3bbd (diff) | |
parent | 573a3dc076cfecb2337cca118bdbd7c4452b1ec6 (diff) |
Merge pull request #10 from nwellnhof/afl
Add Makefile target to fuzz with AFL
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -59,6 +59,17 @@ prof: cmake .. -DCMAKE_BUILD_TYPE=Profile; \ make +afl: + @[ -n "$(AFL_PATH)" ] || { echo '$$AFL_PATH not set'; false; } + mkdir -p $(BUILDDIR) + cd $(BUILDDIR) && cmake .. -DCMAKE_C_COMPILER=$(AFL_PATH)/afl-gcc + make + $(AFL_PATH)/afl-fuzz \ + -i test/afl_test_cases \ + -o test/afl_results \ + -m none \ + $(CMARK) + mingw: mkdir -p $(MINGW_BUILDDIR); \ cd $(MINGW_BUILDDIR); \ |