From 9869fd671824fafc2ad5c3535e2d75984b2f6240 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Fri, 9 Sep 2022 18:01:15 -0600 Subject: [PATCH] Working Makefile for client program. --- capnproto-example/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 capnproto-example/Makefile diff --git a/capnproto-example/Makefile b/capnproto-example/Makefile new file mode 100644 index 0000000..f520545 --- /dev/null +++ b/capnproto-example/Makefile @@ -0,0 +1,20 @@ +all: client + +CAPNPROTO=/home/eliribble/src/capnproto +CXX=g++ +LIBS=\ + kj \ + kj-async \ + capnp \ + capnp-rpc + +calculator.capnp.h: calculator.capnp + capnp compile -oc++ calculator.capnp + + +CLIENT_SRCS=calculator-client.c++ calculator.capnp.c++ +client: $(CLIENT_SRCS) calculator.capnp.h + $(CXX) $(CLIENT_SRCS) -L $(CAPNPROTO)/c++/.libs $(addprefix -l,$(LIBS)) -o client + +clean: + rm client