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

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

removed some old comments, now installs into bin/gsdlos rather than bin

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