source: trunk/indexers/mgpp/text/Makefile.in@ 7729

Last change on this file since 7729 was 7729, checked in by kjdon, 20 years ago

changed my mind back again about installing into bin/linux = now just goes into bin

  • Property svn:keywords set to Author Date Id Revision
File size: 9.3 KB
Line 
1###########################################################################
2#
3# Makefile.in -- Makefile for the MGPP 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@
31bindir = @bindir@
32srcdir = @srcdir@
33libdir = @libdir@
34subdir = text
35top_srcdir = @top_srcdir@
36transform = @program_transform_name@
37
38AR = ar
39CC = @CC@
40CXX = @CXX@
41CFLAGS = @CFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX
42CXXFLAGS = @CXXFLAGS@ -DSILENT -DSHORT_SUFFIX
43DEFS = @DEFS@
44RANLIB = @RANLIB@
45INSTALL = @INSTALL@
46INSTALL_DATA = @INSTALL_DATA@
47INSTALL_PROGRAM = @INSTALL_PROGRAM@
48LDFLAGS = @LDFLAGS@
49LIBS = ../lib/libmgpplib.a -lstdc++ @LIBS@
50TOUCH = echo timestamp >
51AWK = @AWK@
52GSDLOS = @gsdlos@
53
54bindir = $(exec_prefix)/bin
55datadir = $(prefix)/share
56libexecdir = $(exec_prefix)/libexec
57localedir = $(datadir)/locale
58mandir = $(prefix)/man/man1
59
60COMPILE = $(CC) -c $(DEFS) $(TREC_MODE) $(READLINE) $(INCLUDES) $(CFLAGS)
61CXXCOMPILE = $(CXX) -c $(DEFS) $(TREC_MODE) $(READLINE) $(INCLUDES) $(CXXFLAGS)
62LINK = $(CC) $(LDFLAGS) -o $@
63
64.SUFFIXES:
65.SUFFIXES: .c .o
66.c.o:
67 $(COMPILE) $<
68
69.SUFFIXES: .cpp .o
70.cpp.o:
71 $(CXXCOMPILE) $<
72
73
74ANSI2KNR = @ANSI2KNR@
75o = .@U@o
76
77.SUFFIXES: ._c ._o
78.c._c:
79 ./ansi2knr $< > $*.tmp && mv $*.tmp $@
80._c._o:
81 @echo $(COMPILE) $<
82 @rm -f _$*.c
83 @ln $< _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
84.c._o:
85 ./ansi2knr $< > $*.tmp && mv $*.tmp $*._c
86 @echo $(COMPILE) $*._c
87 @rm -f _$*.c
88 @ln $*._c _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
89
90INCLUDES = -I.. -I../lib -I.
91
92#############################################################################
93#
94# Uncomment (and possibly edit) the following lines if you wish
95# to use the GNU readline library for the input in mgquery
96#
97#READLINE = -DGNU_READLINE -I/opt/gnu/include/readline -L/opt/gnu/lib
98#READLINE_LIBS = -lreadline -ltermcap
99#
100#
101#############################################################################
102
103SOURCES = \
104 FIvfLevelInfo.cpp ivf.pass1.cpp mgpp_invf_dump.cpp \
105 FText.cpp ivf.pass2.cpp mgpp_passes.cpp \
106 FileBuf.cpp locallib.cpp mgpp_perf_hash_build.cpp \
107 FragLevelConvert.cpp mg.special.cpp mgpp_stem_idx.cpp \
108 IndexData.cpp mgpp_compression_dict.cpp mgpp_weights_build.cpp \
109 TagInfo.cpp mgpp_decompress_text.cpp stemmer.cpp \
110 TextEl.cpp mg_errors.cpp text.cpp \
111 TextGet.cpp mgpp_fast_comp_dict.cpp text.pass1.cpp \
112 UCArray.cpp mg_files.cpp text.pass2.cpp \
113 comp_dict.cpp mgpp_invf_dict.cpp words.cpp \
114 invf.cpp mgpp_invf_dict_dump.cpp Weights.cpp \
115 MGQuery.cpp Terms.cpp QueryTester.cpp \
116 QueryLex.cpp QueryParser.cpp \
117 GSDLQueryLex.cpp GSDLQueryParser.cpp Queryer.cpp
118
119
120HEADERS = \
121 FIvfLevelInfo.h TextEl.h hash.h stemmer.h \
122 FText.h TextGet.h invf.h text.h \
123 FileBuf.h UCArray.h locallib.h words.h \
124 FragLevelConvert.h WordData.h mg.h \
125 IndexData.h build.h mg_errors.h \
126 TagInfo.h comp_dict.h mg_files.h Weights.h \
127 MGQuery.h Terms.h QueryLex.h QueryParser.h \
128 GSDLQueryLex.h GSDLQueryParser.h
129
130
131MISC = Makefile.in
132
133ALLFILES = $(SOURCES) $(HEADERS) $(MISC) $(MAN)
134
135DISTFILES = $(ALLFILES)
136
137EXEC = mgpp_passes mgpp_decompress_text mgpp_perf_hash_build \
138 mgpp_invf_dump mgpp_weights_build mgpp_invf_dict mgpp_stem_idx \
139 mgpp_invf_dict_dump mgpp_compression_dict mgpp_fast_comp_dict \
140 QueryTester Queryer
141
142MAN = mgpp_weights_build.1 mgpp_invf_dict.1 \
143 mgpp_passes.1 mgpp_perf_hash_build.1 \
144 mgpp_compression_dict.1 mgpp_fast_comp_dict.1 \
145 mgpp_stem_idx.1
146
147# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
148
149
150all: $(EXEC) libmgpptext.a
151
152depend:
153 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) $(CFLAGS) -- $(SOURCES)
154
155# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
156
157
158PASSES_OBJS = \
159 mgpp_passes$o text.pass1$o comp_dict$o \
160 text.pass2$o locallib$o \
161 ivf.pass1$o ivf.pass2$o mg.special$o mg_files$o \
162 words$o invf$o FileBuf$o TextEl$o UCArray$o TagInfo$o \
163 FText$o text$o FIvfLevelInfo$o
164
165mgpp_passes: $(PASSES_OBJS)
166 $(LINK) $(PASSES_OBJS) $(LIBS)
167
168# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
169
170QUERYER_OBJS = Queryer$o mg_files$o mg_errors$o locallib$o invf$o UCArray$o \
171 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
172 IndexData$o stemmer$o Weights$o TextGet$o text$o FText$o \
173 GSDLQueryParser$o GSDLQueryLex$o words$o
174
175Queryer: $(QUERYER_OBJS)
176 $(LINK) $(QUERYER_OBJS) $(LIBS)
177
178QUERY_TESTER_OBJS = QueryTester$o mg_files$o invf$o UCArray$o \
179 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
180 IndexData$o stemmer$o Weights$o
181
182QueryTester: $(QUERY_TESTER_OBJS)
183 $(LINK) $(QUERY_TESTER_OBJS) $(LIBS)
184
185WEIGHTS_BUILD_OBJS = mgpp_weights_build$o mg_files$o invf$o UCArray$o \
186 FIvfLevelInfo$o FragLevelConvert$o
187
188mgpp_weights_build: $(WEIGHTS_BUILD_OBJS)
189 $(LINK) $(WEIGHTS_BUILD_OBJS) $(LIBS)
190
191COMP_DICT_OBJS = mgpp_compression_dict$o mg_files$o locallib$o
192
193mgpp_compression_dict: $(COMP_DICT_OBJS)
194 $(LINK) $(COMP_DICT_OBJS) $(LIBS)
195
196FAST_COMP_OBJS = mgpp_fast_comp_dict$o mg_files$o locallib$o
197
198mgpp_fast_comp_dict: $(FAST_COMP_OBJS)
199 $(LINK) $(FAST_COMP_OBJS) $(LIBS)
200
201INVF_DUMP_OBJS = mgpp_invf_dump$o locallib$o mg_files$o invf$o UCArray$o
202
203mgpp_invf_dump: $(INVF_DUMP_OBJS)
204 $(LINK) $(INVF_DUMP_OBJS) $(LIBS)
205
206INVF_DICT_OBJS = mgpp_invf_dict$o mg_files$o invf$o UCArray$o
207
208mgpp_invf_dict: $(INVF_DICT_OBJS)
209 $(LINK) $(INVF_DICT_OBJS) $(LIBS)
210
211INVF_DICT_DUMP_OBJS = mgpp_invf_dict_dump$o mg_files$o invf$o UCArray$o
212
213mgpp_invf_dict_dump: $(INVF_DICT_DUMP_OBJS)
214 $(LINK) $(INVF_DICT_DUMP_OBJS) $(LIBS)
215
216PERF_HASH_OBJS = mgpp_perf_hash_build$o mg_files$o invf$o UCArray$o
217
218mgpp_perf_hash_build: $(PERF_HASH_OBJS)
219 $(LINK) $(PERF_HASH_OBJS) $(LIBS)
220
221STEM_IDX_OBJS = mgpp_stem_idx$o mg_files$o stemmer$o \
222 invf$o UCArray$o
223
224mgpp_stem_idx: $(STEM_IDX_OBJS)
225 $(LINK) $(STEM_IDX_OBJS) $(LIBS)
226
227DECOMPRESS_TEXT_OBJS = \
228 mgpp_decompress_text$o mg_files$o mg_errors$o \
229 locallib$o text$o UCArray$o TextGet$o FText$o
230
231mgpp_decompress_text: $(DECOMPRESS_TEXT_OBJS)
232 $(LINK) $(DECOMPRESS_TEXT_OBJS) $(LIBS)
233
234# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
235
236ansi2knr: ansi2knr.o
237 $(LINK) ansi2knr.o $(LIBS)
238
239install: execinstall
240uninstall: execuninstall
241
242execinstall: $(EXEC)
243 ../mkinstalldirs $(bindir); \
244 for name in $(EXEC); do \
245 $(INSTALL_PROGRAM) $$name \
246 $(bindir)/`echo $$name | sed '$(transform)'`; \
247 done
248
249execuninstall:
250 for name in $(EXEC); do \
251 rm -f $(bindir)/`echo $$name | sed '$(transform)'`; \
252 done
253
254maninstall: $(MAN)
255 $(top_srcdir)/mkinstalldirs $(mandir); \
256 for f in $(MAN); do \
257 $(INSTALL_DATA) $$f $(mandir)/$$f ;\
258 done
259
260manuninstall: $(MAN)
261 for f in $(MAN); do \
262 rm -f $(mandir)/$$f ;\
263 done
264
265LIB_OBJS = mg_files$o mg_errors$o locallib$o invf$o UCArray$o \
266 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
267 IndexData$o stemmer$o Weights$o TextGet$o text$o FText$o \
268 GSDLQueryParser$o GSDLQueryLex$o words$o
269
270libmgpptext.a: $(LIB_OBJS)
271 rm -f libmgpptext.a
272 $(AR) cru libmgpptext.a $(LIB_OBJS)
273 $(RANLIB) libmgpptext.a
274
275
276mostlyclean:
277 rm -f *$o _*.c _*.o *._c *._o core core.*
278
279clean: mostlyclean
280 rm -f $(EXEC) libmgpptext.a
281
282distclean: clean
283 rm -f ansi2knr
284 rm -f Makefile
285
286maintainer-clean: distclean
287 @echo "This command is intended only for maintainers to use;"
288 @echo "rebuilding the deleted files may require special tools."
289
290dist: $(DISTFILES)
291 for file in $(DISTFILES); do \
292 ln $(srcdir)/$$file $(distdir) 2> /dev/null \
293 || cp -p $(srcdir)/$$file $(distdir); \
294 done
295
296movclean:
297 for file in $(SOURCES); do \
298 test = $$file; \
299 echo $("test.c"##*.c); \
300 done
301
302
303# Tell versions [3.59,3.63) of GNU make not to export all variables.
304# Otherwise a system limit (for SysV at least) may be exc
305
306
Note: See TracBrowser for help on using the repository browser.