refactor(build): reorganize makefiles and split test targets

This commit is contained in:
user
2026-07-20 22:59:36 +04:00
parent 86153e967b
commit 31d1fbdb8a
9 changed files with 96 additions and 216 deletions
+15 -6
View File
@@ -1,21 +1,30 @@
export ROOT_DIR := $(CURDIR)
export BUILD_DIR := $(ROOT_DIR)/build
export CC := gcc
export CXXFLAGS := \
-std=c++17 \
-Wall \
-Wextra \
-Werror
export LDLIBS := -lstdc++
.PHONY: all logger app tests clean
all: logger app tests
logger:
$(MAKE) -C logger
app: logger
$(MAKE) -C app
tests: logger
tests:
$(MAKE) -C tests
clean:
$(MAKE) -C logger clean
$(MAKE) -C app clean