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 14:22:09 +00:00
LDLIBS += -L../../ -lm -lunicorn
2016-12-26 06:16:56 +00:00
UNAME_S := $(shell uname -s)
LDLIBS += -pthread
2016-12-26 06:16:56 +00:00
ifeq ($(UNAME_S), Linux)
LDLIBS += -lrt
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)