changeset 33:909fe32e2c3c

* add .la file
author cannam
date Tue, 01 Aug 2006 09:08:44 +0000
parents 13eae6cc6bac
children cfba7059eccf
files Makefile vamp-sdk/libvamp-sdk.la
diffstat 2 files changed, 32 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Jul 31 16:12:37 2006 +0000
+++ b/Makefile	Tue Aug 01 09:08:44 2006 +0000
@@ -16,17 +16,19 @@
 # have to use "make install".
 #
 INSTALL_PREFIX		:= /usr/local
-INSTALL_API_HEADERS	:= $(INSTALL_PREFIX)/include/vamp/
-INSTALL_SDK_HEADERS	:= $(INSTALL_PREFIX)/include/vamp-sdk/
-INSTALL_SDK_LIBS	:= $(INSTALL_PREFIX)/lib/
-INSTALL_SDK_LIBNAME	:= libvamp-sdk.so.0.9.5
+INSTALL_API_HEADERS	:= $(INSTALL_PREFIX)/include/vamp
+INSTALL_SDK_HEADERS	:= $(INSTALL_PREFIX)/include/vamp-sdk
+INSTALL_SDK_LIBS	:= $(INSTALL_PREFIX)/lib
+INSTALL_SDK_LIBNAME	:= libvamp-sdk.so.0.0.5
 INSTALL_SDK_LINK_ABI	:= libvamp-sdk.so.0
 INSTALL_SDK_LINK_DEV	:= libvamp-sdk.so
-INSTALL_PKGCONFIG	:= $(INSTALL_PREFIX)/lib/pkgconfig/
+INSTALL_SDK_STATIC      := libvamp-sdk.a
+INSTALL_SDK_LA          := libvamp-sdk.la
+INSTALL_PKGCONFIG	:= $(INSTALL_PREFIX)/lib/pkgconfig
 
 # Compile flags
 #
-CXXFLAGS	:= $(CXXFLAGS) -g -Wall -I$(SDKDIR) -I$(APIDIR) -I.
+CXXFLAGS	:= $(CXXFLAGS) -O2 -Wall -I$(SDKDIR) -I$(APIDIR) -I.
 
 # Libraries required for the host at link time
 #
@@ -75,6 +77,9 @@
 SDK_DYNAMIC	= \
 		$(SDKDIR)/libvamp-sdk.so
 
+SDK_LA		= \
+		$(SDKDIR)/libvamp-sdk.la
+
 PLUGIN_HEADERS	= \
 		$(EXAMPLEDIR)/SpectralCentroid.h \
 		$(EXAMPLEDIR)/ZeroCrossing.h
@@ -116,6 +121,9 @@
 clean:		
 		rm -f $(SDK_OBJECTS) $(PLUGIN_OBJECTS) $(HOST_OBJECTS)
 
+distclean:	clean
+		rm -f $(SDK_STATIC) $(SDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET) *~ */*~
+
 install:	$(SDK_STATIC) $(SDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET)
 		mkdir -p $(INSTALL_API_HEADERS)
 		mkdir -p $(INSTALL_SDK_HEADERS)
@@ -129,10 +137,13 @@
 		ln -s $(INSTALL_SDK_LIBNAME) $(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_ABI)
 		rm -f $(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_DEV)
 		ln -s $(INSTALL_SDK_LINK_ABI) $(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_DEV)
-		sed "s,%PREFIX%,$(INSTALL_PREFIX)," vamp/vamp.pc.in > $(INSTALL_PKGCONFIG)/vamp.pc
-		sed "s,%PREFIX%,$(INSTALL_PREFIX)," vamp-sdk/vamp-sdk.pc.in > $(INSTALL_PKGCONFIG)/vamp-sdk.pc
-
-distclean:	clean
-		rm -f $(SDK_STATIC) $(SDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET) *~ */*~
-
-
+		sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(APIDIR)/vamp.pc.in \
+		> $(INSTALL_PKGCONFIG)/vamp.pc
+		sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(SDKDIR)/vamp-sdk.pc.in \
+		> $(INSTALL_PKGCONFIG)/vamp-sdk.pc
+		sed -e "s,%LIBNAME%,$(INSTALL_SDK_LIBNAME),g" \
+		    -e "s,%LINK_ABI%,$(INSTALL_SDK_LINK_ABI),g" \
+		    -e "s,%LINK_DEV%,$(INSTALL_SDK_LINK_DEV),g" \
+		    -e "s,%STATIC%,$(INSTALL_SDK_STATIC),g" \
+		    -e "s,%LIBS%,$(INSTALL_SDK_LIBS),g" $(SDK_LA) \
+		> $(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LA)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vamp-sdk/libvamp-sdk.la	Tue Aug 01 09:08:44 2006 +0000
@@ -0,0 +1,8 @@
+dlname='%LINK_ABI%'
+library_names='%LIBNAME% %LINK_ABI% %LINK_DEV%'
+old_library='%STATIC%'
+dependency_libs=''
+current=0
+age=0
+revision=5
+libdir='%LIBS%'