#!/bin/sh
cd "${0%/*}" || exit                                # Run from this directory
targetType=libo                                     # Preferred library type
. ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments $*

#------------------------------------------------------------------------------
unset COMP_FLAGS LINK_FLAGS

# If <sys/inotify.h> is available (Linux)
if [ -f /usr/include/sys/inotify.h ]
then
    echo "    found <sys/inotify.h>  --  enabling inotify for file monitoring."
    export COMP_FLAGS="-DFOAM_USE_INOTIFY"
fi

# Make object (non-shared by default)
wmake $targetType

#------------------------------------------------------------------------------
