root/indexers/trunk/mgpp/jni/win32.mak @ 15721

Revision 15721, 3.0 KB (checked in by oranfry, 11 years ago)

compilation of mgppretrievejni.dll fails in the nightly builds unless you link against these libs

  • Property svn:keywords set to Author Date Id Revision
Line 
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 
27MGPPHOME = ..
28
29UNAC_DIR = ../../packages/unac
30
31ENABLE_ACCENTFOLD = 1
32
33!IF $(ENABLE_ACCENTFOLD)
34AFLIBS = "$(UNAC_DIR)\libunac.lib"  "$(UNAC_DIR)\iconv.lib"
35AFINCLUDES = -I"$(UNAC_DIR)"
36!ELSE
37AFLIBS =
38AFINCLUDES =
39!ENDIF
40
41AR = lib
42CC = cl
43CPPFLAGS = -GX
44
45DEFS = -DQUIET -DHAVE_CONFIG_H -DSHORT_SUFFIX -DHAVE_STRING_H -D__WIN32__
46INCLUDES = -I"$(MGPPHOME)" -I"$(MGPPHOME)\lib" -I"$(MGPPHOME)\text" \
47           -I"$(JAVA_HOME)\include" -I"$(JAVA_HOME)\include\win32" $(AFINCLUDES)           
48
49COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
50 
51.SUFFIXES:
52.SUFFIXES: .c .obj
53.c.obj:
54    $(COMPILE) $<
55
56ANSI2KNR =
57o = .obj
58 
59HEADERS = \
60    MGPPSearchWrapperImpl.h   MGPPRetrieveWrapperImpl.h   org_greenstone_mgpp_MGPPSearchWrapper.h \
61   org_greenstone_mgpp_MGPPRetrieveWrapper.h org_greenstone_mgpp_MGPPPassesWrapperImpl.h
62
63SOURCES = \
64    MGPPSearchWrapperImpl.cpp MGPPRetrieveWrapperImpl.cpp MGPPPassesWrapperImpl.cpp
65
66RETRIEVEOBJECTS = \
67    MGPPRetrieveWrapperImpl$o  $(MGPPHOME)\text\libmgpptext.lib \
68    $(MGPPHOME)\lib\libmgpplib.lib $(AFLIBS)
69
70SEARCHOBJETCS =  \
71    MGPPSearchWrapperImpl$o $(MGPPHOME)\text\libmgpptext.lib \
72    $(MGPPHOME)\lib\libmgpplib.lib $(AFLIBS)
73
74PASSES_OBJECTS = \
75    MGPPPassesWrapperImpl$o $(MGPPHOME)\text\libmgpppass.lib \
76    $(MGPPHOME)\lib\libmgpplib.lib
77
78DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
79 
80all : compile link
81
82compile:
83        $(COMPILE) MGPPSearchWrapperImpl.cpp MGPPRetrieveWrapperImpl.cpp MGPPPassesWrapperImpl.cpp
84
85link:
86    $(CC) -MD -LD $(SEARCHOBJETCS) -Femgppsearchjni.dll
87    $(CC) -MD -LD $(RETRIEVEOBJECTS) -Femgppretrievejni.dll
88    $(CC) -MD -LD $(PASSES_OBJECTS) -Femgpppassjni.dll
89
90install:
91
92clean:
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
Note: See TracBrowser for help on using the browser.