unicorn/tests/regress/Makefile

22 lines
381 B
Makefile
Raw Normal View History

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