]>
Commit | Line | Data |
---|---|---|
cce855bc JA |
1 | # |
2 | # Makefile for the Bash library | |
3 | # | |
bb70624e JA |
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. | |
cce855bc JA |
20 | |
21 | srcdir = @srcdir@ | |
22 | VPATH = .:@srcdir@ | |
23 | topdir = @top_srcdir@ | |
24 | BUILD_DIR = @BUILD_DIR@ | |
25 | ||
bb70624e | 26 | BASHINCDIR = ${topdir}/include |
cce855bc JA |
27 | |
28 | INSTALL = @INSTALL@ | |
29 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
30 | INSTALL_DATA = @INSTALL_DATA@ | |
31 | ||
32 | CC = @CC@ | |
33 | RANLIB = @RANLIB@ | |
34 | AR = @AR@ | |
b72432fd | 35 | ARFLAGS = @ARFLAGS@ |
cce855bc JA |
36 | RM = rm -f |
37 | CP = cp | |
38 | MV = mv | |
39 | ||
b72432fd JA |
40 | SHELL = @MAKE_SHELL@ |
41 | ||
cce855bc JA |
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 | ||
bb70624e | 52 | INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib -I$(BASHINCDIR) -I$(srcdir) |
cce855bc JA |
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. | |
bb70624e | 64 | CSOURCES = clktck.c clock.c getcwd.c getenv.c oslib.c setlinebuf.c \ |
cce855bc | 65 | strcasecmp.c strerror.c strtod.c strtol.c strtoul.c \ |
bb70624e | 66 | vprint.c itos.c rename.c zread.c zwrite.c shtty.c \ |
28ef6c31 JA |
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 | |
cce855bc JA |
70 | |
71 | # The header files for this library. | |
72 | HSOURCES = | |
73 | ||
74 | # The object files contained in $(LIBRARY_NAME) | |
bb70624e | 75 | OBJECTS = clktck.o clock.o getcwd.o getenv.o oslib.o setlinebuf.o \ |
cce855bc | 76 | strcasecmp.o strerror.o strtod.o strtol.o strtoul.o \ |
bb70624e | 77 | vprint.o itos.o rename.o zread.o zwrite.o shtty.o \ |
28ef6c31 JA |
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 | |
cce855bc JA |
81 | |
82 | SUPPORT = Makefile | |
83 | ||
84 | all: $(LIBRARY_NAME) | |
85 | ||
86 | $(LIBRARY_NAME): $(OBJECTS) | |
87 | $(RM) $@ | |
b72432fd | 88 | $(AR) $(ARFLAGS) $@ $(OBJECTS) |
cce855bc JA |
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 | |
bb70624e | 110 | clock.o: clock.c |
cce855bc JA |
111 | getcwd.o: getcwd.c |
112 | getenv.o: getenv.c | |
bb70624e | 113 | inet_aton.o: inet_aton.c |
cce855bc | 114 | itos.o: itos.c |
28ef6c31 | 115 | makepath.o: makepath.c |
bb70624e | 116 | netopen.o: netopen.c |
cce855bc | 117 | oslib.o: oslib.c |
28ef6c31 JA |
118 | pathcanon.o: pathcanon.c |
119 | pathphys.o: pathphys.c | |
b72432fd | 120 | rename.o: rename.c |
cce855bc | 121 | setlinebuf.o: setlinebuf.c |
bb70624e JA |
122 | shquote.o: shquote.c |
123 | shtty.o: shtty.c | |
28ef6c31 | 124 | spell.o: spell.c |
cce855bc JA |
125 | strcasecmp.o: strcasecmp.c |
126 | strerror.o: strerror.c | |
28ef6c31 JA |
127 | strindex.o: strindex.c |
128 | stringlist.o: stringlist.c | |
129 | stringvec.o: stringvec.c | |
bb70624e | 130 | strpbrk.o: strpbrk.c |
cce855bc JA |
131 | strtod.o: strtod.c |
132 | strtol.o: strtol.c | |
133 | strtoul.o: strtoul.c | |
28ef6c31 | 134 | strtrans.o: strtrans.c |
bb70624e JA |
135 | times.o: times.c |
136 | timeval.o: timeval.c | |
28ef6c31 | 137 | tmpfile.o: tmpfile.c |
cce855bc | 138 | vprint.o: vprint.c |
bb70624e JA |
139 | zread.o: zread.c |
140 | zwrite.o: zwrite.c | |
cce855bc JA |
141 | |
142 | # all files in the library depend on config.h | |
143 | clktck.o: ${BUILD_DIR}/config.h | |
bb70624e | 144 | clock.o: ${BUILD_DIR}/config.h |
cce855bc JA |
145 | getcwd.o: ${BUILD_DIR}/config.h |
146 | getenv.o: ${BUILD_DIR}/config.h | |
bb70624e | 147 | inet_aton.o: ${BUILD_DIR}/config.h |
cce855bc | 148 | itos.o: ${BUILD_DIR}/config.h |
28ef6c31 | 149 | makepath.o: ${BUILD_DIR}/config.h |
bb70624e | 150 | netopen.o: ${BUILD_DIR}/config.h |
cce855bc | 151 | oslib.o: ${BUILD_DIR}/config.h |
28ef6c31 JA |
152 | pathcanon.o: ${BUILD_DIR}/config.h |
153 | pathphys.o: ${BUILD_DIR}/config.h | |
b72432fd | 154 | rename.o: ${BUILD_DIR}/config.h |
cce855bc | 155 | setlinebuf.o: ${BUILD_DIR}/config.h |
bb70624e JA |
156 | shquote.o: ${BUILD_DIR}/config.h |
157 | shtty.o: ${BUILD_DIR}/config.h | |
28ef6c31 | 158 | spell.o: ${BUILD_DIR}/config.h |
cce855bc JA |
159 | strcasecmp.o: ${BUILD_DIR}/config.h |
160 | strerror.o: ${BUILD_DIR}/config.h | |
28ef6c31 JA |
161 | strindex.o: ${BUILD_DIR}/config.h |
162 | stringlist.o: ${BUILD_DIR}/config.h | |
163 | stringvec.o: ${BUILD_DIR}/config.h | |
bb70624e | 164 | strpbrk.o: ${BUILD_DIR}/config.h |
cce855bc JA |
165 | strtod.o: ${BUILD_DIR}/config.h |
166 | strtol.o: ${BUILD_DIR}/config.h | |
167 | strtoul.o: ${BUILD_DIR}/config.h | |
28ef6c31 | 168 | strtrans.o: ${BUILD_DIR}/config.h |
bb70624e JA |
169 | times.o: ${BUILD_DIR}/config.h |
170 | timeval.o: ${BUILD_DIR}/config.h | |
28ef6c31 | 171 | tmpfile.o: ${BUILD_DIR}/config.h |
cce855bc | 172 | vprint.o: ${BUILD_DIR}/config.h |
bb70624e JA |
173 | zread.o: ${BUILD_DIR}/config.h |
174 | zwrite.o: ${BUILD_DIR}/config.h | |
cce855bc JA |
175 | |
176 | clktck.o: ${topdir}/bashtypes.h | |
177 | ||
bb70624e JA |
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 | |
cce855bc | 181 | |
bb70624e | 182 | getenv.o: ${topdir}/bashansi.h ${BASHINCDIR}/ansi_stdlib.h |
28ef6c31 | 183 | getenv.o: ${topdir}/shell.h ${topdir}/syntax.h ${topdir}/bashjmp.h ${BASHINCDIR}/posixjmp.h |
bb70624e | 184 | getenv.o: ${topdir}/command.h ${BASHINCDIR}/stdc.h ${topdir}/error.h |
cce855bc JA |
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 | ||
bb70624e JA |
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 | |
28ef6c31 | 195 | itos.o: ${topdir}/shell.h ${topdir}/syntax.h ${topdir}/bashjmp.h ${BASHINCDIR}/posixjmp.h |
bb70624e | 196 | itos.o: ${topdir}/command.h ${BASHINCDIR}/stdc.h ${topdir}/error.h |
cce855bc JA |
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 | ||
28ef6c31 JA |
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 | ||
bb70624e JA |
212 | netopen.o: ${topdir}/bashansi.h ${BASHINCDIR}/ansi_stdlib.h |
213 | ||
214 | oslib.o: ${topdir}/bashtypes.h ${topdir}/bashansi.h ${BASHINCDIR}/maxpath.h | |
28ef6c31 | 215 | oslib.o: ${topdir}/shell.h ${topdir}/syntax.h ${topdir}/bashjmp.h ${BASHINCDIR}/posixjmp.h |
bb70624e | 216 | oslib.o: ${topdir}/command.h ${BASHINCDIR}/stdc.h ${topdir}/error.h |
cce855bc JA |
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 | |
bb70624e JA |
222 | oslib.o: ${BASHINCDIR}/posixstat.h ${BASHINCDIR}/filecntl.h |
223 | oslib.o: ${BASHINCDIR}/ansi_stdlib.h | |
cce855bc | 224 | |
28ef6c31 JA |
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 | ||
bb70624e | 247 | rename.o: ${topdir}/bashtypes.h ${BASHINCDIR}/stdc.h |
b72432fd | 248 | |
bb70624e JA |
249 | shtty.o: ${BASHINCDIR}/shtty.h |
250 | shtty.o: ${BASHINCDIR}/stdc.h | |
251 | ||
28ef6c31 JA |
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 | |
cce855bc JA |
258 | |
259 | strerror.o: ${topdir}/bashtypes.h | |
28ef6c31 | 260 | strerror.o: ${topdir}/shell.h ${topdir}/syntax.h ${topdir}/bashjmp.h ${BASHINCDIR}/posixjmp.h |
bb70624e | 261 | strerror.o: ${topdir}/command.h ${BASHINCDIR}/stdc.h ${topdir}/error.h |
cce855bc JA |
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 | ||
28ef6c31 JA |
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 | ||
bb70624e JA |
289 | strpbrk.o: ${BASHINCDIR}/stdc.h |
290 | ||
cce855bc | 291 | strtod.o: ${topdir}/bashansi.h |
bb70624e | 292 | strtod.o: ${BASHINCDIR}/ansi_stdlib.h |
cce855bc JA |
293 | |
294 | strtol.o: ${topdir}/bashansi.h | |
bb70624e | 295 | strtol.o: ${BASHINCDIR}/ansi_stdlib.h |
cce855bc JA |
296 | |
297 | strtoul.o: ${topdir}/bashansi.h | |
bb70624e JA |
298 | strtoul.o: ${BASHINCDIR}/ansi_stdlib.h |
299 | ||
28ef6c31 JA |
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 | ||
bb70624e JA |
310 | times.o: ${BASHINCDIR}/systimes.h |
311 | times.o: ${BASHINCDIR}/posixtime.h | |
312 | ||
313 | timeval.o: ${BASHINCDIR}/posixtime.h | |
314 | ||
28ef6c31 JA |
315 | tmpfile.o: ${topdir}/bashtypes.h |
316 | tmpfile.o: ${BASHINCDIR}/posixstat.h | |
317 | tmpfile.o: ${BASHINCDIR}/filecntl.h | |
318 | ||
bb70624e | 319 | clock.o: ${BASHINCDIR}/posixtime.h |