AUTOMAKE_OPTIONS = foreign no-dependencies no-installinfo subdir-objects CXXFLAGS = -std=c++23 -Wall -I. -pthread -D_GNU_SOURCE=1 LDFLAGS = -pthread LIBS = -Wl,--as-need -lprotobuf sbin_PROGRAMS = helmetd 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 \ tcpclient.cpp tcpclient.hpp \ rpcclient.cpp rpcclient.hpp noinst_PROGRAMS = \ tcpclient_test \ udpclient_test \ service_test \ tunclient_test \ message_test tunclient_test_SOURCES = tunclient_test.cpp \ tunclient.cpp tunclient.hpp \ service.cpp service.hpp \ interface.cpp interface.hpp service_test_SOURCES = service_test.cpp \ tunclient.cpp tunclient.hpp \ service.cpp service.hpp \ interface.cpp interface.hpp udpclient_test_SOURCES = \ resolver.cpp resolver.hpp \ udpclient.cpp udpclient.hpp \ udpclient_test.cpp tcpclient_test_SOURCES = \ resolver.cpp resolver.hpp \ tcpclient.cpp tcpclient.hpp \ tcpclient_test.cpp message_test_SOURCES = message_test.cpp \ hello.pb.cc hello.pb.h test: message_test ./message_test run: helmetd ./helmetd proto: $(PROTOC) --cpp_out=. hello.proto hello.pb.cc hello.pb.h: hello.proto $(PROTOC) --cpp_out=. hello.proto ASTYLE_OPTS = --indent=spaces=8 --style=java format: $(ASTYLE) $(ASTYLE_OPTS) *.hpp *.cpp clean-local: rm -rf autom4te.cache rm -f *~ rm -f *.o rm -f *.orig