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

Last change on this file since 19524 was 19524, checked in by ak19, 15 years ago

Dr Bainbridge updated the Windows makefiles to 1. Take the DEBUG flag so that we can recompile all of GS2 in the Vis C++ 2005 Express Edition command prompt and then use its Debugger on the C code. 2. Now GS2 make clean command cleans up all object and lib files that its make generates.

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