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