source: indexers/trunk/winMake.bat@ 19524

Last change on this file since 19524 was 19524, checked in by ak19, 15 years ago

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.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
RevLine 
[13728]1@echo off
2
3set MAKE=nmake
4set MAKE_OPTIONS=/f
5
[19524]6if "%DEBUG%" == "" (
7 set MAKE_VARS=DEBUG=0
8) else (
9 set MAKE_VARS=DEBUG=%DEBUG%
10)
11
[13728]12if ""%1"" == """" goto all
[13755]13if ""%1"" == ""all"" goto go
[13728]14if ""%1"" == ""install"" goto go
[13755]15if ""%1"" == ""clean"" goto clean
[13728]16
17:unknown
18 echo Error: Unrecognized argument %1.
19 goto done
20
[13755]21:clean
22 del bin\*
[13840]23
24:go
[13755]25 if ""%2"" == ""javaonly"" goto java
26 if ""%2"" == ""nojava"" goto nojava
[16064]27 if ""%2"" == ""gs2"" goto gs2
[13755]28
[13728]29:all
[16907]30 if NOT EXIST "bin" mkdir bin
31
[18310]32 cd packages\windows\iconv
33 if NOT EXIST "iconv" unzip iconv.zip
34 cd iconv
[19524]35 %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
[16907]36 cd ..\..\..\..
[16903]37
[13755]38 cd packages\unac
[19524]39 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
[13755]40 cd ..\..
[13728]41
42 cd mg
[19524]43 call winMake.bat %1
[13728]44 cd ..
45
46 cd mgpp
47 call winMake.bat %1
48 cd ..
49
50 cd lucene-gs
51 call winMake.bat %1
[13750]52 cd ..
[19524]53
54 if ""%1"" == ""clean"" goto clean2
[13728]55 goto done
56
[19524]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;
62
[13728]63:java
64 cd mg
65 call winMake.bat %1 javaonly
66 cd ..
67
68 cd mgpp
69 call winMake.bat %1 javaonly
70 cd ..
71
72 cd lucene-gs
73 call winMake.bat %1
[13750]74 cd ..
[13728]75 goto done
76
77:nojava
[16907]78 cd packages\windows\iconv\iconv
[19524]79 %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
[16907]80 cd ..\..\..\..
81
[13755]82 cd packages\unac
[19524]83 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
[13755]84 cd ..\..
[13728]85
86 cd mg
87 call winMake.bat %1 nojava
88 cd ..
89
90 cd mgpp
91 call winMake.bat %1 nojava
92 cd ..
93 goto done
[13840]94
[16064]95:gs2
96 if NOT EXIST "bin" mkdir bin
[16907]97
98 cd packages\windows\iconv\iconv
[19524]99 %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
[16907]100 cd ..\..\..\..
101
[16064]102 cd packages\unac
[19524]103 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
[16064]104 cd ..\..
105
106 cd mg
107 call winMake.bat %1 nojava
108 cd ..
109
110 cd mgpp
111 call winMake.bat %1 nojava
112 cd ..
113
114 cd lucene-gs
115 call winMake.bat %1
116 cd ..
117 goto done
118
[13728]119:done
Note: See TracBrowser for help on using the repository browser.