source: indexers/trunk/mgpp/java/org/greenstone/mgpp/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.2 KB
Line 
1@echo off
2
3set MGPPHOME=..\..\..\..
4
5rem ---- Where to put class files ----
6set JAVACLASSDIR=classes
7
8rem ---- Name and location of java programs ----
9set JAVAC="%JAVA_HOME%\bin\javac"
10set JAVAH="%JAVA_HOME%\bin\javah"
11set JAVA="%JAVA_HOME%\bin\java"
12set JAVADOC="%JAVA_HOME%\bin\javadoc"
13set JAR="%JAVA_HOME%\bin\jar"
14
15set JAVACOPTIONS= -deprecation -g -O
16
17if "%DEBUG%" == "" (
18 set MAKE_VARS=DEBUG=0
19) else (
20 set MAKE_VARS=DEBUG=%DEBUG%
21)
22
23
24if ""%1"" == """" goto all
25if ""%1"" == ""all"" goto all
26if ""%1"" == ""install"" goto install
27if ""%1"" == ""clean"" goto clean
28
29:unknown
30 echo Error: Unrecognized argument %1.
31 goto done
32
33:all
34 if not exist %JAVACLASSDIR% mkdir %JAVACLASSDIR%
35 echo Compiling MGPP Java classes ...
36 %JAVAC% -d %JAVACLASSDIR% %JAVACOPTIONS% *.java
37 %JAVAH% -classpath %JAVACLASSDIR% -d %MGPPHOME%\jni org.greenstone.mgpp.MGPPWrapper
38 %JAR% cf %MGPPHOME%\mgpp.jar -C %JAVACLASSDIR% org
39 goto done
40
41:install
42 goto done
43
44:clean
45 echo Cleaning up...
46 if exist %JAVACLASSDIR% rmdir /S /Q %JAVACLASSDIR%
47 if exist %MGPPHOME%\mgpp.jar del %MGPPHOME%\mgpp.jar
48 if exist %MGPPHOME%\jni\org_greenstone_mgpp_MGPPWrapper.h del %MGPPHOME%\jni\org_greenstone_mgpp_MGPPWrapper.h
49 goto done
50
51:done
Note: See TracBrowser for help on using the repository browser.