Changeset 3084 in Sophya for trunk/SophyaLib/BuildMgr


Ignore:
Timestamp:
Sep 21, 2006, 12:35:55 PM (19 years ago)
Author:
cmv
Message:

doc pour utilisation de Sophya cmv 21/9/2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BuildMgr/README

    r3036 r3084  
    1010
    1111
     12====================================
    1213A/ Software build and installation :
    1314====================================
     
    6061-------------------------------------------------------------------------
    6162
    62 B/ Code management scripts
    63 ===========================
     63============================
     64B/ Code management scripts :
     65============================
    6466
    65671/ configure : c-shell script configuration
    66    ./configure -sbase /tmp/sbase/ -scxx cxx -extp /usr/local/extlibs\
     68   ./configure -sbase /tmp/sbase/ -scxx cxx -extp /usr/local/extlibs
    6769
    68702/ mkmflib : c-shell script for creation of library module Makefile / smakefile
     
    9092
    9193
    92 C/ List of modules SOPHYA and PI modules
    93 ========================================
     94==========================================
     95C/ List of modules SOPHYA and PI modules :
     96==========================================
    9497
    9598* BuildMgr/      Scripts for code management and makefiles
     
    130133* ProgPI/        interactive analysis tool using SOPHYA, PI PIGCont and PIext
    131134
     135
     136================================================
     137D/ How to use Sophya libraries and/or programs :
     138================================================
     139
     1401./ Set the Sophya environment variable :
     141  that is the repository where the libraries and the programs stand,
     142  for example:
     143  > setenv SOPHYABASE /home/.../SophyaWork
     144
     145  ..Remark:
     146  The choice of the name is up to you, but if you want
     147  to use versions on different operating systems (or compilators)
     148  the "SOPHYABASE" repository must be different, for example:
     149  > setenv SOPHYABASE /home/.../SophyaWork_Linux_gcc2.95
     150  > setenv SOPHYABASE /home/.../SophyaWork_Linux_gcc4
     151  > setenv SOPHYABASE /home/.../SophyaWork_OSF1_cxx
     152  > setenv SOPHYABASE /home/.../SophyaWork_OSF1_gcc
     153  > ...
     154
     155  So you will find:
     156  ..shared libraries   in:  $SOPHYABASE/slb
     157  ..archived libraries in:  $SOPHYABASE/lib
     158       (you will probably prefer to use the shared versions of the libraries)
     159  ..programs           in:  $SOPHYABASE/exe
     160  ..include files      in:  $SOPHYABASE/include
     161       (you will only need it if you write code using sophya libraries)
     162  ..object files       in:  $SOPHYABASE/obj
     163       (you probably should not have to use it)
     164
     1652./ Using Sophya shared libraries:
     166  As you would do for any software,
     167  add the repository name of Sophya shared libraries to LD_LIBRARY_PATH
     168  > setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${SOPHYABASE}/slb
     169
     1703./ Using Sophya programs:
     171  As you would do for any software,
     172  add the repository name of Sophya programs to PATH
     173  > setenv PATH ${PATH}:${SOPHYABASE}/exe
     174  then recomputed the internal hash table for executables
     175  > rehash
     176
     1774./ Using external libraries which are wrapped in Sophya external modules:
     178  Sophya is presently using the archived version of the external libraries
     179  so nothing special have to be done.
     180
     1815./ Making your own programs:
     182  If you are writing code using Sophya you may like to
     183     "include $(SOPHYABASE)/include/sophyamake.inc"
     184  in your own Makefile.
     185  That will provide you with default variables for the libraries repositories
     186  and names as well as standard compilation and link options for
     187  various current OS and compilators.
     188     (please see: > more $SOPHYABASE/include/sophyamake.inc )
     189  That is JUST AN HELP that Sophya provides, you may prefer
     190  to deal YOURSELF with libraires path/names and compiler/linker options.
Note: See TracChangeset for help on using the changeset viewer.