Files
harbour-core/harbour/contrib/mtpl_b32.bat
Viktor Szakats 4bc0533891 2009-02-13 20:10 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.bat
  * tests/rddtest/make_c52.bat
  * tests/run_prg.bat
  * tests/hbmk_gnu.bat
  * tests/hbmk_vc.bat
  * tests/hbmk_b32.bat
  * tests/run_prg_all.bat
  * bin/hbmk.bat
  * bin/hbmk_os2.cmd
  * bin/postinst.bat
  * make_vc.bat
  * make_gnu_os2.cmd
  * make_gnu.bat
  * contrib/make_b32_all.bat
  * contrib/mtpl_b32.bat
  * contrib/make_vc_all.bat
  * contrib/mtpl_vc.bat
  * contrib/examples/pp/hbmk.bat
  * contrib/examples/guestbk/hbmk.bat
  * contrib/examples/pe/hbmk.bat
  * contrib/examples/hbsqlit2/tests/hbmk.bat
  * contrib/examples/uhttpd/hbmk.bat
  * contrib/examples/dbu/hbmk.bat
  * contrib/examples/terminal/hbmk.bat
  * contrib/examples/terminal/hbmk_trm_appn.bat
  * contrib/examples/hscript/hbmk.bat
  * contrib/examples/rl/hbmk.bat
  * utils/hbdoc/hbmk.bat
  * utils/hbextern/make_c5x.bat
  * utils/hbmake/hbmk.bat
  * utils/hbtest/make_c5x.bat
  * utils/hbtest/make_xpp.bat
    * Minor formatting.
    * Cleanups to refer to simply 'hbmk'.

  ; TODO: Add support for other than bcc/msvc compiler for
          HB_USER_LIBS. Change HB_USER_LIBS settings to
          contain the raw lib list without extensions.
          This is where batch capabilities end, so this
          might need a .prg rewrite.
2009-02-13 19:24:37 +00:00

62 lines
1.7 KiB
Batchfile

@rem
@rem $Id$
@rem
@echo off
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 HB_USER_MAKEFLAGS=
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=b32
if "%_HB_MAKE_PROGRAM%" == "" set _HB_MAKE_PROGRAM=make.exe
if "%_HB_MAKEFILE%" == "" set _HB_MAKEFILE=..\mtpl_b32.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% %HB_USER_MAKEFLAGS% -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% %HB_USER_MAKEFLAGS% -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% %HB_USER_MAKEFLAGS% -f %_HB_MAKEFILE% INSTALL > nul
if errorlevel 1 set HB_EXIT_LEVEL=1
goto EXIT
:EXIT