working commit
This commit is contained in:
+35
-3
@@ -2,17 +2,49 @@
|
||||
AUTOMAKE_OPTIONS = foreign no-dependencies no-installinfo subdir-objects
|
||||
|
||||
CXXFLAGS = -std=c++23 -Wall -I. -pthread -D_GNU_SOURCE=1
|
||||
LDFLAGS = -pthread
|
||||
LDFLAGS = -pthread -static
|
||||
LIBS = -Wl,--as-need -lprotobuf-lite
|
||||
|
||||
sbin_PROGRAMS = helmetd
|
||||
|
||||
helmetd_SOURCES = server.cpp \
|
||||
helmetd_SOURCES = helmetd.cpp \
|
||||
server.cpp server.hpp \
|
||||
service.cpp service.hpp \
|
||||
tunnel.cpp tunnel.hpp
|
||||
interface.cpp interface.hpp \
|
||||
hello.pb.cc hello.pb.h \
|
||||
udpclient.cpp udpclient.hpp \
|
||||
resolver.cpp resolver.hpp
|
||||
|
||||
noinst_PROGRAMS = \
|
||||
udpclient_test \
|
||||
service_test \
|
||||
server_test
|
||||
|
||||
server_test_SOURCES = server_test.cpp \
|
||||
server.cpp server.hpp \
|
||||
service.cpp service.hpp \
|
||||
interface.cpp interface.hpp
|
||||
|
||||
service_test_SOURCES = service_test.cpp \
|
||||
server.cpp server.hpp \
|
||||
service.cpp service.hpp \
|
||||
interface.cpp interface.hpp
|
||||
|
||||
|
||||
udpclient_test_SOURCES = \
|
||||
resolver.cpp resolver.hpp \
|
||||
udpclient.cpp udpclient.hpp \
|
||||
udpclient_test.cpp
|
||||
|
||||
test: udpclient_test
|
||||
./udpclient_test
|
||||
|
||||
run: helmetd
|
||||
./helmetd
|
||||
|
||||
hello.pb.cc hello.pb.h: hello.proto
|
||||
$(PROTOC) --cpp_out=. hello.proto
|
||||
|
||||
clean-local:
|
||||
rm -rf autom4te.cache
|
||||
rm -f *~
|
||||
|
||||
Reference in New Issue
Block a user