[3745] | 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 | CFLAGS = @CFLAGS@
|
---|
| 36 | CPPFLAGS = @CPPFLAGS@
|
---|
| 37 | DEFS = @DEFS@
|
---|
| 38 | RANLIB = @RANLIB@
|
---|
| 39 |
|
---|
| 40 | ##########################################
|
---|
| 41 | # Uncomment for compiling for the nzdl project
|
---|
| 42 | #
|
---|
| 43 | CFLAGS = @CFLAGS@ -DQUIET
|
---|
| 44 | ##########################################
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 | prefix = @prefix@
|
---|
| 48 | datadir = $(prefix)/share
|
---|
| 49 | localedir = $(datadir)/locale
|
---|
| 50 |
|
---|
| 51 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
|
---|
| 52 |
|
---|
| 53 | .SUFFIXES:
|
---|
| 54 | .SUFFIXES: .c .o
|
---|
| 55 | .c.o:
|
---|
| 56 | $(COMPILE) $<
|
---|
| 57 |
|
---|
| 58 | ANSI2KNR = @ANSI2KNR@
|
---|
| 59 | o = .@U@o
|
---|
| 60 |
|
---|
| 61 | .SUFFIXES: ._c ._o
|
---|
| 62 | .c._c:
|
---|
| 63 | ./ansi2knr $< > $*.tmp && mv $*.tmp $@
|
---|
| 64 | ._c._o:
|
---|
| 65 | @echo $(COMPILE) $<
|
---|
| 66 | @rm -f _$*.c
|
---|
| 67 | @ln $< _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
|
---|
| 68 | .c._o:
|
---|
| 69 | ./ansi2knr $< > $*.tmp && mv $*.tmp $*._c
|
---|
| 70 | @echo $(COMPILE) $*._c
|
---|
| 71 | @rm -f _$*.c
|
---|
| 72 | @ln $*._c _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
|
---|
| 73 |
|
---|
| 74 |
|
---|
| 75 | INCLUDES = -I../../.. -I.. -I$(srcdir)
|
---|
| 76 |
|
---|
| 77 | HEADERS = \
|
---|
| 78 | bitio_m_random.h filestats.h local_strings.h lovinstem.h \
|
---|
| 79 | bitio_m_stdio.h getopt.h memlib.h \
|
---|
| 80 | bitio_gen.h bitio_mem.h mgheap.h messages.h \
|
---|
| 81 | bitio_m.h bitio_mems.h huffman.h timing.h \
|
---|
| 82 | bitio_m_mem.h bitio_random.h huffman_mem.h perf_hash.h \
|
---|
| 83 | bitio_m_mems.h bitio_stdio.h huffman_stdio.h sptree.h \
|
---|
| 84 | pathmax.h getpagesize.h \
|
---|
| 85 | random.h simplefrenchstem.h unitool.h longlong.h
|
---|
| 86 | # regex.h rx.h
|
---|
| 87 |
|
---|
| 88 |
|
---|
| 89 | SOURCES = \
|
---|
| 90 | bitio_random.c mgheap.c memlib.c \
|
---|
| 91 | bitio_stdio.c huffman.c messages.c \
|
---|
| 92 | bitio_gen.c filestats.c huffman_mem.c perf_hash.c \
|
---|
| 93 | bitio_mem.c getopt.c huffman_stdio.c sptree.c \
|
---|
| 94 | bitio_mems.c getopt1.c local_strings.c lovinstem.c \
|
---|
| 95 | timing.c \
|
---|
| 96 | alloca.c error.c xmalloc.c strstr.c \
|
---|
| 97 | gmalloc.c ftruncate.c strcasecmp.c random.c \
|
---|
| 98 | simplefrenchstem.c unitool.c
|
---|
| 99 | # regex.c rx.c
|
---|
| 100 |
|
---|
| 101 | OBJECTS = @ALLOCA@ @LIBOBJS@ \
|
---|
| 102 | bitio_random$o mgheap$o memlib$o \
|
---|
| 103 | bitio_stdio$o huffman$o messages$o \
|
---|
| 104 | bitio_gen$o filestats$o huffman_mem$o perf_hash$o \
|
---|
| 105 | bitio_mem$o getopt$o huffman_stdio$o sptree$o \
|
---|
| 106 | bitio_mems$o getopt1$o local_strings$o lovinstem$o \
|
---|
| 107 | timing$o \
|
---|
| 108 | error$o xmalloc$o \
|
---|
| 109 | random$o simplefrenchstem$o \
|
---|
| 110 | unitool$o
|
---|
| 111 | # gmalloc$o regex$o rx$o
|
---|
| 112 |
|
---|
| 113 | LIB_OBJECTS = \
|
---|
| 114 | bitio_random$o mgheap$o memlib$o \
|
---|
| 115 | bitio_stdio$o huffman$o \
|
---|
| 116 | bitio_gen$o filestats$o huffman_mem$o perf_hash$o \
|
---|
| 117 | bitio_mem$o getopt$o huffman_stdio$o sptree$o \
|
---|
| 118 | bitio_mems$o getopt1$o local_strings$o lovinstem$o \
|
---|
| 119 | timing$o \
|
---|
| 120 | error$o xmalloc$o \
|
---|
| 121 | random$o simplefrenchstem$o \
|
---|
| 122 | unitool$o
|
---|
| 123 |
|
---|
| 124 |
|
---|
| 125 | DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
|
---|
| 126 |
|
---|
| 127 | all : libmg.a gsdllibmg.a
|
---|
| 128 |
|
---|
| 129 | libmg.a : $(OBJECTS)
|
---|
| 130 | rm -f libmg.a
|
---|
| 131 | $(AR) cru libmg.a $(OBJECTS)
|
---|
| 132 | $(RANLIB) libmg.a
|
---|
| 133 |
|
---|
| 134 | $(OBJECTS): ../config.h
|
---|
| 135 |
|
---|
| 136 | gsdllibmg.a: $(LIB_OBJECTS)
|
---|
| 137 | rm -f gsdllibmg.a
|
---|
| 138 | $(AR) cru gsdllibmg.a $(LIB_OBJECTS)
|
---|
| 139 | $(RANLIB) gsdllibmg.a
|
---|
| 140 |
|
---|
| 141 |
|
---|
| 142 | install:
|
---|
| 143 | installdirs:
|
---|
| 144 | uninstall:
|
---|
| 145 | execinstall:
|
---|
| 146 | execuninstall:
|
---|
| 147 | maninstall:
|
---|
| 148 | manuninstall:
|
---|
| 149 |
|
---|
| 150 | dist: $(DISTFILES)
|
---|
| 151 | for file in $(DISTFILES); do \
|
---|
| 152 | ln $$file $(distdir) 2> /dev/null \
|
---|
| 153 | || cp -p $$file $(distdir); \
|
---|
| 154 | done
|
---|
| 155 |
|
---|
| 156 | mostlyclean:
|
---|
| 157 | rm -f *.o *_.o
|
---|
| 158 |
|
---|
| 159 | clean: mostlyclean
|
---|
| 160 | rm -f libmg.a gsdllibmg.a
|
---|
| 161 |
|
---|
| 162 | distclean: clean
|
---|
| 163 | rm -f Makefile
|
---|
| 164 |
|
---|
| 165 | maintainer-clean: distclean
|
---|
| 166 | @echo "This command is intended only for maintainers to use;"
|
---|
| 167 | @echo "rebuilding the deleted files may require special tools."
|
---|
| 168 |
|
---|
| 169 | #Makefile: Makefile.in ../../../config.status
|
---|
| 170 | # cd ../../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
|
---|
| 171 |
|
---|
| 172 | # Tell versions [3.59,3.63) of GNU make not to export all variables.
|
---|
| 173 | # Otherwise a system limit (for SysV at least) may be exceeded.
|
---|
| 174 | .NOEXPORT:
|
---|