source: branches/New_Config_Format-branch/gsdl/src/mgpp/text/Makefile.in@ 1279

Last change on this file since 1279 was 1279, checked in by sjboddie, 24 years ago

merged changes to trunk into New_Config_Format branch

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