working commit

This commit is contained in:
2026-04-24 16:50:15 +02:00
parent 37d9ee63cc
commit ace92da151
26 changed files with 3879 additions and 1893 deletions
+26 -12
View File
@@ -1,7 +1,7 @@
AUTOMAKE_OPTIONS = foreign no-dependencies no-installinfo subdir-objects
CXXFLAGS = -std=c++23 -Wall -I. -pthread -D_GNU_SOURCE=1
CXXFLAGS = -g -std=c++23 -Wall -I. -pthread -D_GNU_SOURCE=1
LDFLAGS = -pthread
LIBS = -Wl,--as-need -lprotobuf
@@ -11,12 +11,13 @@ helmetd_SOURCES = helmetd.cpp \
tunclient.cpp tunclient.hpp \
service.cpp service.hpp \
interface.cpp interface.hpp \
hello.pb.cc hello.pb.h \
udpclient.cpp udpclient.hpp \
resolver.cpp resolver.hpp \
iprouter.cpp iprouter.hpp \
netclient.cpp netclient.hpp \
tcpclient.cpp tcpclient.hpp \
rpcclient.cpp rpcclient.hpp
rpcclient.cpp rpcclient.hpp \
control.pb.cc control.pb.h
noinst_PROGRAMS = \
@@ -24,7 +25,8 @@ noinst_PROGRAMS = \
udpclient_test \
service_test \
tunclient_test \
message_test
rpcclient_test \
fakeconnect_test
tunclient_test_SOURCES = tunclient_test.cpp \
tunclient.cpp tunclient.hpp \
@@ -44,26 +46,38 @@ udpclient_test_SOURCES = \
tcpclient_test_SOURCES = \
resolver.cpp resolver.hpp \
netclient.cpp netclient.hpp \
tcpclient.cpp tcpclient.hpp \
tcpclient_test.cpp
rpcclient_test_SOURCES = rpcclient_test.cpp \
rpcclient.cpp rpcclient.hpp \
rpcheader.cpp rpcheader.hpp \
netclient.cpp netclient.hpp \
nethandler.cpp nethandler.hpp \
fakeconnect.cpp fakeconnect.hpp \
control.pb.cc control.pb.h
message_test_SOURCES = message_test.cpp \
hello.pb.cc hello.pb.h
fakeconnect_test_SOURCES = fakeconnect_test.cpp \
rpcclient.cpp rpcclient.hpp \
rpcheader.cpp rpcheader.hpp \
netclient.cpp netclient.hpp \
nethandler.cpp nethandler.hpp \
fakeconnect.cpp fakeconnect.hpp \
control.pb.cc control.pb.h
test: message_test
./message_test
test: fakeconnect_test
./fakeconnect_test
run: helmetd
./helmetd
proto:
$(PROTOC) --cpp_out=. hello.proto
$(PROTOC) --cpp_out=. control.proto
hello.pb.cc hello.pb.h: hello.proto
$(PROTOC) --cpp_out=. hello.proto
control.pb.cc control.pb.h: control.proto
$(PROTOC) --cpp_out=. control.proto
ASTYLE_OPTS = --indent=spaces=8 --style=java
format: