d2434d1a79
clang was spewing warnings about the unrecognized -fno-default-inline. (Oddly, it warns only with -c, not when compiling directly to an executable.) For completeness we also check -pipe, even though clang is OK with that one. It should be fine to omit either flag. gcc -fno-default-inline drops the implicit 'inline' annotation on functions defined inside a class scope, but 'inline' is only a hint anyway. -fno-default-inline does not change linkage. -pipe is merely a compile speed optimization.
18 lines
514 B
Makefile
18 lines
514 B
Makefile
source = userinput.proto hostinput.proto transportinstruction.proto
|
|
|
|
AM_CPPFLAGS = $(protobuf_CFLAGS)
|
|
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXFLAGS)
|
|
|
|
SUFFIXES = .proto .pb.cc
|
|
|
|
.proto.pb.cc:
|
|
$(AM_V_GEN)$(PROTOC) --cpp_out=. -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)
|