Convert build system to automake per Anders Kaseorg Makefile.am

This commit is contained in:
Keith Winstein
2012-02-04 23:56:39 -05:00
parent 5800cb7965
commit da2f481eea
70 changed files with 1118 additions and 79 deletions
+17
View File
@@ -0,0 +1,17 @@
source = userinput.proto hostinput.proto transportinstruction.proto
PROTOC = protoc
AM_CXXFLAGS = `pkg-config --cflags protobuf-lite`
userinput.pb.cc: userinput.proto
$(PROTOC) --cpp_out=$(builddir) $<
hostinput.pb.cc: hostinput.proto
$(PROTOC) --cpp_out=$(builddir) $<
transportinstruction.pb.cc: transportinstruction.proto
$(PROTOC) --cpp_out=$(builddir) $<
noinst_LIBRARIES = libmoshprotos.a
libmoshprotos_a_SOURCES = $(builddir)/userinput.pb.cc $(builddir)/hostinput.pb.cc $(builddir)/transportinstruction.pb.cc
CLEANFILES = $(builddir)/userinput.pb.cc $(builddir)/hostinput.pb.cc $(builddir)/transportinstruction.pb.cc $(builddir)/userinput.pb.h $(builddir)/hostinput.pb.h $(builddir)/transportinstruction.pb.h