source: trunk/gsdl3/src/packages/javagdbm/jni/Makefile.in@ 10737

Last change on this file since 10737 was 10737, checked in by kjdon, 19 years ago

Java Wrapper for GDBM, from Martin Pool. Original website gone, so added it all in here. I have modified the Makefiles to work in greenstone, and on macs, and added windows makefiles

  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 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@
25JDK=@JAVA_HOME@
26INC=-I. -I$(JDK)/include -I$(JDK)/include/linux
27CFLAGS=-c @CFLAGS@ $(INC) -DWRAPPER_VERSION=\"$(WRAPPER_VERSION)\"
28#PKG=@PKG@
29LIBS=@LIBS@
30LDFLAGS = @LDFLAGS@
31JNIFLAGS=@JNIFLAGS@
32JNISUFFIX=@JNISUFFIX@
33JNIINC=@JNIINC@
34
35# TODO: Build versioned shared libraries?
36
37# TODO: Build shared libraries in a way that will work on different
38# platforms -- mbp
39
40WRAPPER_VERSION=0005
41NATIVE_LIB=libgdbmjava.$(JNISUFFIX)
42
43all: $(NATIVE_LIB)
44
45$(NATIVE_LIB): GdbmFile.h gdbmjava.o Makefile
46 $(CC) $(LDFLAGS) $(JNIFLAGS) -o $(NATIVE_LIB) gdbmjava.o $(LIBS)
47
48gdbmjava.o: gdbmjava.c
49 $(CC) $(INC) $(CFLAGS) $?
50
51# no easy way to tell if a class file has changed or not
52#GdbmFile.h:
53# $(javah) -o GdbmFile.h -jni $(PKG).GdbmFile
54
55clean:
56 rm -f *.o $(NATIVE_LIB)
57
58distclean: clean
59 rm -f config.log config.cache config.status Makefile
60
61install:
62 cp $(NATIVE_LIB) $(libdir)/
Note: See TracBrowser for help on using the repository browser.