source: Sophya/trunk/SophyaLib/Mgr/comp_all.mgr@ 4058

Last change on this file since 4058 was 2745, checked in by cmv, 20 years ago

pour memoire cmv 20/05/05

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