source: indexers/trunk/mgpp/jni/Makefile.in@ 20847

Last change on this file since 20847 was 20847, checked in by oranfry, 13 years ago

pointing mgpp to the bundled iconv

  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
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
25
26AR = ar
27CC = @CC@
28CXX = @CXX@
29CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -fPIC -ansi -DSILENT -DSHORT_SUFFIX
30CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@ -fPIC -DSILENT -DSHORT_SUFFIX
31DEFS = @DEFS@
32RANLIB = @RANLIB@
33INSTALL = @INSTALL@
34INSTALL_DATA = @INSTALL_DATA@
35INSTALL_PROGRAM = @INSTALL_PROGRAM@
36LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
37#NOTE: libmgpptext.a needs to come before libmgpplib.a !!!
38QUERY_LIBS = ../text/libmgpptext.a ../lib/libmgpplib.a $(AFLIBS) -lstdc++ ../../../packages/iconv/lib/libiconv.a @LIBS@
39PASSES_LIBS = ../text/libmgpppass.a ../lib/libmgpplib.a -lstdc++ @LIBS@
40TOUCH = echo timestamp >
41AWK = @AWK@
42
43JNIFLAGS=@JNIFLAGS@
44JNISUFFIX=@JNISUFFIX@
45JNIINC=@JNIINC@
46
47datadir = $(prefix)/share
48libexecdir = $(exec_prefix)/libexec
49localedir = $(datadir)/locale
50mandir = $(prefix)/man/man1
51
52CXXCOMPILE = $(CXX) -c $(DEFS) $(INCLUDES) $(CXXFLAGS)
53
54.SUFFIXES:
55
56.SUFFIXES: .cpp .o
57.cpp.o:
58 $(CXXCOMPILE) $<
59
60INCLUDES = -I.. -I../lib -I../text $(JNIINC) $(AFINCLUDES)
61
62all: compile link
63
64compile:
65 $(CXXCOMPILE) MGPPSearchWrapperImpl.cpp MGPPRetrieveWrapperImpl.cpp MGPPPassesWrapperImpl.cpp
66link:
67 $(CXX) $(LDFLAGS) $(JNIFLAGS) -o libmgppretrievejni.$(JNISUFFIX) MGPPRetrieveWrapperImpl.o $(QUERY_LIBS)
68 $(CXX) $(LDFLAGS) $(JNIFLAGS) -o libmgppsearchjni.$(JNISUFFIX) MGPPSearchWrapperImpl.o $(QUERY_LIBS)
69 $(CXX) $(LDFLAGS) $(JNIFLAGS) -o libmgpppassjni.$(JNISUFFIX) MGPPPassesWrapperImpl.o $(PASSES_LIBS)
70
71clean:
72 rm -rf *.o libmgppretrievejni.$(JNISUFFIX) libmgppsearchjni.$(JNISUFFIX) libmgpppassjni.$(JNISUFFIX)
73
74distclean: clean
75 rm -f Makefile
76
77install:
78# ../mkinstalldirs $(libdir); \
79# cp libmgppjni.$(JNISUFFIX) libmgpppassjni.$(JNISUFFIX) $(libdir)/;
80
81
82
Note: See TracBrowser for help on using the repository browser.