mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
25 lines
545 B
Bash
Executable File
25 lines
545 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # run from this directory
|
|
|
|
unset COMP_FLAGS LINK_FLAGS
|
|
|
|
#
|
|
# use <sys/inotify.h> if available (Linux)
|
|
# unless otherwise specified (with USE_STAT)
|
|
#
|
|
# eg, ./Allwmake USE_STAT
|
|
#
|
|
if [ -f /usr/include/sys/inotify.h -a "${1%USE_STAT}" = "$1" ]
|
|
then
|
|
echo "Found <sys/inotify.h> -- using inotify for file monitoring."
|
|
export COMP_FLAGS="-DFOAM_USE_INOTIFY"
|
|
else
|
|
unset COMP_FLAGS
|
|
fi
|
|
|
|
|
|
# make (non-shared) object
|
|
wmake libo
|
|
|
|
# ----------------------------------------------------------------- end-of-file
|