Imported from ../bash-2.05.tar.gz.
[platform/upstream/bash.git] / lib / sh / Makefile.in
1 #
2 # Makefile for the Bash library
3 #
4 #
5 # Copyright (C) 1998 Free Software Foundation, Inc.     
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
20
21 srcdir = @srcdir@
22 VPATH = .:@srcdir@
23 topdir = @top_srcdir@
24 BUILD_DIR = @BUILD_DIR@
25
26 BASHINCDIR = ${topdir}/include
27
28 INSTALL = @INSTALL@
29 INSTALL_PROGRAM = @INSTALL_PROGRAM@
30 INSTALL_DATA = @INSTALL_DATA@
31
32 CC = @CC@
33 RANLIB = @RANLIB@
34 AR = @AR@
35 ARFLAGS = @ARFLAGS@
36 RM = rm -f
37 CP = cp
38 MV = mv
39
40 SHELL = @MAKE_SHELL@
41
42 CFLAGS = @CFLAGS@
43 LOCAL_CFLAGS = @LOCAL_CFLAGS@
44 CPPFLAGS = @CPPFLAGS@
45 LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@
46
47 PROFILE_FLAGS = @PROFILE_FLAGS@
48
49 DEFS = @DEFS@
50 LOCAL_DEFS = @LOCAL_DEFS@
51
52 INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib -I$(BASHINCDIR) -I$(srcdir)
53
54 CCFLAGS = ${PROFILE_FLAGS} ${INCLUDES} $(DEFS) $(LOCAL_DEFS) $(LOCAL_CFLAGS) \
55           $(CFLAGS) $(CPPFLAGS) 
56
57 .c.o:
58         $(CC) -c $(CCFLAGS) $<
59
60 # The name of the library target.
61 LIBRARY_NAME = libsh.a
62
63 # The C code source files for this library.
64 CSOURCES = clktck.c clock.c getcwd.c getenv.c oslib.c setlinebuf.c \
65            strcasecmp.c strerror.c strtod.c strtol.c strtoul.c \
66            vprint.c itos.c rename.c zread.c zwrite.c shtty.c \
67            inet_aton.c netopen.c strpbrk.c timeval.c makepath.c pathcanon.c \
68            pathphys.c tmpfile.c stringlist.c stringvec.c spell.c \
69            shquote.c strtrans.c strindex.c
70
71 # The header files for this library.
72 HSOURCES = 
73
74 # The object files contained in $(LIBRARY_NAME)
75 OBJECTS = clktck.o clock.o getcwd.o getenv.o oslib.o setlinebuf.o \
76           strcasecmp.o strerror.o strtod.o strtol.o strtoul.o \
77           vprint.o itos.o rename.o zread.o zwrite.o shtty.o \
78           inet_aton.o netopen.o strpbrk.o timeval.o makepath.o pathcanon.o \
79           pathphys.o tmpfile.o stringlist.o stringvec.o spell.o shquote.o \
80           strtrans.o strindex.o
81
82 SUPPORT = Makefile
83
84 all: $(LIBRARY_NAME)
85
86 $(LIBRARY_NAME): $(OBJECTS)
87         $(RM) $@
88         $(AR) $(ARFLAGS) $@ $(OBJECTS)
89         -test -n "$(RANLIB)" && $(RANLIB) $@
90
91 force:
92
93 # The rule for 'includes' is written funny so that the if statement
94 # always returns TRUE unless there really was an error installing the
95 # include files.
96 install:
97
98 clean:
99         $(RM) $(OBJECTS) $(LIBRARY_NAME)
100
101 realclean distclean maintainer-clean: clean
102         $(RM) Makefile
103
104 mostlyclean: clean
105
106 # Dependencies
107
108 # rules for losing makes, like SunOS
109 clktck.o: clktck.c
110 clock.o: clock.c
111 getcwd.o: getcwd.c
112 getenv.o: getenv.c
113 inet_aton.o: inet_aton.c
114 itos.o: itos.c
115 makepath.o: makepath.c
116 netopen.o: netopen.c
117 oslib.o: oslib.c
118 pathcanon.o: pathcanon.c
119 pathphys.o: pathphys.c
120 rename.o: rename.c
121 setlinebuf.o: setlinebuf.c
122 shquote.o: shquote.c
123 shtty.o: shtty.c
124 spell.o: spell.c
125 strcasecmp.o: strcasecmp.c
126 strerror.o: strerror.c
127 strindex.o: strindex.c
128 stringlist.o: stringlist.c
129 stringvec.o: stringvec.c
130 strpbrk.o: strpbrk.c
131 strtod.o: strtod.c
132 strtol.o: strtol.c
133 strtoul.o: strtoul.c
134 strtrans.o: strtrans.c
135 times.o: times.c
136 timeval.o: timeval.c
137 tmpfile.o: tmpfile.c
138 vprint.o: vprint.c
139 zread.o: zread.c
140 zwrite.o: zwrite.c
141
142 # all files in the library depend on config.h
143 clktck.o: ${BUILD_DIR}/config.h
144 clock.o: ${BUILD_DIR}/config.h
145 getcwd.o: ${BUILD_DIR}/config.h
146 getenv.o: ${BUILD_DIR}/config.h
147 inet_aton.o: ${BUILD_DIR}/config.h
148 itos.o: ${BUILD_DIR}/config.h
149 makepath.o: ${BUILD_DIR}/config.h
150 netopen.o: ${BUILD_DIR}/config.h
151 oslib.o: ${BUILD_DIR}/config.h
152 pathcanon.o: ${BUILD_DIR}/config.h
153 pathphys.o: ${BUILD_DIR}/config.h
154 rename.o: ${BUILD_DIR}/config.h
155 setlinebuf.o: ${BUILD_DIR}/config.h
156 shquote.o: ${BUILD_DIR}/config.h
157 shtty.o: ${BUILD_DIR}/config.h
158 spell.o: ${BUILD_DIR}/config.h
159 strcasecmp.o: ${BUILD_DIR}/config.h
160 strerror.o: ${BUILD_DIR}/config.h
161 strindex.o: ${BUILD_DIR}/config.h
162 stringlist.o: ${BUILD_DIR}/config.h
163 stringvec.o: ${BUILD_DIR}/config.h
164 strpbrk.o: ${BUILD_DIR}/config.h
165 strtod.o: ${BUILD_DIR}/config.h
166 strtol.o: ${BUILD_DIR}/config.h
167 strtoul.o: ${BUILD_DIR}/config.h
168 strtrans.o: ${BUILD_DIR}/config.h
169 times.o: ${BUILD_DIR}/config.h
170 timeval.o: ${BUILD_DIR}/config.h
171 tmpfile.o: ${BUILD_DIR}/config.h
172 vprint.o: ${BUILD_DIR}/config.h
173 zread.o: ${BUILD_DIR}/config.h
174 zwrite.o: ${BUILD_DIR}/config.h
175
176 clktck.o: ${topdir}/bashtypes.h
177
178 getcwd.o: ${topdir}/bashtypes.h ${topdir}/bashansi.h ${BASHINCDIR}/maxpath.h
179 getcwd.o: ${BASHINCDIR}/posixstat.h ${BASHINCDIR}/posixdir.h
180 getcwd.o: ${BASHINCDIR}/memalloc.h ${BASHINCDIR}/ansi_stdlib.h
181
182 getenv.o: ${topdir}/bashansi.h ${BASHINCDIR}/ansi_stdlib.h
183 getenv.o: ${topdir}/shell.h ${topdir}/syntax.h ${topdir}/bashjmp.h ${BASHINCDIR}/posixjmp.h
184 getenv.o: ${topdir}/command.h ${BASHINCDIR}/stdc.h ${topdir}/error.h
185 getenv.o: ${topdir}/general.h ${topdir}/bashtypes.h ${topdir}/variables.h
186 getenv.o: ${topdir}/array.h ${topdir}/hashlib.h ${topdir}/quit.h
187 getenv.o: ${topdir}/unwind_prot.h ${topdir}/dispose_cmd.h
188 getenv.o: ${topdir}/make_cmd.h ${topdir}/subst.h ${topdir}/sig.h
189 getenv.o: ${topdir}/pathnames.h ${topdir}/externs.h
190
191 inet_aton.o: ${topdir}/bashansi.h ${BASHINCDIR}/ansi_stdlib.h
192 inet_aton.o: ${BASHINCDIR}/stdc.h
193
194 itos.o: ${topdir}/bashansi.h ${BASHINCDIR}/ansi_stdlib.h
195 itos.o: ${topdir}/shell.h ${topdir}/syntax.h ${topdir}/bashjmp.h ${BASHINCDIR}/posixjmp.h
196 itos.o: ${topdir}/command.h ${BASHINCDIR}/stdc.h ${topdir}/error.h
197 itos.o: ${topdir}/general.h ${topdir}/bashtypes.h ${topdir}/variables.h
198 itos.o: ${topdir}/array.h ${topdir}/hashlib.h ${topdir}/quit.h
199 itos.o: ${topdir}/unwind_prot.h ${topdir}/dispose_cmd.h
200 itos.o: ${topdir}/make_cmd.h ${topdir}/subst.h ${topdir}/sig.h
201 itos.o: ${topdir}/pathnames.h ${topdir}/externs.h
202
203 makepath.o: ${topdir}/bashansi.h ${BASHINCDIR}/ansi_stdlib.h
204 makepath.o: ${topdir}/shell.h ${topdir}/syntax.h ${topdir}/bashjmp.h ${BASHINCDIR}/posixjmp.h
205 makepath.o: ${topdir}/command.h ${BASHINCDIR}/stdc.h ${topdir}/error.h
206 makepath.o: ${topdir}/general.h ${topdir}/bashtypes.h ${topdir}/variables.h
207 makepath.o: ${topdir}/array.h ${topdir}/hashlib.h ${topdir}/quit.h
208 makepath.o: ${topdir}/unwind_prot.h ${topdir}/dispose_cmd.h
209 makepath.o: ${topdir}/make_cmd.h ${topdir}/subst.h ${topdir}/sig.h
210 makepath.o: ${topdir}/pathnames.h ${topdir}/externs.h
211
212 netopen.o: ${topdir}/bashansi.h ${BASHINCDIR}/ansi_stdlib.h
213
214 oslib.o: ${topdir}/bashtypes.h ${topdir}/bashansi.h ${BASHINCDIR}/maxpath.h
215 oslib.o: ${topdir}/shell.h ${topdir}/syntax.h ${topdir}/bashjmp.h ${BASHINCDIR}/posixjmp.h
216 oslib.o: ${topdir}/command.h ${BASHINCDIR}/stdc.h ${topdir}/error.h
217 oslib.o: ${topdir}/general.h ${topdir}/bashtypes.h ${topdir}/variables.h
218 oslib.o: ${topdir}/array.h ${topdir}/hashlib.h ${topdir}/quit.h
219 oslib.o: ${topdir}/unwind_prot.h ${topdir}/dispose_cmd.h
220 oslib.o: ${topdir}/make_cmd.h ${topdir}/subst.h ${topdir}/sig.h
221 oslib.o: ${topdir}/pathnames.h ${topdir}/externs.h
222 oslib.o: ${BASHINCDIR}/posixstat.h ${BASHINCDIR}/filecntl.h
223 oslib.o: ${BASHINCDIR}/ansi_stdlib.h
224
225 pathcanon.o: ${topdir}/bashtypes.h ${topdir}/bashansi.h ${BASHINCDIR}/maxpath.h
226 pathcanon.o: ${topdir}/shell.h ${topdir}/syntax.h ${topdir}/bashjmp.h ${BASHINCDIR}/posixjmp.h
227 pathcanon.o: ${topdir}/command.h ${BASHINCDIR}/stdc.h ${topdir}/error.h
228 pathcanon.o: ${topdir}/general.h ${topdir}/bashtypes.h ${topdir}/variables.h
229 pathcanon.o: ${topdir}/array.h ${topdir}/hashlib.h ${topdir}/quit.h
230 pathcanon.o: ${topdir}/unwind_prot.h ${topdir}/dispose_cmd.h
231 pathcanon.o: ${topdir}/make_cmd.h ${topdir}/subst.h ${topdir}/sig.h
232 pathcanon.o: ${topdir}/pathnames.h ${topdir}/externs.h
233 pathcanon.o: ${BASHINCDIR}/posixstat.h ${BASHINCDIR}/filecntl.h
234 pathcanon.o: ${BASHINCDIR}/ansi_stdlib.h
235
236 pathphys.o: ${topdir}/bashtypes.h ${topdir}/bashansi.h ${BASHINCDIR}/maxpath.h
237 pathphys.o: ${topdir}/shell.h ${topdir}/syntax.h ${topdir}/bashjmp.h ${BASHINCDIR}/posixjmp.h
238 pathphys.o: ${topdir}/command.h ${BASHINCDIR}/stdc.h ${topdir}/error.h
239 pathphys.o: ${topdir}/general.h ${topdir}/bashtypes.h ${topdir}/variables.h
240 pathphys.o: ${topdir}/array.h ${topdir}/hashlib.h ${topdir}/quit.h
241 pathphys.o: ${topdir}/unwind_prot.h ${topdir}/dispose_cmd.h
242 pathphys.o: ${topdir}/make_cmd.h ${topdir}/subst.h ${topdir}/sig.h
243 pathphys.o: ${topdir}/pathnames.h ${topdir}/externs.h
244 pathphys.o: ${BASHINCDIR}/posixstat.h ${BASHINCDIR}/filecntl.h
245 pathphys.o: ${BASHINCDIR}/ansi_stdlib.h
246
247 rename.o: ${topdir}/bashtypes.h ${BASHINCDIR}/stdc.h
248
249 shtty.o: ${BASHINCDIR}/shtty.h
250 shtty.o: ${BASHINCDIR}/stdc.h
251
252 spell.o: ${topdir}/bashtypes.h
253 spell.o: ${BASHINCDIR}/posixstat.h ${BASHINCDIR}/posixdir.h
254 spell.o: ${BASHINCDIR}/ansi_stdlib.h
255
256 strcasecmp.o: ${BASHINCDIR}/stdc.h ${topdir}/bashansi.h
257 strcasecmp.o: ${BASHINCDIR}/ansi_stdlib.h
258
259 strerror.o: ${topdir}/bashtypes.h
260 strerror.o: ${topdir}/shell.h ${topdir}/syntax.h ${topdir}/bashjmp.h ${BASHINCDIR}/posixjmp.h
261 strerror.o: ${topdir}/command.h ${BASHINCDIR}/stdc.h ${topdir}/error.h
262 strerror.o: ${topdir}/general.h ${topdir}/bashtypes.h ${topdir}/variables.h
263 strerror.o: ${topdir}/array.h ${topdir}/hashlib.h ${topdir}/quit.h
264 strerror.o: ${topdir}/unwind_prot.h ${topdir}/dispose_cmd.h
265 strerror.o: ${topdir}/make_cmd.h ${topdir}/subst.h ${topdir}/sig.h
266 strerror.o: ${topdir}/pathnames.h ${topdir}/externs.h
267
268 strindex.o: ${BASHINCDIR}/stdc.h ${topdir}/bashansi.h
269 strindex.o: ${BASHINCDIR}/ansi_stdlib.h
270
271 stringlist.o: ${topdir}/bashansi.h
272 stringlist.o: ${topdir}/shell.h ${topdir}/syntax.h ${topdir}/bashjmp.h ${BASHINCDIR}/posixjmp.h
273 stringlist.o: ${topdir}/command.h ${BASHINCDIR}/stdc.h ${topdir}/error.h
274 stringlist.o: ${topdir}/general.h ${topdir}/bashtypes.h ${topdir}/variables.h
275 stringlist.o: ${topdir}/array.h ${topdir}/hashlib.h ${topdir}/quit.h
276 stringlist.o: ${topdir}/unwind_prot.h ${topdir}/dispose_cmd.h
277 stringlist.o: ${topdir}/make_cmd.h ${topdir}/subst.h ${topdir}/sig.h
278 stringlist.o: ${topdir}/pathnames.h ${topdir}/externs.h
279
280 stringvec.o: ${topdir}/bashansi.h
281 stringvec.o: ${topdir}/shell.h ${topdir}/syntax.h ${topdir}/bashjmp.h ${BASHINCDIR}/posixjmp.h
282 stringvec.o: ${topdir}/command.h ${BASHINCDIR}/stdc.h ${topdir}/error.h
283 stringvec.o: ${topdir}/general.h ${topdir}/bashtypes.h ${topdir}/variables.h
284 stringvec.o: ${topdir}/array.h ${topdir}/hashlib.h ${topdir}/quit.h
285 stringvec.o: ${topdir}/unwind_prot.h ${topdir}/dispose_cmd.h
286 stringvec.o: ${topdir}/make_cmd.h ${topdir}/subst.h ${topdir}/sig.h
287 stringvec.o: ${topdir}/pathnames.h ${topdir}/externs.h
288
289 strpbrk.o: ${BASHINCDIR}/stdc.h
290
291 strtod.o: ${topdir}/bashansi.h
292 strtod.o: ${BASHINCDIR}/ansi_stdlib.h
293
294 strtol.o: ${topdir}/bashansi.h
295 strtol.o: ${BASHINCDIR}/ansi_stdlib.h
296
297 strtoul.o: ${topdir}/bashansi.h
298 strtoul.o: ${BASHINCDIR}/ansi_stdlib.h
299
300 strtrans.o: ${topdir}/bashansi.h
301 strtrans.o: ${BASHINCDIR}/ansi_stdlib.h
302 strtrans.o: ${topdir}/shell.h ${topdir}/syntax.h ${topdir}/bashjmp.h ${BASHINCDIR}/posixjmp.h
303 strtrans.o: ${topdir}/command.h ${BASHINCDIR}/stdc.h ${topdir}/error.h
304 strtrans.o: ${topdir}/general.h ${topdir}/bashtypes.h ${topdir}/variables.h
305 strtrans.o: ${topdir}/array.h ${topdir}/hashlib.h ${topdir}/quit.h
306 strtrans.o: ${topdir}/unwind_prot.h ${topdir}/dispose_cmd.h
307 strtrans.o: ${topdir}/make_cmd.h ${topdir}/subst.h ${topdir}/sig.h
308 strtrans.o: ${topdir}/pathnames.h ${topdir}/externs.h
309
310 times.o: ${BASHINCDIR}/systimes.h
311 times.o: ${BASHINCDIR}/posixtime.h
312
313 timeval.o: ${BASHINCDIR}/posixtime.h
314
315 tmpfile.o: ${topdir}/bashtypes.h
316 tmpfile.o: ${BASHINCDIR}/posixstat.h
317 tmpfile.o: ${BASHINCDIR}/filecntl.h
318
319 clock.o: ${BASHINCDIR}/posixtime.h