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

Revision 25171, 2.0 KB (checked in by jmt12, 8 years ago)

Removing hardcoded -fpic in Makefile.in (presumably snuck in during merge of 64bit branch) and replacing with proper use of Kathy's ARCH_DEP_FLAGS variable

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