Allwmake 1.08 KB
Newer Older
1
#!/bin/sh
2
3
cd ${0%/*} || exit 1    # Run from this directory

4
# Parse arguments for library compilation
5
. wmake/scripts/AllwmakeParseArguments
6

7
# Perform various checks
8
wmakeCheckPwd "$WM_PROJECT_DIR" || {
9
    echo "Allwmake error: Current directory is not \$WM_PROJECT_DIR"
10
    echo "    The environment variables are inconsistent with the installation."
11
12
    echo "    Check the OpenFOAM entries in your dot-files and source them."
    exit 1
13
}
14

15
[ -n "$FOAM_EXT_LIBBIN" ] || {
16
    echo "Allwmake error: FOAM_EXT_LIBBIN not set"
17
18
19
20
    echo "    Check the OpenFOAM entries in your dot-files and source them."
    exit 1
}

21
22
# Compile wmake support applications
(cd wmake/src && make)
23

24
# Compile ThirdParty libraries and applications
25
26
27
if [ -d "$WM_THIRD_PARTY_DIR" ]
then
    $WM_THIRD_PARTY_DIR/Allwmake
28
else
29
    echo "Allwmake: no ThirdParty directory found - skipping"
30
fi
31

32
33
34
35
36
37
# Compile OpenFOAM libraries and applications
src/Allwmake $targetType $*

# Compile OpenFOAM libraries and applications
applications/Allwmake $targetType $*

38

39
#------------------------------------------------------------------------------