source: main/trunk/greenstone2/common-src/indexers/mg/jni/Makefile.in@ 22058

Last change on this file since 22058 was 22058, checked in by ak19, 14 years ago

Changes to makefiles to 1. incorporate USE_GDBM and USE_JDBM flags (and USE_SQLITE) in most places so that the DEFINES variable is set at all times. This is necessary to ensure that all classes that contain objects with gdbm and jdbm members are of a consistent size. Else we've had experience with Greenstone crashing with memory errors (to do with the similar ENABLE_indexer flags). 2. ENABLE_JDBM is now USE_JDBM. 3. Not everything works now. It still compiles the default way, but the disable-gdbm flag is causing trouble when compiling argdb in recpt since it uses that.

  • 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
13USE_GDBM = @USE_GDBM@
14ifeq ($(USE_GDBM), 1)
15GDBM_DEFINES = -DUSE_GDBM
16else
17GDBM_DEFINES =
18endif
19
20USE_JDBM = @USE_JDBM@
21ifeq ($(USE_JDBM), 1)
22JDBM_DEFINES = -DUSE_JDBM
23else
24JDBM_DEFINES =
25endif
26
27USE_SQLITE = @USE_SQLITE@
28ifeq ($(USE_SQLITE), 1)
29SQLITE_DEFINES = -DUSE_SQLITE
30else
31SQLITE_DEFINES =
32endif
33
34AR = ar
35CC = @CC@
36CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -ansi -fpic -DSILENT -DSHORT_SUFFIX -DNZDL -DQUIET -DPARADOCNUM
37DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
38RANLIB = @RANLIB@
39INSTALL = @INSTALL@
40INSTALL_DATA = @INSTALL_DATA@
41INSTALL_PROGRAM = @INSTALL_PROGRAM@
42LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
43#NOTE: libmgtext.a needs to come before libmglib.a !!!
44QUERY_LIBS = ../src/text/libmgtext.a ../lib/libmglib.a @LIBS@
45PASSES_LIBS = ../src/text/libmgpass.a ../lib/libmglib.a @LIBS@
46TOUCH = echo timestamp >
47AWK = @AWK@
48
49JNIFLAGS=@JNIFLAGS@
50JNISUFFIX=@JNISUFFIX@
51JNIINC=@JNIINC@
52datadir = $(prefix)/share
53libexecdir = $(exec_prefix)/libexec
54localedir = $(datadir)/locale
55mandir = $(prefix)/man/man1
56
57CCOMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
58
59.SUFFIXES:
60
61.SUFFIXES: .c .o
62.c.o:
63 $(CCOMPILE) $<
64
65INCLUDES = -I.. -I../lib -I../src/text $(JNIINC)
66
67all: compile link
68
69compile:
70 $(CCOMPILE) MGSearchWrapperImpl.c MGRetrieveWrapperImpl.c MGPassesWrapperImpl.c
71
72link:
73 $(CC) $(LDFLAGS) $(JNIFLAGS) -o libmgretrievejni.$(JNISUFFIX) MGRetrieveWrapperImpl.o $(QUERY_LIBS)
74 $(CC) $(LDFLAGS) $(JNIFLAGS) -o libmgsearchjni.$(JNISUFFIX) MGSearchWrapperImpl.o $(QUERY_LIBS)
75 $(CC) $(LDFLAGS) $(JNIFLAGS) -o libmgpassjni.$(JNISUFFIX) MGPassesWrapperImpl.o $(PASSES_LIBS)
76
77clean:
78 rm -rf *.o libmgretrievejni.$(JNISUFFIX) libmgsearchjni.$(JNISUFFIX) libmgpassjni.$(JNISUFFIX)
79
80distclean: clean
81 rm -f Makefile
82
83install:
84# ../mkinstalldirs $(libdir); \
85# cp libmgjni.$(JNISUFFIX) libmgpassjni.$(JNISUFFIX) $(libdir)/;
86
87
88
Note: See TracBrowser for help on using the repository browser.