comparison Makefile @ 27:cc85c2851605

Wire up Cap'n Proto reading, plus some build and arg processing fixes
author Chris Cannam <c.cannam@qmul.ac.uk>
date Tue, 24 May 2016 12:00:38 +0100
parents d678cd00e593
children b376ab0ce003
comparison
equal deleted inserted replaced
26:13393bdfc7ef 27:cc85c2851605
1 1
2 CXXFLAGS := -Wall -Werror -std=c++11 2 CXXFLAGS := -Wall -Werror -O3 -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 bin/vampipe-convert 6 all: bin/vamp-json-cli bin/vamp-json-to-capnp bin/vampipe-convert
7 7
8 bin/vampipe-convert: utilities/vampipe-convert.o json/json11/json11.o 8 bin/vampipe-convert: o/vampipe-convert.o o/json11.o o/vamp.capnp.o
9 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 9 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
10 10
11 bin/vamp-json-to-capnp: utilities/json-to-capnp.o json/json11/json11.o 11 bin/vamp-json-to-capnp: o/json-to-capnp.o o/json11.o
12 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 12 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
13 13
14 bin/vamp-json-cli: utilities/json-cli.o json/json11/json11.o 14 bin/vamp-json-cli: o/json-cli.o o/json11.o
15 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 15 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
16 16
17 capnproto/vamp.capnp.h: capnproto/vamp.capnp 17 capnproto/vamp.capnp.h: capnproto/vamp.capnp
18 capnp compile $< -oc++ 18 capnp compile $< -oc++
19 19
20 utilities/vampipe-convert.o: utilities/vampipe-convert.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h 20 o/vamp.capnp.o: capnproto/vamp.capnp.c++ capnproto/vamp.capnp.h
21 c++ $(CXXFLAGS) -c $< -o $@
22
23 o/json11.o: json/json11/json11.cpp
24 c++ $(CXXFLAGS) -c $< -o $@
25
26 o/vampipe-convert.o: utilities/vampipe-convert.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h
21 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ 27 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
22 28
23 utilities/json-to-capnp.o: utilities/json-to-capnp.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h 29 o/json-to-capnp.o: utilities/json-to-capnp.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h
24 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ 30 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
25 31
26 utilities/json-cli.o: utilities/json-cli.cpp json/VampJson.h 32 o/json-cli.o: utilities/json-cli.cpp json/VampJson.h
27 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ 33 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
28 34
29 test: all 35 test: all
30 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-cli.sh 36 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-cli.sh
31 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-to-capnp.sh 37 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-to-capnp.sh
32 38
33 clean: 39 clean:
34 rm -f */*.o capnp/vamp.capnp.h capnp/vamp.capnp.c++ 40 rm -f */*.o capnproto/vamp.capnp.h capnproto/vamp.capnp.c++
35 41
36 distclean: clean 42 distclean: clean
37 rm -f bin/* 43 rm -f bin/*
38 44