Files
harbour-core/harbour/make_vc.bat
Viktor Szakats 37a9f88c29 2006-07-05 20:30 UTC+0100 Viktor Szakats (viktor.szakats syenar.hu)
- harbour/Common.mak
   + harbour/common.mak
   * harbour/make_b32.bat
   * harbour/make_vc.bat
   * harbour/makefile.bc
   * harbour/makefile.vc
     ! Filename casing correction. (fixed in two previous commits)
     ! Missing CVS ID added. (fixed in previous commit)
     ! Few minor formatting, typos fixed.
     + Few build envvars prefixed with HB_ (some renamed)
     * Few minor cleanups not related the actual make process.
     ; Thanks Marek for the great work.
2006-07-05 18:31:07 +00:00

74 lines
1.9 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_MAKE_PROGRAM=
rem set HB_MAKE_FLAGS=
rem ---------------------------------------------------------------
if "%HB_MAKE_PROGRAM%" == "" set HB_MAKE_PROGRAM=nmake.exe
rem ---------------------------------------------------------------
if "%1" == "clean" goto CLEAN
if "%1" == "CLEAN" goto CLEAN
rem ---------------------------------------------------------------
:BUILD
if not exist obj\nul md obj
if not exist obj\vc\nul md obj\vc
if not exist obj\dll\nul md obj\dll
if not exist obj\dll\vc\nul md obj\dll\vc
if not exist lib\nul md lib
if not exist lib\vc\nul md lib\vc
if not exist bin\nul md bin
if not exist bin\vc\nul md bin\vc
%HB_MAKE_PROGRAM% %HB_MAKE_FLAGS% /f makefile.vc %1 %2 %3 > make_vc.log
if errorlevel 1 goto BUILD_ERR
rem ---------------------------------------------------------------
:BUILD_OK
copy bin\vc\*.exe bin\*.* > nul
copy lib\vc\*.lib lib\*.* > nul
goto EXIT
rem ---------------------------------------------------------------
:BUILD_ERR
notepad make_vc.log
goto EXIT
rem ---------------------------------------------------------------
:CLEAN
%HB_MAKE_PROGRAM% %HB_MAKE_FLAGS% /f makefile.vc CLEAN
rem In this case, the makefile handles most cleanup.
if exist make_vc.log del make_vc.log
goto EXIT
rem ---------------------------------------------------------------
:EXIT