source: main/trunk/greenstone2/common-src/indexers/mgpp/text/Makefile.in@ 30203

Last change on this file since 30203 was 30203, checked in by ak19, 7 years ago

Propagating ARCH_DEP_FLAGS to allow successful GS compilation on the 32 bit Mac Leopard using a 64 bit JDK 6: -m64 flag needs to propagate into mg and mgpp to get JNI to work during runtime (with mg/mgpp collections using gdbm).

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