Libtool abstracts shared and static libraries into a unified concept
henceforth called libtool libraries. Libtool libraries are
files using the .la suffix, and can designate a static library,
a shared library, or maybe both. Their exact nature cannot be
determined until ./configure is run: not all platforms support
all kinds of libraries, and users can explicitly select which
libraries should be built. (However the package’s maintainers can
tune the default; see The LT_INIT
macro in The Libtool Manual.)
Because object files for shared and static libraries must be compiled differently, Libtool is also used during compilation. Object files built by Libtool are called libtool objects: these are files using the .lo suffix. Libtool libraries are built from these libtool objects.
You should not assume anything about the structure of .la or .lo files and how Libtool constructs them; this is Libtool’s concern. However, the existence of these files matters, because they are used as targets and dependencies in Makefile rules when building Libtool libraries. There are situations where you may have to refer to these, for instance when expressing dependencies for building source files conditionally (see Libtool Libraries with Conditional Sources).
People considering writing a plug-in system, with dynamically loaded modules, should look into libltdl: Libtool’s dlopening library (see Using libltdl in The Libtool Manual). This offers a portable dlopening facility to load Libtool libraries dynamically, and can also achieve static linking where unavoidable.
Before we discuss how to use Libtool with Automake in detail, it should be noted that the Libtool manual also has a section about how to use Automake with Libtool (see Using Automake with Libtool in The Libtool Manual).