comparison Makefile @ 212:d04956cc3deb

Merge remote-tracking branch 'origin/master' into dev/rename-pluginstub
author Chris Cannam <cannam@all-day-breakfast.com>
date Thu, 09 Feb 2017 14:23:51 +0000
parents f7045f7995bc
children a69724686f0b
comparison
equal deleted inserted replaced
210:df65480a08de 212:d04956cc3deb
1 1
2 VAMPSDK_DIR := ../vamp-plugin-sdk 2 VAMPSDK_DIR := ../vamp-plugin-sdk
3 PIPER_DIR := ../piper 3 PIPER_DIR := ../piper
4 4
5 CXXFLAGS := -Wall -Wextra -Werror -g3 -std=c++11
6 INCFLAGS := -Iext -I$(VAMPSDK_DIR) -I. -I/usr/local/include 5 INCFLAGS := -Iext -I$(VAMPSDK_DIR) -I. -I/usr/local/include
6 CXXFLAGS := -Wall -Wextra -Werror -g3 -std=c++11 $(INCFLAGS)
7 7
8 #LDFLAGS := -L$(VAMPSDK_DIR) -L/usr/local/lib -lvamp-hostsdk -lcapnp -lkj 8 #LDFLAGS := -L$(VAMPSDK_DIR) -L/usr/local/lib -lvamp-hostsdk -lcapnp -lkj
9 LDFLAGS := $(VAMPSDK_DIR)/libvamp-hostsdk.a -lcapnp -lkj 9 LDFLAGS := $(VAMPSDK_DIR)/libvamp-hostsdk.a -lcapnp -lkj
10 10
11 LDFLAGS += -ldl 11 LDFLAGS += -ldl
12 12
13 TEST_SRCS := test/vamp-client/tst_PluginStub.cpp 13 TEST_SRCS := test/main.cpp test/vamp-client/tst_PluginStub.cpp
14 TEST_OBJS := $(TEST_SRCS:.cpp=.o)
14 15
15 all: o bin bin/piper-convert bin/piper-vamp-simple-server bin/test-suite 16 all: o bin bin/piper-convert bin/piper-vamp-simple-server bin/test-suite
16 17
17 bin: 18 bin:
18 mkdir bin 19 mkdir bin
23 bin/piper-convert: o/convert.o o/json11.o o/piper.capnp.o 24 bin/piper-convert: o/convert.o o/json11.o o/piper.capnp.o
24 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 25 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
25 26
26 bin/piper-vamp-simple-server: o/simple-server.o o/json11.o o/piper.capnp.o 27 bin/piper-vamp-simple-server: o/simple-server.o o/json11.o o/piper.capnp.o
27 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 28 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
28 29
29 bin/test-suite: test/main.cpp $(TEST_SRCS) 30 bin/test-suite: $(TEST_OBJS)
30 c++ $(CXXFLAGS) $(INCFLAGS) $< $(TEST_SRCS) -o $@ $(LDFLAGS) 31 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
31 bin/test-suite 32 bin/test-suite
32 33
33 o/piper.capnp.o: vamp-capnp/piper.capnp.c++ 34 o/piper.capnp.o: vamp-capnp/piper.capnp.c++
34 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ 35 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
35 36
39 capnpc --src-prefix=$(PIPER_DIR)/capnp -oc++:vamp-capnp $< 40 capnpc --src-prefix=$(PIPER_DIR)/capnp -oc++:vamp-capnp $<
40 41
41 o/json11.o: ext/json11/json11.cpp 42 o/json11.o: ext/json11/json11.cpp
42 c++ $(CXXFLAGS) -c $< -o $@ 43 c++ $(CXXFLAGS) -c $< -o $@
43 44
44 o/convert.o: vamp-server/convert.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h 45 o/convert.o: vamp-server/convert.cpp
45 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ 46 c++ $(CXXFLAGS) -c $< -o $@
46 47
47 o/simple-server.o: vamp-server/simple-server.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h 48 o/simple-server.o: vamp-server/simple-server.cpp
48 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ 49 c++ $(CXXFLAGS) -c $< -o $@
49 50
50 test: all 51 test: all
51 bin/test-suite -s -d yes 52 bin/test-suite -s -d yes
52 vamp-server/test.sh 53 vamp-server/test.sh
53 54
55 rm -f */*.o 56 rm -f */*.o
56 57
57 distclean: clean 58 distclean: clean
58 rm -rf bin/* 59 rm -rf bin/*
59 60
61 depend:
62 makedepend -Y. */*.cpp */*/*.cpp */*/*/*.cpp */*.c++
63
60 # cancel implicit rule which otherwise could try to link %.capnp 64 # cancel implicit rule which otherwise could try to link %.capnp
61 %: %.o 65 %: %.o
66
67 # DO NOT DELETE
68
69 vamp-capnp/piper-capnp.o: vamp-capnp/piper.capnp.c++ vamp-capnp/piper.capnp.h
70 vamp-server/convert.o: vamp-json/VampJson.h vamp-support/PluginStaticData.h
71 vamp-server/convert.o: vamp-support/PluginConfiguration.h
72 vamp-server/convert.o: vamp-support/RequestResponse.h
73 vamp-server/convert.o: vamp-support/PluginStaticData.h
74 vamp-server/convert.o: vamp-support/PluginConfiguration.h
75 vamp-server/convert.o: vamp-support/PluginHandleMapper.h
76 vamp-server/convert.o: vamp-support/PluginOutputIdMapper.h
77 vamp-server/convert.o: vamp-support/PluginOutputIdMapper.h
78 vamp-server/convert.o: vamp-support/RequestResponseType.h
79 vamp-server/convert.o: vamp-capnp/VampnProto.h vamp-capnp/piper.capnp.h
80 vamp-server/convert.o: vamp-support/RequestOrResponse.h
81 vamp-server/convert.o: vamp-support/RequestResponseType.h
82 vamp-server/convert.o: vamp-support/RequestResponse.h
83 vamp-server/convert.o: vamp-support/PreservingPluginHandleMapper.h
84 vamp-server/convert.o: vamp-support/PluginHandleMapper.h
85 vamp-server/convert.o: vamp-support/PreservingPluginOutputIdMapper.h
86 vamp-server/simple-server.o: vamp-json/VampJson.h
87 vamp-server/simple-server.o: vamp-support/PluginStaticData.h
88 vamp-server/simple-server.o: vamp-support/PluginConfiguration.h
89 vamp-server/simple-server.o: vamp-support/RequestResponse.h
90 vamp-server/simple-server.o: vamp-support/PluginStaticData.h
91 vamp-server/simple-server.o: vamp-support/PluginConfiguration.h
92 vamp-server/simple-server.o: vamp-support/PluginHandleMapper.h
93 vamp-server/simple-server.o: vamp-support/PluginOutputIdMapper.h
94 vamp-server/simple-server.o: vamp-support/PluginOutputIdMapper.h
95 vamp-server/simple-server.o: vamp-support/RequestResponseType.h
96 vamp-server/simple-server.o: vamp-capnp/VampnProto.h vamp-capnp/piper.capnp.h
97 vamp-server/simple-server.o: vamp-support/RequestOrResponse.h
98 vamp-server/simple-server.o: vamp-support/RequestResponseType.h
99 vamp-server/simple-server.o: vamp-support/RequestResponse.h
100 vamp-server/simple-server.o: vamp-support/CountingPluginHandleMapper.h
101 vamp-server/simple-server.o: vamp-support/PluginHandleMapper.h
102 vamp-server/simple-server.o: vamp-support/AssignedPluginHandleMapper.h
103 vamp-server/simple-server.o: vamp-support/DefaultPluginOutputIdMapper.h
104 vamp-server/simple-server.o: vamp-support/LoaderRequests.h
105 ext/json11/json11.o: ext/json11/json11.hpp
106 ext/json11/test.o: ext/json11/json11.hpp
107 test/vamp-client/tst_PluginStub.o: vamp-client/Loader.h
108 test/vamp-client/tst_PluginStub.o: vamp-support/RequestResponse.h
109 test/vamp-client/tst_PluginStub.o: vamp-support/PluginStaticData.h
110 test/vamp-client/tst_PluginStub.o: vamp-support/PluginConfiguration.h
111 test/vamp-client/tst_PluginStub.o: vamp-client/PluginClient.h
112 test/vamp-client/tst_PluginStub.o: vamp-support/PluginConfiguration.h
113 test/vamp-client/tst_PluginStub.o: vamp-client/PluginStub.h
114 test/vamp-client/tst_PluginStub.o: vamp-support/PluginStaticData.h
115 test/vamp-client/tst_PluginStub.o: vamp-client/PluginClient.h
116 vamp-client/qt/test.o: vamp-client/qt/ProcessQtTransport.h
117 vamp-client/qt/test.o: vamp-client/SynchronousTransport.h
118 vamp-client/qt/test.o: vamp-client/Exceptions.h vamp-client/qt/AutoPlugin.h
119 vamp-client/qt/test.o: vamp-client/CapnpRRClient.h vamp-client/Loader.h
120 vamp-client/qt/test.o: vamp-support/RequestResponse.h
121 vamp-client/qt/test.o: vamp-support/PluginStaticData.h
122 vamp-client/qt/test.o: vamp-support/PluginConfiguration.h
123 vamp-client/qt/test.o: vamp-client/PluginClient.h vamp-client/PluginStub.h
124 vamp-client/qt/test.o: vamp-support/PluginStaticData.h
125 vamp-client/qt/test.o: vamp-support/PluginConfiguration.h
126 vamp-client/qt/test.o: vamp-client/SynchronousTransport.h
127 vamp-client/qt/test.o: vamp-support/AssignedPluginHandleMapper.h
128 vamp-client/qt/test.o: vamp-support/PluginHandleMapper.h
129 vamp-client/qt/test.o: vamp-support/PluginOutputIdMapper.h
130 vamp-client/qt/test.o: vamp-support/DefaultPluginOutputIdMapper.h
131 vamp-client/qt/test.o: vamp-capnp/VampnProto.h vamp-capnp/piper.capnp.h
132 vamp-client/qt/test.o: vamp-support/PluginHandleMapper.h
133 vamp-client/qt/test.o: vamp-support/PluginOutputIdMapper.h
134 vamp-client/qt/test.o: vamp-support/RequestResponseType.h
135 vamp-capnp/piper.capnp.o: vamp-capnp/piper.capnp.h