source: indexers/trunk/mg/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:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.0 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 go
16
17:unknown
18 echo Error: Unrecognized argument %1.
19 goto done
20
21:go
22 if ""%2"" == ""javaonly"" goto java
23 if ""%2"" == ""nojava"" goto nojava
24
25:all
26 cd lib
27 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
28 cd ..
29
30 cd src\images
31 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
32 cd ..\..
33
34 cd src\text
35 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
36 cd ..\..
37
38 cd java\org\greenstone\mg
39 call winMake.bat %1
40 cd ..\..\..\..
41
42 cd jni
43 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
44 cd ..
45 goto done
46:java
47 cd java\org\greenstone\mg
48 call winMake.bat %1
49 cd ..\..\..\..
50 goto done
51
52:nojava
53 cd lib
54 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
55 cd ..
56
57 cd src\images
58 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
59 cd ..\..
60
61 cd src\text
62 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
63 cd ..\..
64 goto done
65:done
66
67
Note: See TracBrowser for help on using the repository browser.