aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/cpp/helloworld/Makefile
diff options
context:
space:
mode:
authorGravatar Michael Yeh <miyeh@cisco.com>2016-05-04 12:39:20 -0700
committerGravatar Michael Yeh <miyeh@cisco.com>2016-05-04 12:39:20 -0700
commit470cbd1c6e0f1e4d49265a1ed403ffb1219fffa6 (patch)
tree2486ab66f9c311affda1a6b46a553aff2f5db7eb /examples/cpp/helloworld/Makefile
parent2df7d409144af95c99cdabefcc7a3ad841c464d0 (diff)
Created a new sample async client that is non-blocking. A reader thread is spawned to handle all the RPC results.
Diffstat (limited to 'examples/cpp/helloworld/Makefile')
-rw-r--r--examples/cpp/helloworld/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/cpp/helloworld/Makefile b/examples/cpp/helloworld/Makefile
index 470b83573e..58a82dbb83 100644
--- a/examples/cpp/helloworld/Makefile
+++ b/examples/cpp/helloworld/Makefile
@@ -41,7 +41,7 @@ PROTOS_PATH = ../../protos
vpath %.proto $(PROTOS_PATH)
-all: system-check greeter_client greeter_server greeter_async_client greeter_async_server
+all: system-check greeter_client greeter_server greeter_async_client greeter_async_client2 greeter_async_server
greeter_client: helloworld.pb.o helloworld.grpc.pb.o greeter_client.o
$(CXX) $^ $(LDFLAGS) -o $@
@@ -52,6 +52,9 @@ greeter_server: helloworld.pb.o helloworld.grpc.pb.o greeter_server.o
greeter_async_client: helloworld.pb.o helloworld.grpc.pb.o greeter_async_client.o
$(CXX) $^ $(LDFLAGS) -o $@
+greeter_async_client2: helloworld.pb.o helloworld.grpc.pb.o greeter_async_client2.o
+ $(CXX) $^ $(LDFLAGS) -o $@
+
greeter_async_server: helloworld.pb.o helloworld.grpc.pb.o greeter_async_server.o
$(CXX) $^ $(LDFLAGS) -o $@
@@ -64,7 +67,7 @@ greeter_async_server: helloworld.pb.o helloworld.grpc.pb.o greeter_async_server.
$(PROTOC) -I $(PROTOS_PATH) --cpp_out=. $<
clean:
- rm -f *.o *.pb.cc *.pb.h greeter_client greeter_server greeter_async_client greeter_async_server
+ rm -f *.o *.pb.cc *.pb.h greeter_client greeter_server greeter_async_client greeter_async_client2 greeter_async_server
# The following is to test your system and ensure a smoother experience.