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 |
|
---|
24 | PACKAGE = @PACKAGE@
|
---|
25 | VERSION = @VERSION@
|
---|
26 |
|
---|
27 | SHELL = /bin/sh
|
---|
28 | VPATH = @srcdir@
|
---|
29 | exec_prefix = @exec_prefix@
|
---|
30 | prefix = @prefix@
|
---|
31 | bindir = @bindir@
|
---|
32 | srcdir = @srcdir@
|
---|
33 | subdir = text
|
---|
34 | top_srcdir = @top_srcdir@
|
---|
35 | transform = @program_transform_name@
|
---|
36 |
|
---|
37 | AR = ar
|
---|
38 | CC = @CC@
|
---|
39 | CXX = @CXX@
|
---|
40 | CFLAGS = @CFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX
|
---|
41 | CXXFLAGS = @CXXFLAGS@ -DSILENT -DSHORT_SUFFIX
|
---|
42 | DEFS = @DEFS@
|
---|
43 | RANLIB = @RANLIB@
|
---|
44 | INSTALL = @INSTALL@
|
---|
45 | INSTALL_DATA = @INSTALL_DATA@
|
---|
46 | INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
---|
47 | LDFLAGS = @LDFLAGS@
|
---|
48 | LIBS = ../lib/libmg.a -lstdc++ @LIBS@
|
---|
49 | TOUCH = echo timestamp >
|
---|
50 | AWK = @AWK@
|
---|
51 |
|
---|
52 | ##########################################
|
---|
53 | # George Buchanan - August 1999
|
---|
54 | #
|
---|
55 | # compiling with make NZDL=1 to ensure that
|
---|
56 | # the NZDL compile mode is used - this has been changed to the default - kjm18
|
---|
57 | #
|
---|
58 | ##########################################
|
---|
59 |
|
---|
60 | datadir = $(prefix)/share
|
---|
61 | libexecdir = $(exec_prefix)/libexec
|
---|
62 | localedir = $(datadir)/locale
|
---|
63 | mandir = $(prefix)/man/man1
|
---|
64 |
|
---|
65 | COMPILE = $(CC) -c $(DEFS) $(TREC_MODE) $(READLINE) $(INCLUDES) $(CFLAGS)
|
---|
66 | CXXCOMPILE = $(CXX) -c $(DEFS) $(TREC_MODE) $(READLINE) $(INCLUDES) $(CXXFLAGS)
|
---|
67 | LINK = $(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 |
|
---|
79 | ANSI2KNR = @ANSI2KNR@
|
---|
80 | o = .@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 |
|
---|
95 | INCLUDES = -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 |
|
---|
108 | SOURCES = \
|
---|
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 |
|
---|
125 | HEADERS = \
|
---|
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 |
|
---|
136 | MISC = Makefile.in
|
---|
137 |
|
---|
138 | ALLFILES = $(SOURCES) $(HEADERS) $(MISC) $(MAN)
|
---|
139 |
|
---|
140 | DISTFILES = $(ALLFILES)
|
---|
141 |
|
---|
142 | EXEC = 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 |
|
---|
147 | MAN = 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 |
|
---|
155 | all: $(EXEC) libtextin.a
|
---|
156 |
|
---|
157 | depend:
|
---|
158 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) $(CFLAGS) -- $(SOURCES)
|
---|
159 |
|
---|
160 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
161 |
|
---|
162 |
|
---|
163 | PASSES_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 |
|
---|
170 | mgpp_passes: $(PASSES_OBJS)
|
---|
171 | $(LINK) $(PASSES_OBJS) $(LIBS)
|
---|
172 |
|
---|
173 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
174 |
|
---|
175 | QUERYER_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 |
|
---|
180 | Queryer: $(QUERYER_OBJS)
|
---|
181 | $(LINK) $(QUERYER_OBJS) $(LIBS)
|
---|
182 |
|
---|
183 | QUERY_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 |
|
---|
187 | QueryTester: $(QUERY_TESTER_OBJS)
|
---|
188 | $(LINK) $(QUERY_TESTER_OBJS) $(LIBS)
|
---|
189 |
|
---|
190 | WEIGHTS_BUILD_OBJS = mgpp_weights_build$o mg_files$o invf$o UCArray$o \
|
---|
191 | FIvfLevelInfo$o FragLevelConvert$o
|
---|
192 |
|
---|
193 | mgpp_weights_build: $(WEIGHTS_BUILD_OBJS)
|
---|
194 | $(LINK) $(WEIGHTS_BUILD_OBJS) $(LIBS)
|
---|
195 |
|
---|
196 | COMP_DICT_OBJS = mgpp_compression_dict$o mg_files$o locallib$o
|
---|
197 |
|
---|
198 | mgpp_compression_dict: $(COMP_DICT_OBJS)
|
---|
199 | $(LINK) $(COMP_DICT_OBJS) $(LIBS)
|
---|
200 |
|
---|
201 | FAST_COMP_OBJS = mgpp_fast_comp_dict$o mg_files$o locallib$o
|
---|
202 |
|
---|
203 | mgpp_fast_comp_dict: $(FAST_COMP_OBJS)
|
---|
204 | $(LINK) $(FAST_COMP_OBJS) $(LIBS)
|
---|
205 |
|
---|
206 | INVF_DUMP_OBJS = mgpp_invf_dump$o locallib$o mg_files$o invf$o UCArray$o
|
---|
207 |
|
---|
208 | mgpp_invf_dump: $(INVF_DUMP_OBJS)
|
---|
209 | $(LINK) $(INVF_DUMP_OBJS) $(LIBS)
|
---|
210 |
|
---|
211 | INVF_DICT_OBJS = mgpp_invf_dict$o mg_files$o invf$o UCArray$o
|
---|
212 |
|
---|
213 | mgpp_invf_dict: $(INVF_DICT_OBJS)
|
---|
214 | $(LINK) $(INVF_DICT_OBJS) $(LIBS)
|
---|
215 |
|
---|
216 | INVF_DICT_DUMP_OBJS = mgpp_invf_dict_dump$o mg_files$o invf$o UCArray$o
|
---|
217 |
|
---|
218 | mgpp_invf_dict_dump: $(INVF_DICT_DUMP_OBJS)
|
---|
219 | $(LINK) $(INVF_DICT_DUMP_OBJS) $(LIBS)
|
---|
220 |
|
---|
221 | PERF_HASH_OBJS = mgpp_perf_hash_build$o mg_files$o invf$o UCArray$o
|
---|
222 |
|
---|
223 | mgpp_perf_hash_build: $(PERF_HASH_OBJS)
|
---|
224 | $(LINK) $(PERF_HASH_OBJS) $(LIBS)
|
---|
225 |
|
---|
226 | STEM_IDX_OBJS = mgpp_stem_idx$o mg_files$o stemmer$o \
|
---|
227 | invf$o UCArray$o
|
---|
228 |
|
---|
229 | mgpp_stem_idx: $(STEM_IDX_OBJS)
|
---|
230 | $(LINK) $(STEM_IDX_OBJS) $(LIBS)
|
---|
231 |
|
---|
232 | DECOMPRESS_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 |
|
---|
236 | mgpp_decompress_text: $(DECOMPRESS_TEXT_OBJS)
|
---|
237 | $(LINK) $(DECOMPRESS_TEXT_OBJS) $(LIBS)
|
---|
238 |
|
---|
239 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
240 |
|
---|
241 | ansi2knr: ansi2knr.o
|
---|
242 | $(LINK) ansi2knr.o $(LIBS)
|
---|
243 |
|
---|
244 | install: execinstall
|
---|
245 | uninstall: execuninstall
|
---|
246 |
|
---|
247 | execinstall: $(EXEC)
|
---|
248 | ../mkinstalldirs $(bindir); \
|
---|
249 | for name in $(EXEC); do \
|
---|
250 | $(INSTALL_PROGRAM) $$name \
|
---|
251 | $(bindir)/`echo $$name | sed '$(transform)'`; \
|
---|
252 | done
|
---|
253 |
|
---|
254 | execuninstall:
|
---|
255 | for name in $(EXEC); do \
|
---|
256 | rm -f $(bindir)/`echo $$name | sed '$(transform)'`; \
|
---|
257 | done
|
---|
258 |
|
---|
259 | maninstall: $(MAN)
|
---|
260 | $(top_srcdir)/mkinstalldirs $(mandir); \
|
---|
261 | for f in $(MAN); do \
|
---|
262 | $(INSTALL_DATA) $$f $(mandir)/$$f ;\
|
---|
263 | done
|
---|
264 |
|
---|
265 | manuninstall: $(MAN)
|
---|
266 | for f in $(MAN); do \
|
---|
267 | rm -f $(mandir)/$$f ;\
|
---|
268 | done
|
---|
269 |
|
---|
270 | #mg_errors$o removed from LIB_OBJS to avoid conflict with mg's libtextin.a
|
---|
271 | LIB_OBJS = mg_files$o mg_errors$o locallib$o invf$o UCArray$o \
|
---|
272 | FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
|
---|
273 | IndexData$o stemmer$o Weights$o TextGet$o text$o FText$o \
|
---|
274 | GSDLQueryParser$o GSDLQueryLex$o words$o
|
---|
275 |
|
---|
276 | libtextin.a: $(LIB_OBJS)
|
---|
277 | rm -f libtextin.a
|
---|
278 | $(AR) cru libtextin.a $(LIB_OBJS)
|
---|
279 | $(RANLIB) libtextin.a
|
---|
280 |
|
---|
281 |
|
---|
282 | mostlyclean:
|
---|
283 | rm -f *$o _*.c _*.o *._c *._o core core.*
|
---|
284 |
|
---|
285 | clean: mostlyclean
|
---|
286 | rm -f $(EXEC) libtextin.a
|
---|
287 |
|
---|
288 | distclean: clean
|
---|
289 | rm -f ansi2knr
|
---|
290 | rm -f Makefile
|
---|
291 |
|
---|
292 | maintainer-clean: distclean
|
---|
293 | @echo "This command is intended only for maintainers to use;"
|
---|
294 | @echo "rebuilding the deleted files may require special tools."
|
---|
295 |
|
---|
296 | dist: $(DISTFILES)
|
---|
297 | for file in $(DISTFILES); do \
|
---|
298 | ln $(srcdir)/$$file $(distdir) 2> /dev/null \
|
---|
299 | || cp -p $(srcdir)/$$file $(distdir); \
|
---|
300 | done
|
---|
301 |
|
---|
302 | movclean:
|
---|
303 | for file in $(SOURCES); do \
|
---|
304 | test = $$file; \
|
---|
305 | echo $("test.c"##*.c); \
|
---|
306 | done
|
---|
307 |
|
---|
308 | # jrm21
|
---|
309 | #Makefile: Makefile.in ../../../config.status
|
---|
310 | # cd ../../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
|
---|
311 |
|
---|
312 | # Tell versions [3.59,3.63) of GNU make not to export all variables.
|
---|
313 | # Otherwise a system limit (for SysV at least) may be exc
|
---|
314 |
|
---|
315 |
|
---|