Salome HOME
Add config files and some code update for compilation of SALOME-7.8.0
[tools/sat.git] / data / compil_scripts / cppunit.sh
1 #!/bin/bash
2
3 echo "##########################################################################"
4 echo "cppunit" $VERSION
5 echo "##########################################################################"
6
7 rm -Rf $PRODUCT_INSTALL
8
9 # compilation
10 echo "cppunit compilation"
11
12 echo
13 echo "*** configure"
14 $SOURCE_DIR/configure --prefix=$PRODUCT_INSTALL --enable-static LDFLAGS="-ldl"
15 if [ $? -ne 0 ]
16 then
17     echo "ERROR on configure"
18     exit 1
19 fi
20
21 echo
22 echo "*** make" $MAKE_OPTIONS
23 make $MAKE_OPTIONS
24 if [ $? -ne 0 ]
25 then
26     echo "ERROR on make"
27     exit 2
28 fi
29
30 echo
31 echo "*** make install"
32 make install
33 if [ $? -ne 0 ]
34 then
35     echo "ERROR on make install"
36     exit 3
37 fi
38
39 echo
40 echo "########## END"
41