ENH: Allwmake : allow easy building of static libraries

This commit is contained in:
mattijs
2011-01-26 16:59:13 +00:00
parent 8ee6502188
commit c9d6212006
19 changed files with 148 additions and 97 deletions

View File

@ -1,6 +1,9 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
makeOption=libso
[ $# -ge 1 ] && makeOption=$1
wmakeCheckPwd "$WM_PROJECT_DIR/src" || { wmakeCheckPwd "$WM_PROJECT_DIR/src" || {
echo "Error: Current directory is not \$WM_PROJECT_DIR/src" echo "Error: Current directory is not \$WM_PROJECT_DIR/src"
echo " The environment variables are inconsistent with the installation." 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 OpenFOAM
wmakeLnInclude OSspecific/$WM_OSTYPE wmakeLnInclude OSspecific/$WM_OSTYPE
Pstream/Allwmake Pstream/Allwmake $*
OSspecific/$WM_OSTYPE/Allwmake OSspecific/$WM_OSTYPE/Allwmake
wmake libso OpenFOAM wmake $makeOption OpenFOAM
wmake libso fileFormats wmake $makeOption fileFormats
wmake libso triSurface wmake $makeOption triSurface
wmake libso meshTools wmake $makeOption meshTools
wmake libso edgeMesh wmake $makeOption edgeMesh
wmake libso surfMesh wmake $makeOption surfMesh
# Decomposition methods needed by dummyThirdParty # Decomposition methods needed by dummyThirdParty
parallel/decompose/AllwmakeLnInclude parallel/decompose/AllwmakeLnInclude
# dummyThirdParty (dummy metisDecomp, scotchDecomp etc) needed by e.g. meshTools # dummyThirdParty (dummy metisDecomp, scotchDecomp etc) needed by e.g. meshTools
dummyThirdParty/Allwmake dummyThirdParty/Allwmake $*
wmake libso lagrangian/basic wmake $makeOption lagrangian/basic
wmake libso finiteVolume wmake $makeOption finiteVolume
wmake libso genericPatchFields wmake $makeOption genericPatchFields
# Build the proper scotchDecomp, metisDecomp etc. # 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 $makeOption dynamicMesh
wmake libso dynamicFvMesh wmake $makeOption dynamicFvMesh
wmake libso topoChangerFvMesh wmake $makeOption topoChangerFvMesh
wmake libso ODE wmake $makeOption ODE
wmake libso randomProcesses wmake $makeOption randomProcesses
thermophysicalModels/Allwmake thermophysicalModels/Allwmake $*
transportModels/Allwmake transportModels/Allwmake $*
turbulenceModels/Allwmake turbulenceModels/Allwmake $*
wmake libso surfaceFilmModels wmake $makeOption surfaceFilmModels
lagrangian/Allwmake lagrangian/Allwmake $*
postProcessing/Allwmake postProcessing/Allwmake $*
mesh/Allwmake mesh/Allwmake $*
wmake libso errorEstimation wmake $makeOption errorEstimation
fvAgglomerationMethods/Allwmake fvAgglomerationMethods/Allwmake $*
wmake libso fvMotionSolver wmake $makeOption fvMotionSolver
wmake libso engine wmake $makeOption engine
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -18,7 +18,7 @@ case "$WM_MPLIB" in
;; ;;
#GAMMA) #GAMMA)
# wmake libso gamma # wmake $makeOption gamma
# ;; # ;;
esac esac

View File

@ -2,6 +2,9 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
wmake libso makeOption=libso
[ $# -ge 1 ] && makeOption=$1
wmake $makeOption
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,10 +2,13 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
wmake libso scotchDecomp makeOption=libso
wmake libso ptscotchDecomp [ $# -ge 1 ] && makeOption=$1
wmake libso metisDecomp
wmake libso MGridGen wmake $makeOption scotchDecomp
wmake $makeOption ptscotchDecomp
wmake $makeOption metisDecomp
wmake $makeOption MGridGen
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,6 +2,9 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
wmake libso MGridGenGamgAgglomeration makeOption=libso
[ $# -ge 1 ] && makeOption=$1
wmake $makeOption MGridGenGamgAgglomeration
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,13 +2,16 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
wmake libso basic makeOption=libso
wmake libso solidParticle [ $# -ge 1 ] && makeOption=$1
wmake libso intermediate
wmake libso dieselSpray
wmake libso dsmc
wmake libso coalCombustion
molecularDynamics/Allwmake wmake $makeOption basic
wmake $makeOption solidParticle
wmake $makeOption intermediate
wmake $makeOption dieselSpray
wmake $makeOption dsmc
wmake $makeOption coalCombustion
molecularDynamics/Allwmake $*
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,8 +2,11 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
wmake libso potential makeOption=libso
wmake libso molecularMeasurements [ $# -ge 1 ] && makeOption=$1
wmake libso molecule
wmake $makeOption potential
wmake $makeOption molecularMeasurements
wmake $makeOption molecule
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,7 +2,10 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
wmake libso autoMesh makeOption=libso
wmake libso blockMesh [ $# -ge 1 ] && makeOption=$1
wmake $makeOption autoMesh
wmake $makeOption blockMesh
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,9 +2,12 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
decompose/Allwmake makeOption=libso
reconstruct/Allwmake [ $# -ge 1 ] && makeOption=$1
wmake libso distributed
decompose/Allwmake $*
reconstruct/Allwmake $*
wmake $makeOption distributed
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -1,6 +1,9 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
makeOption=libso
[ $# -ge 1 ] && makeOption=$1
# get SCOTCH_VERSION, SCOTCH_ARCH_PATH # get SCOTCH_VERSION, SCOTCH_ARCH_PATH
settings=`$WM_PROJECT_DIR/bin/foamEtcFile apps/scotch/bashrc` settings=`$WM_PROJECT_DIR/bin/foamEtcFile apps/scotch/bashrc`
if [ -f "$settings" ] if [ -f "$settings" ]
@ -16,17 +19,17 @@ set -x
wmakeLnInclude decompositionMethods wmakeLnInclude decompositionMethods
wmake libso scotchDecomp wmake $makeOption scotchDecomp
if [ -d "$FOAM_LIBBIN/$FOAM_MPI" ] if [ -d "$FOAM_LIBBIN/$FOAM_MPI" ]
then then
( (
WM_OPTIONS=${WM_OPTIONS}$WM_MPLIB WM_OPTIONS=${WM_OPTIONS}$WM_MPLIB
wmake libso ptscotchDecomp wmake $makeOption ptscotchDecomp
) )
fi fi
wmake libso decompositionMethods wmake $makeOption decompositionMethods
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,7 +2,10 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
wmake libso reconstruct makeOption=libso
[ $# -ge 1 ] && makeOption=$1
wmake $makeOption reconstruct
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,9 +2,12 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
wmake libo postCalc makeOption=libso
wmake libso foamCalcFunctions [ $# -ge 1 ] && makeOption=$1
functionObjects/Allwmake wmake libo postCalc
wmake $makeOption foamCalcFunctions
functionObjects/Allwmake $*
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,11 +2,14 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
wmake libso field makeOption=libso
wmake libso forces [ $# -ge 1 ] && makeOption=$1
wmake libso IO
wmake libso utilities wmake $makeOption field
wmake libso jobControl wmake $makeOption forces
wmake libso systemCall wmake $makeOption IO
wmake $makeOption utilities
wmake $makeOption jobControl
wmake $makeOption systemCall
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,27 +2,30 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
wmake libso specie makeOption=libso
wmake libso solid [ $# -ge 1 ] && makeOption=$1
wmake libso thermophysicalFunctions
wmake libso liquids
wmake libso liquidMixture
wmake libso pointSolids
wmake libso pointSolidMixture
wmake libso basic wmake $makeOption specie
wmake libso reactionThermo wmake $makeOption solid
wmake libso laminarFlameSpeed wmake $makeOption thermophysicalFunctions
wmake libso chemistryModel wmake $makeOption liquids
wmake libso pdfs wmake $makeOption liquidMixture
wmake libso radiation wmake $makeOption pointSolids
wmake libso barotropicCompressibilityModel wmake $makeOption pointSolidMixture
wmake libso thermalPorousZone
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 # Should be combined with solids&solidMixture
wmake libso basicSolidThermo wmake $makeOption basicSolidThermo
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,9 +2,12 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
wmake libso incompressible makeOption=libso
wmake libso interfaceProperties [ $# -ge 1 ] && makeOption=$1
wmake libso twoPhaseInterfaceProperties
# wmake libso compressible wmake $makeOption incompressible
wmake $makeOption interfaceProperties
wmake $makeOption twoPhaseInterfaceProperties
# wmake $makeOption compressible
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,8 +2,8 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
LES/Allwmake LES/Allwmake $*
incompressible/Allwmake incompressible/Allwmake $*
compressible/Allwmake compressible/Allwmake $*
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,9 +2,12 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
makeOption=libso
[ $# -ge 1 ] && makeOption=$1
wmakeLnInclude ../incompressible/LES wmakeLnInclude ../incompressible/LES
wmake libso LESfilters wmake $makeOption LESfilters
wmake libso LESdeltas wmake $makeOption LESdeltas
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,8 +2,11 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
wmake libso turbulenceModel makeOption=libso
wmake libso RAS [ $# -ge 1 ] && makeOption=$1
wmake libso LES
wmake $makeOption turbulenceModel
wmake $makeOption RAS
wmake $makeOption LES
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,8 +2,11 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
wmake libso turbulenceModel makeOption=libso
wmake libso RAS [ $# -ge 1 ] && makeOption=$1
wmake libso LES
wmake $makeOption turbulenceModel
wmake $makeOption RAS
wmake $makeOption LES
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file