]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Improve Makefile
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 10 May 2020 22:13:41 +0000 (00:13 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 10 May 2020 22:13:41 +0000 (00:13 +0200)
Makefile

index a9a9ad8c201d80511ec190bf3cd512f6e74eba7d..8393a710b734c7c0ee6c53535ee9da8881d946cb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -81,6 +81,11 @@ ast/libgwion_ast.a:
 ast: ast/libgwion_ast.a
        @(info build ast)
 
+afl:
+       touch src/parse/{scan*.c,check.c} src/emit/emit.c src/main.c
+       PRG=gwion-fuzz CC=afl-clang-fast make
+       touch src/parse/{scan*.c,check.c} src/emit/emit.c src/main.c
+
 clean:
        $(info cleaning ...)
        @rm -f src/*.o src/*/*.o gwion libgwion.a src/*.gcno src/*.gcda