[3365] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
[7710] | 3 | # Makefile.in -- Makefile for the MGPP system
|
---|
[3365] | 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 |
|
---|
[13696] | 27 | UNAC_DIR = @UNAC_DIR@
|
---|
| 28 |
|
---|
[13478] | 29 | ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
|
---|
| 30 | ifeq ($(ENABLE_ACCENTFOLD), 1)
|
---|
[13696] | 31 | AFLIBS = $(UNAC_DIR)/libunac.a
|
---|
| 32 | AFINCLUDES = -I$(UNAC_DIR)
|
---|
[13478] | 33 | AFFLAGS = -DENABLE_ACCENTFOLD
|
---|
| 34 | else
|
---|
| 35 | AFLIBS =
|
---|
| 36 | AFINCLUDES =
|
---|
| 37 | AFFLAGS =
|
---|
| 38 | endif
|
---|
| 39 |
|
---|
| 40 |
|
---|
[3365] | 41 | SHELL = /bin/sh
|
---|
| 42 | VPATH = @srcdir@
|
---|
| 43 | exec_prefix = @exec_prefix@
|
---|
| 44 | prefix = @prefix@
|
---|
| 45 | bindir = @bindir@
|
---|
| 46 | srcdir = @srcdir@
|
---|
[3372] | 47 | libdir = @libdir@
|
---|
[3365] | 48 | subdir = text
|
---|
| 49 | top_srcdir = @top_srcdir@
|
---|
| 50 | transform = @program_transform_name@
|
---|
| 51 |
|
---|
| 52 | AR = ar
|
---|
| 53 | CC = @CC@
|
---|
| 54 | CXX = @CXX@
|
---|
[25171] | 55 | CFLAGS = @CFLAGS@ -ansi @ARCH_DEP_FLAGS@ -DSILENT -DSHORT_SUFFIX $(AFFLAGS)
|
---|
| 56 | CXXFLAGS = @CXXFLAGS@ @ARCH_DEP_FLAGS@ -DSILENT -DSHORT_SUFFIX $(AFFLAGS)
|
---|
[22070] | 57 | DEFS = @DEFS@
|
---|
[3365] | 58 | RANLIB = @RANLIB@
|
---|
| 59 | INSTALL = @INSTALL@
|
---|
| 60 | INSTALL_DATA = @INSTALL_DATA@
|
---|
| 61 | INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
---|
[25147] | 62 | LDFLAGS = @LDFLAGS@
|
---|
[29080] | 63 | DEP_LIBS = ../lib/libmgpplib.a $(AFLIBS) ../../../packages/iconv/lib/libiconv.a
|
---|
| 64 | LIBS = $(DEP_LIBS) -lstdc++ @LIBS@
|
---|
[3365] | 65 | TOUCH = echo timestamp >
|
---|
| 66 | AWK = @AWK@
|
---|
[7710] | 67 | GSDLOS = @gsdlos@
|
---|
[3365] | 68 |
|
---|
| 69 | datadir = $(prefix)/share
|
---|
| 70 | libexecdir = $(exec_prefix)/libexec
|
---|
| 71 | localedir = $(datadir)/locale
|
---|
| 72 | mandir = $(prefix)/man/man1
|
---|
| 73 |
|
---|
| 74 | COMPILE = $(CC) -c $(DEFS) $(TREC_MODE) $(READLINE) $(INCLUDES) $(CFLAGS)
|
---|
| 75 | CXXCOMPILE = $(CXX) -c $(DEFS) $(TREC_MODE) $(READLINE) $(INCLUDES) $(CXXFLAGS)
|
---|
[15022] | 76 | LINK = $(CXX) $(LDFLAGS) -o $@
|
---|
[3365] | 77 |
|
---|
| 78 | .SUFFIXES:
|
---|
| 79 | .SUFFIXES: .c .o
|
---|
| 80 | .c.o:
|
---|
| 81 | $(COMPILE) $<
|
---|
| 82 |
|
---|
| 83 | .SUFFIXES: .cpp .o
|
---|
| 84 | .cpp.o:
|
---|
| 85 | $(CXXCOMPILE) $<
|
---|
| 86 |
|
---|
| 87 |
|
---|
| 88 | ANSI2KNR = @ANSI2KNR@
|
---|
| 89 | o = .@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 |
|
---|
[13478] | 104 | INCLUDES = -I.. -I../lib -I. $(AFINCLUDES)
|
---|
[3365] | 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 |
|
---|
| 117 | SOURCES = \
|
---|
| 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 \
|
---|
[8947] | 131 | GSDLQueryLex.cpp GSDLQueryParser.cpp Queryer.cpp \
|
---|
| 132 | mgpp_passes_4jni.cpp
|
---|
[3365] | 133 |
|
---|
| 134 |
|
---|
| 135 | HEADERS = \
|
---|
| 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 \
|
---|
[8947] | 143 | GSDLQueryLex.h GSDLQueryParser.h mgpp_passes_4jni.h
|
---|
[3365] | 144 |
|
---|
| 145 |
|
---|
| 146 | MISC = Makefile.in
|
---|
| 147 |
|
---|
| 148 | ALLFILES = $(SOURCES) $(HEADERS) $(MISC) $(MAN)
|
---|
| 149 |
|
---|
| 150 | DISTFILES = $(ALLFILES)
|
---|
| 151 |
|
---|
| 152 | EXEC = 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 |
|
---|
| 157 | MAN = 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 |
|
---|
[8947] | 165 | all: $(EXEC) libmgpptext.a libmgpppass.a
|
---|
[3365] | 166 |
|
---|
| 167 | depend:
|
---|
| 168 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) $(CFLAGS) -- $(SOURCES)
|
---|
| 169 |
|
---|
| 170 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
| 171 |
|
---|
| 172 |
|
---|
| 173 | PASSES_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 |
|
---|
[29080] | 180 | mgpp_passes: $(PASSES_OBJS) $(DEP_LIBS)
|
---|
[3365] | 181 | $(LINK) $(PASSES_OBJS) $(LIBS)
|
---|
| 182 |
|
---|
| 183 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
| 184 |
|
---|
| 185 | QUERYER_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 |
|
---|
[29080] | 190 | Queryer: $(QUERYER_OBJS) $(DEP_LIBS)
|
---|
[3365] | 191 | $(LINK) $(QUERYER_OBJS) $(LIBS)
|
---|
| 192 |
|
---|
| 193 | QUERY_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 |
|
---|
[29080] | 197 | QueryTester: $(QUERY_TESTER_OBJS) $(DEP_LIBS)
|
---|
[3365] | 198 | $(LINK) $(QUERY_TESTER_OBJS) $(LIBS)
|
---|
| 199 |
|
---|
| 200 | WEIGHTS_BUILD_OBJS = mgpp_weights_build$o mg_files$o invf$o UCArray$o \
|
---|
| 201 | FIvfLevelInfo$o FragLevelConvert$o
|
---|
| 202 |
|
---|
[29080] | 203 | mgpp_weights_build: $(WEIGHTS_BUILD_OBJS) $(DEP_LIBS)
|
---|
[3365] | 204 | $(LINK) $(WEIGHTS_BUILD_OBJS) $(LIBS)
|
---|
| 205 |
|
---|
| 206 | COMP_DICT_OBJS = mgpp_compression_dict$o mg_files$o locallib$o
|
---|
| 207 |
|
---|
[29080] | 208 | mgpp_compression_dict: $(COMP_DICT_OBJS) $(DEP_LIBS)
|
---|
[3365] | 209 | $(LINK) $(COMP_DICT_OBJS) $(LIBS)
|
---|
| 210 |
|
---|
| 211 | FAST_COMP_OBJS = mgpp_fast_comp_dict$o mg_files$o locallib$o
|
---|
| 212 |
|
---|
[29080] | 213 | mgpp_fast_comp_dict: $(FAST_COMP_OBJS) $(DEP_LIBS)
|
---|
[3365] | 214 | $(LINK) $(FAST_COMP_OBJS) $(LIBS)
|
---|
| 215 |
|
---|
| 216 | INVF_DUMP_OBJS = mgpp_invf_dump$o locallib$o mg_files$o invf$o UCArray$o
|
---|
| 217 |
|
---|
[29080] | 218 | mgpp_invf_dump: $(INVF_DUMP_OBJS) $(DEP_LIBS)
|
---|
[3365] | 219 | $(LINK) $(INVF_DUMP_OBJS) $(LIBS)
|
---|
| 220 |
|
---|
| 221 | INVF_DICT_OBJS = mgpp_invf_dict$o mg_files$o invf$o UCArray$o
|
---|
| 222 |
|
---|
[29080] | 223 | mgpp_invf_dict: $(INVF_DICT_OBJS) $(DEP_LIBS)
|
---|
[3365] | 224 | $(LINK) $(INVF_DICT_OBJS) $(LIBS)
|
---|
| 225 |
|
---|
| 226 | INVF_DICT_DUMP_OBJS = mgpp_invf_dict_dump$o mg_files$o invf$o UCArray$o
|
---|
| 227 |
|
---|
[29080] | 228 | mgpp_invf_dict_dump: $(INVF_DICT_DUMP_OBJS) $(DEP_LIBS)
|
---|
[3365] | 229 | $(LINK) $(INVF_DICT_DUMP_OBJS) $(LIBS)
|
---|
| 230 |
|
---|
| 231 | PERF_HASH_OBJS = mgpp_perf_hash_build$o mg_files$o invf$o UCArray$o
|
---|
| 232 |
|
---|
[29080] | 233 | mgpp_perf_hash_build: $(PERF_HASH_OBJS) $(DEP_LIBS)
|
---|
[3365] | 234 | $(LINK) $(PERF_HASH_OBJS) $(LIBS)
|
---|
| 235 |
|
---|
| 236 | STEM_IDX_OBJS = mgpp_stem_idx$o mg_files$o stemmer$o \
|
---|
| 237 | invf$o UCArray$o
|
---|
| 238 |
|
---|
[29080] | 239 | mgpp_stem_idx: $(STEM_IDX_OBJS) $(DEP_LIBS)
|
---|
[3365] | 240 | $(LINK) $(STEM_IDX_OBJS) $(LIBS)
|
---|
| 241 |
|
---|
| 242 | DECOMPRESS_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 |
|
---|
[29080] | 246 | mgpp_decompress_text: $(DECOMPRESS_TEXT_OBJS) $(DEP_LIBS)
|
---|
[3365] | 247 | $(LINK) $(DECOMPRESS_TEXT_OBJS) $(LIBS)
|
---|
| 248 |
|
---|
| 249 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
| 250 |
|
---|
| 251 | ansi2knr: ansi2knr.o
|
---|
| 252 | $(LINK) ansi2knr.o $(LIBS)
|
---|
| 253 |
|
---|
| 254 | install: execinstall
|
---|
| 255 | uninstall: execuninstall
|
---|
| 256 |
|
---|
| 257 | execinstall: $(EXEC)
|
---|
| 258 | ../mkinstalldirs $(bindir); \
|
---|
| 259 | for name in $(EXEC); do \
|
---|
| 260 | $(INSTALL_PROGRAM) $$name \
|
---|
| 261 | $(bindir)/`echo $$name | sed '$(transform)'`; \
|
---|
[3372] | 262 | done
|
---|
[3365] | 263 |
|
---|
| 264 | execuninstall:
|
---|
| 265 | for name in $(EXEC); do \
|
---|
| 266 | rm -f $(bindir)/`echo $$name | sed '$(transform)'`; \
|
---|
| 267 | done
|
---|
| 268 |
|
---|
| 269 | maninstall: $(MAN)
|
---|
| 270 | $(top_srcdir)/mkinstalldirs $(mandir); \
|
---|
| 271 | for f in $(MAN); do \
|
---|
| 272 | $(INSTALL_DATA) $$f $(mandir)/$$f ;\
|
---|
| 273 | done
|
---|
| 274 |
|
---|
| 275 | manuninstall: $(MAN)
|
---|
| 276 | for f in $(MAN); do \
|
---|
| 277 | rm -f $(mandir)/$$f ;\
|
---|
| 278 | done
|
---|
| 279 |
|
---|
| 280 | LIB_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 |
|
---|
[3372] | 285 | libmgpptext.a: $(LIB_OBJS)
|
---|
| 286 | rm -f libmgpptext.a
|
---|
| 287 | $(AR) cru libmgpptext.a $(LIB_OBJS)
|
---|
| 288 | $(RANLIB) libmgpptext.a
|
---|
[3365] | 289 |
|
---|
[8947] | 290 | JNI_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
|
---|
[3365] | 296 |
|
---|
[8947] | 297 | libmgpppass.a: $(JNI_LIB_OBJS)
|
---|
| 298 | rm -f libmgpppass.a
|
---|
| 299 | $(AR) cru libmgpppass.a $(JNI_LIB_OBJS)
|
---|
| 300 | $(RANLIB) libmgpppass.a
|
---|
| 301 |
|
---|
[3365] | 302 | mostlyclean:
|
---|
| 303 | rm -f *$o _*.c _*.o *._c *._o core core.*
|
---|
| 304 |
|
---|
| 305 | clean: mostlyclean
|
---|
[8947] | 306 | rm -f $(EXEC) libmgpptext.a libmgpppass.a
|
---|
[3365] | 307 |
|
---|
| 308 | distclean: clean
|
---|
| 309 | rm -f ansi2knr
|
---|
| 310 | rm -f Makefile
|
---|
| 311 |
|
---|
| 312 | maintainer-clean: distclean
|
---|
| 313 | @echo "This command is intended only for maintainers to use;"
|
---|
| 314 | @echo "rebuilding the deleted files may require special tools."
|
---|
| 315 |
|
---|
| 316 | dist: $(DISTFILES)
|
---|
| 317 | for file in $(DISTFILES); do \
|
---|
| 318 | ln $(srcdir)/$$file $(distdir) 2> /dev/null \
|
---|
| 319 | || cp -p $(srcdir)/$$file $(distdir); \
|
---|
| 320 | done
|
---|
| 321 |
|
---|
| 322 | movclean:
|
---|
| 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 |
|
---|