Add the OpenFOAM source tree
This commit is contained in:
22
applications/utilities/mesh/manipulation/setSet/Allwmake
Executable file
22
applications/utilities/mesh/manipulation/setSet/Allwmake
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
unset COMP_FLAGS LINK_FLAGS
|
||||
|
||||
#
|
||||
# use readline if available
|
||||
# unless otherwise specified (with NO_READLINE)
|
||||
#
|
||||
# eg, ./Allwmake NO_READLINE
|
||||
#
|
||||
|
||||
if [ -f /usr/include/readline/readline.h -a "${1%NO_READLINE}" = "$1" ]
|
||||
then
|
||||
echo "Found <readline/readline.h> -- enabling readline support."
|
||||
export COMP_FLAGS="-DHAS_READLINE"
|
||||
export LINK_FLAGS="-lreadline"
|
||||
fi
|
||||
|
||||
wmake
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
Reference in New Issue
Block a user