Files
stvpn/Makefile.am
T
2026-04-22 18:15:05 +02:00

60 lines
1.2 KiB
Makefile

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-lite
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
noinst_PROGRAMS = \
udpclient_test \
service_test \
tunclient_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
test: tunclient_test
./tunclient_test
run: helmetd
./helmetd
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