Files
harbour-core/harbour/make_b32.bat
Przemyslaw Czerpak 67381094f4 2007-07-26 21:45 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
+ harbour/bldcmncf.sh
  + harbour/make_gcc.sh
  + harbour/makefile.gc
  * harbour/common.mak
  * harbour/makefile.bc
  * harbour/makefile.vc
  * harbour/make_vc.bat
  * harbour/make_b32.bat
    * added support for GCC and common make file. The extension created
      by Marek Paliwoda with some modifications added by me.
      Victor this commit removed the HB_* prefix from some of internal
      make variables. I've done it temporary to avoid synchronization
      problems with files in SVN, used by me and Marek. I hope we will
      clean the code and restore necessary prefixes when Marek will have
      returned so we can test it in different environments - such
      modification have to be done in all of the above files.
2007-07-26 19:46:10 +00:00

92 lines
2.6 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=P
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_MAKE_FLAGS=
rem ---------------------------------------------------------------
if "%HB_MAKE_PROGRAM%" == "" set HB_MAKE_PROGRAM=make.exe
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 ---------------------------------------------------------------
rem IMPORTANT ! It has to be declared here
if "%CC_DIRNAME%" == "" set CC_DIRNAME=b32
if "%HB_GT_LIB%" == "" set HB_GT_LIB=gtwin
rem ---------------------------------------------------------------
if "%1" == "clean" goto CLEAN
if "%1" == "CLEAN" goto CLEAN
if "%1" == "install" goto INSTALL
if "%1" == "INSTALL" goto INSTALL
rem ---------------------------------------------------------------
:BUILD
%HB_MAKE_PROGRAM% %HB_MAKE_FLAGS% -r -fmakefile.bc %1 %2 %3 > make_%CC_DIRNAME%.log
if errorlevel 1 goto BUILD_ERR
goto EXIT
rem ---------------------------------------------------------------
:BUILD_ERR
notepad make_%CC_DIRNAME%.log
goto EXIT
rem ---------------------------------------------------------------
:CLEAN
%HB_MAKE_PROGRAM% %HB_MAKE_FLAGS% -f makefile.bc CLEAN > make_%CC_DIRNAME%.log
rem In this case, the makefile handles most cleanup.
if exist make_%CC_DIRNAME%.log del make_%CC_DIRNAME%.log > nul
if exist inst_%CC_DIRNAME%.log del inst_%CC_DIRNAME%.log > nul
goto EXIT
rem ---------------------------------------------------------------
:INSTALL
if "%HB_INSTALL_PREFIX%" == "" set HB_INSTALL_PREFIX=.
if "%HB_BIN_INSTALL%" == "" set HB_BIN_INSTALL=%HB_INSTALL_PREFIX%\bin
if "%HB_INC_INSTALL%" == "" set HB_INC_INSTALL=%HB_INSTALL_PREFIX%\include
if "%HB_LIB_INSTALL%" == "" set HB_LIB_INSTALL=%HB_INSTALL_PREFIX%\lib
%HB_MAKE_PROGRAM% %HB_MAKE_FLAGS% -f makefile.bc INSTALL > nul
goto EXIT
rem ---------------------------------------------------------------
:EXIT
rem Restore user value
set COPYCMD=%HB_ORGENV_COPYCMD%
set HB_ORGENV_COPYCMD=
set CC_DIRNAME=