Files
harbour-core/harbour/contrib/mtpl_vc.bat
Viktor Szakats 51959a0aac 2008-11-08 14:03 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.bat
  * make_vc.bat
  * contrib/mtpl_b32.bat
  * contrib/mtpl_gcc.sh
  * contrib/mtpl_vc.bat
    * Sync with GNU make system:
      HB_MAKE_FLAGS -> MK_USR
    ; TOFIX: Maybe it's a good time now to resolve the missing HB_ 
             prefixes for C_USR, L_USR, A_USR, MK_USR.
             If there are no objections / better ideas I'd like 
             to make these changes:
             HB_USER_LIBS -> HB_USR_LIBS
             PRG_USR      -> HB_USR_PRG
             C_USR        -> HB_USR_C
             L_USR        -> HB_USR_LINK (or HB_USR_L ?)
             A_USR        -> HB_USR_LIB (or HB_USR_A ?)
             MK_USR       -> HB_USR_MAKE (or HB_USR_MAK ?)
             As an option we may keep the old names for 
             compatibility to give some transition time.
2008-11-08 13:04:41 +00:00

61 lines
1.7 KiB
Batchfile

@echo off
rem
rem $Id$
rem
rem ---------------------------------------------------------------
rem This is a generic template file, if it doesn't fit your own needs
rem please DON'T MODIFY IT.
rem
rem Instead, make a local copy and modify that one, or make a call to
rem this batch file from your customized one. [vszakats]
rem
rem Set any of the below settings to customize your build process:
rem set HB_MAKE_PROGRAM=
rem set MK_USR=
rem ---------------------------------------------------------------
set _HB_CC_NAME=%HB_CC_NAME%
set _HB_MAKE_PROGRAM=%HB_MAKE_PROGRAM%
set _HB_MAKEFILE=%HB_MAKEFILE%
if "%_HB_CC_NAME%" == "" set _HB_CC_NAME=vc
if "%_HB_MAKE_PROGRAM%" == "" set _HB_MAKE_PROGRAM=nmake.exe
if "%_HB_MAKEFILE%" == "" set _HB_MAKEFILE=..\mtpl_vc.mak
set _HB_MAKELOG=make_%_HB_CC_NAME%.log
set HB_EXIT_LEVEL=
rem ---------------------------------------------------------------
if "%1" == "clean" goto CLEAN
if "%1" == "Clean" goto CLEAN
if "%1" == "CLEAN" goto CLEAN
if "%1" == "install" goto INSTALL
if "%1" == "Install" goto INSTALL
if "%1" == "INSTALL" goto INSTALL
:BUILD
%_HB_MAKE_PROGRAM% %MK_USR% -nologo -f %_HB_MAKEFILE% %1 %2 %3 > %_HB_MAKELOG%
if errorlevel 1 set HB_EXIT_LEVEL=1
if errorlevel 1 if not "%HB_SHOW_ERRORS%" == "no" notepad %_HB_MAKELOG%
goto EXIT
:CLEAN
%_HB_MAKE_PROGRAM% %MK_USR% -nologo -f %_HB_MAKEFILE% CLEAN > %_HB_MAKELOG%
if errorlevel 1 set HB_EXIT_LEVEL=1
if errorlevel 1 goto EXIT
if exist %_HB_MAKELOG% del %_HB_MAKELOG% > nul
goto EXIT
:INSTALL
%_HB_MAKE_PROGRAM% %MK_USR% -nologo -f %_HB_MAKEFILE% INSTALL > nul
if errorlevel 1 set HB_EXIT_LEVEL=1
goto EXIT
:EXIT