source: gsdl/trunk/trunk/mgpp/text/win32.mak@ 16583

Last change on this file since 16583 was 16583, checked in by davidb, 16 years ago

Undoing change commited in r16582

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 7.2 KB
Line 
1###########################################################################
2#
3# win32 makefile -- mgpp\lib
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
31GSDL_VC4 = 0
32ENABLE_ACCENTFOLD = 1
33
34!IF $(GSDL_VC4)
35CPPFLAGS = -GX
36!ELSE
37CPPFLAGS = -EHsc
38!ENDIF
39
40!IF $(ENABLE_ACCENTFOLD)
41AFLIBS = "$(UNAC_DIR)\libunac.lib" "$(UNAC_DIR)\iconv.lib"
42AFINCLUDES = -I"$(UNAC_DIR)"
43AFDEFS = -DENABLE_ACCENTFOLD
44!ELSE
45AFLIBS =
46AFINCLUDES =
47AFDEFS =
48!ENDIF
49
50# for now put executables in indexers/bin
51INSTALLDIR = ..\..\bin
52AR = lib
53CC = cl
54LINK = cl
55
56DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE \
57 -D__STDC__ -D__GNU_LIBRARY__ -D__MSDOS__ $(AFDEFS)
58INCLUDES = -I"." -I"$(MGPPHOME)" -I"$(MGPPHOME)\lib" $(AFINCLUDES)
59LIBS = $(MGPPHOME)\lib\libmgpplib.lib $(AFLIBS)
60
61COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
62
63.SUFFIXES:
64.SUFFIXES: .c .cpp .obj
65.c.obj:
66 $(COMPILE) $<
67.cpp.obj:
68 $(COMPILE) $<
69
70ANSI2KNR =
71o = .obj
72e = .exe
73
74HEADERS = \
75 FIvfLevelInfo.h TextEl.h hash.h stemmer.h \
76 FText.h TextGet.h invf.h text.h \
77 FileBuf.h UCArray.h locallib.h words.h \
78 FragLevelConvert.h WordData.h mg.h \
79 IndexData.h build.h mg_errors.h \
80 TagInfo.h comp_dict.h mg_files.h Weights.h \
81 MGQuery.h Terms.h QueryLex.h QueryParser.h \
82 GSDLQueryLex.h GSDLQueryParser.h
83
84
85SOURCES = \
86 FIvfLevelInfo.cpp ivf.pass1.cpp mgpp_invf_dump.cpp \
87 FText.cpp ivf.pass2.cpp mgpp_passes.cpp \
88 FileBuf.cpp locallib.cpp mgpp_perf_hash_build.cpp \
89 FragLevelConvert.cpp mg.special.cpp mgpp_stem_idx.cpp \
90 IndexData.cpp mgpp_compression_dict.cpp mgpp_weights_build.cpp \
91 TagInfo.cpp mgpp_decompress_text.cpp stemmer.cpp \
92 TextEl.cpp mg_errors.cpp text.cpp \
93 TextGet.cpp mgpp_fast_comp_dict.cpp text.pass1.cpp \
94 UCArray.cpp mg_files.cpp text.pass2.cpp \
95 comp_dict.cpp mgpp_invf_dict.cpp words.cpp \
96 invf.cpp mgpp_invf_dict_dump.cpp Weights.cpp \
97 MGQuery.cpp Terms.cpp QueryTester.cpp \
98 QueryLex.cpp QueryParser.cpp \
99 GSDLQueryLex.cpp GSDLQueryParser.cpp Queryer.cpp
100
101
102EXEC = mgpp_passes$e mgpp_decompress_text$e mgpp_perf_hash_build$e \
103 mgpp_invf_dump$e mgpp_weights_build$e mgpp_invf_dict$e \
104 mgpp_stem_idx$e mgpp_invf_dict_dump$e mgpp_compression_dict$e \
105 mgpp_fast_comp_dict$e QueryTester$e Queryer$e
106
107DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
108
109all : $(EXEC) libmgpptext.lib libmgpppass.lib
110
111
112PASSES_OBJS = \
113 mgpp_passes$o text.pass1$o comp_dict$o \
114 text.pass2$o locallib$o \
115 ivf.pass1$o ivf.pass2$o mg.special$o mg_files$o \
116 words$o invf$o FileBuf$o TextEl$o UCArray$o TagInfo$o \
117 FText$o text$o FIvfLevelInfo$o
118
119mgpp_passes$e: $(PASSES_OBJS)
120 $(LINK) $(PASSES_OBJS) $(LIBS)
121
122QUERYER_OBJS = Queryer$o mg_files$o mg_errors$o locallib$o invf$o UCArray$o \
123 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
124 IndexData$o stemmer$o Weights$o TextGet$o text$o FText$o \
125 GSDLQueryParser$o GSDLQueryLex$o words$o
126
127Queryer$e: $(QUERYER_OBJS)
128 $(LINK) $(QUERYER_OBJS) $(LIBS)
129
130QUERY_TESTER_OBJS = QueryTester$o mg_files$o invf$o UCArray$o \
131 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
132 IndexData$o stemmer$o Weights$o
133
134QueryTester$e: $(QUERY_TESTER_OBJS)
135 $(LINK) $(QUERY_TESTER_OBJS) $(LIBS)
136
137WEIGHTS_BUILD_OBJS = mgpp_weights_build$o mg_files$o invf$o UCArray$o \
138 FIvfLevelInfo$o FragLevelConvert$o
139
140mgpp_weights_build$e: $(WEIGHTS_BUILD_OBJS)
141 $(LINK) $(WEIGHTS_BUILD_OBJS) $(LIBS)
142
143COMP_DICT_OBJS = mgpp_compression_dict$o mg_files$o locallib$o
144
145mgpp_compression_dict$e: $(COMP_DICT_OBJS)
146 $(LINK) $(COMP_DICT_OBJS) $(LIBS)
147
148FAST_COMP_OBJS = mgpp_fast_comp_dict$o mg_files$o locallib$o
149
150mgpp_fast_comp_dict$e: $(FAST_COMP_OBJS)
151 $(LINK) $(FAST_COMP_OBJS) $(LIBS)
152
153INVF_DUMP_OBJS = mgpp_invf_dump$o locallib$o mg_files$o invf$o UCArray$o
154
155mgpp_invf_dump$e: $(INVF_DUMP_OBJS)
156 $(LINK) $(INVF_DUMP_OBJS) $(LIBS)
157
158INVF_DICT_OBJS = mgpp_invf_dict$o mg_files$o invf$o UCArray$o
159
160mgpp_invf_dict$e: $(INVF_DICT_OBJS)
161 $(LINK) $(INVF_DICT_OBJS) $(LIBS)
162
163INVF_DICT_DUMP_OBJS = mgpp_invf_dict_dump$o mg_files$o invf$o UCArray$o
164
165mgpp_invf_dict_dump$e: $(INVF_DICT_DUMP_OBJS)
166 $(LINK) $(INVF_DICT_DUMP_OBJS) $(LIBS)
167
168PERF_HASH_OBJS = mgpp_perf_hash_build$o mg_files$o invf$o UCArray$o
169
170mgpp_perf_hash_build$e: $(PERF_HASH_OBJS)
171 $(LINK) $(PERF_HASH_OBJS) $(LIBS)
172
173STEM_IDX_OBJS = mgpp_stem_idx$o mg_files$o stemmer$o \
174 invf$o UCArray$o
175
176mgpp_stem_idx$e: $(STEM_IDX_OBJS)
177 $(LINK) $(STEM_IDX_OBJS) $(LIBS)
178#/link /NODEFAULTLIB:libc
179
180DECOMPRESS_TEXT_OBJS = \
181 mgpp_decompress_text$o mg_files$o mg_errors$o \
182 locallib$o text$o UCArray$o TextGet$o FText$o
183
184mgpp_decompress_text$e: $(DECOMPRESS_TEXT_OBJS)
185 $(LINK) $(DECOMPRESS_TEXT_OBJS) $(LIBS)
186
187
188LIB_OBJS = mg_files$o mg_errors$o locallib$o invf$o UCArray$o \
189 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
190 IndexData$o stemmer$o Weights$o TextGet$o text$o FText$o \
191 GSDLQueryParser$o GSDLQueryLex$o words$o
192
193libmgpptext.lib: $(LIB_OBJS)
194 if exist libmgpptext.lib del libmgpptext.lib
195 $(AR) /out:libmgpptext.lib $(LIB_OBJS)
196
197JNI_LIB_OBJS = \
198 mgpp_passes_4jni$o text.pass1$o comp_dict$o \
199 text.pass2$o locallib$o \
200 ivf.pass1$o ivf.pass2$o mg.special$o mg_files$o \
201 words$o invf$o FileBuf$o TextEl$o UCArray$o TagInfo$o \
202 FText$o text$o FIvfLevelInfo$o
203
204libmgpppass.lib: $(JNI_LIB_OBJS)
205 if exist libmgpppass.lib del libmgpppass.lib
206 $(AR) /out:libmgpppass.lib $(JNI_LIB_OBJS)
207
208install:
209 if not exist "$(INSTALLDIR)" mkdir "$(INSTALLDIR)"
210 for %%i in ($(EXEC)) do \
211 copy %%i "$(INSTALLDIR)"
212
213clean:
214 if exist *$o del *$o
215 if exist *$e del *$e
216 if exist libmgpptext.lib del libmgpptext.lib
217 if exist libmgpppass.lib del libmgpppass.lib
218
Note: See TracBrowser for help on using the repository browser.