* make_b32.bat
* make_vc.bat
* make_vcce.bat
+ Accepts "Install" and "Clean" consistently.
! Not directly modifying C_USR, instead use CFLAGS internally.
* contrib/make_b32_all.bat
* contrib/make_vc_all.bat
* contrib/make_b32.bat
* contrib/make_vc.bat
* contrib/mtpl_b32.bat
* contrib/mtpl_vc.bat
* contrib/mtpl_b32.mak
* contrib/mtpl_vc.mak
- contrib/mtpl_defs.mak
% Removed COPYCMD requirement.
! Not modifying any user level envvars anymore.
(so no need for COMPSPEC trick to call another copy of command com)
! Some other smaller fixes.
! Fixed rdd_ads in make_*_all.bats.
* Removed the simple common part for BC/VC to consistently
separate the BC/VC make file system. The only common
part now is common.mak in each contrib. (Marek I hope you don't
mind, I promise to update them in case of changes. We have quite
some reduancy between BC/VC anyway, so this won't hurt much overall,
but they are now nicely separated and maybe bit easier to oversee
for someone new to the project.
! Avoiding 'exit' command, as it stops all batch file
execution, and as a bad side-effect can force to exit
shells too.
- CFLAGS, CLIBFLAGS, HARBOURFLAGS not advertised anymore as
official public vars to set compiler flags.
C_USR, PRG_USR should be used, which are also GNU make system compatible.
! Fixed copyrights.
! Tabs converted to spaces.
71 lines
2.1 KiB
Batchfile
71 lines
2.1 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_BUILD_MODE=C
|
|
rem set HB_BUILD_DLL=yes
|
|
rem set HB_BUILD_DEBUG=yes
|
|
rem set HB_BUILD_VERBOSE=yes
|
|
rem set HB_REBUILD_PARSER=yes
|
|
rem set HB_MAKE_PROGRAM=
|
|
rem set HB_SHOW_ERRORS=
|
|
rem set HB_MAKE_FLAGS=
|
|
rem ---------------------------------------------------------------
|
|
|
|
if "%HB_GT_LIB%" == "" set HB_GT_LIB=gtwin
|
|
if "%HB_CC_NAME%" == "" set HB_CC_NAME=vc
|
|
if "%HB_MAKE_PROGRAM%" == "" set HB_MAKE_PROGRAM=nmake.exe
|
|
if "%HB_SHOW_ERRORS%" == "" set HB_SHOW_ERRORS=yes
|
|
set HB_MAKEFILE=make_%HB_CC_NAME%.mak
|
|
|
|
rem ---------------------------------------------------------------
|
|
|
|
rem Save the user value, force silent file overwrite with COPY
|
|
rem (not all Windows versions support the COPY /Y flag)
|
|
set HB_ORGENV_COPYCMD=%COPYCMD%
|
|
set COPYCMD=/Y
|
|
|
|
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_MAKE_FLAGS% -f %HB_MAKEFILE% %1 %2 %3 > make_%HB_CC_NAME%.log
|
|
if errorlevel 1 if "%HB_SHOW_ERRORS%" == "yes" notepad make_%HB_CC_NAME%.log
|
|
goto EXIT
|
|
|
|
:CLEAN
|
|
|
|
%HB_MAKE_PROGRAM% %HB_MAKE_FLAGS% -f %HB_MAKEFILE% CLEAN > make_%HB_CC_NAME%.log
|
|
if errorlevel 1 goto EXIT
|
|
if exist make_%HB_CC_NAME%.log del make_%HB_CC_NAME%.log > nul
|
|
if exist inst_%HB_CC_NAME%.log del inst_%HB_CC_NAME%.log > nul
|
|
goto EXIT
|
|
|
|
:INSTALL
|
|
|
|
%HB_MAKE_PROGRAM% %HB_MAKE_FLAGS% -f %HB_MAKEFILE% INSTALL > nul
|
|
goto EXIT
|
|
|
|
:EXIT
|
|
|
|
rem ---------------------------------------------------------------
|
|
|
|
rem Restore user value
|
|
set COPYCMD=%HB_ORGENV_COPYCMD%
|