| [3029] | 1 | ======================== BuildMgr Module ======================
 | 
|---|
 | 2 | == Code Management scripts / top level makefile for SOPHYA ====
 | 
|---|
 | 3 | ===============================================================
 | 
|---|
 | 4 | 
 | 
|---|
 | 5 | ### README file for SOPHYA Build makefiles and scripts (BuildMgr) ####
 | 
|---|
 | 6 | See http://www.sophya.org and the SOPHYA overview manual for more information
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | 
 | 
|---|
 | 9 | A/ Software build and installation :
 | 
|---|
 | 10 | ====================================
 | 
|---|
 | 11 | 
 | 
|---|
 | 12 | 1/ Configuration: 
 | 
|---|
 | 13 | csh> cd BuildMgr/
 | 
|---|
 | 14 | csh> ./configure -h
 | 
|---|
 | 15 | # configure with c-fitsio, installed in /usr/local/include and /usr/local/lib, 
 | 
|---|
 | 16 | # with g++ as cxx compiler. The target installation directory is $HOME/SObjs/ 
 | 
|---|
 | 17 | # To get c-fitsio : http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
 | 
|---|
 | 18 | 
 | 
|---|
 | 19 | 
 | 
|---|
 | 20 | # Create the target installation directory (if not already existing)
 | 
|---|
 | 21 | csh> mkdir ~/SObjs
 | 
|---|
 | 22 | # Define the SOPHYABASE environment variable
 | 
|---|
 | 23 | csh> setenv $SOPHYABASE ~/SObjs/
 | 
|---|
 | 24 | # run the configure script 
 | 
|---|
 | 25 | csh> ./configure -sbase $SOPHYABASE -scxx g++ -extp /usr/local 
 | 
|---|
 | 26 |      -noext fftw -noext lapack -noext astro -noext minuit
 | 
|---|
 | 27 | 
 | 
|---|
 | 28 | 2/ compile and build the libraries
 | 
|---|
 | 29 | csh> make libs extlibs slb slbext 
 | 
|---|
 | 30 | # Or if you want to compile also PI (need Motif or Lesstif)
 | 
|---|
 | 31 | csh> make all slball 
 | 
|---|
 | 32 | 
 | 
|---|
 | 33 | 3/ Compile some test and utility programs
 | 
|---|
 | 34 | csh> make basetests prgutil 
 | 
|---|
 | 35 | # To compile piapp
 | 
|---|
 | 36 | csh> make piapp 
 | 
|---|
 | 37 | 
 | 
|---|
| [3030] | 38 | 4/ You can clean the .o files, if you are not going to recompile after 
 | 
|---|
 | 39 | changing or update source files
 | 
|---|
 | 40 | csh> make cleanobj
 | 
|---|
 | 41 | 
 | 
|---|
 | 42 | 5/ List of Makefile targets
 | 
|---|
 | 43 |   > libs extlibs PI = all 
 | 
|---|
 | 44 |   > slb slbext slbpi = slball    (OR = slballinone)
 | 
|---|
 | 45 |   > clean  cleanobj
 | 
|---|
 | 46 |   > tests prgutil prgmap progpi = prgall 
 | 
|---|
 | 47 |   > basetests piapp (ou progpi)  pmixer 
 | 
|---|
 | 48 | 
 | 
|---|
 | 49 | 6/ Currently tested on the following platform/compilers
 | 
|---|
| [3029] | 50 | -------------------------------------------------------------------------
 | 
|---|
 | 51 | Linux 2.4 , 2.6              g++ 3.x 4.0     (GNU g++ compiler)             
 | 
|---|
 | 52 | MacOSX/Darwin 10.3/104       g++ 3.3,4.0     (Apple/GNU compiler)
 | 
|---|
 | 53 | Linux 2.4                    icc 9.0         (Intel compiler)                  
 | 
|---|
 | 54 | HP/Compaq/DEC OSF 5.x        cxx 6.x         (native Tru64/OSF compiler)
 | 
|---|
 | 55 | SGI IRIX64                   CC  7.30        (IRIX-64 native compiler)
 | 
|---|
 | 56 | IBM AIX                      xlC 7.x         (AIX native compiler)
 | 
|---|
 | 57 | -------------------------------------------------------------------------
 | 
|---|
 | 58 | 
 | 
|---|
 | 59 | B/ Code management scripts
 | 
|---|
 | 60 | ===========================
 | 
|---|
 | 61 | 
 | 
|---|
| [2720] | 62 | 1/ configure : c-shell script configuration 
 | 
|---|
| [3029] | 63 |    ./configure -sbase /tmp/sbase/ -scxx cxx -extp /usr/local/extlibs\
 | 
|---|
| [2720] | 64 | 
 | 
|---|
 | 65 | 2/ mkmflib : c-shell script for creation of library module Makefile / smakefile
 | 
|---|
 | 66 |    ./mkmflib -sbase /tmp/sbase SUtils
 | 
|---|
 | 67 | 
 | 
|---|
| [2739] | 68 | 3/ mkmfprog : c-shell script for creation of programs module Makefile / smakefile
 | 
|---|
 | 69 |    ./mkmfprog -sbase /tmp/sbase SUtils
 | 
|---|
 | 70 | 
 | 
|---|
 | 71 | 4/ domkmf : c-shell script : calls mkmflib for all modules 
 | 
|---|
| [2720] | 72 |    ./domkmf -sbase /tmp/sbase
 | 
|---|
 | 73 | 
 | 
|---|
| [3029] | 74 | 5/ chk_cvs.csh : Compares/updates modules using CVS
 | 
|---|
 | 75 |   Usage: chk_cvs.csh [-a] [-all] [-nos] [-u] [r]
 | 
|---|
 | 76 |          chk_cvs.csh  -h  for help
 | 
|---|
| [2720] | 77 | 
 | 
|---|
| [3029] | 78 | 6/ Makefile/smakefile : Top level makefile for library and program modules 
 | 
|---|
 | 79 | 
 | 
|---|
 | 80 | 7/ Configuration files used to generate sophyamake.inc
 | 
|---|
 | 81 |    - Linux_g++_make.inc: Linux with g++ compiler 
 | 
|---|
 | 82 |    - OSF1_cxx_make.inc:  HP/Compaq/Digital Tru64 with native cxx compiler
 | 
|---|
 | 83 |    - Darwin_g++_make.inc: Apple/MacOSX with the native GNU compiler
 | 
|---|
 | 84 |    - IRIX64_CC_make.inc: SGI IRIX-64 system and native CC compiler 
 | 
|---|
 | 85 |    - AIX_xlC_make.inc : IBM AIX system and compiler xlC 
 | 
|---|
 | 86 |    - Linux_icc_make.inc : Linux with Intel compiler
 | 
|---|
 | 87 | 
 | 
|---|
 | 88 | 
 | 
|---|
 | 89 | C/ List of modules SOPHYA and PI modules
 | 
|---|
 | 90 | ========================================
 | 
|---|
 | 91 | 
 | 
|---|
 | 92 | * BuildMgr/      Scripts for code management and makefiles
 | 
|---|
 | 93 | * BaseTools/     General architecture support classes
 | 
|---|
 | 94 | * TArray/        Template numerical arrays, vectors and matrices
 | 
|---|
 | 95 | * HiStats/       Histogram-ming and data set handling classes
 | 
|---|
 | 96 | * NTools/        Some standard numerical analysis tools 
 | 
|---|
 | 97 | * SUtils/        Utility classes and functions
 | 
|---|
 | 98 | * SysTools/      Interface to various services provided by the operating system
 | 
|---|
 | 99 | * SkyMap/        Local and full sky maps
 | 
|---|
 | 100 | * SkyT/          Spectral emission and detector frequency response modelling   
 | 
|---|
 | 101 | * Samba/         Miscellaneous classes (TOD analysis, Spherical Harmonics, ...)
 | 
|---|
 | 102 | 
 | 
|---|
 | 103 | Modules using external library 
 | 
|---|
 | 104 | * FitsIOServer/  FITS format file I/O (interface with cfitsio library)
 | 
|---|
 | 105 | * LinAlg/        Interface with Lapack linear algebra package
 | 
|---|
 | 106 | * IFFTW/         Interface with FFTW package
 | 
|---|
 | 107 | * XAstroPack/    Interface with astronomy library (XEphem)
 | 
|---|
 | 108 |                  The XEphem library code is in the SOPHYA module XephemAstroLib
 | 
|---|
 | 109 | * MinuitAdapt/   Inteface with the CERN Minuit minimization routines
 | 
|---|
 | 110 | 
 | 
|---|
 | 111 | * XephemAstroLib/ The code of the external XEphem astronomy library, extracted from XEphem
 | 
|---|
 | 112 | 
 | 
|---|
 | 113 | Modules with main programs
 | 
|---|
 | 114 | * Tests/         Simple test programs
 | 
|---|
 | 115 | 
 | 
|---|
 | 116 | * PMixer/        skymixer and utility main programs
 | 
|---|
 | 117 | 
 | 
|---|
 | 118 | * PrgUtil/       Utility main programs
 | 
|---|
 | 119 | 
 | 
|---|
 | 120 | * PrgMap/        Utility main programs for sky map manipulation
 | 
|---|
 | 121 | 
 | 
|---|
 | 122 | PI/piapp GUI and interactive analysis framework
 | 
|---|
 | 123 | 
 | 
|---|
 | 124 | * PI/            GUI class library and application framework
 | 
|---|
 | 125 | * PIGcont/       PI contour drawer
 | 
|---|
 | 126 | * PIext/         specific GUI objects for SOPHYA classes and piapp framework
 | 
|---|
 | 127 | * ProgPI/        interactive analysis tool using SOPHYA, PI PIGCont and PIext
 | 
|---|
 | 128 | 
 | 
|---|