summaryrefslogtreecommitdiff
path: root/makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'makefile.mk')
-rw-r--r--makefile.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/makefile.mk b/makefile.mk
index 2d66744..8135205 100644
--- a/makefile.mk
+++ b/makefile.mk
@@ -13,7 +13,7 @@ H_SRC = $(shell find $(SRC) $(INCLUDE) -type f -name "*.h")
C_SRC = $(shell find $(SRC) -type f -name "*.c")
C_OBJ = $(patsubst %.c,$(BIN)/%.o,$(C_SRC))
-.PHONY: clean build run
+.PHONY: clean build run test
build: $(BIN)/$(OUT)
@@ -27,7 +27,8 @@ run: build
test:
make -C ../test $(OUT)
mkdir -p ../fuzz
- afl-fuzz -i ../test/$(OUT) -o ../fuzz -- $(BIN)/$(OUT) @@
+ rm -fr ../fuzz/$(OUT)
+ afl-fuzz -i ../test/$(OUT) -o ../fuzz -M $(OUT) -- $(BIN)/$(OUT) @@
$(C_OBJ): $(BIN)/%.o : %.c
@mkdir -p $(@D)