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

Revision 26657, 2.1 KB (checked in by davidb, 7 years ago)

Support for cross-compilation added. This particular set of changes focus on flags that assist cross-compilation with JNI

  • 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@
36#NOTE: libmgpptext.a needs to come before libmgpplib.a !!!
37QUERY_LIBS = ../text/libmgpptext.a   ../lib/libmgpplib.a $(AFLIBS) -static-libstdc++ ../../../packages/iconv/lib/libiconv.a @LIBS@
38PASSES_LIBS = ../text/libmgpppass.a ../lib/libmgpplib.a -static-libstdc++ @LIBS@
39TOUCH = echo timestamp >
40AWK = @AWK@
41
42JNICFLAGS=@JNICFLAGS@
43JNILDFLAGS=@JNILDFLAGS@
44JNIPREFIX=@JNIPREFIX@
45JNISUFFIX=@JNISUFFIX@
46JNIINC=@JNIINC@
47
48datadir = $(prefix)/share
49libexecdir = $(exec_prefix)/libexec
50localedir = $(datadir)/locale
51mandir = $(prefix)/man/man1
52
53CXXCOMPILE = $(CXX) -c $(DEFS) $(INCLUDES) $(CXXFLAGS) $(JNICFLAGS)
54
55.SUFFIXES:
56
57.SUFFIXES: .cpp .o
58.cpp.o:
59    $(CXXCOMPILE) $<
60
61INCLUDES = -I.. -I../lib -I../text $(JNIINC) $(AFINCLUDES)
62
63all: compile link
64
65compile:
66    $(CXXCOMPILE) MGPPSearchWrapperImpl.cpp MGPPRetrieveWrapperImpl.cpp MGPPPassesWrapperImpl.cpp
67link:
68    $(CXX) $(LDFLAGS) $(JNILDFLAGS) -o $(JNIPREFIX)mgppretrievejni.$(JNISUFFIX) MGPPRetrieveWrapperImpl.o $(QUERY_LIBS)
69    $(CXX) $(LDFLAGS) $(JNILDFLAGS) -o $(JNIPREFIX)mgppsearchjni.$(JNISUFFIX) MGPPSearchWrapperImpl.o $(QUERY_LIBS)
70    $(CXX) $(LDFLAGS) $(JNILDFLAGS) -o $(JNIPREFIX)mgpppassjni.$(JNISUFFIX) MGPPPassesWrapperImpl.o $(PASSES_LIBS)
71
72clean:
73    rm -rf *.o $(JNIPREFIX)mgppretrievejni.$(JNISUFFIX) $(JNIPREFIX)mgppsearchjni.$(JNISUFFIX) $(JNIPREFIX)mgpppassjni.$(JNISUFFIX)
74
75distclean: clean
76    rm -f Makefile
77
78install:
79#   ../mkinstalldirs $(libdir); \
80#   cp $(JNIPREFIX)mgppjni.$(JNISUFFIX)  $(JNIPREFIX)mgpppassjni.$(JNISUFFIX)  $(libdir)/;
81
82
83
Note: See TracBrowser for help on using the browser.