mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-14 23:29:42 +01:00
9a3be32ed7
* echo client/server example: dead code removal, add command line params, improve output messages * Add nix-build result to .gitignore * Merge echo-client and echo-server directories to echo-hs/ directory; rename main modules accordingly * Use our protobuf compiler to generate bindings for the Echo service * Simplify echo.proto to just one endpoint; use highlevel client/server interfaces and codegen for echo example * Remove repetition counts and thread spawns from echo client, parameterize payload * Update default.nix
16 lines
408 B
Makefile
16 lines
408 B
Makefile
CXX = clang++
|
|
CXXFLAGS += -std=c++11
|
|
CPPFLAGS += -I/usr/local/include -pthread
|
|
LDFLAGS += -L/usr/local/lib -lgrpc++_unsecure -lgrpc -lprotobuf -lpthread -ldl
|
|
|
|
.phony: all
|
|
all:
|
|
@echo "TODO: Update this code to use the new echo.proto"
|
|
@exit 1
|
|
|
|
echo-server: echo.pb.o echo.grpc.pb.o echo-server.o
|
|
clang++ $^ $(LDFLAGS) -o $@
|
|
|
|
echo-client: echo.pb.o echo.grpc.pb.o echo-client.o
|
|
clang++ $^ $(LDFLAGS) -o $@
|
|
|