mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
23 lines
560 B
Bash
Executable File
23 lines
560 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Parse arguments for library compilation
|
|
targetType=libo
|
|
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments $*
|
|
|
|
unset COMP_FLAGS LINK_FLAGS
|
|
|
|
#
|
|
# use <sys/inotify.h> if 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 (non-shared by default) object
|
|
wmake $targetType
|
|
|
|
#------------------------------------------------------------------------------
|