Next: , Previous: , Up: Building a Shared Library   [Contents][Index]


7.3.2 Building Libtool Libraries

Automake uses libtool to build libraries declared with the ‘LTLIBRARIES’ primary. Each ‘_LTLIBRARIES’ variable is a list of libtool libraries to build. For instance, to create a libtool library named libgettext.la, and install it in ‘libdir’, write:

lib_LTLIBRARIES = libgettext.la
libgettext_la_SOURCES = gettext.c gettext.h …

Automake predefines the variable ‘pkglibdir’, so you can use pkglib_LTLIBRARIES to install libraries in $(libdir)/@PACKAGE@/.