| Revision 1211 (by mmimica, 2007/04/29 20:30:03) |
This seems to fix the strange error saying "The system cannot find the batch label specified - fix" when running "fix.bat msvc6".
|
@echo off
echo.
set MAKE_PROJECT=AllegroGL
echo # generated by fix.bat > makefile
if [%1] == [djgpp] goto djgpp
if [%1] == [mingw] goto mingw32
if [%1] == [mingw32] goto mingw32
if [%1] == [msvc] goto msvc
if [%1] == [msvc6] goto msvc6
if [%1] == [msvc7] goto msvc7
if [%1] == [msvc8] goto msvc8
if [%1] == [unix] goto unix
if [%1] == [help] goto help
if [%1] == [--help] goto help
if [%1] == [-?] goto help
if [%1] == [] goto help
goto help
:djgpp
set MAKE_COMPILER=DJGPP
set MAKEFILE=makefile.dj
goto fix
:mingw32
set MAKE_COMPILER=Mingw32
set MAKEFILE=makefile.mgw
echo STATICLINK = 1 >> makefile
goto fix
:msvc
echo.
echo Notice: Because no version was specified, MSVC 6 has been chosen.
echo.
echo If you are using a newer version, you should use 'msvc7' or 'msvc8' instead.
echo msvc7 should be used for MSVC .NET or MSVC .NET 2003
echo msvc8 should be used for MSVC .NET 2005
echo.
:msvc6
set MAKE_COMPILER=MSVC6
set MAKEFILE=makefile.vc
echo STATICLINK = 1 >> makefile
echo COMPILER_MSVC6 = 1 >> makefile
goto fix
:msvc7
set MAKE_COMPILER=MSVC7
set MAKEFILE=makefile.vc
echo STATICLINK = 1 >> makefile
echo COMPILER_MSVC7 = 1 >> makefile
goto fix
:msvc8
set MAKE_COMPILER=MSVC8
set MAKEFILE=makefile.vc
echo STATICLINK = 1 >> makefile
echo COMPILER_MSVC8 = 1 >> makefile
:fix
echo Configuring %MAKE_PROJECT% for %MAKE_COMPILER%...
echo include make/%MAKEFILE% >> makefile
:done
set MAKE_PROJECT=
set MAKEFILE=
set MAKE_COMPILER=
echo Done! Now run make to start the compilation.
echo.
goto end
:help
echo Compilation target adjustment.
echo Usage: fix [platform]
echo.
echo [platform] is one of: djgpp, mingw32, msvc6, msvc7, msvc8
echo Example: fix mingw32
echo.
echo For the Unix build, please use ./fix.sh
echo.
:end