unicorn/tests/regress/Makefile

24 lines
427 B
Makefile
Raw Normal View History

CFLAGS += -Wall -Werror -I../../include
CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
2017-01-21 17:22:09 +03:00
LDLIBS += -L../../ -lm -lunicorn
2016-12-26 09:16:56 +03:00
UNAME_S := $(shell uname -s)
LDLIBS += -pthread
2016-12-26 09:16:56 +03:00
ifeq ($(UNAME_S), Linux)
LDLIBS += -lrt
2016-12-26 09:16:56 +03:00
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)