root/main/trunk/greenstone2/common-src/indexers/mgpp/java/org/greenstone/mgpp/Makefile.in @ 23356

Revision 23356, 1.7 KB (checked in by sjm84, 10 years ago)

Updated several configure scripts and Makefiles to make use of the JAVA, JAVAC and JAVACFLAGS environment variables, also added a --disable-java option to several of the configure scripts

  • 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/mgpp
10top_srcdir = @top_srcdir@
11transform = @program_transform_name@
12
13AR = ar
14CC = @CC@
15CXX = @CXX@
16JAVAC = @JAVAC@
17JAVAH = javah
18JAR = jar
19CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX
20CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@ -DSILENT -DSHORT_SUFFIX
21JAVACFLAGS = @JAVACFLAGS@
22DEFS = @DEFS@
23RANLIB = @RANLIB@
24INSTALL = @INSTALL@
25INSTALL_DATA = @INSTALL_DATA@
26INSTALL_PROGRAM = @INSTALL_PROGRAM@
27LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
28LIBS =  -lstdc++ @LIBS@
29TOUCH = echo timestamp >
30AWK = @AWK@
31
32MGPPHOME=../../../..
33JAVACLASSDIR=./classes
34JAVASRCDIR=../../..
35JAVACOPTIONS= -deprecation -g -O
36JAVACLASSPATH=$(JAVACLASSDIR):
37
38datadir = $(prefix)/share
39libexecdir = $(exec_prefix)/libexec
40localedir = $(datadir)/locale
41mandir = $(prefix)/man/man1
42
43
44all: setup compile
45
46setup:
47    mkdir -p $(JAVACLASSDIR)
48
49compile: setup
50    "$(JAVAC)" $(JAVACFLAGS) -d "$(JAVACLASSDIR)" -sourcepath "$(JAVASRCDIR)" $(JAVACOPTIONS) *.java
51    "$(JAVAH)" -classpath "$(JAVACLASSPATH)" -d "$(MGPPHOME)/jni" org.greenstone.mgpp.MGPPPassesWrapper
52    "$(JAVAH)" -classpath "$(JAVACLASSPATH)" -d "$(MGPPHOME)/jni" org.greenstone.mgpp.MGPPSearchWrapper
53    "$(JAVAH)" -classpath "$(JAVACLASSPATH)" -d "$(MGPPHOME)/jni" org.greenstone.mgpp.MGPPRetrieveWrapper   
54    "$(JAR)" cf "$(MGPPHOME)/mgpp.jar" -C "$(JAVACLASSDIR)" org
55
56clean:
57    rm -rf "$(JAVACLASSDIR)" "$(MGPPHOME)/mgpp.jar" "$(MGPPHOME)/jni/org_greenstone_mgpp_MGPPSearchWrapper.h" "$(MGPPHOME)/jni/org_greenstone_mgpp_MGPPRetrieveWrapper.h" "$(MGPPHOME)/jni/org_greenstone_mgpp_MGPPPassesWrapper.h"
58
59install:
60
61distclean: clean
62    rm -f Makefile
63
64
Note: See TracBrowser for help on using the browser.