Lines Matching refs:PROTOBUF
37 PROTOBUF = ../third_party/protobuf
92 # Protobuf dependence configuration
93 ifeq ($(wildcard ${PROTOBUF}/src/google/protobuf/descriptor.pb.h),)
94 # Protobuf module hasn't been populated, attempt using local installation.
97 PROTOBUF_CFLAGS := $(shell $(PKG_CONFIG) --cflags protobuf)
98 PROTOBUF_LIBS := $(shell $(PKG_CONFIG) --libs protobuf)
100 # Use protobuf compiler and libraries from submodule.
101 PROTOC = ${PROTOBUF}/src/protoc
102 PROTOBUF_CFLAGS := -I${PROTOBUF}/src
103 PROTOBUF_LIBS := ${PROTOBUF}/src/.libs/libprotobuf.a -lz
104 PROTOBUF_DEP := ${PROTOBUF}/src/.libs/libprotobuf.a
107 ${PROTOBUF}/configure:
108 echo "[AUTOGEN] Preparing protobuf"
109 (cd ${PROTOBUF} ; autoreconf -f -i -Wall,no-obsolete)
111 ${PROTOBUF}/src/.libs/libprotobuf.a: ${PROTOBUF}/configure
112 echo "[MAKE] Building protobuf"
113 (cd ${PROTOBUF} ; CC="$(CC)" CXX="$(CXX)" LDFLAGS="$(LDFLAGS_$(CONFIG)) -g $(PROTOBUF_LDFLAGS_EXTRA)" CPPFLAGS="$(PIC_CPPFLAGS) $(CPPFLAGS_$(CONFIG)) -g $(PROTOBUF_CPPFLAGS_EXTRA)" ./configure --disable-shared --enable-static $(PROTOBUF_CONFIG_OPTS))
114 $(MAKE) -C ${PROTOBUF} clean
115 $(MAKE) -C ${PROTOBUF}
144 # Do not remove protobuf headers that were generated as dependencies of other