source: main/trunk/greenstone3/src/packages/javagdbm/jni/Makefile.in

Last change on this file was 35310, checked in by davidb, 3 years ago

Making javac default now source/target 1.6, rather than 1.4. This change was in response to 'javah' being deprecated. JNI is now down with 'javac -h' and to do that, you need to have at least a JDK 1.6 installed

  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1# Makefile for the native parts of the au.com.pharos.gdbm
2# Java package.
3# Modified by kjdon 2005
4
5# Copyright (C) 1997 by Pharos IP Pty Ltd
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21#srcdir=@srcdir@
22libdir=@libdir@
23
24CC=@CC@
25CFLAGS=-c @CFLAGS@ @ARCH_DEP_FLAGS@ $(INC) -DWRAPPER_VERSION=\"$(WRAPPER_VERSION)\"
26#PKG=@PKG@
27GDBM_LIBS=@GDBM_LIBPATH@ -lgdbm
28LIBS= $(GDBM_LIBS) @LIBS@
29LDFLAGS = @LDFLAGS@ @ARCH_DEP_FLAGS@
30JNIPREFIX=@JNIPREFIX@
31JNICFLAGS=@JNICFLAGS@
32JNILDFLAGS=@JNILDFLAGS@
33JNISUFFIX=@JNISUFFIX@
34JNIINC=@JNIINC@
35INC=-I. -I$(JAVA_HOME)/include @GDBM_INCLUDE@ @JNIINC@
36
37
38# TODO: Build versioned shared libraries?
39
40# TODO: Build shared libraries in a way that will work on different
41# platforms -- mbp
42
43WRAPPER_VERSION=0005
44NATIVE_LIB=$(JNIPREFIX)gdbmjava.$(JNISUFFIX)
45
46all: $(NATIVE_LIB)
47
48$(NATIVE_LIB): GdbmFile.h gdbmjava.o Makefile
49 $(CC) $(LDFLAGS) $(JNILDFLAGS) -o $(NATIVE_LIB) gdbmjava.o $(LIBS)
50
51gdbmjava.o: gdbmjava.c
52 $(CC) $(INC) $(CFLAGS) $(JNICFLAGS) $?
53
54# no easy way to tell if a class file has changed or not
55#
56# Note, 'javah' has been deprecated since JDK1.6, Makefile rules below now use 'javac -h'
57# So if bringing back this rule for some reason, then needs to be expressed differently
58#
59##GdbmFile.h:
60## $(javah) -o GdbmFile.h -jni $(PKG).GdbmFile
61
62clean:
63 rm -f *.o $(NATIVE_LIB)
64
65distclean: clean
66 rm -f Makefile
67
68install:
69 cp $(NATIVE_LIB) $(libdir)/
Note: See TracBrowser for help on using the repository browser.