source: trunk/gsdl/packages/mg/src/text/GCC.mak@ 1152

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

modifications for windows ports of GCC

  • Property svn:keywords set to Author Date Id Revision
File size: 7.0 KB
Line 
1###########################################################################
2#
3# gcc 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) 2000 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
28AR = ar
29RANLIB = ranlib
30CC = gcc
31DELETE = del
32INSTALL = copy
33
34o = .o
35e = .exe
36/ = \\
37
38CPPFLAGS = -g
39DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H \
40 -D_LITTLE_ENDIAN
41LIBS = ..$/..$/lib$/libmg.a
42
43COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
44LINK = $(CC) $(LDFLAGS) -o $@
45
46.SUFFIXES:
47.SUFFIXES: .c $o
48.c$o:
49 $(COMPILE) $<
50
51INCLUDES = -I"..$/.." -I"..$/..$/lib"
52
53
54SOURCES = \
55 backend.c locallib.c mg_weights_build.c \
56 bool_optimiser.c mg.special.c mgdictlist.c \
57 bool_parser.c mg_compression_dict.c mgquery.c \
58 bool_query.c mg_errors.c mgstat.c \
59 bool_tester.c mg_fast_comp_dict.c mg_decompress_text.c \
60 bool_tree.c mg_files.c query.docnums.c \
61 commands.c mg_hilite_words.c query.ranked.c \
62 comp_dict.c mg_invf_dict.c read_line.c \
63 environment.c mg_invf_dump.c stem_search.c \
64 mg_invf_merge.c stemmer.c mg_stem_idx.c \
65 mg_invf_rebuild.c term_lists.c mgstemidxlist.c \
66 invf_get.c mg_passes.c text.pass1.c \
67 ivf.pass1.c mg_perf_hash_build.c text.pass2.c \
68 ivf.pass2.c mg_text_estimate.c text_get.c \
69 lists.c mg_text_merge.c weights.c \
70 query_term_list.c words.c
71
72HEADERS = \
73 backend.h conditions.h locallib.h term_lists.h \
74 bool_optimiser.h environment.h mg.h text.h \
75 bool_parser.h globals.h mg_errors.h text_get.h \
76 bool_query.h hash.h mg_files.h warranty.h \
77 bool_tree.h help.mg.h mg_merge.h weights.h \
78 build.h invf.h read_line.h words.h \
79 commands.h invf_get.h stem_search.h \
80 comp_dict.h lists.h stemmer.h \
81 query_term_list.h
82
83EXEC = \
84 mgquery$e mg_weights_build$e mgstat$e mg_invf_dump$e \
85 mg_invf_dict$e mg_invf_rebuild$e mgdictlist$e \
86 mg_passes$e mg_perf_hash_build$e mg_compression_dict$e \
87 mg_text_estimate$e mg_fast_comp_dict$e mg_hilite_words$e \
88 mg_invf_merge$e mg_text_merge$e bool_tester$e \
89 mg_stem_idx$e mgstemidxlist$e mg_decompress_text$e
90
91all: $(EXEC) libtextin.a
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) $(QUERY_OBJS) $(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
123WEIGHTS_BUILD_OBJS = mg_weights_build$o mg_files$o
124mg_weights_build$e: $(WEIGHTS_BUILD_OBJS)
125 $(LINK) $(WEIGHTS_BUILD_OBJS) $(LIBS)
126
127COMP_DICT_OBJS = mg_compression_dict$o mg_files$o locallib$o
128mg_compression_dict$e: $(COMP_DICT_OBJS)
129 $(LINK) $(COMP_DICT_OBJS) $(LIBS)
130
131FAST_COMP_OBJS = mg_fast_comp_dict$o mg_files$o locallib$o
132mg_fast_comp_dict$e: $(FAST_COMP_OBJS)
133 $(LINK) $(FAST_COMP_OBJS) $(LIBS)
134
135TEXT_EST_OBJS = mg_text_estimate$o locallib$o comp_dict$o mg_files$o
136mg_text_estimate$e: $(TEXT_EST_OBJS)
137 $(LINK) $(TEXT_EST_OBJS) $(LIBS)
138
139STAT_OBJS = mgstat$o mg_files$o locallib$o
140mgstat$e: $(STAT_OBJS)
141 $(LINK) $(STAT_OBJS) $(LIBS)
142
143INVF_DUMP_OBJS = mg_invf_dump$o locallib$o mg_files$o
144mg_invf_dump$e: $(INVF_DUMP_OBJS)
145 $(LINK) $(INVF_DUMP_OBJS) $(LIBS)
146
147INVF_DICT_OBJS = mg_invf_dict$o mg_files$o locallib$o
148mg_invf_dict$e: $(INVF_DICT_OBJS)
149 $(LINK) $(INVF_DICT_OBJS) $(LIBS)
150
151INVF_REB_OBJS = mg_invf_rebuild$o locallib$o
152mg_invf_rebuild$e: $(INVF_REB_OBJS)
153 $(LINK) $(INVF_REB_OBJS) $(LIBS)
154
155DICTLIST_OBJS = mgdictlist$o locallib$o
156mgdictlist$e: $(DICTLIST_OBJS)
157 $(LINK) $(DICTLIST_OBJS) $(LIBS)
158
159PERF_HASH_OBJS = mg_perf_hash_build$o mg_files$o
160mg_perf_hash_build$e: $(PERF_HASH_OBJS)
161 $(LINK) $(PERF_HASH_OBJS) $(LIBS)
162
163STEM_IDX_OBJS = mg_stem_idx$o mg_files$o stemmer$o locallib$o \
164 mg_errors$o term_lists$o
165mg_stem_idx$e: $(STEM_IDX_OBJS)
166 $(LINK) $(STEM_IDX_OBJS) $(LIBS)
167
168STEM_IDX_LIST_OBJS = mgstemidxlist$o mg_files$o
169mgstemidxlist$e: $(STEM_IDX_LIST_OBJS)
170 $(LINK) $(STEM_IDX_LIST_OBJS) $(LIBS)
171
172DECOMPRESS_TEXT_OBJS = mg_decompress_text$o query_term_list$o mg_files$o mg_errors$o \
173 text_get$o locallib$o backend$o stem_search$o \
174 term_lists$o stemmer$o weights$o invf_get$o lists$o
175mg_decompress_text$e: $(DECOMPRESS_TEXT_OBJS)
176 $(LINK) $(DECOMPRESS_TEXT_OBJS) $(LIBS)
177
178TEXT_MERGE_OBJS = mg_text_merge$o mg_files$o locallib$o
179mg_text_merge$e: $(TEXT_MERGE_OBJS)
180 $(LINK) $(TEXT_MERGE_OBJS) $(LIBS)
181
182INVF_MERGE_OBJS = mg_invf_merge$o mg_files$o locallib$o
183mg_invf_merge$e: $(INVF_MERGE_OBJS)
184 $(LINK) $(INVF_MERGE_OBJS) $(LIBS)
185
186install:
187 $(INSTALL) *$e ..$/..$/..$/..$/bin$/windows
188
189LIB_OBJS = \
190 query_term_list$o \
191 locallib$o lists$o \
192 query.ranked$o query.docnums$o stem_search$o \
193 environment$o commands$o weights$o text_get$o stemmer$o \
194 read_line$o mg_errors$o backend$o invf_get$o \
195 term_lists$o bool_tree$o bool_parser$o bool_optimiser$o \
196 bool_query$o words$o
197
198libtextin.a: $(LIB_OBJS)
199 $(DELETE) libtextin.a
200 $(AR) cru libtextin.a $(LIB_OBJS)
201 $(RANLIB) libtextin.a
202
203clean:
204 $(DELETE) *$o
205 $(DELETE) *$e
Note: See TracBrowser for help on using the repository browser.