source: trunk/gsdl/src/mgpp/text/Makefile.in@ 1344

Last change on this file since 1344 was 1344, checked in by kjm18, 24 years ago

changed configure rules at end

  • Property svn:keywords set to Author Date Id Revision
File size: 9.7 KB
Line 
1###########################################################################
2#
3# Makefile.in -- Makefile for the MG system
4# Copyright (C) 1994 Neil Sharman; 1995 Tim Shimmin
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19#
20# @(#)Makefile.in 1.10 22 Mar 1994
21#
22###########################################################################
23
24PACKAGE = @PACKAGE@
25VERSION = @VERSION@
26
27SHELL = /bin/sh
28VPATH = @srcdir@
29exec_prefix = @exec_prefix@
30prefix = @prefix@
31srcdir = @srcdir@
32subdir = text
33top_srcdir = @top_srcdir@
34transform = @program_transform_name@
35
36AR = ar
37CC = @CC@
38CPP = @CXX@
39CFLAGS = @CFLAGS@ -ansi -Wall -Wunused -pedantic -W -Woverloaded-virtual -g -DSILENT -DSHORT_SUFFIX
40CPPFLAGS = @CPPFLAGS@ -ansi -Wall -Wunused -pedantic -W -Woverloaded-virtual -g -DSILENT -DSHORT_SUFFIX
41DEFS = @DEFS@
42RANLIB = @RANLIB@
43INSTALL = @INSTALL@
44INSTALL_DATA = @INSTALL_DATA@
45INSTALL_PROGRAM = @INSTALL_PROGRAM@
46LDFLAGS = @LDFLAGS@
47LIBS = ../lib/libmg.a -lstdc++ @LIBS@
48TOUCH = echo timestamp >
49AWK = @AWK@
50
51##########################################
52# George Buchanan - August 1999
53#
54# compiling with make NZDL=1 to ensure that
55# the NZDL compile mode is used - this has been changed to the default - kjm18
56#
57##########################################
58
59
60bindir = $(exec_prefix)/bin
61datadir = $(prefix)/share
62libexecdir = $(exec_prefix)/libexec
63localedir = $(datadir)/locale
64mandir = $(prefix)/man/man1
65
66COMPILE = $(CC) -c $(DEFS) $(TREC_MODE) $(READLINE) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
67CPPCOMPILE = $(CPP) -c $(DEFS) $(TREC_MODE) $(READLINE) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
68LINK = $(CC) $(LDFLAGS) -o $@
69
70.SUFFIXES:
71.SUFFIXES: .c .o
72.c.o:
73 $(COMPILE) $<
74
75.SUFFIXES: .cpp .o
76.cpp.o:
77 $(CPPCOMPILE) -D__cplusplus $<
78
79
80ANSI2KNR = @ANSI2KNR@
81o = .@U@o
82
83.SUFFIXES: ._c ._o
84.c._c:
85 ./ansi2knr $< > $*.tmp && mv $*.tmp $@
86._c._o:
87 @echo $(COMPILE) $<
88 @rm -f _$*.c
89 @ln $< _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
90.c._o:
91 ./ansi2knr $< > $*.tmp && mv $*.tmp $*._c
92 @echo $(COMPILE) $*._c
93 @rm -f _$*.c
94 @ln $*._c _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
95
96INCLUDES = -I../ -I../lib -I.
97
98#############################################################################
99#
100# Uncomment (and possibly edit) the following lines if you wish
101# to use the GNU readline library for the input in mgquery
102#
103#READLINE = -DGNU_READLINE -I/opt/gnu/include/readline -L/opt/gnu/lib
104#READLINE_LIBS = -lreadline -ltermcap
105#
106#
107#############################################################################
108
109SOURCES = \
110 FIvfLevelInfo.cpp ivf.pass1.cpp mg_invf_dump.cpp \
111 FText.cpp ivf.pass2.cpp mg_passes.cpp \
112 FileBuf.cpp locallib.cpp mg_perf_hash_build.cpp \
113 FragLevelConvert.cpp mg.special.cpp mg_stem_idx.cpp \
114 IndexData.cpp mg_compression_dict.cpp mg_weights_build.cpp \
115 TagInfo.cpp mg_decompress_text.cpp stemmer.cpp \
116 TextEl.cpp mg_errors.cpp text.cpp \
117 TextGet.cpp mg_fast_comp_dict.cpp text.pass1.cpp \
118 UCArray.cpp mg_files.cpp text.pass2.cpp \
119 comp_dict.cpp mg_invf_dict.cpp words.cpp \
120 invf.cpp mg_invf_dict_dump.cpp Weights.cpp \
121 MGQuery.cpp Terms.cpp QueryTester.cpp \
122 QueryLex.cpp QueryParser.cpp \
123 GSDLQueryLex.cpp GSDLQueryParser.cpp Queryer.cpp
124
125
126HEADERS = \
127 FIvfLevelInfo.h TextEl.h hash.h stemmer.h \
128 FText.h TextGet.h invf.h text.h \
129 FileBuf.h UCArray.h locallib.h words.h \
130 FragLevelConvert.h WordData.h mg.h \
131 IndexData.h build.h mg_errors.h \
132 TagInfo.h comp_dict.h mg_files.h Weights.h \
133 MGQuery.h Terms.h QueryLex.h QueryParser.h \
134 GSDLQueryLex.h GSDLQueryParser.h
135
136
137MISC = Makefile.in
138
139ALLFILES = $(SOURCES) $(HEADERS) $(MISC) $(MAN)
140
141DISTFILES = $(ALLFILES)
142
143EXEC = mg_passes mg_decompress_text mg_perf_hash_build \
144 mg_invf_dump mg_weights_build mg_invf_dict mg_stem_idx \
145 mg_invf_dict_dump mg_compression_dict mg_fast_comp_dict \
146 QueryTester Queryer
147
148MAN = mg_weights_build.1 mg_invf_dict.1 \
149 mg_passes.1 mg_perf_hash_build.1 \
150 mg_compression_dict.1 mg_fast_comp_dict.1 \
151 mg_stem_idx.1
152
153# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
154
155
156all: $(EXEC) libtextin.a
157
158depend:
159 makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -- $(SOURCES)
160
161# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
162
163
164PASSES_OBJS = \
165 mg_passes$o text.pass1$o comp_dict$o \
166 text.pass2$o locallib$o \
167 ivf.pass1$o ivf.pass2$o mg.special$o mg_files$o \
168 words$o invf$o FileBuf$o TextEl$o UCArray$o TagInfo$o \
169 FText$o text$o FIvfLevelInfo$o
170
171mg_passes: $(PASSES_OBJS)
172 $(LINK) $(PASSES_OBJS) $(LIBS)
173
174# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
175
176QUERYER_OBJS = Queryer$o mg_files$o mg_errors$o locallib$o invf$o UCArray$o \
177 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
178 IndexData$o stemmer$o Weights$o TextGet$o text$o FText$o \
179 GSDLQueryParser$o GSDLQueryLex$o words$o
180
181Queryer: $(QUERYER_OBJS)
182 $(LINK) $(QUERYER_OBJS) $(LIBS)
183
184QUERY_TESTER_OBJS = QueryTester$o mg_files$o invf$o UCArray$o \
185 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
186 IndexData$o stemmer$o Weights$o
187
188QueryTester: $(QUERY_TESTER_OBJS)
189 $(LINK) $(QUERY_TESTER_OBJS) $(LIBS)
190
191WEIGHTS_BUILD_OBJS = mg_weights_build$o mg_files$o invf$o UCArray$o \
192 FIvfLevelInfo$o FragLevelConvert$o
193
194mg_weights_build: $(WEIGHTS_BUILD_OBJS)
195 $(LINK) $(WEIGHTS_BUILD_OBJS) $(LIBS)
196
197COMP_DICT_OBJS = mg_compression_dict$o mg_files$o locallib$o
198
199mg_compression_dict: $(COMP_DICT_OBJS)
200 $(LINK) $(COMP_DICT_OBJS) $(LIBS)
201
202FAST_COMP_OBJS = mg_fast_comp_dict$o mg_files$o locallib$o
203
204mg_fast_comp_dict: $(FAST_COMP_OBJS)
205 $(LINK) $(FAST_COMP_OBJS) $(LIBS)
206
207INVF_DUMP_OBJS = mg_invf_dump$o locallib$o mg_files$o invf$o UCArray$o
208
209mg_invf_dump: $(INVF_DUMP_OBJS)
210 $(LINK) $(INVF_DUMP_OBJS) $(LIBS)
211
212INVF_DICT_OBJS = mg_invf_dict$o mg_files$o invf$o UCArray$o
213
214mg_invf_dict: $(INVF_DICT_OBJS)
215 $(LINK) $(INVF_DICT_OBJS) $(LIBS)
216
217INVF_DICT_DUMP_OBJS = mg_invf_dict_dump$o mg_files$o invf$o UCArray$o
218
219mg_invf_dict_dump: $(INVF_DICT_DUMP_OBJS)
220 $(LINK) $(INVF_DICT_DUMP_OBJS) $(LIBS)
221
222PERF_HASH_OBJS = mg_perf_hash_build$o mg_files$o invf$o UCArray$o
223
224mg_perf_hash_build: $(PERF_HASH_OBJS)
225 $(LINK) $(PERF_HASH_OBJS) $(LIBS)
226
227STEM_IDX_OBJS = mg_stem_idx$o mg_files$o stemmer$o \
228 invf$o UCArray$o
229
230mg_stem_idx: $(STEM_IDX_OBJS)
231 $(LINK) $(STEM_IDX_OBJS) $(LIBS)
232
233DECOMPRESS_TEXT_OBJS = \
234 mg_decompress_text$o mg_files$o mg_errors$o \
235 locallib$o text$o UCArray$o TextGet$o FText$o
236
237mg_decompress_text: $(DECOMPRESS_TEXT_OBJS)
238 $(LINK) $(DECOMPRESS_TEXT_OBJS) $(LIBS)
239
240# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
241
242ansi2knr: ansi2knr.o
243 $(LINK) ansi2knr.o $(LIBS)
244
245install: execinstall maninstall
246uninstall: execuninstall manuninstall
247
248execinstall: $(EXEC)
249 $(top_srcdir)/mkinstalldirs $(bindir); \
250 for name in $(EXEC); do \
251 $(INSTALL_PROGRAM) $$name \
252 $(bindir)/`echo $$name | sed '$(transform)'`; \
253 done
254
255execuninstall:
256 for name in $(EXEC); do \
257 rm -f $(bindir)/`echo $$name | sed '$(transform)'`; \
258 done
259
260maninstall: $(MAN)
261 $(top_srcdir)/mkinstalldirs $(mandir); \
262 for f in $(MAN); do \
263 $(INSTALL_DATA) $$f $(mandir)/$$f ;\
264 done
265
266manuninstall: $(MAN)
267 for f in $(MAN); do \
268 rm -f $(mandir)/$$f ;\
269 done
270
271#mg_errors$o removed from LIB_OBJS to avoid conflict with mg's libtextin.a
272LIB_OBJS = mg_files$o mg_errors$o locallib$o invf$o UCArray$o \
273 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
274 IndexData$o stemmer$o Weights$o TextGet$o text$o FText$o \
275 GSDLQueryParser$o GSDLQueryLex$o words$o
276
277libtextin.a: $(LIB_OBJS)
278 rm -f libtextin.a
279 $(AR) cru libtextin.a $(LIB_OBJS)
280 $(RANLIB) libtextin.a
281
282
283mostlyclean:
284 rm -f *$o _*.c _*.o *._c *._o core core.*
285
286clean: mostlyclean
287 rm -f $(EXEC)
288
289distclean: clean
290 rm -f ansi2knr
291 rm -f Makefile
292
293maintainer-clean: distclean
294 @echo "This command is intended only for maintainers to use;"
295 @echo "rebuilding the deleted files may require special tools."
296
297dist: $(DISTFILES)
298 for file in $(DISTFILES); do \
299 ln $(srcdir)/$$file $(distdir) 2> /dev/null \
300 || cp -p $(srcdir)/$$file $(distdir); \
301 done
302
303movclean:
304 for file in $(SOURCES); do \
305 test = $$file; \
306 echo $("test.c"##*.c); \
307 done
308
309Makefile: Makefile.in ../../../config.status
310 cd ../../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
311
312# Tell versions [3.59,3.63) of GNU make not to export all variables.
313# Otherwise a system limit (for SysV at least) may be exc
314
315
Note: See TracBrowser for help on using the repository browser.