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/Makefile.am | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ospfclient/Makefile.am') diff --git a/ospfclient/Makefile.am b/ospfclient/Makefile.am index 035ee901..6c5a8cdd 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.1