annotate 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
rev   line source
c@8 1
c@27 2 CXXFLAGS := -Wall -Werror -O3 -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@23 6 all: bin/vamp-json-cli bin/vamp-json-to-capnp bin/vampipe-convert
c@23 7
c@27 8 bin/vampipe-convert: o/vampipe-convert.o o/json11.o o/vamp.capnp.o
c@23 9 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
c@8 10
c@27 11 bin/vamp-json-to-capnp: o/json-to-capnp.o o/json11.o
c@8 12 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
c@8 13
c@27 14 bin/vamp-json-cli: o/json-cli.o o/json11.o
c@8 15 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
c@8 16
c@8 17 capnproto/vamp.capnp.h: capnproto/vamp.capnp
c@8 18 capnp compile $< -oc++
c@8 19
c@27 20 o/vamp.capnp.o: capnproto/vamp.capnp.c++ capnproto/vamp.capnp.h
c@27 21 c++ $(CXXFLAGS) -c $< -o $@
c@27 22
c@27 23 o/json11.o: json/json11/json11.cpp
c@27 24 c++ $(CXXFLAGS) -c $< -o $@
c@27 25
c@27 26 o/vampipe-convert.o: utilities/vampipe-convert.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h
c@23 27 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@23 28
c@27 29 o/json-to-capnp.o: utilities/json-to-capnp.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h
c@8 30 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@8 31
c@27 32 o/json-cli.o: utilities/json-cli.cpp json/VampJson.h
c@8 33 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@8 34
c@8 35 test: all
c@8 36 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-cli.sh
c@8 37 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-to-capnp.sh
c@8 38
c@8 39 clean:
c@27 40 rm -f */*.o capnproto/vamp.capnp.h capnproto/vamp.capnp.c++
c@8 41
c@8 42 distclean: clean
c@8 43 rm -f bin/*
c@8 44