Move protobufs inside src and distribute /debian

This commit is contained in:
Keith Winstein
2012-02-06 16:28:29 -05:00
parent 38c27149ee
commit 2611a42fb1
9 changed files with 9 additions and 7 deletions
+22
View File
@@ -0,0 +1,22 @@
source = userinput.proto hostinput.proto transportinstruction.proto
PROTOC = protoc
AM_CXXFLAGS = `pkg-config --cflags protobuf-lite` -g -O2 --std=c++0x -pedantic -Werror -Wall -Wextra -Weffc++ -fno-default-inline -pipe
userinput.pb.cc: userinput.proto
$(PROTOC) --cpp_out=$(builddir) -I$(srcdir) $<
hostinput.pb.cc: hostinput.proto
$(PROTOC) --cpp_out=$(builddir) -I$(srcdir) $<
transportinstruction.pb.cc: transportinstruction.proto
$(PROTOC) --cpp_out=$(builddir) -I$(srcdir) $<
.o.cc:
$(CXX) $(CXXFLAGS) -o $@ $<
noinst_LIBRARIES = libmoshprotos.a
libmoshprotos_a_SOURCES = userinput.proto hostinput.proto transportinstruction.proto
libmoshprotos_a_LIBADD = userinput.pb.$(OBJEXT) hostinput.pb.$(OBJEXT) transportinstruction.pb.$(OBJEXT)
CLEANFILES = userinput.pb.cc hostinput.pb.cc transportinstruction.pb.cc userinput.pb.h hostinput.pb.h transportinstruction.pb.h