source: branches/New_Config_Format-branch/gsdl/packages/mg/src/text/WIN32.MAK@ 1279

Last change on this file since 1279 was 1279, checked in by sjboddie, 24 years ago

merged changes to trunk into New_Config_Format branch

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