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