source: trunk/gsdl/src/mgpp/text/Makefile@ 655

Last change on this file since 655 was 655, checked in by cs025, 25 years ago

Base install of MG-PP

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 13.4 KB
Line 
1# Generated automatically from Makefile.in by configure.
2###########################################################################
3#
4# Makefile.in -- Makefile for the MG system
5# Copyright (C) 1994 Neil Sharman; 1995 Tim Shimmin
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20#
21# @(#)Makefile.in 1.10 22 Mar 1994
22#
23###########################################################################
24
25PACKAGE = mgpp
26VERSION = 1.3
27
28SHELL = /bin/sh
29exec_prefix = ${prefix}
30prefix = /usr/local
31srcdir = .
32subdir = src/text
33top_srcdir = ..
34transform = s,x,x,
35
36AR = ar
37CC = gcc
38CPP = c++
39ifneq ($(NZDL),1)
40CFLAGS = -g -O2 -ansi
41CPPFLAGS = -ansi
42else
43CFLAGS = -g -O2 -ansi -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM
44CPPFLAGS = -ansi -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM
45endif
46DEFS = -DHAVE_CONFIG_H
47RANLIB = ranlib
48INSTALL = /usr/bin/ginstall -c
49INSTALL_DATA = ${INSTALL} -m 644
50INSTALL_PROGRAM = ${INSTALL}
51LDFLAGS =
52LIBS = ../lib/libmg.a -lm
53TOUCH = echo timestamp >
54AWK = gawk
55
56##########################################
57# George Buchanan - August 1999
58#
59# The below section is now irrelevant -
60# see the ifndef on CFLAGS above; simply
61# compiling with make NZDL=1 will auto-
62# matically ensure that the NZDL compile
63# mode is used
64#
65##########################################
66#
67# Uncomment for compiling for the nzdl project
68#
69#CFLAGS = -g -O2 -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM
70##########################################
71
72
73bindir = $(exec_prefix)/bin
74datadir = $(prefix)/share
75libexecdir = $(exec_prefix)/libexec
76localedir = $(datadir)/locale
77mandir = $(prefix)/man/man1
78
79COMPILE = $(CC) -c $(DEFS) $(TREC_MODE) $(READLINE) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
80CPPCOMPILE = $(CPP) -c $(DEFS) $(TREC_MODE) $(READLINE) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
81LINK = $(CC) $(LDFLAGS) -o $@
82
83.SUFFIXES:
84.SUFFIXES: .c .o
85.c.o:
86 $(COMPILE) $<
87
88.SUFFIXES: .cpp .o
89.cpp.o:
90 $(CPPCOMPILE) -D__cplusplus $<
91
92
93ANSI2KNR =
94o = .o
95
96.SUFFIXES: ._c ._o
97.c._c:
98 ./ansi2knr $< > $*.tmp && mv $*.tmp $@
99._c._o:
100 @echo $(COMPILE) $<
101 @rm -f _$*.c
102 @ln $< _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
103.c._o:
104 ./ansi2knr $< > $*.tmp && mv $*.tmp $*._c
105 @echo $(COMPILE) $*._c
106 @rm -f _$*.c
107 @ln $*._c _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
108
109INCLUDES = -I../ -I../lib -I.
110
111#############################################################################
112#
113# Uncomment (and possibly edit) the following lines if you wish
114# to use the GNU readline library for the input in mgquery
115#
116#READLINE = -DGNU_READLINE -I/opt/gnu/include/readline -L/opt/gnu/lib
117#READLINE_LIBS = -lreadline -ltermcap
118#
119#
120#############################################################################
121
122#############################################################################
123#
124# When working with the trec collection this should be uncommented.
125#
126# TREC_MODE = -DTREC_MODE
127#
128#
129#############################################################################
130
131SOURCES = \
132 backend.cpp DocEntry.cpp \
133 locallib.cpp mg_weights_build.cpp \
134 bool_optimiser.cpp mg.special.cpp mgdictlist.cpp \
135 bool_parser.cpp mg_compression_dict.cpp mgquery.cpp \
136 bool_query.cpp mg_errors.cpp mgstat.cpp \
137 bool_tester.cpp mg_fast_comp_dict.cpp mg_decompress_text.cpp \
138 bool_tree.cpp mg_files.cpp query.docnums.cpp \
139 commands.cpp mg_hilite_words.cpp query.ranked.cpp \
140 comp_dict.cpp mg_invf_dict.cpp read_line.cpp \
141 environment.cpp mg_invf_dump.cpp stem_search.cpp \
142 mg_invf_merge.cpp stemmer.cpp mg_stem_idx.cpp \
143 mg_invf_rebuild.cpp term_lists.cpp mgstemidxlist.cpp \
144 invf_get.cpp mg_passes.cpp text.pass1.cpp \
145 ivf.pass1.cpp mg_perf_hash_build.cpp text.pass2.cpp \
146 ivf.pass2.cpp mg_text_estimate.cpp text_get.cpp \
147 lists.cpp mg_text_merge.cpp weights.cpp \
148 query_term_list.cpp words.cpp StemBlock.cpp \
149 StemIdx.cpp invf.cpp
150
151HEADERS = \
152 backend.h DocEntry.h \
153 conditions.h locallib.h term_lists.h \
154 bool_optimiser.h environment.h mg.h text.h \
155 bool_parser.h globals.h mg_errors.h text_get.h \
156 bool_query.h hash.h mg_files.h warranty.h \
157 bool_tree.h help.mg.h mg_merge.h weights.h \
158 build.h invf.h read_line.h words.h \
159 commands.h invf_get.h stem_search.h StemIdx.h \
160 comp_dict.h lists.h stemmer.h StemBlock.h \
161 query_term_list.h WordData.h
162
163
164MISC = Makefile.in help.mg.src bool_parser.ypp warranty.src conditions.src
165
166ALLFILES = $(SOURCES) $(HEADERS) $(MISC) $(MAN)
167
168DISTFILES = $(ALLFILES)
169
170EXEC = mgquery gbquery mg_weights_build mgstat mg_invf_dump mg_invf_dict \
171 mg_invf_rebuild mgdictlist mg_passes mg_perf_hash_build \
172 mg_compression_dict mg_text_estimate mg_fast_comp_dict \
173 mg_hilite_words mg_invf_merge mg_text_merge bool_tester \
174 mg_stem_idx mgstemidxlist mg_decompress_text
175
176MAN = mgquery.1 mg_weights_build.1 mgstat.1 mg_invf_dump.1 mg_invf_dict.1 \
177 mg_invf_rebuild.1 mgdictlist.1 mg_passes.1 mg_perf_hash_build.1 \
178 mg_compression_dict.1 mg_text_estimate.1 mg_fast_comp_dict.1 \
179 mg_hilite_words.1 mg_invf_merge.1 mg_text_merge.1 \
180 mg_stem_idx.1 mgstemidxlist.1 mg_decompress_text.1
181
182# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
183
184
185all: $(EXEC) libtextin.a
186
187
188# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
189
190help.mg.h : help.mg.src
191 sed -e 's/\\/\\\\/g' -e 's/\"/\\\"/g' help.mg.src | $(AWK) '/^#/ { next; };{ if (x == 0) printf("static char *help_str[] = {\n\"%s\\n\"", $$0); else printf(",\n\"%s\\n\"", $$0); x = 1; }; END { printf("};\n"); }' - >help.mg.h
192
193warranty.h : warranty.src
194 sed -e 's/\\/\\\\/g' -e 's/\"/\\\"/g' warranty.src | $(AWK) '/^#/ { next; };{ if (x == 0) printf("static char *warranty_str[] = {\n\"%s\\n\"", $$0); else printf(",\n\"%s\\n\"", $$0); x = 1; }; END { printf("};\n"); }' - >warranty.h
195
196conditions.h : conditions.src
197 sed -e 's/\\/\\\\/g' -e 's/\"/\\\"/g' conditions.src | $(AWK) '/^#/ { next; };{ if (x == 0) printf("static char *cond_str[] = {\n\"%s\\n\"", $$0); else printf(",\n\"%s\\n\"", $$0); x = 1; }; END { printf("};\n"); }' - >conditions.h
198
199
200# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
201
202HILITE_OBJS = mg_hilite_words$o stemmer$o locallib$o words$o
203
204mg_hilite_words: $(HILITE_OBJS)
205 $(LINK) $(HILITE_OBJS) $(LIBS)
206
207# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
208
209bool_parser.cpp: bool_parser.ypp
210 $(YACC) $?
211 mv y.tab.c $@
212
213BOOL_OBJS = bool_tree$o bool_parser$o bool_optimiser$o bool_tester$o \
214 term_lists$o stemmer$o stem_search$o StemBlock$o mg_errors$o \
215 query_term_list$o words$o StemIdx$o
216
217bool_tester: $(BOOL_OBJS)
218 $(LINK) $(BOOL_OBJS) $(LIBS)
219
220# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
221
222QUERY_OBJS = \
223 mgquery$o locallib$o lists$o \
224 query.ranked$o query.docnums$o stem_search$o StemBlock$o \
225 environment$o commands$o weights$o text_get$o stemmer$o \
226 read_line$o mg_errors$o backend$o DocEntry$o invf_get$o \
227 term_lists$o bool_tree$o bool_parser$o bool_optimiser$o bool_query$o \
228 query_term_list$o words$o StemIdx$o
229
230mgquery: $(QUERY_OBJS)
231 $(LINK) $(READLINE) $(QUERY_OBJS) $(READLINE_LIBS) $(LIBS)
232
233commands$o : help.mg.h warranty.h conditions.h
234
235# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
236
237GBQUERY_OBJS = \
238 grbIndex$o locallib$o lists$o \
239 query.ranked$o query.docnums$o stem_search$o StemBlock$o \
240 environment$o commands$o weights$o text_get$o stemmer$o \
241 read_line$o mg_errors$o backend$o DocEntry$o invf_get$o \
242 term_lists$o bool_tree$o bool_parser$o bool_optimiser$o bool_query$o \
243 query_term_list$o words$o StemIdx$o
244
245gbquery: $(GBQUERY_OBJS)
246 $(LINK) $(READLINE) $(GBQUERY_OBJS) $(READLINE_LIBS) $(LIBS)
247
248# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
249
250PASSES_OBJS = \
251 mg_passes$o text.pass1$o comp_dict$o stemmer$o \
252 text.pass2$o locallib$o \
253 ivf.pass1$o ivf.pass2$o mg.special$o mg_files$o \
254 words$o invf$o
255
256mg_passes: $(PASSES_OBJS)
257 $(LINK) $(PASSES_OBJS) $(LIBS)
258
259# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
260
261WEIGHTS_BUILD_OBJS = mg_weights_build$o mg_files$o invf$o
262
263mg_weights_build: $(WEIGHTS_BUILD_OBJS)
264 $(LINK) $(WEIGHTS_BUILD_OBJS) $(LIBS)
265
266COMP_DICT_OBJS = mg_compression_dict$o mg_files$o locallib$o
267
268mg_compression_dict: $(COMP_DICT_OBJS)
269 $(LINK) $(COMP_DICT_OBJS) $(LIBS)
270
271FAST_COMP_OBJS = mg_fast_comp_dict$o mg_files$o locallib$o
272
273mg_fast_comp_dict: $(FAST_COMP_OBJS)
274 $(LINK) $(FAST_COMP_OBJS) $(LIBS)
275
276TEXT_EST_OBJS = mg_text_estimate$o locallib$o comp_dict$o mg_files$o
277
278mg_text_estimate: $(TEXT_EST_OBJS)
279 $(LINK) $(TEXT_EST_OBJS) $(LIBS)
280
281STAT_OBJS = mgstat$o mg_files$o locallib$o
282
283mgstat: $(STAT_OBJS)
284 $(LINK) $(STAT_OBJS) $(LIBS)
285
286INVF_DUMP_OBJS = mg_invf_dump$o locallib$o mg_files$o invf$o
287
288mg_invf_dump: $(INVF_DUMP_OBJS)
289 $(LINK) $(INVF_DUMP_OBJS) $(LIBS)
290
291INVF_DICT_OBJS = mg_invf_dict$o mg_files$o locallib$o invf$o
292
293mg_invf_dict: $(INVF_DICT_OBJS)
294 $(LINK) $(INVF_DICT_OBJS) $(LIBS)
295
296INVF_REB_OBJS = mg_invf_rebuild$o locallib$o invf$o
297
298mg_invf_rebuild: $(INVF_REB_OBJS)
299 $(LINK) $(INVF_REB_OBJS) $(LIBS)
300
301DICTLIST_OBJS = mgdictlist$o locallib$o invf$o
302
303mgdictlist: $(DICTLIST_OBJS)
304 $(LINK) $(DICTLIST_OBJS) $(LIBS)
305
306PERF_HASH_OBJS = mg_perf_hash_build$o mg_files$o invf$o
307
308mg_perf_hash_build: $(PERF_HASH_OBJS)
309 $(LINK) $(PERF_HASH_OBJS) $(LIBS)
310
311STEM_IDX_OBJS = \
312 mg_stem_idx$o mg_files$o stemmer$o locallib$o \
313 mg_errors$o term_lists$o StemBlock$o
314
315mg_stem_idx: $(STEM_IDX_OBJS)
316 $(LINK) $(STEM_IDX_OBJS) $(LIBS)
317
318STEM_IDX_LIST_OBJS = mgstemidxlist$o mg_files$o StemIdx$o
319
320mgstemidxlist: $(STEM_IDX_LIST_OBJS)
321 $(LINK) $(STEM_IDX_LIST_OBJS) $(LIBS)
322
323DECOMPRESS_TEXT_OBJS = \
324 mg_decompress_text.o query_term_list.o mg_files.o mg_errors.o \
325 text_get.o locallib.o backend.o DocEntry.o stem_search.o \
326 StemBlock.o term_lists.o stemmer.o weights.o invf_get.o lists.o \
327 StemIdx.o
328
329mg_decompress_text: $(DECOMPRESS_TEXT_OBJS)
330 $(LINK) $(DECOMPRESS_TEXT_OBJS) $(LIBS)
331
332# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
333
334TEXT_MERGE_OBJS = mg_text_merge$o mg_files$o locallib$o
335
336mg_text_merge: $(TEXT_MERGE_OBJS)
337 $(LINK) $(TEXT_MERGE_OBJS) $(LIBS)
338
339INVF_MERGE_OBJS = mg_invf_merge$o mg_files$o locallib$o invf$o
340
341mg_invf_merge: $(INVF_MERGE_OBJS)
342 $(LINK) $(INVF_MERGE_OBJS) $(LIBS)
343
344# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
345
346ansi2knr: ansi2knr.o
347 $(LINK) ansi2knr.o $(LIBS)
348
349install: execinstall maninstall
350uninstall: execuninstall manuninstall
351
352execinstall: $(EXEC)
353 $(top_srcdir)/mkinstalldirs $(bindir); \
354 for name in $(EXEC); do \
355 $(INSTALL_PROGRAM) $$name \
356 $(bindir)/`echo $$name | sed '$(transform)'`; \
357 done
358
359execuninstall:
360 for name in $(EXEC); do \
361 rm -f $(bindir)/`echo $$name | sed '$(transform)'`; \
362 done
363
364maninstall: $(MAN)
365 $(top_srcdir)/mkinstalldirs $(mandir); \
366 for f in $(MAN); do \
367 $(INSTALL_DATA) $$f $(mandir)/$$f ;\
368 done
369
370manuninstall: $(MAN)
371 for f in $(MAN); do \
372 rm -f $(mandir)/$$f ;\
373 done
374
375
376LIB_OBJS = \
377 query_term_list$o \
378 locallib$o lists$o \
379 query.ranked$o query.docnums$o stem_search$o StemBlock$o \
380 environment$o commands$o weights$o text_get$o stemmer$o \
381 read_line$o mg_errors$o backend$o DocEntry$o invf_get$o \
382 term_lists$o bool_tree$o bool_parser$o bool_optimiser$o \
383 bool_query$o words$o StemIdx$o
384
385libtextin.a: $(LIB_OBJS)
386 rm -f libtextin.a
387 $(AR) cru libtextin.a $(LIB_OBJS)
388 $(RANLIB) libtextin.a
389
390
391mostlyclean:
392 rm -f *$o _*.c _*.o *._c *._o core core.*
393
394clean: mostlyclean
395 rm -f $(EXEC)
396
397distclean: clean
398 rm -f ansi2knr
399 rm -f Makefile
400
401maintainer-clean: distclean
402 @echo "This command is intended only for maintainers to use;"
403 @echo "rebuilding the deleted files may require special tools."
404
405dist: $(DISTFILES)
406 for file in $(DISTFILES); do \
407 ln $(srcdir)/$$file $(distdir) 2> /dev/null \
408 || cp -p $(srcdir)/$$file $(distdir); \
409 done
410
411movclean:
412 for file in $(SOURCES); do \
413 test = $$file; \
414 echo $("test.c"##*.c); \
415 done
416
417Makefile: Makefile.in ../config.status
418 cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
419
420# Tell versions [3.59,3.63) of GNU make not to export all variables.
421# Otherwise a system limit (for SysV at least) may be exc
422
423
Note: See TracBrowser for help on using the repository browser.