mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 17:35:33 +00:00
dd47649a3b
MT linkage fix mainly. Backports commit 72f759838774d1fa23de901c9b236d726e4ad5e4 from unicorn
23 lines
373 B
Makefile
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 $@
|