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