Ignore:
Timestamp:
2009-05-19T16:59:34+12:00 (15 years ago)
Author:
ak19
Message:

Dr Bainbridge updated the Windows makefiles to 1. Take the DEBUG flag so that we can recompile all of GS2 in the Vis C++ 2005 Express Edition command prompt and then use its Debugger on the C code. 2. Now GS2 make clean command cleans up all object and lib files that its make generates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • indexers/trunk/winMake.bat

    r18310 r19524  
    33set MAKE=nmake
    44set MAKE_OPTIONS=/f
     5
     6if "%DEBUG%" == "" (
     7  set MAKE_VARS=DEBUG=0
     8) else (
     9  set MAKE_VARS=DEBUG=%DEBUG%
     10)
    511
    612if ""%1"" == """" goto all
     
    2733    if NOT EXIST "iconv" unzip iconv.zip
    2834    cd iconv
    29     %MAKE% %MAKE_OPTIONS% Makefile.msvc NO_NLS=1
     35    %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
    3036    cd ..\..\..\..
    3137
    3238    cd packages\unac
    33     %MAKE% %MAKE_OPTIONS% win32.mak %1
     39    %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
    3440    cd ..\..
    3541
    3642    cd mg
    37     call winMake.bat %1 
     43    call winMake.bat %1
    3844    cd ..
    3945
     
    4551    call winMake.bat %1
    4652    cd ..
     53
     54    if ""%1"" == ""clean"" goto clean2
    4755    goto done
     56
     57:: Need another clean because a pre-all clean command sent to iconv regenerates some lib
     58:: and object files. So we delete these after it's finished processing the clean command
     59:clean2
     60    for %%I in (lib srclib libcharset\lib) do if exist packages\windows\iconv\iconv\%%I\^*.obj del packages\windows\iconv\iconv\%%I\*.obj;
     61    for %%I in (lib srclib libcharset\lib) do if exist packages\windows\iconv\iconv\%%I\^*.lib del packages\windows\iconv\iconv\%%I\*.lib;
    4862
    4963:java
     
    6377:nojava
    6478    cd packages\windows\iconv\iconv
    65     %MAKE% %MAKE_OPTIONS% Makefile.msvc NO_NLS=1
     79    %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
    6680    cd ..\..\..\..
    6781
    6882    cd packages\unac
    69     %MAKE% %MAKE_OPTIONS% win32.mak %1
     83    %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
    7084    cd ..\..
    7185
     
    8397
    8498    cd packages\windows\iconv\iconv
    85     %MAKE% %MAKE_OPTIONS% Makefile.msvc NO_NLS=1
     99    %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
    86100    cd ..\..\..\..
    87101
    88102    cd packages\unac
    89     %MAKE% %MAKE_OPTIONS% win32.mak %1
     103    %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
    90104    cd ..\..
    91105
Note: See TracChangeset for help on using the changeset viewer.