Changes between Version 10 and Version 11 of pm-autotools-intro
- Timestamp:
- Apr 16, 2007 7:17:09 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pm-autotools-intro
v10 v11 24 24 You '''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}}}. 25 25 26 Another template file found in many COIN packages is the ''p rjct''{{{_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 projectuses the template file {{{osi_addlibs.txt.in}}}; it contains the single line26 Another 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 27 27 {{{ 28 28 @ADDLIBS@ … … 45 45 46 46 The {{{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_}}}''p rjct''{{{.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.47 use 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. 48 48 49 49 == {{{automake}}} ==