Changes between Version 10 and Version 11 of pm-autotools-intro


Ignore:
Timestamp:
Apr 16, 2007 7:17:09 PM (14 years ago)
Author:
lou
Comment:

Correct usage of package and project.

Legend:

Unmodified
Added
Removed
Modified
  • pm-autotools-intro

    v10 v11  
    2424You '''don't have to create most template files'''; they are generated by the various autotools. For example, {{{automake}}} automatically generates {{{Makefile.in}}} from {{{Makefile.am}}} and {{{configure.ac}}}.
    2525
    26 Another template file found in many COIN packages is the ''prjct''{{{_addlibs.txt.in}}} file, used to generate ''prjct''{{{_addlibs.txt}}}. The generated file includes the string that should be added to the link command to specify additional required libraries.  For example, the OSI project uses the template file {{{osi_addlibs.txt.in}}}; it contains the single line
     26Another template file found in many COIN packages is the ''pkg''{{{_addlibs.txt.in}}} file, used to generate ''pkg''{{{_addlibs.txt}}}. The generated file includes the string that should be added to the link command to specify additional libraries required by the package.  For example, the OSI package uses the template file {{{osi_addlibs.txt.in}}}; it contains the single line
    2727{{{
    2828@ADDLIBS@
     
    4545
    4646The {{{configure}}} script will place {{{#define}}} statements in the configuration header file. These can simply define a symbol or set a symbol to a specific value (such as the path to a default directory).  In COIN, '''the convention is to
    47 use the name {{{config_}}}''prjct''{{{.h}}} for the configuration header file for ''prjct''.''' However, to make it possible to compile the COIN code in environments which do not support autotools (''e.g.'', MS Developer Studio), this file should not be included directly in your source code.  Instead, a '''"wrapper" header file ''Prjct''{{{Config.h}}} should be used'''. On UNIX-like machines this wrapper should include {{{config_}}}''prjct''{{{.h}}}. On other systems, it should include a system specific header file for platform dependencies, plus definitions for other symbols which may need to be changed by the user. Look to existing COIN projects for examples.
     47use the name {{{config_}}}''pkg''{{{.h}}} for the configuration header file for ''pkg''.''' However, to make it possible to compile the COIN code in environments which do not support autotools (''e.g.'', MS Developer Studio), this file should not be included directly in your source code.  Instead, a '''"wrapper" header file ''Pkg''{{{Config.h}}} should be used'''. On UNIX-like machines this wrapper should include {{{config_}}}''pkg''{{{.h}}}. On other systems, it should include a system specific header file for platform dependencies, plus definitions for other symbols which may need to be changed by the user. Look to existing COIN projects for examples.
    4848
    4949== {{{automake}}} ==