Working Makefile for client program.

This commit is contained in:
Eli Ribble 2022-09-09 18:01:15 -06:00
parent 5357c54180
commit 9869fd6718
1 changed files with 20 additions and 0 deletions

View File

@ -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