unicorn/tests/regress/Makefile

22 lines
380 B
Makefile
Raw Normal View History

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