Last change
on this file since 7410 was 7410, checked in by kjdon, 20 years ago |
new mg passes jni wrapper
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.3 KB
|
Line | |
---|
1 |
|
---|
2 | SHELL = /bin/sh
|
---|
3 | VPATH = @srcdir@
|
---|
4 | exec_prefix = @exec_prefix@
|
---|
5 | prefix = @prefix@
|
---|
6 | bindir = @bindir@
|
---|
7 | srcdir = @srcdir@
|
---|
8 | libdir = @libdir@
|
---|
9 | subdir = jni
|
---|
10 | top_srcdir = @top_srcdir@
|
---|
11 | transform = @program_transform_name@
|
---|
12 |
|
---|
13 | AR = ar
|
---|
14 | CC = @CC@
|
---|
15 | CFLAGS = @CFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX -DNZDL -DQUIET -DPARADOCNUM
|
---|
16 | DEFS = @DEFS@
|
---|
17 | RANLIB = @RANLIB@
|
---|
18 | INSTALL = @INSTALL@
|
---|
19 | INSTALL_DATA = @INSTALL_DATA@
|
---|
20 | INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
---|
21 | LDFLAGS = @LDFLAGS@
|
---|
22 | #NOTE: libtextin.a needs to come before libmg.a !!!
|
---|
23 | QUERY_LIBS = ../src/text/libtextin.a ../lib/libmg.a @LIBS@
|
---|
24 | PASSES_LIBS = ../src/text/libmgpass.a ../lib/libmg.a @LIBS@
|
---|
25 | TOUCH = echo timestamp >
|
---|
26 | AWK = @AWK@
|
---|
27 |
|
---|
28 | datadir = $(prefix)/share
|
---|
29 | libexecdir = $(exec_prefix)/libexec
|
---|
30 | localedir = $(datadir)/locale
|
---|
31 | mandir = $(prefix)/man/man1
|
---|
32 |
|
---|
33 | CCOMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
|
---|
34 |
|
---|
35 | .SUFFIXES:
|
---|
36 |
|
---|
37 | .SUFFIXES: .c .o
|
---|
38 | .c.o:
|
---|
39 | $(CCOMPILE) $<
|
---|
40 |
|
---|
41 |
|
---|
42 | INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
|
---|
43 |
|
---|
44 | all: compile link
|
---|
45 |
|
---|
46 | compile:
|
---|
47 | $(CCOMPILE) MGWrapperImpl.c MGPassesWrapperImpl.c
|
---|
48 |
|
---|
49 | link:
|
---|
50 | $(CC) -shared -o libmgjni.so MGWrapperImpl.o $(QUERY_LIBS)
|
---|
51 | $(CC) -shared -o libmgpassjni.so MGPassesWrapperImpl.o $(PASSES_LIBS)
|
---|
52 |
|
---|
53 | clean:
|
---|
54 | rm -rf *.o libmgjni.so libmgpassjni.so
|
---|
55 |
|
---|
56 | distclean: clean
|
---|
57 | rm -f Makefile
|
---|
58 |
|
---|
59 | install:
|
---|
60 | ../mkinstalldirs $(libdir); \
|
---|
61 | cp libmgjni.so libmgpassjni.so $(libdir)/;
|
---|
62 |
|
---|
63 |
|
---|
64 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.