Changes between Version 10 and Version 11 of user-examples


Ignore:
Timestamp:
May 24, 2009 6:42:24 AM (13 years ago)
Author:
stefan
Comment:

addlibs files are (for a while now already) installed in subdirectories of share/doc/coin

Legend:

Unmodified
Added
Removed
Modified
  • user-examples

    v10 v11  
    8686COINLIBDIR = /home/me/Coin-Pkg/lib
    8787
     88# Directory with directories with addlibs files
     89COINSHAREDIR = /home/me/Coin-Pkg/share/doc/coin
     90
    8891# Libraries necessary to link with Clp
    8992LIBS = -L$(COINLIBDIR) -lCbc -lCgl -lOsiClp -lOsiCbc -lOsi -lClp -lCoinUtils \
    9093         \
    91         `cat $(COINLIBDIR)/cgl_addlibs.txt` \
    92         `cat $(COINLIBDIR)/osi_addlibs.txt` \
    93         `cat $(COINLIBDIR)/clp_addlibs.txt` \
    94         `cat $(COINLIBDIR)/coinutils_addlibs.txt`
     94        `cat $(COINSHAREDIR)/Cgl/cgl_addlibs.txt` \
     95        `cat $(COINSHAREDIR)/Osi/osi_addlibs.txt` \
     96        `cat $(COINSHAREDIR)/Clp/clp_addlibs.txt` \
     97        `cat $(COINSHAREDIR)/CoinUtils/coinutils_addlibs.txt`
    9598
    9699# Necessary Include dirs (we use the CYGPATH_W variables to allow
     
    134137If you compiled the COIN library as a shared object, the '''CXXLINKFLAGS''' is set to the compiler link flag that hardcodes '''the search path to the installed shared libraries''' into the executables (if that is supported on your system).  Alternatively, you can set the {{{LD_LIBRARY_PATH}}} or similarly names environment variable to point to the directory with the COIN shared object.
    135138
    136 The '''LIBS''' variable is set to the '''compiler link flags that are required to link with the COIN library'''.  In the above example, it is the Cbc library.  Note the {{{`cat $(COINLIBDIR)/*_addlibs.txt`}}} entries --- when a COIN library might have additional library dependency (e.g., for the GNU package zlib), the corresponding compiler link flags are listed in the {{{*_addlibs.txt}}} file as a string.  These files are installed in the same location as the libraries.
     139The '''LIBS''' variable is set to the '''compiler link flags that are required to link with the COIN library'''.  In the above example, it is the Cbc library.  Note the {{{`cat $(COINSHAREDIR)/*/*_addlibs.txt`}}} entries --- when a COIN library might have additional library dependency (e.g., for the GNU package zlib), the corresponding compiler link flags are listed in the {{{*_addlibs.txt}}} file as a string.  These files are installed in subdirectories of the share/doc/coin directory.
    137140
    138141The '''generic compilation rules''' (e.g., {{{.c.o}}}) might look somewhat complicated.  But with this, the Makefile can also be used by people who work with the MS compilers (e.g., {{{cl}}}) under Cygwin, since those compilers don't understand the UNIX-type directory paths.  In such a case, the '''CYGPATH_W''' will have been set to "{{{cygpath -w}}}" by {{{configure}}}, otherwise it is just "{{{echo}}}".