-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathAllwmake
executable file
·60 lines (48 loc) · 1.67 KB
/
Allwmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#! /bin/bash
if [ -e swakConfiguration ]; then
echo "Reading variables from 'swakConfiguration'"
source swakConfiguration
else
echo "No 'swakConfiguration'. Python etc won't work"
fi
. theFiles.sh
SOEXT=so
if [ `uname -s`=="Darwin" ]; then
SOEXT=dylib
fi
for lib in ${SWAKLIBS[@]}
do
if [ -e $FOAM_LIBBIN/lib$lib.$SOEXT ]; then
echo "$FOAM_LIBBIN/lib$lib.$SOEXT shadows library that will be compiled. This might break the compilation of the utilities"
if [ -z $I_KNOW_THE_RISCS ]; then
echo "Set the environment variable I_KNOW_THE_RISCS if you want to continue nevertheless"
exit 42
fi
fi
done
echo "Checking swak4Foam-version and generating file"
./maintainanceScripts/makeSwakVersionFile.py
(cd Libraries; wmake all )
if [ $? != 0 ]; then
echo "Requirements for Library not satisfied. I see no sense in going on"
exit 42
fi
(
#revert back to the default Gcc compiler, due to some problems that Icc has
#with overly complex classes
[ "$WM_COMPILER" = "Icc" ] && export WM_COMPILER=Gcc
cd Utilities; wmake all
)
# (cd Examples/tests/fluIntegration/libRegistered; wmake)
PROPOSED_SWAK4FOAM_SRC=`pwd`"/Libraries"
if [ -z $SWAK4FOAM_SRC ]; then
echo
echo
echo "If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to $PROPOSED_SWAK4FOAM_SRC (most people will be fine without setting that variable)"
else
if [ $SWAK4FOAM_SRC != $PROPOSED_SWAK4FOAM_SRC ]; then
echo
echo
echo "The environment variable SWAK4FOAM_SRC has the value $SWAK4FOAM_SRC instead of the expected value $PROPOSED_SWAK4FOAM_SRC - Maybe it points to a different installation."
fi
fi