Mercurial > hg > piper-cpp
annotate Makefile @ 22:b0fc4eb51547
More conversions
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 20 May 2016 17:07:04 +0100 |
parents | c8451896c40e |
children | d678cd00e593 |
rev | line source |
---|---|
c@8 | 1 |
c@8 | 2 CXXFLAGS := -Wall -Werror -std=c++11 |
c@10 | 3 INCFLAGS := -Ivamp-plugin-sdk -Ijson -Icapnproto -I. |
c@8 | 4 LDFLAGS := -Lvamp-plugin-sdk -Wl,-Bstatic -lvamp-hostsdk -Wl,-Bdynamic -lcapnp -lkj -ldl |
c@8 | 5 |
c@8 | 6 all: bin/vamp-json-cli bin/vamp-json-to-capnp |
c@8 | 7 |
c@8 | 8 bin/vamp-json-to-capnp: utilities/json-to-capnp.o json/json11/json11.o |
c@8 | 9 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) |
c@8 | 10 |
c@8 | 11 bin/vamp-json-cli: utilities/json-cli.o json/json11/json11.o |
c@8 | 12 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) |
c@8 | 13 |
c@8 | 14 capnproto/vamp.capnp.h: capnproto/vamp.capnp |
c@8 | 15 capnp compile $< -oc++ |
c@8 | 16 |
c@8 | 17 utilities/json-to-capnp.o: utilities/json-to-capnp.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h |
c@8 | 18 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ |
c@8 | 19 |
c@8 | 20 utilities/json-cli.o: utilities/json-cli.cpp json/VampJson.h |
c@8 | 21 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ |
c@8 | 22 |
c@8 | 23 test: all |
c@8 | 24 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-cli.sh |
c@8 | 25 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-to-capnp.sh |
c@8 | 26 |
c@8 | 27 clean: |
c@8 | 28 rm -f */*.o capnp/vamp.capnp.h capnp/vamp.capnp.c++ |
c@8 | 29 |
c@8 | 30 distclean: clean |
c@8 | 31 rm -f bin/* |
c@8 | 32 |