- fsys/src/fsys.cpp: 移除 parse_ini/IniMap/confs RPC 调用,改为 boost::program_options 14 项 CLI 参数,配置优先级 CLI > env > 默认值 - fsys/Makefile: 添加 -lboost_program_options - core/services.yaml: fsys 全部参数迁入 CLI args - confs/configs/static.ini: 已删除 - README.md: 更新 fsys 配置说明,移除 static.ini 表行,更新安全约定
27 lines
723 B
Makefile
27 lines
723 B
Makefile
CPP = g++
|
|
CPPFLAGS = -std=c++20 -O3 -Wall -Werror -pipe
|
|
INCS = -I ../libhttp/inc -I ../libmsg/inc -I /opt/homebrew/include
|
|
LIBS = -L ../libhttp/build -L ../libmsg/build -L /opt/homebrew/lib \
|
|
-lus_http -lus_httpclient -lus_msg -lboost_json -lboost_program_options \
|
|
-lssl -lcrypto -lcurl -lpthread
|
|
RPATH = -Wl,-rpath,'$$ORIGIN/../../libhttp/build' \
|
|
-Wl,-rpath,'$$ORIGIN/../../libmsg/build' \
|
|
-Wl,-rpath,/opt/homebrew/lib
|
|
|
|
BUILD = build
|
|
TARGET = $(BUILD)/fsys
|
|
SRC = src/fsys.cpp
|
|
|
|
all: $(TARGET)
|
|
|
|
$(BUILD):
|
|
mkdir -p $(BUILD)
|
|
|
|
$(TARGET): $(SRC) | $(BUILD)
|
|
$(CPP) $(CPPFLAGS) $(INCS) -o $@ $< $(LIBS) $(RPATH)
|
|
|
|
clean:
|
|
rm -f $(TARGET)
|
|
|
|
.PHONY: all clean
|