feat(app): add concurrent message queue

This commit is contained in:
user
2026-07-20 23:00:56 +04:00
parent 31d1fbdb8a
commit a3cd178155
8 changed files with 298 additions and 24 deletions
+6 -24
View File
@@ -1,41 +1,23 @@
ROOT_DIR := $(abspath ..)
CC := gcc
CXXFLAGS := -std=c++17 \
-Wall \
-Wextra \
-Werror \
-I$(ROOT_DIR)/core/include \
-I$(ROOT_DIR)/logger/include
CXXFLAGS := \
-I$(ROOT_DIR)/core/include \
-I$(ROOT_DIR)/logger/include
LDFLAGS := -L$(ROOT_DIR)/build \
-llogger \
-lstdc++ \
-Wl,-rpath,$(ROOT_DIR)/build
-Wl,-rpath,'$$ORIGIN'
BUILD_DIR := $(ROOT_DIR)/build
LDLIBS += -llogger
TARGET := $(BUILD_DIR)/logger_app
SRC := src/main.cpp
.PHONY: all clean
all: $(TARGET)
$(TARGET): $(SRC)
@mkdir -p $(BUILD_DIR)
$(CC) \
$(CXXFLAGS) \
$< \
-o $@ \
$(LDFLAGS)
$(CC) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LDLIBS)
clean:
rm -f $(TARGET)