capnproto-java-rpc/Makefile

21 lines
604 B
Makefile
Raw Normal View History

CXX=clang++
CXX_FLAGS=-std=c++11 -stdlib=libc++ `pkg-config capnp --cflags --libs`
2014-05-10 01:38:24 +00:00
CAPNPC_JAVA_SOURCES=generator/src/main/cpp/compiler/capnpc-java.c++
2014-05-10 01:38:24 +00:00
2014-05-10 02:05:40 +00:00
.PHONY: all clean addressbook
2014-05-10 01:38:24 +00:00
all : capnpc-java
2014-05-10 01:38:24 +00:00
clean :
rm capnpc-java
2014-05-10 11:46:41 +00:00
2014-05-10 01:38:24 +00:00
capnpc-java : $(CAPNPC_JAVA_SOURCES)
2014-05-16 03:05:31 +00:00
$(CXX) $(CAPNPC_JAVA_SOURCES) $(CXX_FLAGS) -g -o capnpc-java
2014-05-10 02:05:40 +00:00
addressbook : capnpc-java
PWD=pwd
2014-05-16 03:05:31 +00:00
mkdir -p examples/src/main/generated
capnp compile -I$(PWD)/generator/src/main/cpp/compiler --src-prefix=examples/src/main/schema -o./capnpc-java:examples/src/main/generated examples/src/main/schema/addressbook.capnp
sbt examples/compile