From 9e591904ac845698abb33745e25070eb1fd74688 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 27 Feb 2016 22:55:48 -0800 Subject: [PATCH] Better cleanup rule. --- adsbus/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/adsbus/Makefile b/adsbus/Makefile index ac58635..2c299ac 100644 --- a/adsbus/Makefile +++ b/adsbus/Makefile @@ -18,7 +18,7 @@ OBJ_PROTO = adsb.pb-c.o all: adsbus clean: - rm -rf *.o adsbus testout + rm -rf *.o adsbus testout findings %.o: %.c *.h $(COMP) -c $(CFLAGS) $< -o $@ @@ -30,7 +30,8 @@ adsbus: adsbus.o $(OBJ_NETWORK) $(OBJ_PROTOCOL) $(OBJ_UTIL) $(OBJ_PROTO) $(COMP) $(LDFLAGS) -o adsbus adsbus.o $(OBJ_NETWORK) $(OBJ_PROTOCOL) $(OBJ_UTIL) $(OBJ_PROTO) $(LIBS) fuzz: - test -d findings || mkdir findings + rm -rf findings + mkdir findings $(MAKE) clean COMP=afl-clang $(MAKE) adsbus afl-fuzz -i testcase/ -o findings/ ./adsbus --stdin --stdout=airspy_adsb --stdout=beast --stdout=json --stdout=proto --stdout=raw --stdout=stats