annotate Makefile @ 31:b376ab0ce003

Begin server
author Chris Cannam <c.cannam@qmul.ac.uk>
date Tue, 24 May 2016 16:30:01 +0100
parents cc85c2851605
children 2d97883d20df
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@31 6 all: bin/vamp-json-cli bin/vamp-json-to-capnp bin/vampipe-convert bin/vampipe-server
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@31 11 bin/vampipe-server: o/vampipe-server.o o/vamp.capnp.o
c@31 12 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
c@31 13
c@27 14 bin/vamp-json-to-capnp: o/json-to-capnp.o o/json11.o
c@8 15 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
c@8 16
c@27 17 bin/vamp-json-cli: o/json-cli.o o/json11.o
c@8 18 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
c@8 19
c@8 20 capnproto/vamp.capnp.h: capnproto/vamp.capnp
c@8 21 capnp compile $< -oc++
c@8 22
c@27 23 o/vamp.capnp.o: capnproto/vamp.capnp.c++ capnproto/vamp.capnp.h
c@27 24 c++ $(CXXFLAGS) -c $< -o $@
c@27 25
c@27 26 o/json11.o: json/json11/json11.cpp
c@27 27 c++ $(CXXFLAGS) -c $< -o $@
c@27 28
c@27 29 o/vampipe-convert.o: utilities/vampipe-convert.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h
c@23 30 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@23 31
c@31 32 o/vampipe-server.o: utilities/vampipe-server.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h
c@31 33 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@31 34
c@27 35 o/json-to-capnp.o: utilities/json-to-capnp.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h
c@8 36 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@8 37
c@27 38 o/json-cli.o: utilities/json-cli.cpp json/VampJson.h
c@8 39 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@8 40
c@8 41 test: all
c@8 42 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-cli.sh
c@8 43 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-to-capnp.sh
c@8 44
c@8 45 clean:
c@27 46 rm -f */*.o capnproto/vamp.capnp.h capnproto/vamp.capnp.c++
c@8 47
c@8 48 distclean: clean
c@8 49 rm -f bin/*
c@8 50