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

Revision 30863, 2.5 KB (checked in by ak19, 4 years ago)

Changes to get libiconv issues on MacOS El Capitan straightened out, since DYLD_LIBRARY_PATH gets wiped out on these newer Mac OS versions. The current solution is to use the system libiconv on MacOS machines that are already specific to Macs (and therefore compatible with Macs).

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