[14502] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
| 3 | # win32 makefile -- mgpp\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 | MGPPHOME = ..
|
---|
| 28 |
|
---|
[15624] | 29 | UNAC_DIR = ../../packages/unac
|
---|
| 30 |
|
---|
| 31 | ENABLE_ACCENTFOLD = 1
|
---|
| 32 |
|
---|
| 33 | !IF $(ENABLE_ACCENTFOLD)
|
---|
| 34 | AFLIBS = "$(UNAC_DIR)\libunac.lib" "$(UNAC_DIR)\iconv.lib"
|
---|
| 35 | AFINCLUDES = -I"$(UNAC_DIR)"
|
---|
| 36 | !ELSE
|
---|
| 37 | AFLIBS =
|
---|
| 38 | AFINCLUDES =
|
---|
| 39 | !ENDIF
|
---|
| 40 |
|
---|
[14502] | 41 | AR = lib
|
---|
| 42 | CC = cl
|
---|
| 43 | CPPFLAGS = -GX
|
---|
| 44 |
|
---|
| 45 | DEFS = -DQUIET -DHAVE_CONFIG_H -DSHORT_SUFFIX -DHAVE_STRING_H -D__WIN32__
|
---|
| 46 | INCLUDES = -I"$(MGPPHOME)" -I"$(MGPPHOME)\lib" -I"$(MGPPHOME)\text" \
|
---|
[15624] | 47 | -I"$(JAVA_HOME)\include" -I"$(JAVA_HOME)\include\win32" $(AFINCLUDES)
|
---|
[14502] | 48 |
|
---|
| 49 | COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
| 50 |
|
---|
| 51 | .SUFFIXES:
|
---|
| 52 | .SUFFIXES: .c .obj
|
---|
| 53 | .c.obj:
|
---|
| 54 | $(COMPILE) $<
|
---|
| 55 |
|
---|
| 56 | ANSI2KNR =
|
---|
| 57 | o = .obj
|
---|
| 58 |
|
---|
| 59 | HEADERS = \
|
---|
| 60 | MGPPSearchWrapperImpl.h MGPPRetrieveWrapperImpl.h org_greenstone_mgpp_MGPPSearchWrapper.h \
|
---|
| 61 | org_greenstone_mgpp_MGPPRetrieveWrapper.h org_greenstone_mgpp_MGPPPassesWrapperImpl.h
|
---|
| 62 |
|
---|
| 63 | SOURCES = \
|
---|
| 64 | MGPPSearchWrapperImpl.cpp MGPPRetrieveWrapperImpl.cpp MGPPPassesWrapperImpl.cpp
|
---|
| 65 |
|
---|
| 66 | RETRIEVEOBJECTS = \
|
---|
| 67 | MGPPRetrieveWrapperImpl$o $(MGPPHOME)\text\libmgpptext.lib \
|
---|
[15721] | 68 | $(MGPPHOME)\lib\libmgpplib.lib $(AFLIBS)
|
---|
[14502] | 69 |
|
---|
| 70 | SEARCHOBJETCS = \
|
---|
| 71 | MGPPSearchWrapperImpl$o $(MGPPHOME)\text\libmgpptext.lib \
|
---|
[15624] | 72 | $(MGPPHOME)\lib\libmgpplib.lib $(AFLIBS)
|
---|
[14502] | 73 |
|
---|
| 74 | PASSES_OBJECTS = \
|
---|
| 75 | MGPPPassesWrapperImpl$o $(MGPPHOME)\text\libmgpppass.lib \
|
---|
| 76 | $(MGPPHOME)\lib\libmgpplib.lib
|
---|
| 77 |
|
---|
| 78 | DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
|
---|
| 79 |
|
---|
| 80 | all : compile link
|
---|
| 81 |
|
---|
| 82 | compile:
|
---|
| 83 | $(COMPILE) MGPPSearchWrapperImpl.cpp MGPPRetrieveWrapperImpl.cpp MGPPPassesWrapperImpl.cpp
|
---|
| 84 |
|
---|
| 85 | link:
|
---|
| 86 | $(CC) -MD -LD $(SEARCHOBJETCS) -Femgppsearchjni.dll
|
---|
| 87 | $(CC) -MD -LD $(RETRIEVEOBJECTS) -Femgppretrievejni.dll
|
---|
| 88 | $(CC) -MD -LD $(PASSES_OBJECTS) -Femgpppassjni.dll
|
---|
| 89 |
|
---|
| 90 | install:
|
---|
| 91 |
|
---|
| 92 | clean:
|
---|
| 93 | del *$o mgppsearchjni.dll mgppretrievejni.dll mgppjni.exp mgppjni.lib mgpppassjni.dll mgpppassjni.exp mgpppassjni.lib
|
---|
| 94 | if exist mgppsearchjni.lib del mgppsearchjni.lib
|
---|
| 95 | if exist mgppretrievejni.lib del mgppretrievejni.lib
|
---|
| 96 | if exist mgjni.lib del mgjni.lib
|
---|
| 97 |
|
---|