diff options
Diffstat (limited to '')
-rw-r--r-- | tests/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile index b4ed98e..37f9d46 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -2,9 +2,14 @@ CC = cc CFLAGS = -g -fsanitize=address,undefined +TESTS = $(wildcard test_*.c) + +all: test test: FORCE - $(CC) test.c ../src/extlib.c ../src/extstring.c ../src/constraint_handler.c ../src/memset_s.c $(CFLAGS) -o test + $(CC) -c tests.c -o tests.o + $(CC) driver.c tests.o ../src/extlib.c ../src/extstring.c ../src/constraint_handler.c ../src/memset_s.c $(CFLAGS) -o test ./test + rm tests.o FORCE: ; # PHONY is a non standard extension |