mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: change makeOption to makeType internally
- also simplify setting makeType in the Allwmake scripts
This commit is contained in:
42
src/Allwmake
42
src/Allwmake
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
|
|
||||||
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"
|
||||||
@ -25,49 +25,49 @@ wmakeLnInclude OSspecific/${WM_OSTYPE:-POSIX}
|
|||||||
Pstream/Allwmake $*
|
Pstream/Allwmake $*
|
||||||
|
|
||||||
OSspecific/${WM_OSTYPE:-POSIX}/Allwmake
|
OSspecific/${WM_OSTYPE:-POSIX}/Allwmake
|
||||||
wmake $makeOption OpenFOAM
|
wmake $makeType OpenFOAM
|
||||||
|
|
||||||
wmake $makeOption fileFormats
|
wmake $makeType fileFormats
|
||||||
wmake $makeOption triSurface
|
wmake $makeType triSurface
|
||||||
wmake $makeOption meshTools
|
wmake $makeType meshTools
|
||||||
wmake $makeOption edgeMesh
|
wmake $makeType edgeMesh
|
||||||
wmake $makeOption surfMesh
|
wmake $makeType 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 $makeOption finiteVolume
|
wmake $makeType finiteVolume
|
||||||
wmake $makeOption lagrangian/basic
|
wmake $makeType lagrangian/basic
|
||||||
wmake $makeOption lagrangian/distributionModels
|
wmake $makeType lagrangian/distributionModels
|
||||||
wmake $makeOption genericPatchFields
|
wmake $makeType genericPatchFields
|
||||||
|
|
||||||
# Build the proper scotchDecomp, metisDecomp etc.
|
# Build the proper scotchDecomp, metisDecomp etc.
|
||||||
parallel/Allwmake $*
|
parallel/Allwmake $*
|
||||||
|
|
||||||
wmake $makeOption conversion
|
wmake $makeType conversion
|
||||||
|
|
||||||
wmake $makeOption sampling
|
wmake $makeType sampling
|
||||||
|
|
||||||
wmake $makeOption dynamicMesh
|
wmake $makeType dynamicMesh
|
||||||
wmake $makeOption dynamicFvMesh
|
wmake $makeType dynamicFvMesh
|
||||||
wmake $makeOption topoChangerFvMesh
|
wmake $makeType topoChangerFvMesh
|
||||||
|
|
||||||
wmake $makeOption ODE
|
wmake $makeType ODE
|
||||||
wmake $makeOption randomProcesses
|
wmake $makeType randomProcesses
|
||||||
|
|
||||||
thermophysicalModels/Allwmake $*
|
thermophysicalModels/Allwmake $*
|
||||||
transportModels/Allwmake $*
|
transportModels/Allwmake $*
|
||||||
turbulenceModels/Allwmake $*
|
turbulenceModels/Allwmake $*
|
||||||
wmake $makeOption surfaceFilmModels
|
wmake $makeType surfaceFilmModels
|
||||||
lagrangian/Allwmake $*
|
lagrangian/Allwmake $*
|
||||||
postProcessing/Allwmake $*
|
postProcessing/Allwmake $*
|
||||||
mesh/Allwmake $*
|
mesh/Allwmake $*
|
||||||
|
|
||||||
fvAgglomerationMethods/Allwmake $*
|
fvAgglomerationMethods/Allwmake $*
|
||||||
|
|
||||||
wmake $makeOption fvMotionSolver
|
wmake $makeType fvMotionSolver
|
||||||
wmake $makeOption engine
|
wmake $makeType engine
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake $makeOption dummy
|
wmake $makeType dummy
|
||||||
|
|
||||||
case "$WM_MPLIB" in
|
case "$WM_MPLIB" in
|
||||||
*MPI*)
|
*MPI*)
|
||||||
@ -13,11 +13,11 @@ case "$WM_MPLIB" in
|
|||||||
echo
|
echo
|
||||||
set -x
|
set -x
|
||||||
# force compilation into qualified directory
|
# force compilation into qualified directory
|
||||||
WM_OPTIONS=${WM_OPTIONS}$WM_MPLIB wmake $makeOption mpi
|
WM_OPTIONS=${WM_OPTIONS}$WM_MPLIB wmake $makeType mpi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
#GAMMA)
|
#GAMMA)
|
||||||
# wmake $makeOption gamma
|
# wmake $makeType gamma
|
||||||
# ;;
|
# ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake $makeOption
|
wmake $makeType
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
10
src/dummyThirdParty/Allwmake
vendored
10
src/dummyThirdParty/Allwmake
vendored
@ -1,12 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake $makeOption scotchDecomp
|
wmake $makeType scotchDecomp
|
||||||
wmake $makeOption ptscotchDecomp
|
wmake $makeType ptscotchDecomp
|
||||||
wmake $makeOption metisDecomp
|
wmake $makeType metisDecomp
|
||||||
wmake $makeOption MGridGen
|
wmake $makeType MGridGen
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
export ParMGridGen=$WM_THIRD_PARTY_DIR/ParMGridGen-1.0
|
export ParMGridGen=$WM_THIRD_PARTY_DIR/ParMGridGen-1.0
|
||||||
|
|
||||||
if [ -d "$ParMGridGen/MGridGen/Lib" ]
|
if [ -d "$ParMGridGen/MGridGen/Lib" ]
|
||||||
then
|
then
|
||||||
wmake $makeOption MGridGenGamgAgglomeration
|
wmake $makeType MGridGenGamgAgglomeration
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wmake libso pairPatchAgglomeration
|
wmake libso pairPatchAgglomeration
|
||||||
|
|||||||
@ -1,15 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake $makeOption distributionModels
|
wmake $makeType distributionModels
|
||||||
wmake $makeOption basic
|
wmake $makeType basic
|
||||||
wmake $makeOption solidParticle
|
wmake $makeType solidParticle
|
||||||
wmake $makeOption intermediate
|
wmake $makeType intermediate
|
||||||
wmake $makeOption dieselSpray
|
wmake $makeType dieselSpray
|
||||||
wmake $makeOption dsmc
|
wmake $makeType dsmc
|
||||||
wmake $makeOption coalCombustion
|
wmake $makeType coalCombustion
|
||||||
|
|
||||||
molecularDynamics/Allwmake $*
|
molecularDynamics/Allwmake $*
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake $makeOption potential
|
wmake $makeType potential
|
||||||
wmake $makeOption molecularMeasurements
|
wmake $makeType molecularMeasurements
|
||||||
wmake $makeOption molecule
|
wmake $makeType molecule
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake $makeOption autoMesh
|
wmake $makeType autoMesh
|
||||||
wmake $makeOption blockMesh
|
wmake $makeType blockMesh
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
decompose/Allwmake $*
|
decompose/Allwmake $*
|
||||||
reconstruct/Allwmake $*
|
reconstruct/Allwmake $*
|
||||||
wmake $makeOption distributed
|
wmake $makeType distributed
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
|
|
||||||
# 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`
|
||||||
@ -17,17 +17,17 @@ set -x
|
|||||||
|
|
||||||
wmakeLnInclude decompositionMethods
|
wmakeLnInclude decompositionMethods
|
||||||
|
|
||||||
wmake $makeOption scotchDecomp
|
wmake $makeType 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 $makeOption ptscotchDecomp
|
wmake $makeType ptscotchDecomp
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wmake $makeOption decompositionMethods
|
wmake $makeType decompositionMethods
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake $makeOption reconstruct
|
wmake $makeType reconstruct
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake libo postCalc
|
wmake libo postCalc
|
||||||
wmake $makeOption foamCalcFunctions
|
wmake $makeType foamCalcFunctions
|
||||||
|
|
||||||
functionObjects/Allwmake $*
|
functionObjects/Allwmake $*
|
||||||
|
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake $makeOption field
|
wmake $makeType field
|
||||||
wmake $makeOption forces
|
wmake $makeType forces
|
||||||
wmake $makeOption IO
|
wmake $makeType IO
|
||||||
wmake $makeOption utilities
|
wmake $makeType utilities
|
||||||
wmake $makeOption jobControl
|
wmake $makeType jobControl
|
||||||
wmake $makeOption systemCall
|
wmake $makeType systemCall
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,24 +1,24 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake $makeOption specie
|
wmake $makeType specie
|
||||||
wmake $makeOption solid
|
wmake $makeType solid
|
||||||
wmake $makeOption thermophysicalFunctions
|
wmake $makeType thermophysicalFunctions
|
||||||
./properties/Allwmake $*
|
./properties/Allwmake $*
|
||||||
|
|
||||||
wmake $makeOption basic
|
wmake $makeType basic
|
||||||
wmake $makeOption reactionThermo
|
wmake $makeType reactionThermo
|
||||||
wmake $makeOption laminarFlameSpeed
|
wmake $makeType laminarFlameSpeed
|
||||||
wmake $makeOption chemistryModel
|
wmake $makeType chemistryModel
|
||||||
wmake $makeOption barotropicCompressibilityModel
|
wmake $makeType barotropicCompressibilityModel
|
||||||
wmake $makeOption thermalPorousZone
|
wmake $makeType thermalPorousZone
|
||||||
wmake $makeOption SLGThermo
|
wmake $makeType SLGThermo
|
||||||
|
|
||||||
# Should be combined with solids&solidMixture
|
# Should be combined with solids&solidMixture
|
||||||
wmake $makeOption basicSolidThermo
|
wmake $makeType basicSolidThermo
|
||||||
|
|
||||||
wmake $makeOption radiationModels
|
wmake $makeType radiationModels
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake $makeOption liquidProperties
|
wmake $makeType liquidProperties
|
||||||
wmake $makeOption liquidMixtureProperties
|
wmake $makeType liquidMixtureProperties
|
||||||
wmake $makeOption solidProperties
|
wmake $makeType solidProperties
|
||||||
wmake $makeOption solidMixtureProperties
|
wmake $makeType solidMixtureProperties
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake $makeOption incompressible
|
wmake $makeType incompressible
|
||||||
wmake $makeOption interfaceProperties
|
wmake $makeType interfaceProperties
|
||||||
wmake $makeOption twoPhaseInterfaceProperties
|
wmake $makeType twoPhaseInterfaceProperties
|
||||||
# wmake $makeOption compressible
|
# wmake $makeType compressible
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmakeLnInclude ../incompressible/LES
|
wmakeLnInclude ../incompressible/LES
|
||||||
|
|
||||||
wmake $makeOption LESfilters
|
wmake $makeType LESfilters
|
||||||
wmake $makeOption LESdeltas
|
wmake $makeType LESdeltas
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake $makeOption turbulenceModel
|
wmake $makeType turbulenceModel
|
||||||
wmake $makeOption RAS
|
wmake $makeType RAS
|
||||||
wmake $makeOption LES
|
wmake $makeType LES
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
[ $# -ge 1 ] && makeOption=$1 || makeOption=libso
|
makeType=${1:-libso}
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake $makeOption turbulenceModel
|
wmake $makeType turbulenceModel
|
||||||
wmake $makeOption RAS
|
wmake $makeType RAS
|
||||||
wmake $makeOption LES
|
wmake $makeType LES
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
14
wmake/wclean
14
wmake/wclean
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -63,10 +63,10 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# check arguments and change to the directory in which to run wmake
|
# check arguments and change to the directory in which to run wclean
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
unset dir makeOption
|
unset dir makeType
|
||||||
MakeDir=Make
|
MakeDir=Make
|
||||||
|
|
||||||
if [ $# -ge 1 ]
|
if [ $# -ge 1 ]
|
||||||
@ -76,7 +76,7 @@ then
|
|||||||
then
|
then
|
||||||
dir=$1
|
dir=$1
|
||||||
else
|
else
|
||||||
makeOption=$1
|
makeType=$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# specified directory name:
|
# specified directory name:
|
||||||
@ -101,7 +101,7 @@ fi
|
|||||||
# Recurse the directories tree
|
# Recurse the directories tree
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
if [ "$makeOption" = all ]
|
if [ "$makeType" = all ]
|
||||||
then
|
then
|
||||||
if [ -e Allwclean ] # consistent with Allwmake
|
if [ -e Allwclean ] # consistent with Allwmake
|
||||||
then
|
then
|
||||||
@ -121,8 +121,8 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# makeOption is not needed beyond this point
|
# makeType is not needed beyond this point
|
||||||
unset makeOption
|
unset makeType
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
16
wmake/wmake
16
wmake/wmake
@ -122,7 +122,7 @@ fi
|
|||||||
# check arguments and change to the directory in which to run wmake
|
# check arguments and change to the directory in which to run wmake
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
unset dir makeOption
|
unset dir makeType
|
||||||
MakeDir=Make
|
MakeDir=Make
|
||||||
|
|
||||||
if [ $# -ge 1 ]
|
if [ $# -ge 1 ]
|
||||||
@ -131,7 +131,7 @@ then
|
|||||||
then
|
then
|
||||||
dir=$1
|
dir=$1
|
||||||
else
|
else
|
||||||
makeOption=$1
|
makeType=$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# specified directory name:
|
# specified directory name:
|
||||||
@ -154,7 +154,7 @@ fi
|
|||||||
# Recurse the application directories tree
|
# Recurse the application directories tree
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
if [ "$makeOption" = all ]
|
if [ "$makeType" = all ]
|
||||||
then
|
then
|
||||||
if [ -e Allwmake ]
|
if [ -e Allwmake ]
|
||||||
then
|
then
|
||||||
@ -187,12 +187,12 @@ fi
|
|||||||
|
|
||||||
# transform "all" option to "libso" if that looks appropriate or remove it
|
# transform "all" option to "libso" if that looks appropriate or remove it
|
||||||
# so that the call to make builds the application
|
# so that the call to make builds the application
|
||||||
if [ "$makeOption" = all ]
|
if [ "$makeType" = all ]
|
||||||
then
|
then
|
||||||
unset makeOption
|
unset makeType
|
||||||
if grep -e '^ *LIB *=' "$MakeDir/files" >/dev/null 2>&1
|
if grep -e '^ *LIB *=' "$MakeDir/files" >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
makeOption=libso
|
makeType=libso
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -226,7 +226,7 @@ OBJECTS_DIR=$MakeDir/$WM_OPTIONS
|
|||||||
|
|
||||||
touch $OBJECTS_DIR/dontIncludeDeps
|
touch $OBJECTS_DIR/dontIncludeDeps
|
||||||
|
|
||||||
case "$makeOption" in
|
case "$makeType" in
|
||||||
lib | libo | libso )
|
lib | libo | libso )
|
||||||
$make -s -f $WM_DIR/Makefile MAKE_DIR=$MakeDir INCLUDE_DEPS=$OBJECTS_DIR/dontIncludeDeps lnInclude/uptodate
|
$make -s -f $WM_DIR/Makefile MAKE_DIR=$MakeDir INCLUDE_DEPS=$OBJECTS_DIR/dontIncludeDeps lnInclude/uptodate
|
||||||
;;
|
;;
|
||||||
@ -241,7 +241,7 @@ rc=$?
|
|||||||
# make the object files and link
|
# make the object files and link
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
cmd="$make -f $WM_DIR/Makefile MAKE_DIR=$MakeDir INCLUDE_DEPS=$OBJECTS_DIR/includeDeps $makeOption"
|
cmd="$make -f $WM_DIR/Makefile MAKE_DIR=$MakeDir INCLUDE_DEPS=$OBJECTS_DIR/includeDeps $makeType"
|
||||||
# echo "cmd=$cmd"
|
# echo "cmd=$cmd"
|
||||||
exec $cmd
|
exec $cmd
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user