Changes between Version 4 and Version 5 of pm-source-make


Ignore:
Timestamp:
Jun 13, 2006 1:16:25 PM (14 years ago)
Author:
andreasw
Comment:

added comment about proper dependencies for LIBADD inclusions

Legend:

Unmodified
Added
Removed
Modified
  • pm-source-make

    v4 v5  
    8585# We want to have also the objects from the DylpStdLib in this library
    8686libDylp_la_LIBADD = ../DylpStdLib/libDylpStdLib.la
    87 }}}
    88 
    89  * If you distribute the source code for a library into several directories, you will have to tell Automake, which libraries should be included in the final library that is going to be installed.  In the above example, taken from the DyLP project, the final library to be installed is {{{libDylp}}} (with the approprate extension, such as "{{{.a}}}").  In the {{{Makefile.am}}} for this library you would find those lines.  The '''LIBADD''' primary tells Autoconf, that the objects from the specified Libtool libraries should be included in the final library.
     87
     88# Since automake is not doing this on its own, we need to declare the
     89# dependencies to the subdirectory libraries here
     90libDylp_la_DEPENDENCIES = $(libDylp_la_LIBADD)
     91}}}
     92
     93 * If you distribute the source code for a library into several directories, you will have to tell Automake, which libraries should be included in the final library that is going to be installed.  In the above example, taken from the DyLP project, the final library to be installed is {{{libDylp}}} (with the approprate extension, such as "{{{.a}}}").  In the {{{Makefile.am}}} for this library you would find those lines.  The '''LIBADD''' primary tells Autoconf, that the objects from the specified Libtool libraries should be included in the final library.  Wee also need to tell automake explicitly, that the {{{libDyLP.la}}} library needs to be updated if any of the libraries change, that are included with {{{LIBADD}}}.
    9094
    9195---------------------------------