Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
c9d62120
Commit
c9d62120
authored
Jan 26, 2011
by
mattijs
Browse files
ENH: Allwmake : allow easy building of static libraries
parent
8ee65021
Changes
19
Hide whitespace changes
Inline
Side-by-side
src/Allwmake
View file @
c9d62120
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# run from this directory
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmakeCheckPwd
"
$WM_PROJECT_DIR
/src"
||
{
echo
"Error: Current directory is not
\$
WM_PROJECT_DIR/src"
echo
" The environment variables are inconsistent with the installation."
...
...
@@ -21,53 +24,53 @@ wmakePrintBuild -check || /bin/rm -f OpenFOAM/Make/$WM_OPTIONS/global.? 2>/dev/n
wmakeLnInclude OpenFOAM
wmakeLnInclude OSspecific/
$WM_OSTYPE
Pstream/Allwmake
Pstream/Allwmake
$*
OSspecific/
$WM_OSTYPE
/Allwmake
wmake
libso
OpenFOAM
wmake
$makeOption
OpenFOAM
wmake
libso
fileFormats
wmake
libso
triSurface
wmake
libso
meshTools
wmake
libso
edgeMesh
wmake
libso
surfMesh
wmake
$makeOption
fileFormats
wmake
$makeOption
triSurface
wmake
$makeOption
meshTools
wmake
$makeOption
edgeMesh
wmake
$makeOption
surfMesh
# Decomposition methods needed by dummyThirdParty
parallel/decompose/AllwmakeLnInclude
# dummyThirdParty (dummy metisDecomp, scotchDecomp etc) needed by e.g. meshTools
dummyThirdParty/Allwmake
dummyThirdParty/Allwmake
$*
wmake
libso
lagrangian/basic
wmake
libso
finiteVolume
wmake
libso
genericPatchFields
wmake
$makeOption
lagrangian/basic
wmake
$makeOption
finiteVolume
wmake
$makeOption
genericPatchFields
# Build the proper scotchDecomp, metisDecomp etc.
parallel/Allwmake
parallel/Allwmake
$*
wmake
libso
conversion
wmake
$makeOption
conversion
wmake
libso
sampling
wmake
$makeOption
sampling
wmake
libso
dynamicMesh
wmake
libso
dynamicFvMesh
wmake
libso
topoChangerFvMesh
wmake
$makeOption
dynamicMesh
wmake
$makeOption
dynamicFvMesh
wmake
$makeOption
topoChangerFvMesh
wmake
libso
ODE
wmake
libso
randomProcesses
wmake
$makeOption
ODE
wmake
$makeOption
randomProcesses
thermophysicalModels/Allwmake
transportModels/Allwmake
turbulenceModels/Allwmake
wmake
libso
surfaceFilmModels
lagrangian/Allwmake
postProcessing/Allwmake
mesh/Allwmake
thermophysicalModels/Allwmake
$*
transportModels/Allwmake
$*
turbulenceModels/Allwmake
$*
wmake
$makeOption
surfaceFilmModels
lagrangian/Allwmake
$*
postProcessing/Allwmake
$*
mesh/Allwmake
$*
wmake
libso
errorEstimation
wmake
$makeOption
errorEstimation
fvAgglomerationMethods/Allwmake
fvAgglomerationMethods/Allwmake
$*
wmake
libso
fvMotionSolver
wmake
libso
engine
wmake
$makeOption
fvMotionSolver
wmake
$makeOption
engine
# ----------------------------------------------------------------- end-of-file
src/Pstream/Allwmake
View file @
c9d62120
...
...
@@ -18,7 +18,7 @@ case "$WM_MPLIB" in
;;
#GAMMA)
# wmake
libso
gamma
# wmake
$makeOption
gamma
# ;;
esac
...
...
src/conversion/Allwmake
View file @
c9d62120
...
...
@@ -2,6 +2,9 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wmake libso
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmake
$makeOption
# ----------------------------------------------------------------- end-of-file
src/dummyThirdParty/Allwmake
View file @
c9d62120
...
...
@@ -2,10 +2,13 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wmake libso scotchDecomp
wmake libso ptscotchDecomp
wmake libso metisDecomp
wmake libso MGridGen
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmake
$makeOption
scotchDecomp
wmake
$makeOption
ptscotchDecomp
wmake
$makeOption
metisDecomp
wmake
$makeOption
MGridGen
# ----------------------------------------------------------------- end-of-file
src/fvAgglomerationMethods/Allwmake
View file @
c9d62120
...
...
@@ -2,6 +2,9 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wmake libso MGridGenGamgAgglomeration
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmake
$makeOption
MGridGenGamgAgglomeration
# ----------------------------------------------------------------- end-of-file
src/lagrangian/Allwmake
View file @
c9d62120
...
...
@@ -2,13 +2,16 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wmake libso basic
wmake libso solidParticle
wmake libso intermediate
wmake libso dieselSpray
wmake libso dsmc
wmake libso coalCombustion
molecularDynamics/Allwmake
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmake
$makeOption
basic
wmake
$makeOption
solidParticle
wmake
$makeOption
intermediate
wmake
$makeOption
dieselSpray
wmake
$makeOption
dsmc
wmake
$makeOption
coalCombustion
molecularDynamics/Allwmake
$*
# ----------------------------------------------------------------- end-of-file
src/lagrangian/molecularDynamics/Allwmake
View file @
c9d62120
...
...
@@ -2,8 +2,11 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wmake libso potential
wmake libso molecularMeasurements
wmake libso molecule
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmake
$makeOption
potential
wmake
$makeOption
molecularMeasurements
wmake
$makeOption
molecule
# ----------------------------------------------------------------- end-of-file
src/mesh/Allwmake
View file @
c9d62120
...
...
@@ -2,7 +2,10 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wmake libso autoMesh
wmake libso blockMesh
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmake
$makeOption
autoMesh
wmake
$makeOption
blockMesh
# ----------------------------------------------------------------- end-of-file
src/parallel/Allwmake
View file @
c9d62120
...
...
@@ -2,9 +2,12 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
decompose/Allwmake
reconstruct/Allwmake
wmake libso distributed
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
decompose/Allwmake
$*
reconstruct/Allwmake
$*
wmake
$makeOption
distributed
# ----------------------------------------------------------------- end-of-file
src/parallel/decompose/Allwmake
View file @
c9d62120
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# run from this directory
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
# get SCOTCH_VERSION, SCOTCH_ARCH_PATH
settings
=
`
$WM_PROJECT_DIR
/bin/foamEtcFile apps/scotch/bashrc
`
if
[
-f
"
$settings
"
]
...
...
@@ -16,17 +19,17 @@ set -x
wmakeLnInclude decompositionMethods
wmake
libso
scotchDecomp
wmake
$makeOption
scotchDecomp
if
[
-d
"
$FOAM_LIBBIN
/
$FOAM_MPI
"
]
then
(
WM_OPTIONS
=
${
WM_OPTIONS
}
$WM_MPLIB
wmake
libso
ptscotchDecomp
wmake
$makeOption
ptscotchDecomp
)
fi
wmake
libso
decompositionMethods
wmake
$makeOption
decompositionMethods
# ----------------------------------------------------------------- end-of-file
src/parallel/reconstruct/Allwmake
View file @
c9d62120
...
...
@@ -2,7 +2,10 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wmake libso reconstruct
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmake
$makeOption
reconstruct
# ----------------------------------------------------------------- end-of-file
src/postProcessing/Allwmake
View file @
c9d62120
...
...
@@ -2,9 +2,12 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmake libo postCalc
wmake
libso
foamCalcFunctions
wmake
$makeOption
foamCalcFunctions
functionObjects/Allwmake
functionObjects/Allwmake
$*
# ----------------------------------------------------------------- end-of-file
src/postProcessing/functionObjects/Allwmake
View file @
c9d62120
...
...
@@ -2,11 +2,14 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wmake libso field
wmake libso forces
wmake libso IO
wmake libso utilities
wmake libso jobControl
wmake libso systemCall
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmake
$makeOption
field
wmake
$makeOption
forces
wmake
$makeOption
IO
wmake
$makeOption
utilities
wmake
$makeOption
jobControl
wmake
$makeOption
systemCall
# ----------------------------------------------------------------- end-of-file
src/thermophysicalModels/Allwmake
View file @
c9d62120
...
...
@@ -2,27 +2,30 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wmake libso specie
wmake libso solid
wmake libso thermophysicalFunctions
wmake libso liquids
wmake libso liquidMixture
wmake libso pointSolids
wmake libso pointSolidMixture
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmake libso basic
wmake libso reactionThermo
wmake libso laminarFlameSpeed
wmake libso chemistryModel
wmake libso pdfs
wmake libso radiation
wmake libso barotropicCompressibilityModel
wmake libso thermalPorousZone
wmake
$makeOption
specie
wmake
$makeOption
solid
wmake
$makeOption
thermophysicalFunctions
wmake
$makeOption
liquids
wmake
$makeOption
liquidMixture
wmake
$makeOption
pointSolids
wmake
$makeOption
pointSolidMixture
wmake libso SLGThermo
wmake
$makeOption
basic
wmake
$makeOption
reactionThermo
wmake
$makeOption
laminarFlameSpeed
wmake
$makeOption
chemistryModel
wmake
$makeOption
pdfs
wmake
$makeOption
radiation
wmake
$makeOption
barotropicCompressibilityModel
wmake
$makeOption
thermalPorousZone
wmake
$makeOption
SLGThermo
# Should be combined with solids&solidMixture
wmake
libso
basicSolidThermo
wmake
$makeOption
basicSolidThermo
# ----------------------------------------------------------------- end-of-file
src/transportModels/Allwmake
View file @
c9d62120
...
...
@@ -2,9 +2,12 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wmake libso incompressible
wmake libso interfaceProperties
wmake libso twoPhaseInterfaceProperties
# wmake libso compressible
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmake
$makeOption
incompressible
wmake
$makeOption
interfaceProperties
wmake
$makeOption
twoPhaseInterfaceProperties
# wmake $makeOption compressible
# ----------------------------------------------------------------- end-of-file
src/turbulenceModels/Allwmake
View file @
c9d62120
...
...
@@ -2,8 +2,8 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
LES/Allwmake
incompressible/Allwmake
compressible/Allwmake
LES/Allwmake
$*
incompressible/Allwmake
$*
compressible/Allwmake
$*
# ----------------------------------------------------------------- end-of-file
src/turbulenceModels/LES/Allwmake
View file @
c9d62120
...
...
@@ -2,9 +2,12 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmakeLnInclude ../incompressible/LES
wmake
libso
LESfilters
wmake
libso
LESdeltas
wmake
$makeOption
LESfilters
wmake
$makeOption
LESdeltas
# ----------------------------------------------------------------- end-of-file
src/turbulenceModels/compressible/Allwmake
View file @
c9d62120
...
...
@@ -2,8 +2,11 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wmake libso turbulenceModel
wmake libso RAS
wmake libso LES
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmake
$makeOption
turbulenceModel
wmake
$makeOption
RAS
wmake
$makeOption
LES
# ----------------------------------------------------------------- end-of-file
src/turbulenceModels/incompressible/Allwmake
View file @
c9d62120
...
...
@@ -2,8 +2,11 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wmake libso turbulenceModel
wmake libso RAS
wmake libso LES
makeOption
=
libso
[
$#
-ge
1
]
&&
makeOption
=
$1
wmake
$makeOption
turbulenceModel
wmake
$makeOption
RAS
wmake
$makeOption
LES
# ----------------------------------------------------------------- end-of-file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment