source: trunk/indexers/mg/jni/Makefile.in@ 8208

Last change on this file since 8208 was 8208, checked in by kjdon, 20 years ago

added in to the link command

  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 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
13AR = ar
14CC = @CC@
15CFLAGS = @CFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX -DNZDL -DQUIET -DPARADOCNUM
16DEFS = @DEFS@
17RANLIB = @RANLIB@
18INSTALL = @INSTALL@
19INSTALL_DATA = @INSTALL_DATA@
20INSTALL_PROGRAM = @INSTALL_PROGRAM@
21LDFLAGS = @LDFLAGS@
22#NOTE: libtextin.a needs to come before libmg.a !!!
23QUERY_LIBS = ../src/text/libtextin.a ../lib/libmg.a @LIBS@
24PASSES_LIBS = ../src/text/libmgpass.a ../lib/libmg.a @LIBS@
25TOUCH = echo timestamp >
26AWK = @AWK@
27
28datadir = $(prefix)/share
29libexecdir = $(exec_prefix)/libexec
30localedir = $(datadir)/locale
31mandir = $(prefix)/man/man1
32
33CCOMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
34
35.SUFFIXES:
36
37.SUFFIXES: .c .o
38.c.o:
39 $(CCOMPILE) $<
40
41
42INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
43
44all: compile link
45
46compile:
47 $(CCOMPILE) MGWrapperImpl.c MGPassesWrapperImpl.c
48
49link:
50 $(CC) $(LDFLAGS) -shared -o libmgjni.so MGWrapperImpl.o $(QUERY_LIBS)
51 $(CC) $(LDFLAGS) -shared -o libmgpassjni.so MGPassesWrapperImpl.o $(PASSES_LIBS)
52
53clean:
54 rm -rf *.o libmgjni.so libmgpassjni.so
55
56distclean: clean
57 rm -f Makefile
58
59install:
60 ../mkinstalldirs $(libdir); \
61 cp libmgjni.so libmgpassjni.so $(libdir)/;
62
63
64
Note: See TracBrowser for help on using the repository browser.