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

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

7
# Perform various checks
8
wmakeCheckPwd "$WM_PROJECT_DIR/src" || {
9
    echo "Allwmake error: Current directory is not \$WM_PROJECT_DIR/src"
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
# Update OpenFOAM version strings if required
22
wmakePrintBuild -check || wrmo OpenFOAM/global/global.o 2>/dev/null
23

henry's avatar
henry committed
24
wmakeLnInclude OpenFOAM
25
wmakeLnInclude OSspecific/${WM_OSTYPE:-POSIX}
26
Pstream/Allwmake $targetType $*
27

28
OSspecific/${WM_OSTYPE:-POSIX}/Allwmake $targetType $*
29
wmake $targetType OpenFOAM
30

31
32
33
34
35
wmake $targetType fileFormats
wmake $targetType surfMesh
wmake $targetType triSurface
wmake $targetType meshTools
wmake $targetType edgeMesh
36

37
# Decomposition methods needed by dummyThirdParty
38
# (dummy metisDecomp, scotchDecomp etc) needed by e.g. meshTools
39
parallel/decompose/AllwmakeLnInclude
40
41
dummyThirdParty/Allwmake $targetType $*

42
43
wmakeLnInclude fvOptions

44
45
46
47
48
49
50
51
wmake $targetType finiteVolume
wmake $targetType lagrangian/basic
wmake $targetType lagrangian/distributionModels
wmake $targetType genericPatchFields

wmake $targetType conversion
wmake $targetType mesh/extrudeModel
wmake $targetType dynamicMesh
52
wmake $targetType sampling
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
wmake $targetType dynamicFvMesh
wmake $targetType topoChangerFvMesh

# Compile scotchDecomp, metisDecomp etc.
parallel/Allwmake $targetType $*

wmake $targetType ODE
wmake $targetType randomProcesses

transportModels/Allwmake $targetType $*
thermophysicalModels/Allwmake $targetType $*
TurbulenceModels/Allwmake $targetType $*
wmake $targetType combustionModels
regionModels/Allwmake $targetType $*
lagrangian/Allwmake $targetType $*
mesh/Allwmake $targetType $*
renumber/Allwmake $targetType $*
fvAgglomerationMethods/Allwmake $targetType $*

wmake $targetType fvMotionSolver
wmake $targetType engine
wmake $targetType fvOptions
wmake $targetType regionCoupled

77
functionObjects/Allwmake $targetType $*
78
79

wmake $targetType sixDoFRigidBodyMotion
80
wmake $targetType rigidBodyDynamics
81
wmake $targetType rigidBodyMeshMotion
82

Henry's avatar
Henry committed
83

84
#------------------------------------------------------------------------------