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