mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: compiling setSet directly (without Allwmake) now works
This commit is contained in:
@ -1,15 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
READLINE=0
|
|
||||||
if [ -f /usr/include/readline/readline.h ]
|
if [ -f /usr/include/readline/readline.h ]
|
||||||
then
|
then
|
||||||
echo "Found readline/readline.h -- enabling readline support."
|
echo "Found readline/readline.h -- enabling readline support."
|
||||||
READLINE=1
|
export READLINE=1
|
||||||
export READLINELINK="-lreadline -lncurses"
|
export READLINELINK="-lreadline -lncurses"
|
||||||
break
|
else
|
||||||
|
# no readline/readline.h -- disabling readline support
|
||||||
|
export READLINE=0
|
||||||
|
unset READLINELINK
|
||||||
fi
|
fi
|
||||||
export READLINE
|
|
||||||
wmake
|
wmake
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
|
/* NB: trailing zero after define improves robustness */
|
||||||
|
|
||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-DREADLINE=$(READLINE) \
|
-DREADLINE=$(READLINE)0 \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude
|
-I$(LIB_SRC)/meshTools/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
|
|||||||
Reference in New Issue
Block a user