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

Revision 26657, 1.8 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
13
14AR = ar
15CC = @CC@
16CFLAGS = @CFLAGS@ @ARCH_DEP_FLAGS@ -ansi -DSILENT -DSHORT_SUFFIX -DNZDL -DQUIET -DPARADOCNUM
17DEFS = @DEFS@
18RANLIB = @RANLIB@
19INSTALL = @INSTALL@
20INSTALL_DATA = @INSTALL_DATA@
21INSTALL_PROGRAM = @INSTALL_PROGRAM@
22LDFLAGS = @LDFLAGS@
23#NOTE: libmgtext.a needs to come before libmglib.a !!!
24QUERY_LIBS = ../src/text/libmgtext.a ../lib/libmglib.a @LIBS@
25PASSES_LIBS = ../src/text/libmgpass.a ../lib/libmglib.a @LIBS@
26TOUCH = echo timestamp >
27AWK = @AWK@
28
29JNICFLAGS=@JNICFLAGS@
30JNILDFLAGS=@JNILDFLAGS@
31JNIPREFIX=@JNIPREFIX@
32JNISUFFIX=@JNISUFFIX@
33JNIINC=@JNIINC@
34datadir = $(prefix)/share
35libexecdir = $(exec_prefix)/libexec
36localedir = $(datadir)/locale
37mandir = $(prefix)/man/man1
38
39CCOMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) $(JNICFLAGS)
40
41.SUFFIXES:
42
43.SUFFIXES: .c .o
44.c.o:
45    $(CCOMPILE) $<
46
47INCLUDES = -I.. -I../lib -I../src/text $(JNIINC)
48
49all: compile link
50
51compile:
52    $(CCOMPILE) MGSearchWrapperImpl.c MGRetrieveWrapperImpl.c MGPassesWrapperImpl.c
53
54link:
55    $(CC) $(LDFLAGS) $(JNILDFLAGS) -o $(JNIPREFIX)mgretrievejni.$(JNISUFFIX) MGRetrieveWrapperImpl.o $(QUERY_LIBS)
56    $(CC) $(LDFLAGS) $(JNILDFLAGS) -o $(JNIPREFIX)mgsearchjni.$(JNISUFFIX) MGSearchWrapperImpl.o $(QUERY_LIBS)
57    $(CC) $(LDFLAGS)  $(JNILDFLAGS) -o $(JNIPREFIX)mgpassjni.$(JNISUFFIX)  MGPassesWrapperImpl.o  $(PASSES_LIBS)
58
59clean:
60    rm -rf *.o $(JNIPREFIX)mgretrievejni.$(JNISUFFIX) $(JNIPREFIX)mgsearchjni.$(JNISUFFIX) $(JNIPREFIX)mgpassjni.$(JNISUFFIX)
61
62distclean: clean
63    rm -f Makefile
64
65install:
66#   ../mkinstalldirs $(libdir); \
67#   cp $(JNIPREFIX)mgjni.$(JNISUFFIX) $(JNIPREFIX)mgpassjni.$(JNISUFFIX)  $(libdir)/;
68
69
70
Note: See TracBrowser for help on using the browser.