Generating c++ code, starting a Makefile

This commit is contained in:
Dan Buch
2012-05-07 22:07:19 -04:00
parent c843bf8c47
commit 36a4930ef0
3 changed files with 1726 additions and 0 deletions

9
protobuf/Makefile Normal file
View File

@@ -0,0 +1,9 @@
PROTOC := $(PWD)/bin/protoc
TARGETS := $(patsubst %.proto,%.pb.cc,$(shell find src -name '*.proto'))
%.pb.cc:%.proto
$(PROTOC) -I=$(shell dirname $^) --cpp_out=$(shell dirname $^) $^
all: $(TARGETS)