Mercurial > hg > piper-cpp
changeset 8:d5fa758a85c4
Add Makefile... this was supposed to have been in an earlier commit!
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 16 May 2016 11:54:12 +0100 |
parents | 2dc705f24b9b |
children | 197440dc8296 |
files | Makefile |
diffstat | 1 files changed, 32 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Mon May 16 11:54:12 2016 +0100 @@ -0,0 +1,32 @@ + +CXXFLAGS := -Wall -Werror -std=c++11 +INCFLAGS := -Ivamp-plugin-sdk -Ijson -Icapnproto +LDFLAGS := -Lvamp-plugin-sdk -Wl,-Bstatic -lvamp-hostsdk -Wl,-Bdynamic -lcapnp -lkj -ldl + +all: bin/vamp-json-cli bin/vamp-json-to-capnp + +bin/vamp-json-to-capnp: utilities/json-to-capnp.o json/json11/json11.o + c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) + +bin/vamp-json-cli: utilities/json-cli.o json/json11/json11.o + c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) + +capnproto/vamp.capnp.h: capnproto/vamp.capnp + capnp compile $< -oc++ + +utilities/json-to-capnp.o: utilities/json-to-capnp.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h + c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ + +utilities/json-cli.o: utilities/json-cli.cpp json/VampJson.h + c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ + +test: all + VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-cli.sh + VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-to-capnp.sh + +clean: + rm -f */*.o capnp/vamp.capnp.h capnp/vamp.capnp.c++ + +distclean: clean + rm -f bin/* +