| 1 | #!/bin/csh | 
|---|
| 2 | # $1 = -c : clean | 
|---|
| 3 | #    = -h help | 
|---|
| 4 |  | 
|---|
| 5 | unset C | 
|---|
| 6 | if( "$1" == '-h' ) then | 
|---|
| 7 | echo "usage comp_all [-c]" | 
|---|
| 8 | echo "    -c : Clean" | 
|---|
| 9 | echo "ex:   time ./comp_all    |& tee -a comp.log_${SOPHYACXX}_`uname`" | 
|---|
| 10 | echo "ex:   time ./comp_all -c |& tee    comp.log_${SOPHYACXX}_`uname`" | 
|---|
| 11 | exit -1 | 
|---|
| 12 | else | 
|---|
| 13 | while( $#argv>0 ) | 
|---|
| 14 | if( "$1" == "-c") set C | 
|---|
| 15 | shift | 
|---|
| 16 | end | 
|---|
| 17 | endif | 
|---|
| 18 |  | 
|---|
| 19 | set HERE = `pwd` | 
|---|
| 20 | echo vous etes dans: $HERE | 
|---|
| 21 | if ( ! $?SOPHYABASEREP ) then | 
|---|
| 22 | echo variable SOPHYABASEREP non definie | 
|---|
| 23 | exit -1 | 
|---|
| 24 | endif | 
|---|
| 25 | echo variable SOPHYABASEREP = $SOPHYABASEREP | 
|---|
| 26 | echo variable SOPHYACXX = $SOPHYACXX | 
|---|
| 27 | set diru = $SOPHYABASEREP/`uname`-$SOPHYACXX | 
|---|
| 28 | echo repertoire pour les obj/lib/exe DPC: ${diru} | 
|---|
| 29 | echo DEBUT DE COMPILATION `date` | 
|---|
| 30 | echo "----"; echo "----"; echo "----"; echo "----"; echo "----"; | 
|---|
| 31 | echo "----"; echo "----"; echo "----"; echo "----"; echo "----"; | 
|---|
| 32 | echo "----"; echo "----"; echo "----"; echo "----"; echo "----"; | 
|---|
| 33 | echo "----"; echo "----"; echo "----"; echo "----"; echo "----"; | 
|---|
| 34 |  | 
|---|
| 35 | echo =========== preparation des makefiles speciales | 
|---|
| 36 |  | 
|---|
| 37 | ln -sf ./Mgr/Makefile . | 
|---|
| 38 |  | 
|---|
| 39 | ### Sur OSF, pour avoir "-blas" a la place de "-dxml" changer dans GNUmakefile | 
|---|
| 40 | ###          et dans MakefileUser.h | 
|---|
| 41 | set sopmakefile = GNUmakefile | 
|---|
| 42 | #set sopmakefile = Makefile | 
|---|
| 43 |  | 
|---|
| 44 | echo =========== clean | 
|---|
| 45 | if( $?C ) then | 
|---|
| 46 | make clean | 
|---|
| 47 | rm -f ${diru}/Objs/* | 
|---|
| 48 | rm -f ${diru}/Libs/* | 
|---|
| 49 | rm -f ${diru}/ShLibs/* | 
|---|
| 50 | rm -f ${diru}/Exec/* | 
|---|
| 51 | ls -R ${diru}/. | 
|---|
| 52 | endif | 
|---|
| 53 |  | 
|---|
| 54 | if( 0 ) then | 
|---|
| 55 | echo =========== CodeMinuit | 
|---|
| 56 | cd $HERE/CodeMinuit | 
|---|
| 57 | make cleanall | 
|---|
| 58 | make | 
|---|
| 59 | make install | 
|---|
| 60 | make cleanall | 
|---|
| 61 | endif | 
|---|
| 62 |  | 
|---|
| 63 | echo =========== MinuitAdapt | 
|---|
| 64 | cd $HERE/MinuitAdapt | 
|---|
| 65 | if( $?C ) make clean | 
|---|
| 66 | make | 
|---|
| 67 | make install | 
|---|
| 68 |  | 
|---|
| 69 | if( 0 ) then | 
|---|
| 70 | echo =========== XephemAstroLib | 
|---|
| 71 | cd $HERE/XephemAstroLib | 
|---|
| 72 | make clean | 
|---|
| 73 | make | 
|---|
| 74 | make install | 
|---|
| 75 | make clean | 
|---|
| 76 | endif | 
|---|
| 77 |  | 
|---|
| 78 | echo =========== XAstroPack | 
|---|
| 79 | cd $HERE/XAstroPack | 
|---|
| 80 | if( $?C ) make clean | 
|---|
| 81 | make | 
|---|
| 82 |  | 
|---|
| 83 | if( 0 ) then | 
|---|
| 84 | echo =========== SlaLib | 
|---|
| 85 | cd $HERE/SlaLib | 
|---|
| 86 | make clean | 
|---|
| 87 | make | 
|---|
| 88 | make install | 
|---|
| 89 | make clean | 
|---|
| 90 | endif | 
|---|
| 91 |  | 
|---|
| 92 | echo =========== libs | 
|---|
| 93 | cd $HERE/. | 
|---|
| 94 | make -f $sopmakefile libs | 
|---|
| 95 |  | 
|---|
| 96 | echo =========== slb | 
|---|
| 97 | make -f $sopmakefile slb | 
|---|
| 98 |  | 
|---|
| 99 | echo =========== extlibs | 
|---|
| 100 | # A installer pour les librairies exterieures: | 
|---|
| 101 | # (cf procedure dans loglinux.help) | 
|---|
| 102 | # - fftw version 2... | 
|---|
| 103 | # - lapack | 
|---|
| 104 | # - cfitsio | 
|---|
| 105 | make -f $sopmakefile extlibs | 
|---|
| 106 |  | 
|---|
| 107 | echo =========== slbext | 
|---|
| 108 | make -f $sopmakefile slbext | 
|---|
| 109 |  | 
|---|
| 110 | echo =========== PI | 
|---|
| 111 | make -f $sopmakefile PI | 
|---|
| 112 |  | 
|---|
| 113 | echo =========== slbpi | 
|---|
| 114 | make -f $sopmakefile slbpi | 
|---|
| 115 |  | 
|---|
| 116 | echo =========== ProgPI | 
|---|
| 117 | cd $HERE/ProgPI | 
|---|
| 118 | make -f Makefile | 
|---|
| 119 |  | 
|---|
| 120 | echo =========== PrgUtil | 
|---|
| 121 | cd $HERE/PrgUtil | 
|---|
| 122 | make -f Makefile | 
|---|
| 123 |  | 
|---|
| 124 | echo =========== PrgMap | 
|---|
| 125 | cd $HERE/PrgMap | 
|---|
| 126 | make -f Makefile | 
|---|
| 127 |  | 
|---|
| 128 | echo =========== Tests | 
|---|
| 129 | cd $HERE/Tests | 
|---|
| 130 | #set fexe = ( `ls -1 *.cc | awk -F"." '{print $1}'` ) | 
|---|
| 131 | set fexe = ( arrt carrt lpk obj_fits sphg0 tdcr tfft thash timg tobjio tobjio2 tspm tspm2 tstndblk tsttmat tsttminv tsttvec tcxxcmpldynl ppftswap) | 
|---|
| 132 | make -f Makefile $fexe | 
|---|
| 133 |  | 
|---|
| 134 | echo =========== PI/Tests | 
|---|
| 135 | cd $HERE/PI/Tests/.; | 
|---|
| 136 | if( $?C ) make clean | 
|---|
| 137 | set fexe = ( midasitt pilinetst pitcons pitgr xp0 xp1 xp2 xp3 pit0 ) | 
|---|
| 138 | #set fexe = ( $fexe pit1 pitst ) | 
|---|
| 139 | time make -f Makefile $fexe | 
|---|
| 140 |  | 
|---|
| 141 | #echo =========== JThreadsC++ | 
|---|
| 142 | #cd $HERE/JThreadsC++/JTCSrc | 
|---|
| 143 | #make clean | 
|---|
| 144 | #make all | 
|---|
| 145 | #if( $?JTCBASEREP ) then | 
|---|
| 146 | #  make install | 
|---|
| 147 | #endif | 
|---|
| 148 | #make clean | 
|---|
| 149 |  | 
|---|
| 150 | #echo =========== Speed | 
|---|
| 151 | #cd $HERE/Eval/Speed | 
|---|
| 152 | #make -f makefile | 
|---|
| 153 |  | 
|---|
| 154 | echo =========== CmvTests | 
|---|
| 155 | cd $HERE/CmvTests | 
|---|
| 156 | if( $?C ) make clean | 
|---|
| 157 | make | 
|---|
| 158 | make allprog | 
|---|
| 159 |  | 
|---|
| 160 | cd $HERE/CmvTests/FitsUtil | 
|---|
| 161 | if( $?C ) make clean | 
|---|
| 162 | make | 
|---|
| 163 |  | 
|---|
| 164 | echo FIN DE COMPILATION `date` | 
|---|
| 165 | exit 0 | 
|---|