source: trunk/indexers/mg/src/text/win32.mak@ 9874

Last change on this file since 9874 was 9874, checked in by kjdon, 19 years ago

merged from branch ant-install-branch: merge 1

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 8.3 KB
Line 
1###########################################################################
2#
3# win32 makefile -- mg\src\text
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
27MGHOME = ..\..
28
29AR = lib
30
31CC = cl
32CPPFLAGS =
33# DEFS = -DQUIET -D__WIN32__ -DSHORT_SUFFIX -DHAVE_STRING_H -DHAVE_FCNTL_H \
34# -DSTDC_HEADERS -DHAVE_CONFIG_H
35DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H \
36 -D__WIN32__ -D_LITTLE_ENDIAN
37INCLUDES = -I"." -I"$(MGHOME)" -I"$(MGHOME)\lib"
38COMPILE = $(CC) $(CPPFLAGS) -c $(DEFS) $(INCLUDES)
39
40LDFLAGS =
41LINK = $(CC) $(LDFLAGS)
42
43LIBS = "$(MGHOME)\lib\libmg.lib"
44
45.SUFFIXES: .c .cpp .obj
46.c.obj:
47 $(COMPILE) $<
48.cpp.obj:
49 $(COMPILE) $<
50
51o = .obj
52e = .exe
53
54HEADERS = \
55 backend.h conditions.h locallib.h term_lists.h \
56 bool_optimiser.h environment.h mg.h text.h \
57 bool_parser.h globals.h mg_errors.h text_get.h \
58 bool_query.h hash.h mg_files.h warranty.h \
59 bool_tree.h help.mg.h mg_merge.h weights.h \
60 build.h invf.h read_line.h words.h \
61 commands.h invf_get.h stem_search.h \
62 comp_dict.h lists.h stemmer.h query_term_list.h
63
64SOURCES = \
65 backend.c locallib.c mg_weights_build.c \
66 bool_optimiser.c mg.special.c mgdictlist.c \
67 bool_parser.c mg_compression_dict.c mgquery.c \
68 bool_query.c mg_errors.c mgstat.c \
69 bool_tester.c mg_fast_comp_dict.c mg_decompress_text.c \
70 bool_tree.c mg_files.c query.docnums.c \
71 commands.c mg_hilite_words.c query.ranked.c \
72 comp_dict.c mg_invf_dict.c read_line.c \
73 environment.c mg_invf_dump.c stem_search.c \
74 mg_invf_merge.c stemmer.c mg_stem_idx.c \
75 mg_invf_rebuild.c term_lists.c mgstemidxlist.c \
76 invf_get.c mg_passes.c text.pass1.c \
77 ivf.pass1.c mg_perf_hash_build.c text.pass2.c \
78 ivf.pass2.c mg_text_estimate.c text_get.c \
79 lists.c mg_text_merge.c weights.c \
80 mgpass.c query_term_list.c words.c \
81 mg_passes_4jni.c
82
83EXEC = \
84 mgquery$e mg_weights_build$e mgstat$e \
85 mg_invf_dump$e mg_invf_dict$e \
86 mg_invf_rebuild$e mgdictlist$e \
87 mg_passes$e mg_perf_hash_build$e \
88 mg_compression_dict$e mg_text_estimate$e \
89 mg_fast_comp_dict$e \
90 mg_hilite_words$e mg_invf_merge$e \
91 mg_text_merge$e bool_tester$e mgpass$e \
92 mg_stem_idx$e mgstemidxlist$e \
93 mg_decompress_text$e
94
95all: $(EXEC) libmgtextin.lib libmgpass.lib
96
97HILITE_OBJS = mg_hilite_words$o stemmer$o locallib$o words$o environment$o
98mg_hilite_words$e: $(HILITE_OBJS)
99 $(LINK) $(HILITE_OBJS) $(LIBS)
100
101BOOL_OBJS = bool_tester$o bool_tree$o bool_parser$o bool_optimiser$o \
102 term_lists$o stemmer$o stem_search$o mg_errors$o \
103 query_term_list$o words$o environment$o
104
105bool_tester$e: $(BOOL_OBJS)
106 $(LINK) $(BOOL_OBJS) $(LIBS)
107
108QUERY_OBJS = \
109 mgquery$o locallib$o lists$o \
110 query.ranked$o query.docnums$o stem_search$o \
111 environment$o commands$o weights$o text_get$o stemmer$o \
112 read_line$o mg_errors$o backend$o invf_get$o \
113 term_lists$o bool_tree$o bool_parser$o bool_optimiser$o bool_query$o \
114 query_term_list$o words$o
115mgquery$e: $(QUERY_OBJS)
116 $(LINK) $(READLINE) $(QUERY_OBJS) $(READLINE_LIBS) $(LIBS)
117
118commands$o : help.mg.h warranty.h conditions.h
119
120PASSES_OBJS = \
121 mg_passes$o text.pass1$o comp_dict$o stemmer$o \
122 text.pass2$o locallib$o \
123 ivf.pass1$o ivf.pass2$o mg.special$o mg_files$o \
124 words$o environment$o
125mg_passes$e: $(PASSES_OBJS)
126 $(LINK) $(PASSES_OBJS) $(LIBS)
127
128PASS_OBJS = \
129 mgpass$o words$o text.pass1$o comp_dict$o stemmer$o \
130 text.pass2$o locallib$o \
131 ivf.pass1$o ivf.pass2$o mg.special$o mg_files$o environment$o
132mgpass$e: $(PASS_OBJS)
133 $(LINK) $(PASS_OBJS) $(LIBS)
134
135LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
136 advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\
137 odbccp32.lib
138
139BUILDER_OBJS = \
140 builder$o
141builder$e: $(BUILDER_OBJS)
142 $(LINK) $(BUILDER_OBJS) $(LIBS) $(LINK32_FLAGS)
143
144WEIGHTS_BUILD_OBJS = mg_weights_build$o mg_files$o
145mg_weights_build$e: $(WEIGHTS_BUILD_OBJS)
146 $(LINK) $(WEIGHTS_BUILD_OBJS) $(LIBS)
147
148COMP_DICT_OBJS = mg_compression_dict$o mg_files$o locallib$o
149mg_compression_dict$e: $(COMP_DICT_OBJS)
150 $(LINK) $(COMP_DICT_OBJS) $(LIBS)
151
152FAST_COMP_OBJS = mg_fast_comp_dict$o mg_files$o locallib$o
153mg_fast_comp_dict$e: $(FAST_COMP_OBJS)
154 $(LINK) $(FAST_COMP_OBJS) $(LIBS)
155
156TEXT_EST_OBJS = mg_text_estimate$o locallib$o comp_dict$o mg_files$o
157mg_text_estimate$e: $(TEXT_EST_OBJS)
158 $(LINK) $(TEXT_EST_OBJS) $(LIBS)
159
160STAT_OBJS = mgstat$o mg_files$o locallib$o
161mgstat$e: $(STAT_OBJS)
162 $(LINK) $(STAT_OBJS) $(LIBS)
163
164INVF_DUMP_OBJS = mg_invf_dump$o locallib$o mg_files$o
165mg_invf_dump$e: $(INVF_DUMP_OBJS)
166 $(LINK) $(INVF_DUMP_OBJS) $(LIBS)
167
168INVF_DICT_OBJS = mg_invf_dict$o mg_files$o locallib$o
169mg_invf_dict$e: $(INVF_DICT_OBJS)
170 $(LINK) $(INVF_DICT_OBJS) $(LIBS)
171
172INVF_REB_OBJS = mg_invf_rebuild$o locallib$o
173mg_invf_rebuild$e: $(INVF_REB_OBJS)
174 $(LINK) $(INVF_REB_OBJS) $(LIBS)
175
176DICTLIST_OBJS = mgdictlist$o locallib$o
177mgdictlist$e: $(DICTLIST_OBJS)
178 $(LINK) $(DICTLIST_OBJS) $(LIBS)
179
180PERF_HASH_OBJS = mg_perf_hash_build$o mg_files$o
181mg_perf_hash_build$e: $(PERF_HASH_OBJS)
182 $(LINK) $(PERF_HASH_OBJS) $(LIBS)
183
184STEM_IDX_OBJS = mg_stem_idx$o mg_files$o stemmer$o locallib$o \
185 mg_errors$o term_lists$o
186mg_stem_idx$e: $(STEM_IDX_OBJS)
187 $(LINK) $(STEM_IDX_OBJS) $(LIBS)
188
189STEM_IDX_LIST_OBJS = mgstemidxlist$o mg_files$o
190mgstemidxlist$e: $(STEM_IDX_LIST_OBJS)
191 $(LINK) $(STEM_IDX_LIST_OBJS) $(LIBS)
192
193DECOMPRESS_TEXT_OBJS = mg_decompress_text$o query_term_list$o mg_files$o \
194 mg_errors$o \
195 text_get$o locallib$o backend$o stem_search$o \
196 term_lists$o stemmer$o weights$o invf_get$o lists$o
197mg_decompress_text$e: $(DECOMPRESS_TEXT_OBJS)
198 $(LINK) $(DECOMPRESS_TEXT_OBJS) $(LIBS)
199
200TEXT_MERGE_OBJS = mg_text_merge$o mg_files$o locallib$o
201mg_text_merge$e: $(TEXT_MERGE_OBJS)
202 $(LINK) $(TEXT_MERGE_OBJS) $(LIBS)
203
204INVF_MERGE_OBJS = mg_invf_merge$o mg_files$o locallib$o
205mg_invf_merge$e: $(INVF_MERGE_OBJS)
206 $(LINK) $(INVF_MERGE_OBJS) $(LIBS)
207
208LIB_OBJS = \
209 query_term_list$o \
210 locallib$o lists$o \
211 query.ranked$o query.docnums$o stem_search$o \
212 environment$o commands$o weights$o text_get$o stemmer$o \
213 read_line$o mg_errors$o backend$o invf_get$o \
214 term_lists$o bool_tree$o bool_parser$o bool_optimiser$o \
215 bool_query$o words$o
216
217JNI_LIB_OBJS = \
218 mg_passes_4jni$o text.pass1$o comp_dict$o stemmer$o \
219 text.pass2$o locallib$o words$o environment$o \
220 ivf.pass1$o ivf.pass2$o mg.special$o mg_files$o
221
222
223DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
224
225libmgtextin.lib : $(LIB_OBJS)
226 if exist libmgtextin.lib del libmgtextin.lib
227 $(AR) /out:libmgtextin.lib $(LIB_OBJS)
228
229libmgpass.lib : $(JNI_LIB_OBJS)
230 if exist libmgpass.lib del libmgpass.lib
231 $(AR) /out:libmgpass.lib $(JNI_LIB_OBJS)
232
233install:
234 for %%i in ($(EXEC)) do \
235 copy %%i "$(GSDL3HOME)\bin"
236
237clean:
238 if exist *$o del *$o
239 if exist *$e del *$e
240 if exist libmgtextin.lib del libmgtextin.lib
241 if exist libmgpass.lib del libmgpass.lib
Note: See TracBrowser for help on using the repository browser.