source: indexers/trunk/mgpp/jni/win32.mak@ 17007

Last change on this file since 17007 was 17007, checked in by max, 16 years ago

Fix a small problem that prevents compiling mgpp on Windows.

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