Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / src / OSspecific / POSIX / Allwmake
blobc68f08943620ea05e2053fc204d45e1fd171e466
1 #!/bin/sh
2 cd ${0%/*} || exit 1 # run from this directory
4 unset COMP_FLAGS LINK_FLAGS
7 # use <sys/inotify.h> if available (Linux)
8 # unless otherwise specified (with USE_STAT)
10 # eg, ./Allwmake USE_STAT
12 if [ -f /usr/include/sys/inotify.h -a "${1%USE_STAT}" = "$1" ]
13 then
14 echo "Found <sys/inotify.h> -- enabling inotify for file monitoring."
15 export COMP_FLAGS="-DFOAM_USE_INOTIFY"
16 else
17 unset COMP_FLAGS
21 # make (non-shared) object
22 wmake libo
24 # ----------------------------------------------------------------- end-of-file