summaryrefslogtreecommitdiffstats
path: root/ospfclient
diff options
context:
space:
mode:
authorgdt <gdt>2004-06-30 19:36:11 +0200
committergdt <gdt>2004-06-30 19:36:11 +0200
commit87efd646ffef693235d9d29b005a1467373c51bd (patch)
tree85d43e323abb1de6b1ddb6e889f9d580fdb8546d /ospfclient
parentUse EXTRA_DIST to distribute files, and don't list directories. (diff)
downloadfrr-87efd646ffef693235d9d29b005a1467373c51bd.tar.xz
frr-87efd646ffef693235d9d29b005a1467373c51bd.zip
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.
Diffstat (limited to 'ospfclient')
-rw-r--r--ospfclient/ChangeLog4
-rw-r--r--ospfclient/Makefile.am9
2 files changed, 9 insertions, 4 deletions
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 <gdt@poblano.ir.bbn.com>
+
+ * Makefile.am: Add libtool/shlib support.
+
2003-01-10 Ralph Keller <keller@tik.ee.ethz.ch>
* 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@