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

Last change on this file since 30863 was 30863, checked in by ak19, 6 years ago

Changes to get libiconv issues on MacOS El Capitan straightened out, since DYLD_LIBRARY_PATH gets wiped out on these newer Mac OS versions. The current solution is to use the system libiconv on MacOS machines that are already specific to Macs (and therefore compatible with Macs).

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