Better cleanup rule.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user