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