2016-11-19 09:17:48 +00:00
|
|
|
CFLAGS += -Wall -Werror -I../../include
|
2017-06-25 02:11:35 +00:00
|
|
|
CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
|
2017-01-21 14:22:09 +00:00
|
|
|
LDLIBS += -L../../ -lm -lunicorn
|
2015-12-16 01:59:30 +00:00
|
|
|
|
2016-12-26 06:16:56 +00:00
|
|
|
UNAME_S := $(shell uname -s)
|
2020-01-14 14:45:48 +00:00
|
|
|
LDLIBS += -pthread
|
2016-12-26 06:16:56 +00:00
|
|
|
ifeq ($(UNAME_S), Linux)
|
2020-01-14 14:45:48 +00:00
|
|
|
LDLIBS += -lrt
|
2016-12-26 06:16:56 +00:00
|
|
|
endif
|
|
|
|
|
2016-11-19 09:17:48 +00:00
|
|
|
EXECUTE_VARS = LD_LIBRARY_PATH=../../cmocka/src:../../ DYLD_LIBRARY_PATH=../../
|
2015-12-16 01:59:30 +00:00
|
|
|
|
2016-11-19 09:17:48 +00:00
|
|
|
TESTS_SOURCE = $(wildcard *.c)
|
|
|
|
TESTS = $(TESTS_SOURCE:%.c=%)
|
2015-08-24 11:00:54 +00:00
|
|
|
|
2016-11-19 09:17:48 +00:00
|
|
|
.PHONY: all clean test
|
2015-08-24 11:00:54 +00:00
|
|
|
|
2016-11-19 09:17:48 +00:00
|
|
|
test: $(TESTS)
|
2016-01-10 15:56:14 +00:00
|
|
|
|
2015-08-24 11:00:54 +00:00
|
|
|
all: $(TESTS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(TESTS)
|