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