Next: Building Libtool Libraries Conditionally, Previous: The Libtool Concept, Up: Building a Shared Library [Contents][Index]
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@/
.