make vec test split into .h and .c files

This commit is contained in:
r4
2022-05-29 21:53:25 +02:00
parent 368dde5c89
commit 0d999f5b39
4 changed files with 16 additions and 6 deletions

View File

@@ -50,8 +50,10 @@ else \
fi
endef
TEST_HDR := generic/vec.h
TESTS := generic/map generic/smap generic/vec error fmt
_TEST_HDR := $(addprefix tests/,$(TEST_HDR))
_TESTS := $(addsuffix $(EXE_EXT),$(addprefix tests/,$(TESTS)))
.PHONY: test test_outputs test_leaks test_full test_debug
@@ -77,7 +79,7 @@ else
@echo "Options are: $(TESTS)"
endif
tests/%: tests/%.c ds.a $(_HDR)
tests/%: tests/%.c ds.a $(_HDR) $(_TEST_HDR)
$(CC) -o $@ $< ds.a -I./include $(CFLAGS) $(LDFLAGS)
################################