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