unicorn/tests/regress/Makefile
2016-12-26 14:16:56 +08:00

21 lines
381 B
Makefile

CFLAGS += -Wall -Werror -I../../include
LDLIBS += -L../../ -lpthread -lm -lunicorn
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=%)
.PHONY: all clean test
test: $(TESTS)
all: $(TESTS)
clean:
rm -f $(TESTS)