[10748] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
| 3 | # win32 makefile -- javagdbm\jni
|
---|
| 4 | # A component of the Greenstone digital library software
|
---|
| 5 | # from the New Zealand Digital Library Project at the
|
---|
| 6 | # University of Waikato, New Zealand.
|
---|
| 7 | #
|
---|
| 8 | # Copyright (C) 1999 The New Zealand Digital Library Project
|
---|
| 9 | #
|
---|
| 10 | #
|
---|
| 11 | # This program is free software; you can redistribute it and/or modify
|
---|
| 12 | # it under the terms of the GNU General Public License as published by
|
---|
| 13 | # the Free Software Foundation; either version 2 of the License, or
|
---|
| 14 | # (at your option) any later version.
|
---|
| 15 | #
|
---|
| 16 | # This program is distributed in the hope that it will be useful,
|
---|
| 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 19 | # GNU General Public License for more details.
|
---|
| 20 | #
|
---|
| 21 | # You should have received a copy of the GNU General Public License
|
---|
| 22 | # along with this program; if not, write to the Free Software
|
---|
| 23 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
| 24 | #
|
---|
| 25 | ###########################################################################
|
---|
| 26 |
|
---|
| 27 | JAVAGDBMHOME = ..
|
---|
| 28 |
|
---|
[23863] | 29 | GSDLHOME= $(GSDL3SRCHOME)\gs2build
|
---|
[23764] | 30 | GDBMHOME = $(GSDLHOME)\common-src\packages\gdbm\gdbm-1.8.3
|
---|
[10748] | 31 |
|
---|
| 32 | AR = lib
|
---|
| 33 | CC = cl
|
---|
| 34 | CPPFLAGS =
|
---|
| 35 |
|
---|
| 36 | DEFS = -D__WIN32__ -DHAVE_STRING_H
|
---|
| 37 |
|
---|
[10754] | 38 | INCLUDES = -I"$(GDBMHOME)" -I. \
|
---|
[10748] | 39 | -I"$(JAVA_HOME)\include" -I"$(JAVA_HOME)\include\win32"
|
---|
| 40 |
|
---|
| 41 | COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
| 42 |
|
---|
| 43 | .SUFFIXES:
|
---|
| 44 | .SUFFIXES: .c .obj
|
---|
| 45 | .c.obj:
|
---|
| 46 | $(COMPILE) $<
|
---|
| 47 |
|
---|
| 48 | ANSI2KNR =
|
---|
| 49 | o = .obj
|
---|
| 50 |
|
---|
| 51 | HEADERS = \
|
---|
| 52 | GdbmFile.h
|
---|
| 53 |
|
---|
| 54 | SOURCES = \
|
---|
| 55 | gdbmjava.c
|
---|
| 56 |
|
---|
| 57 | OBJECTS = \
|
---|
[23764] | 58 | gdbmjava$o "$(GDBMHOME)\gdbm.lib"
|
---|
[10748] | 59 |
|
---|
| 60 | all : compile link
|
---|
| 61 |
|
---|
| 62 | compile:
|
---|
| 63 | $(COMPILE) gdbmjava.c
|
---|
| 64 |
|
---|
| 65 | link:
|
---|
[10763] | 66 | $(CC) -MD -LD $(OBJECTS) -Fegdbmjava.dll
|
---|
[10748] | 67 |
|
---|
| 68 | install:
|
---|
[23863] | 69 | copy gdbmjava.dll "$(GSDL3SRCHOME)\lib\jni"
|
---|
[10748] | 70 |
|
---|
| 71 | clean:
|
---|
| 72 | del *$o
|
---|