[3365] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
| 3 | # Makefile.in -- Makefile for the general purpose library
|
---|
| 4 | # Copyright (C) 1994 Neil Sharman; (C) 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.3 16 Mar 1994
|
---|
| 21 | #
|
---|
| 22 | ###########################################################################
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 | PACKAGE = @PACKAGE@
|
---|
| 26 | VERSION = @VERSION@
|
---|
| 27 |
|
---|
| 28 | SHELL = /bin/sh
|
---|
| 29 | srcdir = @srcdir@
|
---|
| 30 | subdir = lib
|
---|
| 31 | VPATH = @srcdir@
|
---|
| 32 |
|
---|
| 33 | AR = ar
|
---|
| 34 | CC = @CC@
|
---|
| 35 | CXX = @CXX@
|
---|
| 36 | ifneq ($(NZDL), 1)
|
---|
| 37 | CFLAGS = @CFLAGS@ -ansi
|
---|
| 38 | else
|
---|
| 39 | CFLAGS = @CFLAGS@ -ansi -DSILENT
|
---|
| 40 | endif
|
---|
| 41 | CXXFLAGS = @CXXFLAGS@
|
---|
| 42 | DEFS = @DEFS@
|
---|
| 43 | RANLIB = @RANLIB@
|
---|
| 44 |
|
---|
[3372] | 45 | exec_prefix = @exec_prefix@
|
---|
[3365] | 46 | prefix = @prefix@
|
---|
[3372] | 47 | libdir = @libdir@
|
---|
[3365] | 48 | datadir = $(prefix)/share
|
---|
| 49 | localedir = $(datadir)/locale
|
---|
| 50 |
|
---|
| 51 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
|
---|
| 52 | CXXCOMPILE = $(CXX) -c $(DEFS) $(INCLUDES) $(CXXFLAGS)
|
---|
| 53 |
|
---|
| 54 | .SUFFIXES:
|
---|
| 55 | .SUFFIXES: .c .o
|
---|
| 56 | .c.o:
|
---|
| 57 | $(COMPILE) $<
|
---|
| 58 |
|
---|
| 59 | .SUFFIXES: .cpp .o
|
---|
| 60 | .cpp.o:
|
---|
| 61 | $(COMPILE) -D__cplusplus $<
|
---|
| 62 |
|
---|
| 63 | ANSI2KNR = @ANSI2KNR@
|
---|
| 64 | o = .@U@o
|
---|
| 65 |
|
---|
| 66 | .SUFFIXES: ._c ._o
|
---|
| 67 | .c._c:
|
---|
| 68 | ./ansi2knr $< > $*.tmp && mv $*.tmp $@
|
---|
| 69 | ._c._o:
|
---|
| 70 | @echo $(COMPILE) $<
|
---|
| 71 | @rm -f _$*.c
|
---|
| 72 | @ln $< _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
|
---|
| 73 | .c._o:
|
---|
| 74 | ./ansi2knr $< > $*.tmp && mv $*.tmp $*._c
|
---|
| 75 | @echo $(COMPILE) $*._c
|
---|
| 76 | @rm -f _$*.c
|
---|
| 77 | @ln $*._c _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
|
---|
| 78 |
|
---|
| 79 | INCLUDES = -I.. -I$(srcdir)
|
---|
| 80 |
|
---|
| 81 | HEADERS = \
|
---|
| 82 | bitio_m_random.h local_strings.h lovinstem.h \
|
---|
| 83 | bitio_m_stdio.h memlib.h netorder.h \
|
---|
| 84 | bitio_gen.h mgheap.h messages.h \
|
---|
| 85 | bitio_m.h huffman.h \
|
---|
| 86 | bitio_m_mem.h perf_hash.h \
|
---|
| 87 | bitio_m_mems.h \
|
---|
| 88 | pathmax.h getpagesize.h sysfuncs.h bitio_m_abstract.h \
|
---|
| 89 | random.h simplefrenchstem.h unitool.h longlong.h \
|
---|
| 90 | non_ansi.h
|
---|
| 91 |
|
---|
| 92 |
|
---|
| 93 | SOURCES = \
|
---|
| 94 | mgheap.cpp \
|
---|
| 95 | huffman.cpp messages.cpp \
|
---|
| 96 | bitio_gen.cpp perf_hash.cpp \
|
---|
| 97 | local_strings.cpp lovinstem.cpp \
|
---|
| 98 | bitio_m_mem.cpp bitio_m_stdio.cpp bitio_m_mems.cpp \
|
---|
| 99 | alloca.c xmalloc.c strstr.cpp \
|
---|
| 100 | ftruncate.cpp strcasecmp.cpp random.cpp \
|
---|
| 101 | simplefrenchstem.cpp unitool.cpp bitio_m_random.cpp \
|
---|
| 102 | bitio_m_abstract.cpp
|
---|
| 103 | # memlib.cpp removed
|
---|
| 104 |
|
---|
| 105 | OBJECTS = mgheap$o \
|
---|
| 106 | huffman$o messages$o \
|
---|
| 107 | bitio_gen$o perf_hash$o \
|
---|
| 108 | local_strings$o lovinstem$o \
|
---|
| 109 | bitio_m_mem$o bitio_m_stdio$o bitio_m_mems$o \
|
---|
| 110 | xmalloc$o bitio_m_random$o bitio_m_abstract$o \
|
---|
| 111 | random$o simplefrenchstem$o \
|
---|
| 112 | unitool$o
|
---|
| 113 |
|
---|
| 114 | DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
|
---|
| 115 |
|
---|
[3372] | 116 | all : libmgpplib.a
|
---|
[3365] | 117 |
|
---|
[3372] | 118 | libmgpplib.a : $(OBJECTS)
|
---|
| 119 | rm -f libmgpplib.a
|
---|
| 120 | $(AR) cru libmgpplib.a $(OBJECTS)
|
---|
| 121 | $(RANLIB) libmgpplib.a
|
---|
[3365] | 122 |
|
---|
| 123 | install:
|
---|
| 124 | installdirs:
|
---|
| 125 | uninstall:
|
---|
| 126 | execinstall:
|
---|
| 127 | execuninstall:
|
---|
| 128 | maninstall:
|
---|
| 129 | manuninstall:
|
---|
| 130 |
|
---|
| 131 | dist: $(DISTFILES)
|
---|
| 132 | for file in $(DISTFILES); do \
|
---|
| 133 | ln $$file $(distdir) 2> /dev/null \
|
---|
| 134 | || cp -p $$file $(distdir); \
|
---|
| 135 | done
|
---|
| 136 |
|
---|
| 137 | mostlyclean:
|
---|
| 138 | rm -f *.o *_.o
|
---|
| 139 |
|
---|
| 140 | clean: mostlyclean
|
---|
[3372] | 141 | rm -f libmgpplib.a
|
---|
[3365] | 142 |
|
---|
| 143 | distclean: clean
|
---|
| 144 | rm -f Makefile
|
---|
| 145 |
|
---|
| 146 | maintainer-clean: distclean
|
---|
| 147 | @echo "This command is intended only for maintainers to use;"
|
---|
| 148 | @echo "rebuilding the deleted files may require special tools."
|
---|
| 149 |
|
---|
| 150 | # breaks make distclean (jrm21)
|
---|
| 151 | #Makefile: Makefile.in ../../../config.status
|
---|
| 152 | # cd ../../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
|
---|
| 153 |
|
---|
| 154 | # Tell versions [3.59,3.63) of GNU make not to export all variables.
|
---|
| 155 | # Otherwise a system limit (for SysV at least) may be exceeded.
|
---|
| 156 | .NOEXPORT:
|
---|