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

Last change on this file since 15022 was 15022, checked in by davidb, 14 years ago

Two errors in Makefile corrected. The first was setting "CPP=@CXX@", this of course should be "CXX=@CXX@". The other was more subtle, with gcc being used to do the final linking, even though all the files had been individually compiled with g++. This causes a problem when compiling on the Mac. The link instruction was changed to use $(CXX) not $(CC).

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