source: indexers/trunk/winMake.bat@ 19524

Last change on this file since 19524 was 19524, checked in by ak19, 14 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
Line 
1@echo off
2
3set MAKE=nmake
4set MAKE_OPTIONS=/f
5
6if "%DEBUG%" == "" (
7 set MAKE_VARS=DEBUG=0
8) else (
9 set MAKE_VARS=DEBUG=%DEBUG%
10)
11
12if ""%1"" == """" goto all
13if ""%1"" == ""all"" goto go
14if ""%1"" == ""install"" goto go
15if ""%1"" == ""clean"" goto clean
16
17:unknown
18 echo Error: Unrecognized argument %1.
19 goto done
20
21:clean
22 del bin\*
23
24:go
25 if ""%2"" == ""javaonly"" goto java
26 if ""%2"" == ""nojava"" goto nojava
27 if ""%2"" == ""gs2"" goto gs2
28
29:all
30 if NOT EXIST "bin" mkdir bin
31
32 cd packages\windows\iconv
33 if NOT EXIST "iconv" unzip iconv.zip
34 cd iconv
35 %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
36 cd ..\..\..\..
37
38 cd packages\unac
39 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
40 cd ..\..
41
42 cd mg
43 call winMake.bat %1
44 cd ..
45
46 cd mgpp
47 call winMake.bat %1
48 cd ..
49
50 cd lucene-gs
51 call winMake.bat %1
52 cd ..
53
54 if ""%1"" == ""clean"" goto clean2
55 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;
62
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
74 cd ..
75 goto done
76
77:nojava
78 cd packages\windows\iconv\iconv
79 %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
80 cd ..\..\..\..
81
82 cd packages\unac
83 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
84 cd ..\..
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
94
95:gs2
96 if NOT EXIST "bin" mkdir bin
97
98 cd packages\windows\iconv\iconv
99 %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
100 cd ..\..\..\..
101
102 cd packages\unac
103 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
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
119:done
Note: See TracBrowser for help on using the repository browser.