Working Makefile for client program.
This commit is contained in:
parent
5357c54180
commit
9869fd6718
|
@ -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
|
Loading…
Reference in New Issue