mingwmake.bat
changeset 3151 ea535404aad5
parent 2956 896ab35eea5d
child 3271 fba2100e7766
--- a/mingwmake.bat	Fri Aug 01 16:49:39 2014 +0200
+++ b/mingwmake.bat	Fri Aug 01 16:50:26 2014 +0200
@@ -1,8 +1,16 @@
 @REM -------
-@REM make using mingw compiler
+@REM make using mingw gnu compiler
 @REM type mingwmake, and wait...
 @REM do not edit - automatically generated from ProjectDefinition
 @REM -------
+@SET DEFINES=
+@REM Kludge got Mercurial, cannot be implemented in Borland make
+@FOR /F "tokens=*" %%i in ('hg root') do SET HGROOT=%%i
+@IF "%HGROOT%" NEQ "" SET DEFINES=%DEFINES% "-DHGROOT=%HGROOT%"
 
-@call ..\rules\find_mingw.bat
-make.exe -N -f bc.mak %USEMINGW_ARG% %*
+@pushd ..\rules
+@call find_mingw.bat
+@popd
+make.exe -N -f bc.mak %DEFINES% %USEMINGW_ARG% %*
+
+