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

Last change on this file since 12915 was 12915, checked in by kjdon, 18 years ago

the compilation of the accent folding stuff (which needs unac package and iconv library) is now under the control of ENABLE_ACCENTFOLD, which gets defined in the CFLAGS if we want accent folding. turn it off in the mgpp/src/text/Makefile

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