[IOMultiplexerV2] use libtool to generate libraries
authorpk910 <philipp@zoelle1.de>
Sat, 15 Mar 2014 01:58:22 +0000 (02:58 +0100)
committerpk910 <philipp@zoelle1.de>
Sat, 15 Mar 2014 01:58:22 +0000 (02:58 +0100)
configure.ac
src/IOHandler++/.gitignore
src/IOHandler++/Makefile.am
src/IOHandler/.gitignore
src/IOHandler/Makefile.am
src/IOHandler_test/resolv/Makefile.am
src/IOHandler_test/socket++/Makefile.am
src/IOHandler_test/socket/Makefile.am
src/IOHandler_test/timer/Makefile.am

index d6522e1ca29d3a137e8325d9a728875f1b5f1ce0..d9cdd6a4c28ddbb50187cba47517b4483768095d 100644 (file)
@@ -8,7 +8,7 @@ AM_INIT_AUTOMAKE([foreign])
 AM_SILENT_RULES([yes])
 AC_CONFIG_HEADERS([config.h])
 
-#LT_INIT([disable-static])
+LT_INIT([disable-static])
 
 AC_MSG_RESULT($MODULES)
 AC_SUBST(MODULES)
@@ -19,7 +19,7 @@ AC_PROG_CC
 AC_PROG_CXX
 AC_PROG_INSTALL
 AC_PROG_MAKE_SET
-AC_PROG_RANLIB
+AC_PROG_LIBTOOL
 
 AC_ARG_ENABLE([debug],
   [AS_HELP_STRING([--enable-debug], [debug mode (compile using -O0 -Wall -Wshadow -Werror)])],
index 95c93429b3544ccb21f59788c8f5956013d08ba0..1f36bcd8cbe07085faa96222b366cdc8c0a62f07 100644 (file)
@@ -1,5 +1,6 @@
 .deps
+.libs
 Makefile.in
 Makefile
-*.o
-*.a
+*.lo
+*.la
index cb9ced40ddb492189b740a6f72914a9a613d7f9d..df2e17cd80c383a980d531a9a17dee5e45784a29 100644 (file)
@@ -1,9 +1,11 @@
 ##Process this file with automake to create Makefile.in
 ACLOCAL_AMFLAGS = -I m4
 
-noinst_LIBRARIES = libiohandler.cpp.a
+noinst_LTLIBRARIES = libiohandler.cpp.la
 
-libiohandler_cpp_a_LIBADD = ../IOHandler/libiohandler.a
-libiohandler_cpp_a_SOURCES = IOHandler.cpp \
+libiohandler_cpp_la_LIBADD = ../IOHandler/libiohandler.la
+libiohandler_cpp_la_SOURCES = IOHandler.cpp \
 IOSocket.cpp
 
+all-local: libiohandler.cpp.la
+       
\ No newline at end of file
index 95c93429b3544ccb21f59788c8f5956013d08ba0..1f36bcd8cbe07085faa96222b366cdc8c0a62f07 100644 (file)
@@ -1,5 +1,6 @@
 .deps
+.libs
 Makefile.in
 Makefile
-*.o
-*.a
+*.lo
+*.la
index ab0142fcb215a687361e70b9280f34664e0f7613..14edac2ae922a894bdba6416757cdfeb60a185a9 100644 (file)
@@ -1,7 +1,7 @@
 ##Process this file with automake to create Makefile.in
 ACLOCAL_AMFLAGS = -I m4
 
-libiohandler_a_SOURCES = compat/utime.c \
+libiohandler_la_SOURCES = compat/utime.c \
     compat/inet.c \
     IOHandler.c \
     IODNSEngine_cares.c \
@@ -17,4 +17,4 @@ libiohandler_a_SOURCES = compat/utime.c \
     IOSSLBackend.c \
     IOTimer.c
 
-noinst_LIBRARIES = libiohandler.a
+noinst_LTLIBRARIES = libiohandler.la
index 1dac3a542b2b9008fe8a3e83465e025f20c72d8f..feda450aef9fdfdecf5f23c7a196783ba74b308c 100644 (file)
@@ -2,7 +2,7 @@
 ACLOCAL_AMFLAGS = -I m4
 
 noinst_PROGRAMS = iotest
-iotest_LDADD = ../../IOHandler/libiohandler.a
+iotest_LDADD = ../../IOHandler/libiohandler.la
 
 iotest_SOURCES = iotest.c
 
index fdf06d388df682233f6673472fdaedff4d7dfdbf..0591fea0fb1f326035c15b1c42ac9a4bdd4a01a4 100644 (file)
@@ -3,6 +3,5 @@ ACLOCAL_AMFLAGS = -I m4
 
 noinst_PROGRAMS = iotest
 
-iotest_LDADD = ../../IOHandler++/libiohandler.cpp.a \
-../../IOHandler/libiohandler.a
+iotest_LDADD = ../../IOHandler++/libiohandler.cpp.la
 iotest_SOURCES = iotest.cpp
index 1dac3a542b2b9008fe8a3e83465e025f20c72d8f..feda450aef9fdfdecf5f23c7a196783ba74b308c 100644 (file)
@@ -2,7 +2,7 @@
 ACLOCAL_AMFLAGS = -I m4
 
 noinst_PROGRAMS = iotest
-iotest_LDADD = ../../IOHandler/libiohandler.a
+iotest_LDADD = ../../IOHandler/libiohandler.la
 
 iotest_SOURCES = iotest.c
 
index 1dac3a542b2b9008fe8a3e83465e025f20c72d8f..feda450aef9fdfdecf5f23c7a196783ba74b308c 100644 (file)
@@ -2,7 +2,7 @@
 ACLOCAL_AMFLAGS = -I m4
 
 noinst_PROGRAMS = iotest
-iotest_LDADD = ../../IOHandler/libiohandler.a
+iotest_LDADD = ../../IOHandler/libiohandler.la
 
 iotest_SOURCES = iotest.c