From 87efd646ffef693235d9d29b005a1467373c51bd Mon Sep 17 00:00:00 2001 From: gdt Date: Wed, 30 Jun 2004 17:36:11 +0000 Subject: Add libtool support. libzebra and libospfapiclient are now built shared, and linked shared with the daemons. This reduces the memory needed when running multiple daemons; each daemon is at least 150k smaller. Static libraries are still built, and libtool should use them on platforms which don't have shared libaries. As with autoconf, the user of a distribution does not need libtool; one just needs that to build from CVS. libospf.a is still a non-shared library, and still installed, not because that makese sense, but because I don't understand why it is the way it is now. Note that the tree was tagged 'libtool-before' just before this commit. --- ospfclient/ChangeLog | 4 ++++ ospfclient/Makefile.am | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'ospfclient') diff --git a/ospfclient/ChangeLog b/ospfclient/ChangeLog index 275b14ef5..08653f406 100644 --- a/ospfclient/ChangeLog +++ b/ospfclient/ChangeLog @@ -1,3 +1,7 @@ +2004-06-30 Greg Troxel + + * Makefile.am: Add libtool/shlib support. + 2003-01-10 Ralph Keller * New ChangeLog diff --git a/ospfclient/Makefile.am b/ospfclient/Makefile.am index 035ee9012..6c5a8cdd8 100644 --- a/ospfclient/Makefile.am +++ b/ospfclient/Makefile.am @@ -2,10 +2,10 @@ INCLUDES = -I../lib -I../ -lib_LIBRARIES = libospfapiclient.a +lib_LTLIBRARIES = libospfapiclient.la sbin_PROGRAMS = ospfclient -libospfapiclient_a_SOURCES = \ +libospfapiclient_la_SOURCES = \ ospf_apiclient.c ospfapiheaderdir = $(pkgincludedir)/ospfapi @@ -14,8 +14,9 @@ ospfapiheader_HEADERS = \ ospf_apiclient.h ospfclient_SOURCES = \ - ospfclient.c $(libospfapiclient_a_SOURCES) + ospfclient.c -ospfclient_LDADD = ../ospfd/libospf.a ../lib/libzebra.a @LIBCAP@ +ospfclient_LDADD = libospfapiclient.la \ + -L../ospfd -lospf -L../lib -lzebra @LIBCAP@ -- cgit v1.2.3