2018-08-29 05:36:23 +03:00
|
|
|
CFLAGS += -L ../../ -I ../../include
|
|
|
|
|
|
|
|
UNAME_S := $(shell uname -s)
|
2019-12-28 19:18:40 +03:00
|
|
|
LDFLAGS += -pthread
|
2018-08-29 05:36:23 +03:00
|
|
|
ifeq ($(UNAME_S), Linux)
|
2019-12-28 19:18:40 +03:00
|
|
|
LDFLAGS += -lrt
|
2018-08-29 05:36:23 +03:00
|
|
|
endif
|
|
|
|
|
2020-05-21 11:15:12 +03:00
|
|
|
LDFLAGS += ../../libunicorn.a
|
2018-08-29 05:36:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
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
|
2020-05-21 11:15:12 +03:00
|
|
|
$(CC) $(CFLAGS) $^ onedir.c $(LDFLAGS) -o $@
|