2 # Copyright (C) 2009-2022 CEA/DEN, EDF R&D
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 # Comm : Makefile associe aux tests unitaires
26 # =============================================== al_aide
29 comm=`basename $appel`
33 ---- Recompilation locale de HexaBlock
35 $ $comm <Options de $comm>
38 -h : Rappel des options
39 -make : Regenerer le Makefile
40 -lib : Regenerer la librairie partagee au moyen de swig
41 -clean : Detruire codes objets, executables et fichiers generes
42 -trace : Detail des sous-commandes
43 -setx : Observer le deroulement de la procedure
44 -jN : Compiler sur N process
45 test_* : Linker le test unitaire test_X.exe
47 Par defaut 1) le programme test_hexa.exe est genere
48 2) la librairie _hexablock_swig.so (ou *.dll) est generee
53 # =============================================== Begin
73 rm -rf *.exe *.a *.o *.bak *.brep *~ *.vtk *.cpp *.xml *.exe.stackdump
74 rm -rf work/*.exe work/*.brep work/*~ work/*.vtk work/*.cpp work/*.xml
75 rm -rf work/*.exe.stackdump
83 -k ) echo ; echo ; echo ; echo ; echo ; echo ; echo ; echo ; echo
84 echo ; echo ; echo ; echo ; echo ; echo ; echo ; echo ; echo
86 *) if ( [ -z "$test_u" ] ) then
87 test_u=`echo $arg | cut -d. -f1`
88 ishere=`grep -w $test_u test_*.cxx | grep -c tabargs`
89 if ( [ "$ishere" = "0" ] ) then
91 echo "**** Programme non trouve : $test_u"
99 if ( [ -z "$test_u" ] ) then
104 if ( [ ! -f makefile.ozz ] ) then
112 if ( [ $os = Linux ] ) then
120 echo " -- Maj $uf.a et $test_u.exe"
121 make -f makefile.ozz $opt main=$test_u
127 mach=`echo $mach | cut -c1-2`
128 if ( [ $mach = is ] ) then
133 if ( [ $ier = 0 -a -n "$make_lib" ] ) then
134 make -f makefile.swig $vpy lib_ext=$lib_ext opt_cpp=$opt_cpp uf=$uf