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