Mercurial > hg > vamp-plugin-sdk
comparison Makefile @ 61:97c5ac99d725 host-factory-stuff
* install hostext headers to vamp-sdk/hostext/ rather than vamp-sdk/
* adjust timestamps in input-domain adapter so as to centre them on block
as required by Plugin documentation
* better handling for frequency-domain plugins that want non-power-of-two
blocksizes (can't handle them, but at least try offering them a power-of-two
alternative)
* couple of Plugin doc additions
* make PluginLoader capable of returning ready-wrapped plugins
author | cannam |
---|---|
date | Fri, 01 Jun 2007 13:53:42 +0000 |
parents | fa79c4ec847d |
children |
comparison
equal
deleted
inserted
replaced
60:087c16cca0d6 | 61:97c5ac99d725 |
---|---|
58 # have to use "make install". | 58 # have to use "make install". |
59 # | 59 # |
60 INSTALL_PREFIX := /usr/local | 60 INSTALL_PREFIX := /usr/local |
61 INSTALL_API_HEADERS := $(INSTALL_PREFIX)/include/vamp | 61 INSTALL_API_HEADERS := $(INSTALL_PREFIX)/include/vamp |
62 INSTALL_SDK_HEADERS := $(INSTALL_PREFIX)/include/vamp-sdk | 62 INSTALL_SDK_HEADERS := $(INSTALL_PREFIX)/include/vamp-sdk |
63 INSTALL_HOSTEXT_HEADERS := $(INSTALL_PREFIX)/include/vamp-sdk/hostext | |
63 INSTALL_SDK_LIBS := $(INSTALL_PREFIX)/lib | 64 INSTALL_SDK_LIBS := $(INSTALL_PREFIX)/lib |
64 | 65 |
65 INSTALL_SDK_LIBNAME := libvamp-sdk.so.1.0.0 | 66 INSTALL_SDK_LIBNAME := libvamp-sdk.so.1.0.0 |
66 INSTALL_SDK_LINK_ABI := libvamp-sdk.so.1 | 67 INSTALL_SDK_LINK_ABI := libvamp-sdk.so.1 |
67 INSTALL_SDK_LINK_DEV := libvamp-sdk.so | 68 INSTALL_SDK_LINK_DEV := libvamp-sdk.so |
90 | 91 |
91 HOSTSDK_HEADERS = \ | 92 HOSTSDK_HEADERS = \ |
92 $(SDKDIR)/Plugin.h \ | 93 $(SDKDIR)/Plugin.h \ |
93 $(SDKDIR)/PluginBase.h \ | 94 $(SDKDIR)/PluginBase.h \ |
94 $(SDKDIR)/PluginHostAdapter.h \ | 95 $(SDKDIR)/PluginHostAdapter.h \ |
96 $(SDKDIR)/RealTime.h | |
97 | |
98 HOSTEXT_HEADERS = \ | |
95 $(HOSTEXTDIR)/PluginChannelAdapter.h \ | 99 $(HOSTEXTDIR)/PluginChannelAdapter.h \ |
96 $(HOSTEXTDIR)/PluginInputDomainAdapter.h \ | 100 $(HOSTEXTDIR)/PluginInputDomainAdapter.h \ |
97 $(HOSTEXTDIR)/PluginLoader.h \ | 101 $(HOSTEXTDIR)/PluginLoader.h \ |
98 $(HOSTEXTDIR)/PluginWrapper.h \ | 102 $(HOSTEXTDIR)/PluginWrapper.h |
99 $(SDKDIR)/RealTime.h | |
100 | 103 |
101 SDK_OBJECTS = \ | 104 SDK_OBJECTS = \ |
102 $(SDKDIR)/PluginAdapter.o \ | 105 $(SDKDIR)/PluginAdapter.o \ |
103 $(SDKDIR)/RealTime.o | 106 $(SDKDIR)/RealTime.o |
104 | 107 |
159 all: sdk plugins host test | 162 all: sdk plugins host test |
160 | 163 |
161 $(SDK_STATIC): $(SDK_OBJECTS) $(API_HEADERS) $(SDK_HEADERS) | 164 $(SDK_STATIC): $(SDK_OBJECTS) $(API_HEADERS) $(SDK_HEADERS) |
162 $(AR) r $@ $(SDK_OBJECTS) | 165 $(AR) r $@ $(SDK_OBJECTS) |
163 | 166 |
164 $(HOSTSDK_STATIC): $(HOSTSDK_OBJECTS) $(API_HEADERS) $(HOSTSDK_HEADERS) | 167 $(HOSTSDK_STATIC): $(HOSTSDK_OBJECTS) $(API_HEADERS) $(HOSTSDK_HEADERS) $(HOSTEXT_HEADERS) |
165 $(AR) r $@ $(HOSTSDK_OBJECTS) | 168 $(AR) r $@ $(HOSTSDK_OBJECTS) |
166 | 169 |
167 $(SDK_DYNAMIC): $(SDK_OBJECTS) $(API_HEADERS) $(SDK_HEADERS) | 170 $(SDK_DYNAMIC): $(SDK_OBJECTS) $(API_HEADERS) $(SDK_HEADERS) |
168 $(CXX) $(LDFLAGS) $(PLUGIN_LDFLAGS) -o $@ $(SDK_OBJECTS) | 171 $(CXX) $(LDFLAGS) $(PLUGIN_LDFLAGS) -o $@ $(SDK_OBJECTS) |
169 | 172 |
170 $(HOSTSDK_DYNAMIC): $(HOSTSDK_OBJECTS) $(API_HEADERS) $(HOSTSDK_HEADERS) | 173 $(HOSTSDK_DYNAMIC): $(HOSTSDK_OBJECTS) $(API_HEADERS) $(HOSTSDK_HEADERS) $(HOSTEXT_HEADERS) |
171 $(CXX) $(LDFLAGS) $(PLUGIN_LDFLAGS) -o $@ $(HOSTSDK_OBJECTS) | 174 $(CXX) $(LDFLAGS) $(PLUGIN_LDFLAGS) -o $@ $(HOSTSDK_OBJECTS) |
172 | 175 |
173 $(PLUGIN_TARGET): $(PLUGIN_OBJECTS) $(SDK_STATIC) $(PLUGIN_HEADERS) | 176 $(PLUGIN_TARGET): $(PLUGIN_OBJECTS) $(SDK_STATIC) $(PLUGIN_HEADERS) |
174 $(CXX) $(LDFLAGS) $(PLUGIN_LDFLAGS) -o $@ $(PLUGIN_OBJECTS) $(PLUGIN_LIBS) | 177 $(CXX) $(LDFLAGS) $(PLUGIN_LDFLAGS) -o $@ $(PLUGIN_OBJECTS) $(PLUGIN_LIBS) |
175 | 178 |
186 rm -f $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC) $(HOSTSDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET) *~ */*~ | 189 rm -f $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC) $(HOSTSDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET) *~ */*~ |
187 | 190 |
188 install: $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC) $(HOSTSDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET) | 191 install: $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC) $(HOSTSDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET) |
189 mkdir -p $(INSTALL_API_HEADERS) | 192 mkdir -p $(INSTALL_API_HEADERS) |
190 mkdir -p $(INSTALL_SDK_HEADERS) | 193 mkdir -p $(INSTALL_SDK_HEADERS) |
194 mkdir -p $(INSTALL_HOSTEXT_HEADERS) | |
191 mkdir -p $(INSTALL_SDK_LIBS) | 195 mkdir -p $(INSTALL_SDK_LIBS) |
192 mkdir -p $(INSTALL_PKGCONFIG) | 196 mkdir -p $(INSTALL_PKGCONFIG) |
193 cp $(API_HEADERS) $(INSTALL_API_HEADERS) | 197 cp $(API_HEADERS) $(INSTALL_API_HEADERS) |
194 cp $(SDK_HEADERS) $(INSTALL_SDK_HEADERS) | 198 cp $(SDK_HEADERS) $(INSTALL_SDK_HEADERS) |
195 cp $(HOSTSDK_HEADERS) $(INSTALL_SDK_HEADERS) | 199 cp $(HOSTSDK_HEADERS) $(INSTALL_SDK_HEADERS) |
200 cp $(HOSTEXT_HEADERS) $(INSTALL_HOSTEXT_HEADERS) | |
196 cp $(SDK_STATIC) $(INSTALL_SDK_LIBS) | 201 cp $(SDK_STATIC) $(INSTALL_SDK_LIBS) |
197 cp $(HOSTSDK_STATIC) $(INSTALL_SDK_LIBS) | 202 cp $(HOSTSDK_STATIC) $(INSTALL_SDK_LIBS) |
198 cp $(SDK_DYNAMIC) $(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LIBNAME) | 203 cp $(SDK_DYNAMIC) $(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LIBNAME) |
199 cp $(HOSTSDK_DYNAMIC) $(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LIBNAME) | 204 cp $(HOSTSDK_DYNAMIC) $(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LIBNAME) |
200 rm -f $(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_ABI) | 205 rm -f $(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_ABI) |