Mercurial > hg > piper-cpp
comparison Makefile @ 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 | |
children | c8451896c40e |
comparison
equal
deleted
inserted
replaced
7:2dc705f24b9b | 8:d5fa758a85c4 |
---|---|
1 | |
2 CXXFLAGS := -Wall -Werror -std=c++11 | |
3 INCFLAGS := -Ivamp-plugin-sdk -Ijson -Icapnproto | |
4 LDFLAGS := -Lvamp-plugin-sdk -Wl,-Bstatic -lvamp-hostsdk -Wl,-Bdynamic -lcapnp -lkj -ldl | |
5 | |
6 all: bin/vamp-json-cli bin/vamp-json-to-capnp | |
7 | |
8 bin/vamp-json-to-capnp: utilities/json-to-capnp.o json/json11/json11.o | |
9 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) | |
10 | |
11 bin/vamp-json-cli: utilities/json-cli.o json/json11/json11.o | |
12 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) | |
13 | |
14 capnproto/vamp.capnp.h: capnproto/vamp.capnp | |
15 capnp compile $< -oc++ | |
16 | |
17 utilities/json-to-capnp.o: utilities/json-to-capnp.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h | |
18 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ | |
19 | |
20 utilities/json-cli.o: utilities/json-cli.cpp json/VampJson.h | |
21 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ | |
22 | |
23 test: all | |
24 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-cli.sh | |
25 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-to-capnp.sh | |
26 | |
27 clean: | |
28 rm -f */*.o capnp/vamp.capnp.h capnp/vamp.capnp.c++ | |
29 | |
30 distclean: clean | |
31 rm -f bin/* | |
32 |