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$(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
|
---|
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 | DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
|
---|
114 |
|
---|
115 | all : libmg.a
|
---|
116 |
|
---|
117 | libmg.a : $(OBJECTS)
|
---|
118 | rm -f libmg.a
|
---|
119 | $(AR) cru libmg.a $(OBJECTS)
|
---|
120 | $(RANLIB) libmg.a
|
---|
121 |
|
---|
122 | $(OBJECTS): ../config.h
|
---|
123 |
|
---|
124 | install:
|
---|
125 | installdirs:
|
---|
126 | uninstall:
|
---|
127 | execinstall:
|
---|
128 | execuninstall:
|
---|
129 | maninstall:
|
---|
130 | manuninstall:
|
---|
131 |
|
---|
132 | dist: $(DISTFILES)
|
---|
133 | for file in $(DISTFILES); do \
|
---|
134 | ln $$file $(distdir) 2> /dev/null \
|
---|
135 | || cp -p $$file $(distdir); \
|
---|
136 | done
|
---|
137 |
|
---|
138 | mostlyclean:
|
---|
139 | rm -f *.o *_.o
|
---|
140 |
|
---|
141 | clean: mostlyclean
|
---|
142 | rm -f libmg.a
|
---|
143 |
|
---|
144 | distclean: clean
|
---|
145 | rm -f Makefile
|
---|
146 |
|
---|
147 | maintainer-clean: distclean
|
---|
148 | @echo "This command is intended only for maintainers to use;"
|
---|
149 | @echo "rebuilding the deleted files may require special tools."
|
---|
150 |
|
---|
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:
|
---|