root/main/trunk/greenstone2/common-src/indexers/mgpp/jni/Makefile.in @ 30203

Revision 30203, 2.4 KB (checked in by ak19, 5 years ago)

Propagating ARCH_DEP_FLAGS to allow successful GS compilation on the 32 bit Mac Leopard using a 64 bit JDK 6: -m64 flag needs to propagate into mg and mgpp to get JNI to work during runtime (with mg/mgpp collections using gdbm).

  • 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 = jni
10top_srcdir = @top_srcdir@
11transform = @program_transform_name@
12
13UNAC_DIR=@UNAC_DIR@
14
15ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
16ifeq ($(ENABLE_ACCENTFOLD), 1)
17AFLIBS = $(UNAC_DIR)/libunac.a
18AFINCLUDES = -I$(UNAC_DIR)
19else
20AFLIBS =
21AFINCLUDES =
22endif
23
24
25AR = ar
26CC = @CC@
27CXX = @CXX@
28CFLAGS = @CFLAGS@ -ansi @ARCH_DEP_FLAGS@ -DSILENT -DSHORT_SUFFIX
29CXXFLAGS = @CXXFLAGS@ @ARCH_DEP_FLAGS@ -DSILENT -DSHORT_SUFFIX
30DEFS = @DEFS@
31RANLIB = @RANLIB@
32INSTALL = @INSTALL@
33INSTALL_DATA = @INSTALL_DATA@
34INSTALL_PROGRAM = @INSTALL_PROGRAM@
35LDFLAGS = @LDFLAGS@ @ARCH_DEP_FLAGS@
36#NOTE: libmgpptext.a needs to come before libmgpplib.a !!!
37
38ifeq ($(GSDLOS),windows)
39  QUERY_LIBS = ../text/libmgpptext.a   ../lib/libmgpplib.a $(AFLIBS) -static-libstdc++ ../../../packages/iconv/lib/libiconv.a @LIBS@
40  PASSES_LIBS = ../text/libmgpppass.a ../lib/libmgpplib.a -static-libstdc++ @LIBS@
41else
42  QUERY_LIBS = ../text/libmgpptext.a   ../lib/libmgpplib.a $(AFLIBS) ../../../packages/iconv/lib/libiconv.a @LIBS@
43  PASSES_LIBS = ../text/libmgpppass.a ../lib/libmgpplib.a @LIBS@
44endif
45
46TOUCH = echo timestamp >
47AWK = @AWK@
48
49JNICFLAGS=@JNICFLAGS@
50JNILDFLAGS=@JNILDFLAGS@
51JNIPREFIX=@JNIPREFIX@
52JNISUFFIX=@JNISUFFIX@
53JNIINC=@JNIINC@
54
55datadir = $(prefix)/share
56libexecdir = $(exec_prefix)/libexec
57localedir = $(datadir)/locale
58mandir = $(prefix)/man/man1
59
60CXXCOMPILE = $(CXX) -c $(DEFS) $(INCLUDES) $(CXXFLAGS) $(JNICFLAGS)
61
62.SUFFIXES:
63
64.SUFFIXES: .cpp .o
65.cpp.o:
66    $(CXXCOMPILE) $<
67
68INCLUDES = -I.. -I../lib -I../text $(JNIINC) $(AFINCLUDES)
69
70all: compile link
71
72compile:
73    $(CXXCOMPILE) MGPPSearchWrapperImpl.cpp MGPPRetrieveWrapperImpl.cpp MGPPPassesWrapperImpl.cpp
74link:
75    $(CXX) $(LDFLAGS) $(JNILDFLAGS) -o $(JNIPREFIX)mgppretrievejni.$(JNISUFFIX) MGPPRetrieveWrapperImpl.o $(QUERY_LIBS)
76    $(CXX) $(LDFLAGS) $(JNILDFLAGS) -o $(JNIPREFIX)mgppsearchjni.$(JNISUFFIX) MGPPSearchWrapperImpl.o $(QUERY_LIBS)
77    $(CXX) $(LDFLAGS) $(JNILDFLAGS) -o $(JNIPREFIX)mgpppassjni.$(JNISUFFIX) MGPPPassesWrapperImpl.o $(PASSES_LIBS)
78
79clean:
80    rm -rf *.o $(JNIPREFIX)mgppretrievejni.$(JNISUFFIX) $(JNIPREFIX)mgppsearchjni.$(JNISUFFIX) $(JNIPREFIX)mgpppassjni.$(JNISUFFIX)
81
82distclean: clean
83    rm -f Makefile
84
85install:
86#   ../mkinstalldirs $(libdir); \
87#   cp $(JNIPREFIX)mgppjni.$(JNISUFFIX)  $(JNIPREFIX)mgpppassjni.$(JNISUFFIX)  $(libdir)/;
88
89
90
Note: See TracBrowser for help on using the browser.