comparison Makefile @ 23:d678cd00e593

Begin vampipe-convert
author Chris Cannam <c.cannam@qmul.ac.uk>
date Fri, 20 May 2016 18:05:02 +0100
parents c8451896c40e
children cc85c2851605
comparison
equal deleted inserted replaced
22:b0fc4eb51547 23:d678cd00e593
1 1
2 CXXFLAGS := -Wall -Werror -std=c++11 2 CXXFLAGS := -Wall -Werror -std=c++11
3 INCFLAGS := -Ivamp-plugin-sdk -Ijson -Icapnproto -I. 3 INCFLAGS := -Ivamp-plugin-sdk -Ijson -Icapnproto -I.
4 LDFLAGS := -Lvamp-plugin-sdk -Wl,-Bstatic -lvamp-hostsdk -Wl,-Bdynamic -lcapnp -lkj -ldl 4 LDFLAGS := -Lvamp-plugin-sdk -Wl,-Bstatic -lvamp-hostsdk -Wl,-Bdynamic -lcapnp -lkj -ldl
5 5
6 all: bin/vamp-json-cli bin/vamp-json-to-capnp 6 all: bin/vamp-json-cli bin/vamp-json-to-capnp bin/vampipe-convert
7
8 bin/vampipe-convert: utilities/vampipe-convert.o json/json11/json11.o
9 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
7 10
8 bin/vamp-json-to-capnp: utilities/json-to-capnp.o json/json11/json11.o 11 bin/vamp-json-to-capnp: utilities/json-to-capnp.o json/json11/json11.o
9 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 12 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
10 13
11 bin/vamp-json-cli: utilities/json-cli.o json/json11/json11.o 14 bin/vamp-json-cli: utilities/json-cli.o json/json11/json11.o
12 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 15 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
13 16
14 capnproto/vamp.capnp.h: capnproto/vamp.capnp 17 capnproto/vamp.capnp.h: capnproto/vamp.capnp
15 capnp compile $< -oc++ 18 capnp compile $< -oc++
19
20 utilities/vampipe-convert.o: utilities/vampipe-convert.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h
21 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
16 22
17 utilities/json-to-capnp.o: utilities/json-to-capnp.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h 23 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 $@ 24 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
19 25
20 utilities/json-cli.o: utilities/json-cli.cpp json/VampJson.h 26 utilities/json-cli.o: utilities/json-cli.cpp json/VampJson.h