feat(tree): started standard binary tree

This commit is contained in:
Jef Roosens 2023-01-19 22:23:19 +01:00
parent 7fb172c291
commit 2ecd2eae4d
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
6 changed files with 183 additions and 8 deletions

View file

@ -25,7 +25,7 @@ INC_FLAGS := $(addprefix -I,$(INC_DIRS))
# object file is also recompiled if only a header is changed.
# -MP: generate a dummy target for every header file (according to the docs it
# prevents some errors when removing header files)
CFLAGS ?= -MMD -MP -Wall -Werror -Wextra
CFLAGS ?= -MMD -MP -Wall -Wextra
CFLAGS += $(INC_FLAGS)
.PHONY: all
@ -48,6 +48,10 @@ $(BUILD_DIR)/$(SRC_DIR)/%.c.o: $(SRC_DIR)/%.c
test: build-test
@ $(foreach bin,$(BINS_TEST),./$(bin);)
test-mem: build-test
@ $(foreach bin,$(BINS_TEST),valgrind --tool=memcheck --error-exitcode=1 \
--track-origins=yes --leak-check=full ./$(bin);)
.PHONY: build-test
build-test: $(BINS_TEST)