2017-06-07 20:56:49 +00:00
|
|
|
CXXFLAGS ?= -I../../../include
|
|
|
|
LDFLAGS ?=
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: server client
|
|
|
|
|
2021-12-19 02:23:28 +00:00
|
|
|
greeter_generated: greeter.fbs
|
2017-06-07 20:56:49 +00:00
|
|
|
flatc --grpc --cpp $<
|
|
|
|
|
2021-12-19 02:23:28 +00:00
|
|
|
server: greeter_generated server.cpp greeter.grpc.fb.cc greeter.grpc.fb.h
|
2017-06-07 20:56:49 +00:00
|
|
|
g++ -std=c++11 -O2 $(CXXFLAGS) $(LDFLAGS) -lgpr -lgrpc -lgrpc++ server.cpp greeter.grpc.fb.cc -o $@
|
|
|
|
|
2021-12-19 02:23:28 +00:00
|
|
|
client: greeter_generated client.cpp greeter.grpc.fb.cc greeter.grpc.fb.h
|
2017-06-07 20:56:49 +00:00
|
|
|
g++ -std=c++11 -O2 $(CXXFLAGS) $(LDFLAGS) -lgpr -lgrpc -lgrpc++ client.cpp greeter.grpc.fb.cc -o $@
|