43 lines
842 B
Makefile
43 lines
842 B
Makefile
|
|
AUTOMAKE_OPTIONS = foreign no-dependencies no-installinfo subdir-objects
|
|
|
|
CXXFLAGS = -O1 -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 \
|
|
$(helmet_SOURCES)
|
|
|
|
helmetcli_SOURCES = helmetcli.cpp \
|
|
uxclient.cpp uxclient.hpp \
|
|
$(helmet_SOURCES)
|
|
|
|
helmet_SOURCES = \
|
|
uxlogger.cpp uxlogger.hpp \
|
|
msgheader.cpp msgheader.hpp \
|
|
interface.cpp interface.hpp \
|
|
iprouter.cpp iprouter.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
|
|
|