2016-11-19 12:17:48 +03:00
|
|
|
CFLAGS += -Wall -Werror -I../../include
|
2016-12-19 01:56:58 +03:00
|
|
|
LDLIBS += -L../../ -lpthread -lm -lunicorn
|
2015-12-16 04:59:30 +03:00
|
|
|
|
2016-12-26 09:16:56 +03:00
|
|
|
UNAME_S := $(shell uname -s)
|
|
|
|
ifeq ($(UNAME_S), Linux)
|
|
|
|
LDLIBS += -lrt
|
|
|
|
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)
|