comparison Makefile @ 234:7b12c3decc42 distinct-libraries

* install fixes, mostly
author cannam
date Fri, 07 Nov 2008 16:39:24 +0000
parents 521734d2b498
children 3ad28b1e2150
comparison
equal deleted inserted replaced
233:521734d2b498 234:7b12c3decc42
13 HOSTSDKSRCDIR = src/vamp-hostsdk 13 HOSTSDKSRCDIR = src/vamp-hostsdk
14 14
15 EXAMPLEDIR = examples 15 EXAMPLEDIR = examples
16 HOSTDIR = host 16 HOSTDIR = host
17 PCDIR = pkgconfig 17 PCDIR = pkgconfig
18 LADIR = build
18 RDFGENDIR = rdf/generator 19 RDFGENDIR = rdf/generator
19 20
20 ### 21 ###
21 ### Start of user-serviceable parts 22 ### Start of user-serviceable parts
22 ### 23 ###
113 114
114 SDK_HEADERS = \ 115 SDK_HEADERS = \
115 $(SDKDIR)/Plugin.h \ 116 $(SDKDIR)/Plugin.h \
116 $(SDKDIR)/PluginAdapter.h \ 117 $(SDKDIR)/PluginAdapter.h \
117 $(SDKDIR)/PluginBase.h \ 118 $(SDKDIR)/PluginBase.h \
118 $(SDKDIR)/RealTime.h 119 $(SDKDIR)/RealTime.h \
120 $(SDKDIR)/plugguard.h \
121 $(SDKDIR)/vamp-sdk.h
119 122
120 HOSTSDK_HEADERS = \ 123 HOSTSDK_HEADERS = \
121 $(HOSTSDKDIR)/Plugin.h \ 124 $(HOSTSDKDIR)/Plugin.h \
122 $(HOSTSDKDIR)/PluginBase.h \ 125 $(HOSTSDKDIR)/PluginBase.h \
123 $(HOSTSDKDIR)/PluginHostAdapter.h \ 126 $(HOSTSDKDIR)/PluginHostAdapter.h \
125 $(HOSTSDKDIR)/PluginBufferingAdapter.h \ 128 $(HOSTSDKDIR)/PluginBufferingAdapter.h \
126 $(HOSTSDKDIR)/PluginChannelAdapter.h \ 129 $(HOSTSDKDIR)/PluginChannelAdapter.h \
127 $(HOSTSDKDIR)/PluginInputDomainAdapter.h \ 130 $(HOSTSDKDIR)/PluginInputDomainAdapter.h \
128 $(HOSTSDKDIR)/PluginLoader.h \ 131 $(HOSTSDKDIR)/PluginLoader.h \
129 $(HOSTSDKDIR)/PluginSummarisingAdapter.h \ 132 $(HOSTSDKDIR)/PluginSummarisingAdapter.h \
130 $(HOSTSDKDIR)/PluginWrapper.h 133 $(HOSTSDKDIR)/PluginWrapper.h \
134 $(HOSTSDKDIR)/hostguard.h \
135 $(HOSTSDKDIR)/vamp-hostsdk.h
131 136
132 SDK_OBJECTS = \ 137 SDK_OBJECTS = \
133 $(SDKSRCDIR)/PluginAdapter.o \ 138 $(SDKSRCDIR)/PluginAdapter.o \
134 $(SDKSRCDIR)/RealTime.o 139 $(SDKSRCDIR)/RealTime.o
135 140
154 159
155 HOSTSDK_DYNAMIC = \ 160 HOSTSDK_DYNAMIC = \
156 $(SRCDIR)/libvamp-hostsdk$(PLUGIN_EXT) 161 $(SRCDIR)/libvamp-hostsdk$(PLUGIN_EXT)
157 162
158 SDK_LA = \ 163 SDK_LA = \
159 $(SRCDIR)/libvamp-sdk.la 164 $(LADIR)/libvamp-sdk.la
160 165
161 HOSTSDK_LA = \ 166 HOSTSDK_LA = \
162 $(SRCDIR)/libvamp-hostsdk.la 167 $(LADIR)/libvamp-hostsdk.la
163 168
164 PLUGIN_HEADERS = \ 169 PLUGIN_HEADERS = \
165 $(EXAMPLEDIR)/SpectralCentroid.h \ 170 $(EXAMPLEDIR)/SpectralCentroid.h \
166 $(EXAMPLEDIR)/PercussionOnsetDetector.h \ 171 $(EXAMPLEDIR)/PercussionOnsetDetector.h \
167 $(EXAMPLEDIR)/FixedTempoEstimator.h \ 172 $(EXAMPLEDIR)/FixedTempoEstimator.h \
239 rm -f $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC) $(HOSTSDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET) $(RDFGEN_TARGET) *~ */*~ 244 rm -f $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC) $(HOSTSDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET) $(RDFGEN_TARGET) *~ */*~
240 245
241 install: $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC) $(HOSTSDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET) 246 install: $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC) $(HOSTSDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET)
242 mkdir -p $(DESTDIR)$(INSTALL_API_HEADERS) 247 mkdir -p $(DESTDIR)$(INSTALL_API_HEADERS)
243 mkdir -p $(DESTDIR)$(INSTALL_SDK_HEADERS) 248 mkdir -p $(DESTDIR)$(INSTALL_SDK_HEADERS)
249 mkdir -p $(DESTDIR)$(INSTALL_HOSTSDK_HEADERS)
244 mkdir -p $(DESTDIR)$(INSTALL_SDK_LIBS) 250 mkdir -p $(DESTDIR)$(INSTALL_SDK_LIBS)
245 mkdir -p $(DESTDIR)$(INSTALL_PKGCONFIG) 251 mkdir -p $(DESTDIR)$(INSTALL_PKGCONFIG)
246 cp $(API_HEADERS) $(DESTDIR)$(INSTALL_API_HEADERS) 252 cp $(API_HEADERS) $(DESTDIR)$(INSTALL_API_HEADERS)
247 cp $(SDK_HEADERS) $(DESTDIR)$(INSTALL_SDK_HEADERS) 253 cp $(SDK_HEADERS) $(DESTDIR)$(INSTALL_SDK_HEADERS)
248 cp $(HOSTSDK_HEADERS) $(DESTDIR)$(INSTALL_HOSTSDK_HEADERS) 254 cp $(HOSTSDK_HEADERS) $(DESTDIR)$(INSTALL_HOSTSDK_HEADERS)
256 ln -s $(INSTALL_HOSTSDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_ABI) 262 ln -s $(INSTALL_HOSTSDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_ABI)
257 rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_DEV) 263 rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_DEV)
258 ln -s $(INSTALL_SDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_DEV) 264 ln -s $(INSTALL_SDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_DEV)
259 rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_DEV) 265 rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_DEV)
260 ln -s $(INSTALL_HOSTSDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_DEV) 266 ln -s $(INSTALL_HOSTSDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_DEV)
261 sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(APIDIR)/vamp.pc.in \ 267 sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(PCDIR)/vamp.pc.in \
262 > $(DESTDIR)$(INSTALL_PKGCONFIG)/vamp.pc 268 > $(DESTDIR)$(INSTALL_PKGCONFIG)/vamp.pc
263 sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(SDKDIR)/vamp-sdk.pc.in \ 269 sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(PCDIR)/vamp-sdk.pc.in \
264 > $(DESTDIR)$(INSTALL_PKGCONFIG)/vamp-sdk.pc 270 > $(DESTDIR)$(INSTALL_PKGCONFIG)/vamp-sdk.pc
265 sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(SDKDIR)/vamp-hostsdk.pc.in \ 271 sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(PCDIR)/vamp-hostsdk.pc.in \
266 > $(DESTDIR)$(INSTALL_PKGCONFIG)/vamp-hostsdk.pc 272 > $(DESTDIR)$(INSTALL_PKGCONFIG)/vamp-hostsdk.pc
267 sed -e "s,%LIBNAME%,$(INSTALL_SDK_LIBNAME),g" \ 273 sed -e "s,%LIBNAME%,$(INSTALL_SDK_LIBNAME),g" \
268 -e "s,%LINK_ABI%,$(INSTALL_SDK_LINK_ABI),g" \ 274 -e "s,%LINK_ABI%,$(INSTALL_SDK_LINK_ABI),g" \
269 -e "s,%LINK_DEV%,$(INSTALL_SDK_LINK_DEV),g" \ 275 -e "s,%LINK_DEV%,$(INSTALL_SDK_LINK_DEV),g" \
270 -e "s,%STATIC%,$(INSTALL_SDK_STATIC),g" \ 276 -e "s,%STATIC%,$(INSTALL_SDK_STATIC),g" \