root/trunk/indexers/mgpp/jni/Makefile.in @ 10917

Revision 10917, 1.6 KB (checked in by kjdon, 14 years ago)

removed java_home/include/linux from include path in makefile, made the configure script include this in JNIINC for linux, and use JAVA_HOME/include/solaris for solaris machines

  • 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
13AR = ar
14CC = @CC@
15CXX = @CXX@
16CFLAGS = @CFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX
17CXXFLAGS = @CXXFLAGS@ -DSILENT -DSHORT_SUFFIX
18DEFS = @DEFS@
19RANLIB = @RANLIB@
20INSTALL = @INSTALL@
21INSTALL_DATA = @INSTALL_DATA@
22INSTALL_PROGRAM = @INSTALL_PROGRAM@
23LDFLAGS = @LDFLAGS@
24#NOTE: libmgpptext.a needs to come before libmgpplib.a !!!
25QUERY_LIBS = ../text/libmgpptext.a ../lib/libmgpplib.a -lstdc++ @LIBS@
26PASSES_LIBS = ../text/libmgpppass.a ../lib/libmgpplib.a -lstdc++ @LIBS@
27TOUCH = echo timestamp >
28AWK = @AWK@
29
30JNIFLAGS=@JNIFLAGS@
31JNISUFFIX=@JNISUFFIX@
32JNIINC=@JNIINC@
33
34datadir = $(prefix)/share
35libexecdir = $(exec_prefix)/libexec
36localedir = $(datadir)/locale
37mandir = $(prefix)/man/man1
38
39CXXCOMPILE = $(CXX) -c $(DEFS) $(INCLUDES) $(CXXFLAGS)
40
41.SUFFIXES:
42
43.SUFFIXES: .cpp .o
44.cpp.o:
45    $(CXXCOMPILE) $<
46
47# can we get rid of JAVA_HOME from here??
48INCLUDES = -I.. -I../lib -I../text -I$(JAVA_HOME)/include $(JNIINC)
49
50all: compile link
51
52compile:
53    $(CXXCOMPILE) MGPPWrapperImpl.cpp MGPPPassesWrapperImpl.cpp
54link:
55    $(CXX) $(LDFLAGS) $(JNIFLAGS) -o libmgppjni.$(JNISUFFIX) MGPPWrapperImpl.o $(QUERY_LIBS)
56    $(CXX) $(LDFLAGS) $(JNIFLAGS) -o libmgpppassjni.$(JNISUFFIX) MGPPPassesWrapperImpl.o $(PASSES_LIBS)
57
58clean:
59    rm -rf *.o libmgppjni.$(JNISUFFIX) libmgpppassjni.$(JNISUFFIX)
60
61distclean: clean
62    rm -f Makefile
63
64install:
65    ../mkinstalldirs $(libdir); \
66    cp libmgppjni.$(JNISUFFIX)  libmgpppassjni.$(JNISUFFIX)  $(libdir)/;
67
68
69
Note: See TracBrowser for help on using the browser.