libopen: build with libtool
authorAndreas Oberritter <obi@opendreambox.org>
Thu, 21 Oct 2010 23:05:17 +0000 (23:05 +0000)
committerAndreas Oberritter <obi@opendreambox.org>
Tue, 16 Nov 2010 15:08:51 +0000 (16:08 +0100)
configure.ac
tools/Makefile.am

index b6e2d95a510c8bd52ae771badf53ed36e0c23bbd..c8aeb27a089bf4289992cac964bb7c9aec4e6ef2 100644 (file)
@@ -6,7 +6,7 @@ TUXBOX_APPS_DIRECTORY
 
 AC_PROG_CC
 AC_PROG_CXX
-AC_PROG_RANLIB
+LT_INIT
 AC_CONFIG_MACRO_DIR([m4])
 
 AC_ARG_WITH(libsdl,
index 82301a610dd249b40d1b629b65609df2fd80ef98..4e1e8efdc3bb0e6938161fe76b315ae22ae82bff 100644 (file)
@@ -1,9 +1,4 @@
-libopen.so.0.0: libopen.c
-       $(CXX) -Wall -W libopen.c -O2 -nostartfiles -shared -fPIC -Wl,-soname,libopen.so.0 -o libopen.so.0.0 -ldl
+lib_LTLIBRARIES = libopen.la
 
-all: libopen.so.0.0
-
-CLEANFILES = libopen.so.0.0
-
-install: all
-       $(INSTALL) libopen.so.0.0 $(DESTDIR)/usr/lib
+libopen_la_SOURCES = libopen.c
+libopen_la_LIBADD = -ldl