Last change
on this file since 30203 was 30203, checked in by ak19, 9 years ago |
Propagating ARCH_DEP_FLAGS to allow successful GS compilation on the 32 bit Mac Leopard using a 64 bit JDK 6: -m64 flag needs to propagate into mg and mgpp to get JNI to work during runtime (with mg/mgpp collections using gdbm).
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.8 KB
|
Rev | Line | |
---|
[3743] | 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 |
|
---|
[22058] | 13 |
|
---|
[3743] | 14 | AR = ar
|
---|
| 15 | CC = @CC@
|
---|
[25168] | 16 | CFLAGS = @CFLAGS@ @ARCH_DEP_FLAGS@ -ansi -DSILENT -DSHORT_SUFFIX -DNZDL -DQUIET -DPARADOCNUM
|
---|
[22070] | 17 | DEFS = @DEFS@
|
---|
[3743] | 18 | RANLIB = @RANLIB@
|
---|
| 19 | INSTALL = @INSTALL@
|
---|
| 20 | INSTALL_DATA = @INSTALL_DATA@
|
---|
| 21 | INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
---|
[30203] | 22 | LDFLAGS = @LDFLAGS@ @ARCH_DEP_FLAGS@
|
---|
[13761] | 23 | #NOTE: libmgtext.a needs to come before libmglib.a !!!
|
---|
| 24 | QUERY_LIBS = ../src/text/libmgtext.a ../lib/libmglib.a @LIBS@
|
---|
| 25 | PASSES_LIBS = ../src/text/libmgpass.a ../lib/libmglib.a @LIBS@
|
---|
[3743] | 26 | TOUCH = echo timestamp >
|
---|
| 27 | AWK = @AWK@
|
---|
| 28 |
|
---|
[26657] | 29 | JNICFLAGS=@JNICFLAGS@
|
---|
| 30 | JNILDFLAGS=@JNILDFLAGS@
|
---|
| 31 | JNIPREFIX=@JNIPREFIX@
|
---|
[10191] | 32 | JNISUFFIX=@JNISUFFIX@
|
---|
| 33 | JNIINC=@JNIINC@
|
---|
[3743] | 34 | datadir = $(prefix)/share
|
---|
| 35 | libexecdir = $(exec_prefix)/libexec
|
---|
| 36 | localedir = $(datadir)/locale
|
---|
| 37 | mandir = $(prefix)/man/man1
|
---|
| 38 |
|
---|
[26657] | 39 | CCOMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) $(JNICFLAGS)
|
---|
[3743] | 40 |
|
---|
| 41 | .SUFFIXES:
|
---|
| 42 |
|
---|
| 43 | .SUFFIXES: .c .o
|
---|
| 44 | .c.o:
|
---|
| 45 | $(CCOMPILE) $<
|
---|
| 46 |
|
---|
[18445] | 47 | INCLUDES = -I.. -I../lib -I../src/text $(JNIINC)
|
---|
[3743] | 48 |
|
---|
| 49 | all: compile link
|
---|
| 50 |
|
---|
| 51 | compile:
|
---|
[14481] | 52 | $(CCOMPILE) MGSearchWrapperImpl.c MGRetrieveWrapperImpl.c MGPassesWrapperImpl.c
|
---|
[3743] | 53 |
|
---|
| 54 | link:
|
---|
[26657] | 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)
|
---|
[3743] | 58 |
|
---|
| 59 | clean:
|
---|
[26657] | 60 | rm -rf *.o $(JNIPREFIX)mgretrievejni.$(JNISUFFIX) $(JNIPREFIX)mgsearchjni.$(JNISUFFIX) $(JNIPREFIX)mgpassjni.$(JNISUFFIX)
|
---|
[3743] | 61 |
|
---|
| 62 | distclean: clean
|
---|
| 63 | rm -f Makefile
|
---|
| 64 |
|
---|
| 65 | install:
|
---|
[13730] | 66 | # ../mkinstalldirs $(libdir); \
|
---|
[26657] | 67 | # cp $(JNIPREFIX)mgjni.$(JNISUFFIX) $(JNIPREFIX)mgpassjni.$(JNISUFFIX) $(libdir)/;
|
---|
[3743] | 68 |
|
---|
| 69 |
|
---|
| 70 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.