Allow to specify environment variables for search paths.

pull/3109/head
Nicolas "Pixel" Noble 10 years ago
parent 7d26666d9a
commit 0118cf0e65
  1. 6
      cpp/helloworld/Makefile
  2. 6
      cpp/route_guide/Makefile

@ -30,9 +30,9 @@
# #
CXX = g++ CXX = g++
CPPFLAGS = -I/usr/local/include -pthread CPPFLAGS += -I/usr/local/include -pthread
CXXFLAGS = -std=c++11 CXXFLAGS += -std=c++11
LDFLAGS = -L/usr/local/lib -lgrpc -lgrpc++ -lprotobuf -lpthread -ldl LDFLAGS += -L/usr/local/lib -lgrpc -lgrpc++ -lprotobuf -lpthread -ldl
PROTOC = protoc PROTOC = protoc
GRPC_CPP_PLUGIN = grpc_cpp_plugin GRPC_CPP_PLUGIN = grpc_cpp_plugin
GRPC_CPP_PLUGIN_PATH ?= `which $(GRPC_CPP_PLUGIN)` GRPC_CPP_PLUGIN_PATH ?= `which $(GRPC_CPP_PLUGIN)`

@ -30,9 +30,9 @@
# #
CXX = g++ CXX = g++
CPPFLAGS = -I/usr/local/include -pthread CPPFLAGS += -I/usr/local/include -pthread
CXXFLAGS = -std=c++11 CXXFLAGS += -std=c++11
LDFLAGS = -L/usr/local/lib -lgpr -lgrpc -lgrpc++ -lprotobuf -lpthread -ldl LDFLAGS += -L/usr/local/lib -lgpr -lgrpc -lgrpc++ -lprotobuf -lpthread -ldl
PROTOC = protoc PROTOC = protoc
GRPC_CPP_PLUGIN = grpc_cpp_plugin GRPC_CPP_PLUGIN = grpc_cpp_plugin
GRPC_CPP_PLUGIN_PATH ?= `which $(GRPC_CPP_PLUGIN)` GRPC_CPP_PLUGIN_PATH ?= `which $(GRPC_CPP_PLUGIN)`

Loading…
Cancel
Save