Initial commit: add environment monitoring TCP backend

This commit is contained in:
yzfh
2026-10-19 15:52:36 +08:00
commit c892ba07f4
5 changed files with 2952 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
CC = g++
CXXFLAGS = -std=c++17 -O2 -Wall -pthread
SRCDIR = src
BINDIR = bin
TARGETS = $(BINDIR)/device_backend $(BINDIR)/console_client
SRC_BACKEND = $(SRCDIR)/server.cpp
SRC_CLIENT = console_client.cpp
all: $(TARGETS)
$(BINDIR):
mkdir -p $(BINDIR)
$(BINDIR)/device_backend: $(SRC_BACKEND) | $(BINDIR)
$(CC) $(CXXFLAGS) -o $(BINDIR)/device_backend $(SRC_BACKEND)
$(BINDIR)/console_client: $(SRC_CLIENT) | $(BINDIR)
$(CC) $(CXXFLAGS) -o $(BINDIR)/console_client $(SRC_CLIENT)
clean:
rm -f $(TARGETS) backend.log
.PHONY: all clean