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

Last change on this file since 6278 was 6278, checked in by mdewsnip, 20 years ago

Removed mkinstalldirs command from execinstall on Kath's instruction. This causes an error on "make install" because mkinstalldirs is not executable.

  • 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@
38CXX = @CXX@
39CFLAGS = @CFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX
40CXXFLAGS = @CXXFLAGS@ -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##########################################
58GSDLOS = @gsdlos@
59
60bindir = $(top_srcdir)/bin/$(GSDLOS)
61datadir = $(prefix)/share
62libexecdir = $(exec_prefix)/libexec
63localedir = $(datadir)/locale
64mandir = $(prefix)/man/man1
65
66COMPILE = $(CC) -c $(DEFS) $(TREC_MODE) $(READLINE) $(INCLUDES) $(CFLAGS)
67CXXCOMPILE = $(CXX) -c $(DEFS) $(TREC_MODE) $(READLINE) $(INCLUDES) $(CXXFLAGS)
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 $(CXXCOMPILE) $<
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 mgpp_invf_dump.cpp \
112 FText.cpp ivf.pass2.cpp mgpp_passes.cpp \
113 FileBuf.cpp locallib.cpp mgpp_perf_hash_build.cpp \
114 FragLevelConvert.cpp mg.special.cpp mgpp_stem_idx.cpp \
115 IndexData.cpp mgpp_compression_dict.cpp mgpp_weights_build.cpp \
116 TagInfo.cpp mgpp_decompress_text.cpp stemmer.cpp \
117 TextEl.cpp mg_errors.cpp text.cpp \
118 TextGet.cpp mgpp_fast_comp_dict.cpp text.pass1.cpp \
119 UCArray.cpp mg_files.cpp text.pass2.cpp \
120 comp_dict.cpp mgpp_invf_dict.cpp words.cpp \
121 invf.cpp mgpp_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 = mgpp_passes mgpp_decompress_text mgpp_perf_hash_build \
145 mgpp_invf_dump mgpp_weights_build mgpp_invf_dict mgpp_stem_idx \
146 mgpp_invf_dict_dump mgpp_compression_dict mgpp_fast_comp_dict \
147 QueryTester Queryer
148
149MAN = mgpp_weights_build.1 mgpp_invf_dict.1 \
150 mgpp_passes.1 mgpp_perf_hash_build.1 \
151 mgpp_compression_dict.1 mgpp_fast_comp_dict.1 \
152 mgpp_stem_idx.1
153
154# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
155
156
157all: $(EXEC) libtextin.a
158
159depend:
160 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) $(CFLAGS) -- $(SOURCES)
161
162# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
163
164
165PASSES_OBJS = \
166 mgpp_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
172mgpp_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 = mgpp_weights_build$o mg_files$o invf$o UCArray$o \
193 FIvfLevelInfo$o FragLevelConvert$o
194
195mgpp_weights_build: $(WEIGHTS_BUILD_OBJS)
196 $(LINK) $(WEIGHTS_BUILD_OBJS) $(LIBS)
197
198COMP_DICT_OBJS = mgpp_compression_dict$o mg_files$o locallib$o
199
200mgpp_compression_dict: $(COMP_DICT_OBJS)
201 $(LINK) $(COMP_DICT_OBJS) $(LIBS)
202
203FAST_COMP_OBJS = mgpp_fast_comp_dict$o mg_files$o locallib$o
204
205mgpp_fast_comp_dict: $(FAST_COMP_OBJS)
206 $(LINK) $(FAST_COMP_OBJS) $(LIBS)
207
208INVF_DUMP_OBJS = mgpp_invf_dump$o locallib$o mg_files$o invf$o UCArray$o
209
210mgpp_invf_dump: $(INVF_DUMP_OBJS)
211 $(LINK) $(INVF_DUMP_OBJS) $(LIBS)
212
213INVF_DICT_OBJS = mgpp_invf_dict$o mg_files$o invf$o UCArray$o
214
215mgpp_invf_dict: $(INVF_DICT_OBJS)
216 $(LINK) $(INVF_DICT_OBJS) $(LIBS)
217
218INVF_DICT_DUMP_OBJS = mgpp_invf_dict_dump$o mg_files$o invf$o UCArray$o
219
220mgpp_invf_dict_dump: $(INVF_DICT_DUMP_OBJS)
221 $(LINK) $(INVF_DICT_DUMP_OBJS) $(LIBS)
222
223PERF_HASH_OBJS = mgpp_perf_hash_build$o mg_files$o invf$o UCArray$o
224
225mgpp_perf_hash_build: $(PERF_HASH_OBJS)
226 $(LINK) $(PERF_HASH_OBJS) $(LIBS)
227
228STEM_IDX_OBJS = mgpp_stem_idx$o mg_files$o stemmer$o \
229 invf$o UCArray$o
230
231mgpp_stem_idx: $(STEM_IDX_OBJS)
232 $(LINK) $(STEM_IDX_OBJS) $(LIBS)
233
234DECOMPRESS_TEXT_OBJS = \
235 mgpp_decompress_text$o mg_files$o mg_errors$o \
236 locallib$o text$o UCArray$o TextGet$o FText$o
237
238mgpp_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
247uninstall: execuninstall
248
249execinstall: $(EXEC)
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) libtextin.a
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
309# jrm21
310#Makefile: Makefile.in ../../../config.status
311# cd ../../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
312
313# Tell versions [3.59,3.63) of GNU make not to export all variables.
314# Otherwise a system limit (for SysV at least) may be exc
315
316
Note: See TracBrowser for help on using the repository browser.