Changes between Version 12 and Version 13 of pm-source-make


Ignore:
Timestamp:
May 8, 2011 8:13:43 AM (9 years ago)
Author:
stefan
Comment:

update on config header files

Legend:

Unmodified
Added
Removed
Modified
  • pm-source-make

    v12 v13  
    232232
    233233 * In order to use a COIN-OR library (if it is written in C or C++), a user will need some of the header files in the source directories to compile her/his own code.  For this reason, we specify the required header files (which might only be a subset of all header files in the source directory) in the '''_HEADERS''' Automake variable.  The specification of '''includecoindir''' and the prefix '''includecoin_''' tells {{{automake}}} that these files should be copied into the coin subdirectory of the {{{include}}} installation directory.[[BR]]
    234  Note that you should make sure that the configuration header file (usually in the {{{inc}}} directory) is also installed ('''NOTE''': This will change in the near future, where installing the configuration header file should be avoided).
    235 
    236 {{{
    237   nobase_includecoin_HEADERS = foo.h bar/bar.h
     234 Note that you should make sure that the ''public'' configuration header file (usually in the {{{inc}}} directory) is also installed. '''Do not install the ''private'' configuration header file {{{config.h}}}''', recall the information [wiki:pm-config-header here].
     235
     236{{{
     237nobase_includecoin_HEADERS = foo.h bar/bar.h
    238238}}}
    239239
     
    261261 }}}
    262262
    263  * As discussed in the [wiki:pm-autotools-intro Autotools introduction page], in COIN-OR we don't include the configuration header file (above {{{config_clp.h}}}) directly.  Instead, this is done via the '''''Pkg''Config.h''' file, to make sure that the compilation can also be done smoothly with the Developer Studio. Therefore, the ''Pkg''Config.h header file should also be installed, but it has to be modified slightly.  This is done with the lines above; you should have these in one of your source code {{{Makefile.am}}} files, and adapt the '''!ConfigHeader''' variable for your project.  The {{{install-exec-local}}} is run by the generated Makefile for a {{{make install}}}, and the commands for {{{uninstall-local}}} are executed for the {{{make uninstall}}}.
     263 * As discussed in the [wiki:pm-config-header Configuration Header files page], in COIN-OR we don't include the configuration header files {{{config*.h}}} directly.  Instead, this is done via the '''''Pkg''Config.h''' file, to make sure that the compilation can also be done smoothly in a non-autotools setup. Therefore, the ''Pkg''Config.h header file should also be installed, but it has to be modified slightly.  This is done with the lines above; you should have these in one of your source code {{{Makefile.am}}} files, and adapt the '''!ConfigHeader''' variable for your project.  The {{{install-exec-local}}} is run by the generated Makefile for a {{{make install}}}, and the commands for {{{uninstall-local}}} are executed for the {{{make uninstall}}}.