annotate Makefile @ 208:c67a0a945b6b

Rename PluginStub to PiperVampPlugin and AutoPlugin to PiperAutoPlugin
author Chris Cannam <cannam@all-day-breakfast.com>
date Thu, 09 Feb 2017 13:31:46 +0000
parents e07c05ea8952
children f7045f7995bc
rev   line source
c@75 1
c@75 2 VAMPSDK_DIR := ../vamp-plugin-sdk
c@75 3 PIPER_DIR := ../piper
c@8 4
c@103 5 CXXFLAGS := -Wall -Wextra -Werror -g3 -std=c++11
cannam@150 6 INCFLAGS := -Iext -I$(VAMPSDK_DIR) -I. -I/usr/local/include
c@116 7
c@118 8 #LDFLAGS := -L$(VAMPSDK_DIR) -L/usr/local/lib -lvamp-hostsdk -lcapnp -lkj
c@118 9 LDFLAGS := $(VAMPSDK_DIR)/libvamp-hostsdk.a -lcapnp -lkj
c@116 10
c@116 11 LDFLAGS += -ldl
c@8 12
dev@201 13 TEST_SRCS := test/vamp-client/tst_PluginStub.cpp
dev@190 14
dev@190 15 all: o bin bin/piper-convert bin/piper-vamp-simple-server bin/test-suite
c@32 16
c@75 17 bin:
c@75 18 mkdir bin
c@23 19
c@75 20 o:
c@75 21 mkdir o
c@75 22
c@75 23 bin/piper-convert: o/convert.o o/json11.o o/piper.capnp.o
c@23 24 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
c@8 25
c@125 26 bin/piper-vamp-simple-server: o/simple-server.o o/json11.o o/piper.capnp.o
c@31 27 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
dev@190 28
dev@190 29 bin/test-suite: test/main.cpp $(TEST_SRCS)
dev@190 30 c++ $(CXXFLAGS) $(INCFLAGS) $< $(TEST_SRCS) -o $@ $(LDFLAGS)
dev@201 31 bin/test-suite
c@31 32
cannam@185 33 o/piper.capnp.o: vamp-capnp/piper.capnp.c++
c@37 34 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@27 35
cannam@185 36 vamp-capnp/piper.capnp.h: vamp-capnp/piper.capnp.c++
cannam@185 37
cannam@185 38 vamp-capnp/piper.capnp.c++: $(PIPER_DIR)/capnp/piper.capnp
cannam@185 39 capnpc --src-prefix=$(PIPER_DIR)/capnp -oc++:vamp-capnp $<
cannam@185 40
cannam@150 41 o/json11.o: ext/json11/json11.cpp
c@27 42 c++ $(CXXFLAGS) -c $< -o $@
c@27 43
c@75 44 o/convert.o: vamp-server/convert.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h
c@23 45 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@23 46
c@125 47 o/simple-server.o: vamp-server/simple-server.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h
c@31 48 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@31 49
c@8 50 test: all
dev@198 51 bin/test-suite -s -d yes
cannam@150 52 vamp-server/test.sh
c@8 53
c@8 54 clean:
c@118 55 rm -f */*.o
c@8 56
c@8 57 distclean: clean
dev@190 58 rm -rf bin/*
c@8 59
c@70 60 # cancel implicit rule which otherwise could try to link %.capnp
c@70 61 %: %.o