ex32 plus runtests improvements
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user