annotate Makefile @ 219:db929669e7d3

*Ahem* Rebuild for actual capnp v0.6. (Really should find a better way than committing these!) Also simplify Makefile a bit, remove o directory.
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 22 May 2017 08:57:02 +0100 (2017-05-22)
parents a69724686f0b
children e0e3d9efa774
rev   line source
c@75 1
c@75 2 VAMPSDK_DIR := ../vamp-plugin-sdk
c@75 3 PIPER_DIR := ../piper
c@8 4
cannam@150 5 INCFLAGS := -Iext -I$(VAMPSDK_DIR) -I. -I/usr/local/include
cannam@206 6 CXXFLAGS := -Wall -Wextra -Werror -g3 -std=c++11 $(INCFLAGS)
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
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@219 18 all: bin bin/piper-convert bin/piper-vamp-simple-server 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@206 29 bin/test-suite: $(TEST_OBJS)
cannam@206 30 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
dev@201 31 bin/test-suite
c@31 32
cannam@219 33 vamp-capnp/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
c@8 41 test: all
dev@198 42 bin/test-suite -s -d yes
cannam@150 43 vamp-server/test.sh
c@8 44
c@8 45 clean:
c@118 46 rm -f */*.o
c@8 47
c@8 48 distclean: clean
dev@190 49 rm -rf bin/*
c@8 50
cannam@206 51 depend:
cannam@206 52 makedepend -Y. */*.cpp */*/*.cpp */*/*/*.cpp */*.c++
cannam@206 53
c@70 54 # cancel implicit rule which otherwise could try to link %.capnp
c@70 55 %: %.o
cannam@206 56
cannam@206 57 # DO NOT DELETE
cannam@206 58
cannam@206 59 vamp-capnp/piper-capnp.o: vamp-capnp/piper.capnp.c++ vamp-capnp/piper.capnp.h
cannam@206 60 vamp-server/convert.o: vamp-json/VampJson.h vamp-support/PluginStaticData.h
cannam@206 61 vamp-server/convert.o: vamp-support/PluginConfiguration.h
cannam@206 62 vamp-server/convert.o: vamp-support/RequestResponse.h
cannam@206 63 vamp-server/convert.o: vamp-support/PluginStaticData.h
cannam@206 64 vamp-server/convert.o: vamp-support/PluginConfiguration.h
cannam@206 65 vamp-server/convert.o: vamp-support/PluginHandleMapper.h
cannam@206 66 vamp-server/convert.o: vamp-support/PluginOutputIdMapper.h
cannam@206 67 vamp-server/convert.o: vamp-support/PluginOutputIdMapper.h
cannam@206 68 vamp-server/convert.o: vamp-support/RequestResponseType.h
cannam@206 69 vamp-server/convert.o: vamp-capnp/VampnProto.h vamp-capnp/piper.capnp.h
cannam@206 70 vamp-server/convert.o: vamp-support/RequestOrResponse.h
cannam@206 71 vamp-server/convert.o: vamp-support/RequestResponseType.h
cannam@206 72 vamp-server/convert.o: vamp-support/RequestResponse.h
cannam@206 73 vamp-server/convert.o: vamp-support/PreservingPluginHandleMapper.h
cannam@206 74 vamp-server/convert.o: vamp-support/PluginHandleMapper.h
cannam@206 75 vamp-server/convert.o: vamp-support/PreservingPluginOutputIdMapper.h
cannam@206 76 vamp-server/simple-server.o: vamp-json/VampJson.h
cannam@206 77 vamp-server/simple-server.o: vamp-support/PluginStaticData.h
cannam@206 78 vamp-server/simple-server.o: vamp-support/PluginConfiguration.h
cannam@206 79 vamp-server/simple-server.o: vamp-support/RequestResponse.h
cannam@206 80 vamp-server/simple-server.o: vamp-support/PluginStaticData.h
cannam@206 81 vamp-server/simple-server.o: vamp-support/PluginConfiguration.h
cannam@206 82 vamp-server/simple-server.o: vamp-support/PluginHandleMapper.h
cannam@206 83 vamp-server/simple-server.o: vamp-support/PluginOutputIdMapper.h
cannam@206 84 vamp-server/simple-server.o: vamp-support/PluginOutputIdMapper.h
cannam@206 85 vamp-server/simple-server.o: vamp-support/RequestResponseType.h
cannam@206 86 vamp-server/simple-server.o: vamp-capnp/VampnProto.h vamp-capnp/piper.capnp.h
cannam@206 87 vamp-server/simple-server.o: vamp-support/RequestOrResponse.h
cannam@206 88 vamp-server/simple-server.o: vamp-support/RequestResponseType.h
cannam@206 89 vamp-server/simple-server.o: vamp-support/RequestResponse.h
cannam@206 90 vamp-server/simple-server.o: vamp-support/CountingPluginHandleMapper.h
cannam@206 91 vamp-server/simple-server.o: vamp-support/PluginHandleMapper.h
cannam@206 92 vamp-server/simple-server.o: vamp-support/AssignedPluginHandleMapper.h
cannam@206 93 vamp-server/simple-server.o: vamp-support/DefaultPluginOutputIdMapper.h
cannam@206 94 vamp-server/simple-server.o: vamp-support/LoaderRequests.h
cannam@206 95 ext/json11/json11.o: ext/json11/json11.hpp
cannam@206 96 ext/json11/test.o: ext/json11/json11.hpp
cannam@206 97 test/vamp-client/tst_PluginStub.o: vamp-client/Loader.h
cannam@206 98 test/vamp-client/tst_PluginStub.o: vamp-support/RequestResponse.h
cannam@206 99 test/vamp-client/tst_PluginStub.o: vamp-support/PluginStaticData.h
cannam@206 100 test/vamp-client/tst_PluginStub.o: vamp-support/PluginConfiguration.h
cannam@206 101 test/vamp-client/tst_PluginStub.o: vamp-client/PluginClient.h
cannam@206 102 test/vamp-client/tst_PluginStub.o: vamp-support/PluginConfiguration.h
cannam@213 103 test/vamp-client/tst_PluginStub.o: vamp-client/PiperVampPlugin.h
cannam@206 104 test/vamp-client/tst_PluginStub.o: vamp-support/PluginStaticData.h
cannam@206 105 test/vamp-client/tst_PluginStub.o: vamp-client/PluginClient.h
cannam@206 106 vamp-client/qt/test.o: vamp-client/qt/ProcessQtTransport.h
cannam@206 107 vamp-client/qt/test.o: vamp-client/SynchronousTransport.h
cannam@213 108 vamp-client/qt/test.o: vamp-client/Exceptions.h
cannam@213 109 vamp-client/qt/test.o: vamp-client/qt/PiperAutoPlugin.h
cannam@206 110 vamp-client/qt/test.o: vamp-client/CapnpRRClient.h vamp-client/Loader.h
cannam@206 111 vamp-client/qt/test.o: vamp-support/RequestResponse.h
cannam@206 112 vamp-client/qt/test.o: vamp-support/PluginStaticData.h
cannam@206 113 vamp-client/qt/test.o: vamp-support/PluginConfiguration.h
cannam@213 114 vamp-client/qt/test.o: vamp-client/PluginClient.h
cannam@213 115 vamp-client/qt/test.o: vamp-client/PiperVampPlugin.h
cannam@206 116 vamp-client/qt/test.o: vamp-support/PluginStaticData.h
cannam@206 117 vamp-client/qt/test.o: vamp-support/PluginConfiguration.h
cannam@206 118 vamp-client/qt/test.o: vamp-client/SynchronousTransport.h
cannam@206 119 vamp-client/qt/test.o: vamp-support/AssignedPluginHandleMapper.h
cannam@206 120 vamp-client/qt/test.o: vamp-support/PluginHandleMapper.h
cannam@206 121 vamp-client/qt/test.o: vamp-support/PluginOutputIdMapper.h
cannam@206 122 vamp-client/qt/test.o: vamp-support/DefaultPluginOutputIdMapper.h
cannam@206 123 vamp-client/qt/test.o: vamp-capnp/VampnProto.h vamp-capnp/piper.capnp.h
cannam@206 124 vamp-client/qt/test.o: vamp-support/PluginHandleMapper.h
cannam@206 125 vamp-client/qt/test.o: vamp-support/PluginOutputIdMapper.h
cannam@206 126 vamp-client/qt/test.o: vamp-support/RequestResponseType.h
cannam@206 127 vamp-capnp/piper.capnp.o: vamp-capnp/piper.capnp.h