#!/bin/sh cd ${0%/*} || exit 1 # Run from this directory # Parse arguments for library compilation . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments wmakeCheckPwd "$WM_PROJECT_DIR" || { echo "Allwmake error: Current directory is not \$WM_PROJECT_DIR" echo " The environment variables are inconsistent with the installation." echo " Check the OpenFOAM entries in your dot-files and source them." exit 1 } [ -n "$FOAM_EXT_LIBBIN" ] || { echo "Allwmake error: FOAM_EXT_LIBBIN not set" echo " Check the OpenFOAM entries in your dot-files and source them." exit 1 } # Compile wmake support applications (cd wmake/src && make) # Compile ThirdParty libraries and applications if [ -d "$WM_THIRD_PARTY_DIR" ] then $WM_THIRD_PARTY_DIR/Allwmake else echo "No ThirdParty directory found - skipping" fi echo "========================================" echo "Compile OpenFOAM libraries" echo src/Allwmake $targetType $* echo "========================================" echo "Compile OpenFOAM applications" echo applications/Allwmake $targetType $* # Some summary information echo date "+%Y-%m-%d %H:%M:%S %z" 2>/dev/null || echo "date is unknown" echo "========================================" echo " ${WM_PROJECT_DIR##*/}" echo " $WM_COMPILER $WM_COMPILER_TYPE compiler" echo " ${WM_OPTIONS}, with ${WM_MPLIB} ${FOAM_MPI}" echo #------------------------------------------------------------------------------