# Apêndice A. Additional Information

# A.1. Example Makefile.am for a Shared Library

     # Example Makefile.am for a shared library.  It makes a library
     #  called "example" as libexample.so.2.1.2
     # This Makefile.am was taken from the kdelibs distribution and modified
     #  to serve as an example.
     #
     # David Sweet
     #

     INCLUDES=  $(all_includes)

     lib_LTLIBRARIES  = libexample.la

     # Note:  If you specify a:b:c as the version in the next line,
     #  the library that is made has version (a-c).c.b.  In this
     #  example, the version is 2.1.2.
     libexample_la_LDFLAGS = -version-info 3:2:1 $(all_libraries)

     include_HEADERS = header1.h header2.h\
                       header3.h

     # Which headers shouldn't be installed when a   make install  is done?
     noinst_HEADERS = version.h

     libexample_la_SOURCES = code1.cpp code2.cpp
                             code3.cpp

     #  USE_AUTOMOC is great.  This takes care of all of your  moc'ing
     #   dependencies.
     #  (You still need to include, for example, header1.moc in code1.cpp.)
     libexample_la_METASOURCES = USE_AUTOMOC