annotate Makefile @ 239:335a5909d4a8

Library
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 13 Jun 2017 12:17:13 +0100
parents 9ec8a707408e
children 498f899a91b6
rev   line source
c@75 1
c@75 2 VAMPSDK_DIR := ../vamp-plugin-sdk
c@75 3 PIPER_DIR := ../piper
c@8 4
cannam@223 5 INCFLAGS := -Iext -I/usr/include/sord-0 -I/usr/include/serd-0 -I$(VAMPSDK_DIR) -I. -I/usr/local/include
cannam@222 6 CXXFLAGS := -Wall -Wextra -Werror -Wno-error=unused-parameter -g3 -std=c++11 $(INCFLAGS)
c@116 7
c@118 8 #LDFLAGS := -L$(VAMPSDK_DIR) -L/usr/local/lib -lvamp-hostsdk -lcapnp -lkj
cannam@223 9 LDFLAGS := $(VAMPSDK_DIR)/libvamp-hostsdk.a -lcapnp -lkj -lsord-0 -lserd-0
c@116 10
c@116 11 LDFLAGS += -ldl
c@8 12
cannam@219 13 COMMON_OBJS := ext/json11/json11.o vamp-capnp/piper.capnp.o
cannam@219 14
cannam@206 15 TEST_SRCS := test/main.cpp test/vamp-client/tst_PluginStub.cpp
cannam@206 16 TEST_OBJS := $(TEST_SRCS:.cpp=.o)
dev@190 17
cannam@232 18 all: bin bin/piper-convert bin/piper-vamp-simple-server bin/piper-vamp-stub-generator bin/test-suite
c@32 19
c@75 20 bin:
c@75 21 mkdir bin
c@23 22
cannam@219 23 bin/piper-convert: vamp-server/convert.o $(COMMON_OBJS)
c@23 24 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
c@8 25
cannam@219 26 bin/piper-vamp-simple-server: vamp-server/simple-server.o $(COMMON_OBJS)
c@31 27 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
cannam@206 28
cannam@232 29 bin/piper-vamp-stub-generator: vamp-stubber/stubber.o $(COMMON_OBJS)
cannam@232 30 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
cannam@232 31
cannam@206 32 bin/test-suite: $(TEST_OBJS)
cannam@206 33 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
dev@201 34 bin/test-suite
c@31 35
cannam@219 36 vamp-capnp/piper.capnp.o: vamp-capnp/piper.capnp.c++
c@37 37 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
c@27 38
cannam@234 39 vamp-capnp/piper.capnp.c++: vamp-capnp/piper.capnp.h
cannam@185 40
cannam@234 41 vamp-capnp/piper.capnp.h: $(PIPER_DIR)/capnp/piper.capnp
cannam@185 42 capnpc --src-prefix=$(PIPER_DIR)/capnp -oc++:vamp-capnp $<
cannam@185 43
c@8 44 test: all
dev@198 45 bin/test-suite -s -d yes
cannam@150 46 vamp-server/test.sh
c@8 47
c@8 48 clean:
c@118 49 rm -f */*.o
c@8 50
c@8 51 distclean: clean
dev@190 52 rm -rf bin/*
c@8 53
cannam@206 54 depend:
cannam@206 55 makedepend -Y. */*.cpp */*/*.cpp */*/*/*.cpp */*.c++
cannam@206 56
c@70 57 # cancel implicit rule which otherwise could try to link %.capnp
c@70 58 %: %.o
cannam@206 59
cannam@206 60 # DO NOT DELETE
cannam@206 61
cannam@206 62 vamp-capnp/piper-capnp.o: vamp-capnp/piper.capnp.c++ vamp-capnp/piper.capnp.h
cannam@223 63 vamp-server/convert.o: vamp-json/VampJson.h
cannam@223 64 vamp-server/convert.o: vamp-support/StaticOutputDescriptor.h
cannam@223 65 vamp-server/convert.o: vamp-support/PluginStaticData.h
cannam@223 66 vamp-server/convert.o: vamp-support/StaticOutputDescriptor.h
cannam@206 67 vamp-server/convert.o: vamp-support/PluginConfiguration.h
cannam@206 68 vamp-server/convert.o: vamp-support/RequestResponse.h
cannam@206 69 vamp-server/convert.o: vamp-support/PluginStaticData.h
cannam@206 70 vamp-server/convert.o: vamp-support/PluginConfiguration.h
cannam@206 71 vamp-server/convert.o: vamp-support/PluginHandleMapper.h
cannam@206 72 vamp-server/convert.o: vamp-support/PluginOutputIdMapper.h
cannam@206 73 vamp-server/convert.o: vamp-support/PluginOutputIdMapper.h
cannam@206 74 vamp-server/convert.o: vamp-support/RequestResponseType.h
cannam@206 75 vamp-server/convert.o: vamp-capnp/VampnProto.h vamp-capnp/piper.capnp.h
cannam@206 76 vamp-server/convert.o: vamp-support/RequestOrResponse.h
cannam@206 77 vamp-server/convert.o: vamp-support/RequestResponseType.h
cannam@206 78 vamp-server/convert.o: vamp-support/RequestResponse.h
cannam@206 79 vamp-server/convert.o: vamp-support/PreservingPluginHandleMapper.h
cannam@206 80 vamp-server/convert.o: vamp-support/PluginHandleMapper.h
cannam@206 81 vamp-server/convert.o: vamp-support/PreservingPluginOutputIdMapper.h
cannam@206 82 vamp-server/simple-server.o: vamp-json/VampJson.h
cannam@223 83 vamp-server/simple-server.o: vamp-support/StaticOutputDescriptor.h
cannam@206 84 vamp-server/simple-server.o: vamp-support/PluginStaticData.h
cannam@223 85 vamp-server/simple-server.o: vamp-support/StaticOutputDescriptor.h
cannam@206 86 vamp-server/simple-server.o: vamp-support/PluginConfiguration.h
cannam@206 87 vamp-server/simple-server.o: vamp-support/RequestResponse.h
cannam@206 88 vamp-server/simple-server.o: vamp-support/PluginStaticData.h
cannam@206 89 vamp-server/simple-server.o: vamp-support/PluginConfiguration.h
cannam@206 90 vamp-server/simple-server.o: vamp-support/PluginHandleMapper.h
cannam@206 91 vamp-server/simple-server.o: vamp-support/PluginOutputIdMapper.h
cannam@206 92 vamp-server/simple-server.o: vamp-support/PluginOutputIdMapper.h
cannam@206 93 vamp-server/simple-server.o: vamp-support/RequestResponseType.h
cannam@206 94 vamp-server/simple-server.o: vamp-capnp/VampnProto.h vamp-capnp/piper.capnp.h
cannam@206 95 vamp-server/simple-server.o: vamp-support/RequestOrResponse.h
cannam@206 96 vamp-server/simple-server.o: vamp-support/RequestResponseType.h
cannam@206 97 vamp-server/simple-server.o: vamp-support/RequestResponse.h
cannam@206 98 vamp-server/simple-server.o: vamp-support/CountingPluginHandleMapper.h
cannam@206 99 vamp-server/simple-server.o: vamp-support/PluginHandleMapper.h
cannam@206 100 vamp-server/simple-server.o: vamp-support/AssignedPluginHandleMapper.h
cannam@206 101 vamp-server/simple-server.o: vamp-support/DefaultPluginOutputIdMapper.h
cannam@206 102 vamp-server/simple-server.o: vamp-support/LoaderRequests.h
cannam@232 103 vamp-server/simple-server.o: vamp-support/RdfTypes.h
cannam@232 104 vamp-stubber/stubber.o: vamp-json/VampJson.h
cannam@232 105 vamp-stubber/stubber.o: vamp-support/StaticOutputDescriptor.h
cannam@232 106 vamp-stubber/stubber.o: vamp-support/PluginStaticData.h
cannam@232 107 vamp-stubber/stubber.o: vamp-support/StaticOutputDescriptor.h
cannam@232 108 vamp-stubber/stubber.o: vamp-support/PluginConfiguration.h
cannam@232 109 vamp-stubber/stubber.o: vamp-support/RequestResponse.h
cannam@232 110 vamp-stubber/stubber.o: vamp-support/PluginStaticData.h
cannam@232 111 vamp-stubber/stubber.o: vamp-support/PluginConfiguration.h
cannam@232 112 vamp-stubber/stubber.o: vamp-support/PluginHandleMapper.h
cannam@232 113 vamp-stubber/stubber.o: vamp-support/PluginOutputIdMapper.h
cannam@232 114 vamp-stubber/stubber.o: vamp-support/PluginOutputIdMapper.h
cannam@232 115 vamp-stubber/stubber.o: vamp-support/RequestResponseType.h
cannam@232 116 vamp-stubber/stubber.o: vamp-support/RequestOrResponse.h
cannam@232 117 vamp-stubber/stubber.o: vamp-support/RequestResponseType.h
cannam@232 118 vamp-stubber/stubber.o: vamp-support/RequestResponse.h
cannam@232 119 vamp-stubber/stubber.o: vamp-support/LoaderRequests.h vamp-support/RdfTypes.h
cannam@232 120 vamp-stubber/stubber.o: vamp-support/RdfTypes.h
cannam@206 121 ext/json11/json11.o: ext/json11/json11.hpp
cannam@206 122 ext/json11/test.o: ext/json11/json11.hpp
cannam@206 123 test/vamp-client/tst_PluginStub.o: vamp-client/Loader.h
cannam@206 124 test/vamp-client/tst_PluginStub.o: vamp-support/RequestResponse.h
cannam@206 125 test/vamp-client/tst_PluginStub.o: vamp-support/PluginStaticData.h
cannam@206 126 test/vamp-client/tst_PluginStub.o: vamp-support/PluginConfiguration.h
cannam@206 127 test/vamp-client/tst_PluginStub.o: vamp-client/PluginClient.h
cannam@206 128 test/vamp-client/tst_PluginStub.o: vamp-support/PluginConfiguration.h
cannam@213 129 test/vamp-client/tst_PluginStub.o: vamp-client/PiperVampPlugin.h
cannam@206 130 test/vamp-client/tst_PluginStub.o: vamp-support/PluginStaticData.h
cannam@223 131 test/vamp-client/tst_PluginStub.o: vamp-support/StaticOutputDescriptor.h
cannam@206 132 test/vamp-client/tst_PluginStub.o: vamp-client/PluginClient.h
cannam@206 133 vamp-client/qt/test.o: vamp-client/qt/ProcessQtTransport.h
cannam@206 134 vamp-client/qt/test.o: vamp-client/SynchronousTransport.h
cannam@213 135 vamp-client/qt/test.o: vamp-client/Exceptions.h
cannam@213 136 vamp-client/qt/test.o: vamp-client/qt/PiperAutoPlugin.h
cannam@206 137 vamp-client/qt/test.o: vamp-client/CapnpRRClient.h vamp-client/Loader.h
cannam@206 138 vamp-client/qt/test.o: vamp-support/RequestResponse.h
cannam@206 139 vamp-client/qt/test.o: vamp-support/PluginStaticData.h
cannam@206 140 vamp-client/qt/test.o: vamp-support/PluginConfiguration.h
cannam@213 141 vamp-client/qt/test.o: vamp-client/PluginClient.h
cannam@213 142 vamp-client/qt/test.o: vamp-client/PiperVampPlugin.h
cannam@206 143 vamp-client/qt/test.o: vamp-support/PluginStaticData.h
cannam@223 144 vamp-client/qt/test.o: vamp-support/StaticOutputDescriptor.h
cannam@206 145 vamp-client/qt/test.o: vamp-support/PluginConfiguration.h
cannam@206 146 vamp-client/qt/test.o: vamp-client/SynchronousTransport.h
cannam@206 147 vamp-client/qt/test.o: vamp-support/AssignedPluginHandleMapper.h
cannam@206 148 vamp-client/qt/test.o: vamp-support/PluginHandleMapper.h
cannam@206 149 vamp-client/qt/test.o: vamp-support/PluginOutputIdMapper.h
cannam@206 150 vamp-client/qt/test.o: vamp-support/DefaultPluginOutputIdMapper.h
cannam@206 151 vamp-client/qt/test.o: vamp-capnp/VampnProto.h vamp-capnp/piper.capnp.h
cannam@206 152 vamp-client/qt/test.o: vamp-support/PluginHandleMapper.h
cannam@206 153 vamp-client/qt/test.o: vamp-support/PluginOutputIdMapper.h
cannam@206 154 vamp-client/qt/test.o: vamp-support/RequestResponseType.h
cannam@206 155 vamp-capnp/piper.capnp.o: vamp-capnp/piper.capnp.h