[14501] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
| 3 | # win32 makefile -- mg\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 | MGHOME = ..
|
---|
| 28 |
|
---|
| 29 | AR = lib
|
---|
| 30 | CC = cl
|
---|
| 31 | CPPFLAGS =
|
---|
| 32 |
|
---|
| 33 | DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN -DPARADOCNUM \
|
---|
| 34 | -DSHORT_SUFFIX
|
---|
| 35 | INCLUDES = -I"$(MGHOME)" -I"$(MGHOME)\lib" -I"$(MGHOME)\src\text" \
|
---|
| 36 | -I"$(JAVA_HOME)\include" -I"$(JAVA_HOME)\include\win32"
|
---|
| 37 |
|
---|
| 38 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES)
|
---|
| 39 |
|
---|
| 40 | .SUFFIXES:
|
---|
| 41 | .SUFFIXES: .c .obj
|
---|
| 42 | .c.obj:
|
---|
| 43 | $(COMPILE) $<
|
---|
| 44 |
|
---|
| 45 | ANSI2KNR =
|
---|
| 46 | o = .obj
|
---|
| 47 |
|
---|
| 48 | HEADERS = \
|
---|
| 49 | MGSearchWrapperImpl.h org_greenstone_mg_MGSearchWrapper.h \
|
---|
| 50 | MGRetrieveWrapperImpl.h org_greenstone_mg_MGRetrieveWrapper.h \
|
---|
| 51 | org_greenstone_mg_MGPassesWrapper.h
|
---|
| 52 |
|
---|
| 53 |
|
---|
| 54 | SOURCES = \
|
---|
| 55 | MGSearchWrapperImpl.c MGRetrieveWrapperImpl.c MGPassesWrapperImpl.c
|
---|
| 56 |
|
---|
| 57 | SEARCHOBJECTS = \
|
---|
| 58 | MGSearchWrapperImpl$o $(MGHOME)\src\text\libmgtext.lib \
|
---|
| 59 | $(MGHOME)\lib\libmglib.lib
|
---|
| 60 |
|
---|
| 61 | RETRIEVEOBJECTS = \
|
---|
| 62 | MGRetrieveWrapperImpl$o $(MGHOME)\src\text\libmgtext.lib \
|
---|
| 63 | $(MGHOME)\lib\libmglib.lib
|
---|
| 64 |
|
---|
| 65 | PASSES_OBJECTS = \
|
---|
| 66 | MGPassesWrapperImpl$o $(MGHOME)\src\text\libmgpass.lib \
|
---|
| 67 | $(MGHOME)\lib\libmglib.lib
|
---|
| 68 |
|
---|
| 69 | DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
|
---|
| 70 |
|
---|
| 71 | all : compile link
|
---|
| 72 |
|
---|
| 73 | compile:
|
---|
| 74 | $(COMPILE) MGSearchWrapperImpl.c MGRetrieveWrapperImpl.c MGPassesWrapperImpl.c
|
---|
| 75 |
|
---|
| 76 | link:
|
---|
| 77 | $(CC) -MD -LD $(SEARCHOBJECTS) -Femgsearchjni.dll
|
---|
| 78 | $(CC) -MD -LD $(RETRIEVEOBJECTS) -Femgretrievejni.dll
|
---|
| 79 | $(CC) -MD -LD $(PASSES_OBJECTS) -Femgpassjni.dll
|
---|
| 80 |
|
---|
| 81 |
|
---|
| 82 | install:
|
---|
| 83 |
|
---|
| 84 | clean:
|
---|
| 85 | if exist *$o del *$o
|
---|
| 86 | if exist mgsearchjni.dll del mgsearchjni.dll
|
---|
| 87 | if exist mgretrievejni.dll del mgretrievejni.dll
|
---|
| 88 | if exist mgpassjni.dll del mgpassjni.dll
|
---|