Files
openfoam/src/OSspecific/POSIX/Allwmake
2010-11-16 12:41:44 +00:00

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