1
0
Fork 0
mirror of https://github.com/yuzu-emu/unicorn.git synced 2025-01-12 06:45:39 +00:00
unicorn/tests/fuzz/Makefile
David CARLIER dd47649a3b Tests, fixes on third platform. ()
MT linkage fix mainly.

Backports commit 72f759838774d1fa23de901c9b236d726e4ad5e4 from unicorn
2020-01-14 09:45:55 -05:00

23 lines
373 B
Makefile

CFLAGS += -L ../../ -I ../../include
UNAME_S := $(shell uname -s)
LDFLAGS += -pthread
ifeq ($(UNAME_S), Linux)
LDFLAGS += -lrt
endif
LDFLAGS += -lunicorn
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) $^ onefile.c $(LDFLAGS) -o $@