annotate Makefile @ 71:6c908ee3ad3b

vamp -> piper for IDL specs
author Chris Cannam <c.cannam@qmul.ac.uk>
date Fri, 07 Oct 2016 14:27:11 +0100
parents 302a8e35248c
children 81e1c48e97f9
rev   line source
c@8 1
c@55 2 CXXFLAGS := -Wall -Werror -g3 -std=c++11
c@37 3 INCFLAGS := -Ivamp-plugin-sdk -Ijson -I/usr/local/include -Icapnproto -I.
c@37 4
c@37 5 LDFLAGS := vamp-plugin-sdk/libvamp-hostsdk.a -L/usr/local/lib -lcapnp -lkj -ldl
c@8 6
c@32 7 #!!! todo: proper dependencies
c@32 8
c@60 9 all: bin/vampipe-convert bin/vampipe-server
c@23 10
c@71 11 bin/vampipe-convert: o/vampipe-convert.o o/json11.o o/piper.capnp.o
c@23 12 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
c@8 13
c@71 14 bin/vampipe-server: o/vampipe-server.o o/piper.capnp.o
c@31 15 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
c@31 16
c@71 17 capnproto/piper.capnp.h: capnproto/piper.capnp
c@8 18 capnp compile $< -oc++
c@8 19
c@71 20 o/piper.capnp.o: capnproto/piper.capnp.c++ capnproto/piper.capnp.h
c@37 21 c++ $(CXXFLAGS) $(INCFLAGS) -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@71 26 o/vampipe-convert.o: utilities/vampipe-convert.cpp capnproto/piper.capnp.h capnproto/VampnProto.h json/VampJson.h
c@23 27 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@23 28
c@71 29 o/vampipe-server.o: utilities/vampipe-server.cpp capnproto/piper.capnp.h capnproto/VampnProto.h
c@31 30 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@31 31
c@8 32 test: all
c@60 33 test/test-vampipe-server.sh
c@8 34
c@8 35 clean:
c@71 36 rm -f */*.o capnproto/piper.capnp.h capnproto/piper.capnp.c++
c@8 37
c@8 38 distclean: clean
c@8 39 rm -f bin/*
c@8 40
c@70 41 # cancel implicit rule which otherwise could try to link %.capnp
c@70 42 %: %.o