35 lines
640 B
Makefile
35 lines
640 B
Makefile
|
|
AUTOMAKE_OPTIONS = foreign no-dependencies no-installinfo subdir-objects
|
|
|
|
CXXFLAGS = -std=c++23 -Wall -I. -pthread -D_GNU_SOURCE=1 -MMD -MP
|
|
LDFLAGS = -pthread
|
|
LIBS = -Wl,--as-need -lprotobuf
|
|
|
|
sbin_PROGRAMS = helmetd
|
|
|
|
helmetd_SOURCES = helmetd.cpp $(helmet_SOURCES)
|
|
|
|
helmet_SOURCES = \
|
|
uxlogger.cpp uxlogger.hpp \
|
|
tservice.cpp tservice.hpp \
|
|
sockhand.cpp dockhand.hpp \
|
|
msgheader.cpp msgheader.hpp
|
|
|
|
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
|
|
|