2 # Comm : Makefile associe aux tests unitaires
7 # =============================================== al_aide
10 comm=`basename $appel`
14 ---- Recompilation locale de HexaBlock
16 $ $comm <Options de $comm>
19 -h : Rappel des options
20 -make : Regenerer le Makefile
21 -lib : Regenerer la librairie partagee au moyen de swig
22 -clean : Detruire codes objets, executables et fichiers generes
23 -trace : Detail des sous-commandes
24 -setx : Observer le deroulement de la procedure
25 -jN : Compiler sur N process
26 test_* : Linker le test unitaire test_X.exe
28 Par defaut 1) le programme test_hexa.exe est genere
29 2) la librairie _hexablock_swig.so (ou *.dll) est generee
34 # =============================================== Begin
54 rm -rf *.exe *.a *.o *.bak *.brep *~ *.vtk *.cpp *.xml *.exe.stackdump
55 rm -rf work/*.exe work/*.brep work/*~ work/*.vtk work/*.cpp work/*.xml
56 rm -rf work/*.exe.stackdump
64 -k ) echo ; echo ; echo ; echo ; echo ; echo ; echo ; echo ; echo
65 echo ; echo ; echo ; echo ; echo ; echo ; echo ; echo ; echo
67 *) if ( [ -z "$test_u" ] ) then
68 test_u=`echo $arg | cut -d. -f1`
69 ishere=`grep -w $test_u test_*.cxx | grep -c tabargs`
70 if ( [ "$ishere" = "0" ] ) then
72 echo "**** Programme non trouve : $test_u"
80 if ( [ -z "$test_u" ] ) then
85 if ( [ ! -f makefile.ozz ] ) then
93 if ( [ $os = Linux ] ) then
101 echo " -- Maj $uf.a et $test_u.exe"
102 make -f makefile.ozz $opt main=$test_u
108 mach=`echo $mach | cut -c1-2`
109 if ( [ $mach = is ] ) then
114 if ( [ $ier = 0 -a -n "$make_lib" ] ) then
115 make -f makefile.swig $vpy lib_ext=$lib_ext opt_cpp=$opt_cpp uf=$uf