annotate Makefile @ 75:81e1c48e97f9

Rearrange and rename to Piper C++ structure
author Chris Cannam <c.cannam@qmul.ac.uk>
date Mon, 10 Oct 2016 16:31:09 +0100
parents 6c908ee3ad3b
children 6fad5154778e
rev   line source
c@75 1
c@75 2 VAMPSDK_DIR := ../vamp-plugin-sdk
c@75 3 PIPER_DIR := ../piper
c@8 4
c@55 5 CXXFLAGS := -Wall -Werror -g3 -std=c++11
c@75 6 INCFLAGS := -I$(VAMPSDK_DIR) -I. -I/usr/local/include
c@37 7
c@75 8 LDFLAGS := $(VAMPSDK_DIR)/libvamp-hostsdk.a -L/usr/local/lib -lcapnp -lkj -ldl
c@8 9
c@75 10 all: o bin bin/piper-convert bin/piper-vamp-server
c@32 11
c@75 12 bin:
c@75 13 mkdir bin
c@23 14
c@75 15 o:
c@75 16 mkdir o
c@75 17
c@75 18 bin/piper-convert: o/convert.o o/json11.o o/piper.capnp.o
c@23 19 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
c@8 20
c@75 21 bin/piper-vamp-server: o/server.o o/piper.capnp.o
c@31 22 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
c@31 23
c@75 24 vamp-capnp/piper.capnp.h: $(PIPER_DIR)/capnp/piper.capnp
c@75 25 capnp compile -oc++:vamp-capnp --src-prefix=$(PIPER_DIR)/capnp $<
c@8 26
c@75 27 o/piper.capnp.o: vamp-capnp/piper.capnp.c++ vamp-capnp/piper.capnp.h
c@37 28 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@27 29
c@75 30 o/json11.o: json11/json11.cpp
c@27 31 c++ $(CXXFLAGS) -c $< -o $@
c@27 32
c@75 33 o/convert.o: vamp-server/convert.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h
c@23 34 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@23 35
c@75 36 o/server.o: vamp-server/server.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h
c@31 37 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@31 38
c@8 39 test: all
c@75 40 test/test-server.sh
c@8 41
c@8 42 clean:
c@75 43 rm -f */*.o vamp-capnp/piper.capnp.h vamp-capnp/piper.capnp.c++
c@8 44
c@8 45 distclean: clean
c@8 46 rm -f bin/*
c@8 47
c@70 48 # cancel implicit rule which otherwise could try to link %.capnp
c@70 49 %: %.o