--- wmake/wmake.orig	2009-02-14 04:38:32.000000000 +0600
+++ wmake/wmake	2009-10-12 14:18:56.000000000 +0700
@@ -87,7 +87,7 @@
 # Select the version of make to be used
 #------------------------------------------------------------------------------
 
-make="make"
+make="gmake"
 
 # set WM_NCOMPPROCS automatically when both WM_HOSTS and WM_SCHEDULER are set
 if [ -z "$WM_NCOMPPROCS" -a -n "$WM_HOSTS" -a -n "$WM_SCHEDULER" ]
@@ -109,7 +109,7 @@
             mkdir -p $lockDir
         fi
 
-        make="make --no-print-directory -j "$WM_NCOMPPROCS
+        make="gmake --no-print-directory -j "$WM_NCOMPPROCS
     fi
 fi
 
@@ -196,8 +196,8 @@
 (
     cd $MakeDir
     unset MAKEFLAGS
-    make -s -f $WM_DIR/MakefileOptions
-    make -s -f $WM_DIR/MakefileFiles allFiles
+    gmake -s -f $WM_DIR/MakefileOptions
+    gmake -s -f $WM_DIR/MakefileFiles allFiles
 )
 
 
@@ -226,7 +226,7 @@
     ;;
 esac
 
-$make -s -f $WM_DIR/Makefile MAKE_DIR=$MakeDir INCLUDE_DEPS=$OBJECTS_DIR/dontIncludeDeps $OBJECTS_DIR/dependencies
+$make -f $WM_DIR/Makefile MAKE_DIR=$MakeDir INCLUDE_DEPS=$OBJECTS_DIR/dontIncludeDeps $OBJECTS_DIR/dependencies
 
 retVal=$?
 if [ $retVal -ne 0 ]
