ex32 plus runtests improvements

This commit is contained in:
Dan Buch
2016-04-17 12:16:00 -04:00
parent 23bb2b1eed
commit 508ac1a5d1
9 changed files with 324 additions and 18 deletions

View File

@@ -6,7 +6,7 @@ PREFIX ?= /usr/local
SOURCES = $(wildcard src/**/*.c src/*.c)
OBJECTS = $(patsubst %.c,%.o,$(SOURCES))
TEST_SRC = $(wildcard tests/*_tests.c)
TEST_SRC = $(wildcard tests/**/*_tests.c tests/*_tests.c)
TESTS = $(patsubst %.c,%,$(TEST_SRC))
LIBNAME = lcthw
@@ -35,7 +35,7 @@ build:
.PHONY: tests
tests: LDLIBS += -static -l$(LIBNAME)
tests: ./tests/runtests $(TESTS)
./tests/runtests
./tests/runtests ./tests/lcthw
valgrind:
VALGRIND="valgrind --log-file=/tmp/valgrind-%p.log" $(MAKE)