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

Last change on this file since 1518 was 1518, checked in by jrm21, 24 years ago

Edited various Makefile.in files so that "make distclean" works properly.

  • Property svn:keywords set to Author Date Id Revision
File size: 9.8 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
96# want toplevel config.h, not local mg one
97INCLUDES = -I../../.. -I../lib -I.
98
99#############################################################################
100#
101# Uncomment (and possibly edit) the following lines if you wish
102# to use the GNU readline library for the input in mgquery
103#
104#READLINE = -DGNU_READLINE -I/opt/gnu/include/readline -L/opt/gnu/lib
105#READLINE_LIBS = -lreadline -ltermcap
106#
107#
108#############################################################################
109
110SOURCES = \
111 FIvfLevelInfo.cpp ivf.pass1.cpp mg_invf_dump.cpp \
112 FText.cpp ivf.pass2.cpp mg_passes.cpp \
113 FileBuf.cpp locallib.cpp mg_perf_hash_build.cpp \
114 FragLevelConvert.cpp mg.special.cpp mg_stem_idx.cpp \
115 IndexData.cpp mg_compression_dict.cpp mg_weights_build.cpp \
116 TagInfo.cpp mg_decompress_text.cpp stemmer.cpp \
117 TextEl.cpp mg_errors.cpp text.cpp \
118 TextGet.cpp mg_fast_comp_dict.cpp text.pass1.cpp \
119 UCArray.cpp mg_files.cpp text.pass2.cpp \
120 comp_dict.cpp mg_invf_dict.cpp words.cpp \
121 invf.cpp mg_invf_dict_dump.cpp Weights.cpp \
122 MGQuery.cpp Terms.cpp QueryTester.cpp \
123 QueryLex.cpp QueryParser.cpp \
124 GSDLQueryLex.cpp GSDLQueryParser.cpp Queryer.cpp
125
126
127HEADERS = \
128 FIvfLevelInfo.h TextEl.h hash.h stemmer.h \
129 FText.h TextGet.h invf.h text.h \
130 FileBuf.h UCArray.h locallib.h words.h \
131 FragLevelConvert.h WordData.h mg.h \
132 IndexData.h build.h mg_errors.h \
133 TagInfo.h comp_dict.h mg_files.h Weights.h \
134 MGQuery.h Terms.h QueryLex.h QueryParser.h \
135 GSDLQueryLex.h GSDLQueryParser.h
136
137
138MISC = Makefile.in
139
140ALLFILES = $(SOURCES) $(HEADERS) $(MISC) $(MAN)
141
142DISTFILES = $(ALLFILES)
143
144EXEC = mg_passes mg_decompress_text mg_perf_hash_build \
145 mg_invf_dump mg_weights_build mg_invf_dict mg_stem_idx \
146 mg_invf_dict_dump mg_compression_dict mg_fast_comp_dict \
147 QueryTester Queryer
148
149MAN = mg_weights_build.1 mg_invf_dict.1 \
150 mg_passes.1 mg_perf_hash_build.1 \
151 mg_compression_dict.1 mg_fast_comp_dict.1 \
152 mg_stem_idx.1
153
154# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
155
156
157all: $(EXEC) libtextin.a
158
159depend:
160 makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -- $(SOURCES)
161
162# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
163
164
165PASSES_OBJS = \
166 mg_passes$o text.pass1$o comp_dict$o \
167 text.pass2$o locallib$o \
168 ivf.pass1$o ivf.pass2$o mg.special$o mg_files$o \
169 words$o invf$o FileBuf$o TextEl$o UCArray$o TagInfo$o \
170 FText$o text$o FIvfLevelInfo$o
171
172mg_passes: $(PASSES_OBJS)
173 $(LINK) $(PASSES_OBJS) $(LIBS)
174
175# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
176
177QUERYER_OBJS = Queryer$o mg_files$o mg_errors$o locallib$o invf$o UCArray$o \
178 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
179 IndexData$o stemmer$o Weights$o TextGet$o text$o FText$o \
180 GSDLQueryParser$o GSDLQueryLex$o words$o
181
182Queryer: $(QUERYER_OBJS)
183 $(LINK) $(QUERYER_OBJS) $(LIBS)
184
185QUERY_TESTER_OBJS = QueryTester$o mg_files$o invf$o UCArray$o \
186 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
187 IndexData$o stemmer$o Weights$o
188
189QueryTester: $(QUERY_TESTER_OBJS)
190 $(LINK) $(QUERY_TESTER_OBJS) $(LIBS)
191
192WEIGHTS_BUILD_OBJS = mg_weights_build$o mg_files$o invf$o UCArray$o \
193 FIvfLevelInfo$o FragLevelConvert$o
194
195mg_weights_build: $(WEIGHTS_BUILD_OBJS)
196 $(LINK) $(WEIGHTS_BUILD_OBJS) $(LIBS)
197
198COMP_DICT_OBJS = mg_compression_dict$o mg_files$o locallib$o
199
200mg_compression_dict: $(COMP_DICT_OBJS)
201 $(LINK) $(COMP_DICT_OBJS) $(LIBS)
202
203FAST_COMP_OBJS = mg_fast_comp_dict$o mg_files$o locallib$o
204
205mg_fast_comp_dict: $(FAST_COMP_OBJS)
206 $(LINK) $(FAST_COMP_OBJS) $(LIBS)
207
208INVF_DUMP_OBJS = mg_invf_dump$o locallib$o mg_files$o invf$o UCArray$o
209
210mg_invf_dump: $(INVF_DUMP_OBJS)
211 $(LINK) $(INVF_DUMP_OBJS) $(LIBS)
212
213INVF_DICT_OBJS = mg_invf_dict$o mg_files$o invf$o UCArray$o
214
215mg_invf_dict: $(INVF_DICT_OBJS)
216 $(LINK) $(INVF_DICT_OBJS) $(LIBS)
217
218INVF_DICT_DUMP_OBJS = mg_invf_dict_dump$o mg_files$o invf$o UCArray$o
219
220mg_invf_dict_dump: $(INVF_DICT_DUMP_OBJS)
221 $(LINK) $(INVF_DICT_DUMP_OBJS) $(LIBS)
222
223PERF_HASH_OBJS = mg_perf_hash_build$o mg_files$o invf$o UCArray$o
224
225mg_perf_hash_build: $(PERF_HASH_OBJS)
226 $(LINK) $(PERF_HASH_OBJS) $(LIBS)
227
228STEM_IDX_OBJS = mg_stem_idx$o mg_files$o stemmer$o \
229 invf$o UCArray$o
230
231mg_stem_idx: $(STEM_IDX_OBJS)
232 $(LINK) $(STEM_IDX_OBJS) $(LIBS)
233
234DECOMPRESS_TEXT_OBJS = \
235 mg_decompress_text$o mg_files$o mg_errors$o \
236 locallib$o text$o UCArray$o TextGet$o FText$o
237
238mg_decompress_text: $(DECOMPRESS_TEXT_OBJS)
239 $(LINK) $(DECOMPRESS_TEXT_OBJS) $(LIBS)
240
241# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
242
243ansi2knr: ansi2knr.o
244 $(LINK) ansi2knr.o $(LIBS)
245
246install: execinstall maninstall
247uninstall: execuninstall manuninstall
248
249execinstall: $(EXEC)
250 $(top_srcdir)/mkinstalldirs $(bindir); \
251 for name in $(EXEC); do \
252 $(INSTALL_PROGRAM) $$name \
253 $(bindir)/`echo $$name | sed '$(transform)'`; \
254 done
255
256execuninstall:
257 for name in $(EXEC); do \
258 rm -f $(bindir)/`echo $$name | sed '$(transform)'`; \
259 done
260
261maninstall: $(MAN)
262 $(top_srcdir)/mkinstalldirs $(mandir); \
263 for f in $(MAN); do \
264 $(INSTALL_DATA) $$f $(mandir)/$$f ;\
265 done
266
267manuninstall: $(MAN)
268 for f in $(MAN); do \
269 rm -f $(mandir)/$$f ;\
270 done
271
272#mg_errors$o removed from LIB_OBJS to avoid conflict with mg's libtextin.a
273LIB_OBJS = mg_files$o mg_errors$o locallib$o invf$o UCArray$o \
274 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
275 IndexData$o stemmer$o Weights$o TextGet$o text$o FText$o \
276 GSDLQueryParser$o GSDLQueryLex$o words$o
277
278libtextin.a: $(LIB_OBJS)
279 rm -f libtextin.a
280 $(AR) cru libtextin.a $(LIB_OBJS)
281 $(RANLIB) libtextin.a
282
283
284mostlyclean:
285 rm -f *$o _*.c _*.o *._c *._o core core.*
286
287clean: mostlyclean
288 rm -f $(EXEC)
289
290distclean: clean
291 rm -f ansi2knr
292 rm -f Makefile
293
294maintainer-clean: distclean
295 @echo "This command is intended only for maintainers to use;"
296 @echo "rebuilding the deleted files may require special tools."
297
298dist: $(DISTFILES)
299 for file in $(DISTFILES); do \
300 ln $(srcdir)/$$file $(distdir) 2> /dev/null \
301 || cp -p $(srcdir)/$$file $(distdir); \
302 done
303
304movclean:
305 for file in $(SOURCES); do \
306 test = $$file; \
307 echo $("test.c"##*.c); \
308 done
309
310# jrm21
311#Makefile: Makefile.in ../../../config.status
312# cd ../../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
313
314# Tell versions [3.59,3.63) of GNU make not to export all variables.
315# Otherwise a system limit (for SysV at least) may be exc
316
317
Note: See TracBrowser for help on using the repository browser.