root/gsdl/trunk/trunk/mg/java/org/greenstone/mg/Makefile.in @ 16583

Revision 16583, 1.5 KB (checked in by davidb, 12 years ago)

Undoing change commited in r16582

  • Property svn:keywords set to Author Date Id Revision
Line 
1
2SHELL = /bin/sh
3VPATH = @srcdir@
4exec_prefix = @exec_prefix@
5prefix = @prefix@
6bindir = @bindir@
7srcdir = @srcdir@
8libdir = @libdir@
9subdir = java/org/greenstone/mg
10top_srcdir = @top_srcdir@
11transform = @program_transform_name@
12
13AR = ar
14CC = @CC@
15CXX = @CXX@
16JAVAC = $(JAVA_HOME)/bin/javac
17JAVAH = $(JAVA_HOME)/bin/javah
18JAR = $(JAVA_HOME)/bin/jar
19CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX
20CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@ -DSILENT -DSHORT_SUFFIX
21DEFS = @DEFS@
22RANLIB = @RANLIB@
23INSTALL = @INSTALL@
24INSTALL_DATA = @INSTALL_DATA@
25INSTALL_PROGRAM = @INSTALL_PROGRAM@
26LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
27LIBS =  -lstdc++ @LIBS@
28TOUCH = echo timestamp >
29AWK = @AWK@
30
31MGHOME=../../../..
32JAVACLASSDIR=./classes
33JAVASRCDIR=../../..
34JAVACOPTIONS= -deprecation -g -O
35JAVACLASSPATH=$(JAVACLASSDIR):
36
37datadir = $(prefix)/share
38libexecdir = $(exec_prefix)/libexec
39localedir = $(datadir)/locale
40mandir = $(prefix)/man/man1
41
42
43all: setup compile
44
45setup:
46    mkdir -p $(JAVACLASSDIR)
47
48compile: setup
49    $(JAVAC) -d $(JAVACLASSDIR) -sourcepath $(JAVASRCDIR) $(JAVACOPTIONS) *.java
50    $(JAVAH) -classpath $(JAVACLASSPATH) -d $(MGHOME)/jni org.greenstone.mg.MGWrapper
51    $(JAVAH) -classpath $(JAVACLASSPATH) -d $(MGHOME)/jni org.greenstone.mg.MGPassesWrapper
52    $(JAR) cf $(MGHOME)/mg.jar -C $(JAVACLASSDIR) org
53
54clean:
55    rm -rf $(JAVACLASSDIR) $(MGHOME)/mg.jar $(MGHOME)/jni/org_greenstone_mg_MGWrapper.h $(MGHOME)/jni/org_greenstone_mg_MGPassesWrapper.h
56
57install:
58
59distclean: clean
60    rm -f Makefile
61
62
Note: See TracBrowser for help on using the browser.