216c348c35
* Fix watchpoint leak in ARM * Builds fuzz targets with sanitizer support * Builds fuzz targets with directory driver * Adds script to dowlonad public corpus * Adds CIfuzz To checks Pull Requests with fuzzing * Use static library for fuzz targets * Less verbose logs for fuzz driver directory
24 lines
382 B
Makefile
24 lines
382 B
Makefile
CFLAGS += -L ../../ -I ../../include
|
|
|
|
UNAME_S := $(shell uname -s)
|
|
LDFLAGS += -pthread
|
|
ifeq ($(UNAME_S), Linux)
|
|
LDFLAGS += -lrt
|
|
endif
|
|
|
|
LDFLAGS += ../../libunicorn.a
|
|
|
|
|
|
ALL_TESTS_SOURCES = $(wildcard fuzz*.c)
|
|
ALL_TESTS = $(ALL_TESTS_SOURCES:%.c=%)
|
|
|
|
.PHONY: all
|
|
all: ${ALL_TESTS}
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf ${ALL_TESTS}
|
|
|
|
fuzz%: fuzz%.c
|
|
$(CC) $(CFLAGS) $^ onedir.c $(LDFLAGS) -o $@
|