unicorn/tests/regress/Makefile
2017-01-23 11:35:00 +11:00

22 lines
380 B
Makefile

CFLAGS += -Wall -Werror -I../../include
LDLIBS += -L../../ -lm -lunicorn
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S), Linux)
LDLIBS += -lrt -pthread
endif
EXECUTE_VARS = LD_LIBRARY_PATH=../../cmocka/src:../../ DYLD_LIBRARY_PATH=../../
TESTS_SOURCE = $(wildcard *.c)
TESTS = $(TESTS_SOURCE:%.c=%)
.PHONY: all clean test
test: $(TESTS)
all: $(TESTS)
clean:
rm -f $(TESTS)