Files
stvpn/Makefile.am
Олег Бородин 5a2985f936 working commit
2026-05-21 14:15:03 +02:00

47 lines
967 B
Makefile

AUTOMAKE_OPTIONS = foreign no-dependencies no-installinfo subdir-objects
CXXFLAGS = -O -std=c++23 -Wall -I. -pthread -D_GNU_SOURCE=1 -MMD -MP
LDFLAGS = -pthread
LIBS = -Wl,--as-need -lprotobuf
sbin_PROGRAMS = helmetsrv helmetcli
helmetsrv_SOURCES = helmetsrv.cpp \
tservice.cpp tservice.hpp \
sockhand.cpp dockhand.hpp \
srvconfig.cpp srvconfig.hpp \
$(helmet_SOURCES)
helmetcli_SOURCES = helmetcli.cpp \
uxclient.cpp uxclient.hpp \
cliconfig.cpp cliconfig.hpp \
$(helmet_SOURCES)
helmet_SOURCES = \
uxlogger.cpp uxlogger.hpp \
msgheader.cpp msgheader.hpp \
interface.cpp interface.hpp \
iprouter.cpp iprouter.hpp \
stringaux.cpp stringaux.hpp \
networkaux.cpp networkaux.hpp \
uxcontrol.pb.cc uxcontrol.pb.h
ASTYLE_OPTS = --indent=spaces=8 --style=java
format:
$(ASTYLE) $(ASTYLE_OPTS) *.hpp *.cpp
proto:
$(PROTOC) --cpp_out=. uxcontrol.proto
clean-local:
rm -rf autom4te.cache
rm -f *~
rm -f *.o
rm -f *.orig
rm -f *.d
-include *.d