c71f8e2dc2
With automake 1.11, this gives us Linux kernel–style silent output that makes warnings more obvious: GEN userinput.pb.cc CXX userinput.pb.o AR libmoshprotos.a CXXLD mosh-client (Use ‘make V=1’ for the traditional verbose output.) Signed-off-by: Anders Kaseorg <andersk@mit.edu>
19 lines
532 B
Makefile
19 lines
532 B
Makefile
source = userinput.proto hostinput.proto transportinstruction.proto
|
|
|
|
PROTOC = protoc
|
|
AM_CPPFLAGS = $(protobuf_CFLAGS)
|
|
AM_CXXFLAGS = $(WARNING_CXXFLAGS) -fno-default-inline -pipe
|
|
|
|
SUFFIXES = .proto .pb.cc
|
|
|
|
.proto.pb.cc:
|
|
$(AM_V_GEN)$(PROTOC) --cpp_out=$(builddir) -I$(srcdir) $<
|
|
|
|
noinst_LIBRARIES = libmoshprotos.a
|
|
|
|
libmoshprotos_a_SOURCES = $(source)
|
|
nodist_libmoshprotos_a_SOURCES = $(source:.proto=.pb.cc) $(source:.proto=.pb.h)
|
|
|
|
BUILT_SOURCES = $(source:.proto=.pb.cc)
|
|
CLEANFILES = $(source:.proto=.pb.cc) $(source:.proto=.pb.h)
|