mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 16:35:30 +00:00
dd47649a3b
MT linkage fix mainly. Backports commit 72f759838774d1fa23de901c9b236d726e4ad5e4 from unicorn
24 lines
427 B
Makefile
24 lines
427 B
Makefile
CFLAGS += -Wall -Werror -I../../include
|
|
CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
|
|
LDLIBS += -L../../ -lm -lunicorn
|
|
|
|
UNAME_S := $(shell uname -s)
|
|
LDLIBS += -pthread
|
|
ifeq ($(UNAME_S), Linux)
|
|
LDLIBS += -lrt
|
|
endif
|
|
|
|
EXECUTE_VARS = LD_LIBRARY_PATH=../../cmocka/src:../../ DYLD_LIBRARY_PATH=../../
|
|
|
|
TESTS_SOURCE = $(wildcard *.c)
|
|
TESTS = $(TESTS_SOURCE:%.c=%)
|
|
|
|
.PHONY: all clean test
|
|
|
|
test: $(TESTS)
|
|
|
|
all: $(TESTS)
|
|
|
|
clean:
|
|
rm -f $(TESTS)
|