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 15:22:09 +01:00
LDLIBS += -L../../ -lm -lunicorn
2016-12-26 07:16:56 +01:00
UNAME_S := $(shell uname -s)
LDLIBS += -pthread
2016-12-26 07:16:56 +01:00
ifeq ($(UNAME_S), Linux)
LDLIBS += -lrt
2016-12-26 07:16:56 +01:00
endif
EXECUTE_VARS = LD_LIBRARY_PATH=../../cmocka/src:../../ DYLD_LIBRARY_PATH=../../
TESTS_SOURCE = $(wildcard *.c)
TESTS = $(TESTS_SOURCE:%.c=%)
2015-08-24 13:00:54 +02:00
.PHONY: all clean test
2015-08-24 13:00:54 +02:00
test: $(TESTS)
2015-08-24 13:00:54 +02:00
all: $(TESTS)
clean:
rm -f $(TESTS)