mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Allwmake : allow easy building of static libraries
This commit is contained in:
@ -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
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
#!/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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user