Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 21 lines (17 sloc) 0.777 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
########################################################################
# rules for compiling Google Protocol Buffers (using protoc)
########################################################################

SUFFIXES += .proto .pb.cc

PROTOC_ARGS =

# This bit of pwd uglyness is because autoconf 2.59 & automake 1.9.6 don't
# canonicalize abs_top_srcdir... instead it ends up being relative to
# $abs_srcdir (e.g. $abs_srcdir/../../). Protobuf can't handle relative paths.

.proto.pb.cc :
$(AM_V_GEN)( \
SRC=`cd $(abs_top_srcdir)/src && pwd` ;\
OBJ=`cd $(abs_top_builddir)/src && pwd` ;\
FILEDIR=`cd $$(dirname $<) && pwd` ;\
FILENAME="$$FILEDIR/$$(basename $<)" ;\
cd "$$SRC" && \
$(PROTOC) -I"$$SRC" -I"$$OBJ" --cpp_out="$$OBJ" $(PROTOC_ARGS) "$$FILENAME" \
)
Something went wrong with that request. Please try again.