]> git.ipfire.org Git - thirdparty/bash.git/blame - Makefile.in
bash-4.4 beta release
[thirdparty/bash.git] / Makefile.in
CommitLineData
54a5fbe1 1# Makefile for bash-4.4, version 4.17
d166f048 2#
05d9462c 3# Copyright (C) 1996-2015 Free Software Foundation, Inc.
bb70624e 4
2e4498b3
CR
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
bb70624e 17
ccc6cda3
JA
18# Make sure the first target in the makefile is the right one
19all: .made
20
5e13499c
CR
21PACKAGE = @PACKAGE_NAME@
22VERSION = @PACKAGE_VERSION@
23
24PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
25PACKAGE_NAME = @PACKAGE_NAME@
26PACKAGE_STRING = @PACKAGE_STRING@
27PACKAGE_VERSION = @PACKAGE_VERSION@
28
c677e9e0
CR
29PACKAGE_TARNAME = @PACKAGE_TARNAME@
30
ccc6cda3
JA
31# Include some boilerplate Gnu makefile definitions.
32prefix = @prefix@
33
34exec_prefix = @exec_prefix@
d3ad40de
CR
35
36datarootdir = @datarootdir@
37
ccc6cda3
JA
38bindir = @bindir@
39libdir = @libdir@
40infodir = @infodir@
41includedir = @includedir@
7117c2d2 42datadir = @datadir@
d3ad40de 43localedir = @localedir@
ccc6cda3 44
54a5fbe1
CR
45loadablesdir = @loadablesdir@
46headersdir = @headersdir@
47
c677e9e0
CR
48docdir = @docdir@
49
ccc6cda3
JA
50mandir = @mandir@
51manpfx = man
52
f73dda09
JA
53man1ext = .1
54man1dir = $(mandir)/$(manpfx)1
55man3ext = .3
56man3dir = $(mandir)/$(manpfx)3
ccc6cda3 57
bb70624e
JA
58htmldir = @htmldir@
59
f73dda09
JA
60# Support an alternate destination root directory for package building
61DESTDIR =
62
ccc6cda3
JA
63topdir = @top_srcdir@
64BUILD_DIR = @BUILD_DIR@
5e13499c 65top_builddir = @BUILD_DIR@
ccc6cda3 66srcdir = @srcdir@
1573ba78 67VPATH = @srcdir@
ccc6cda3
JA
68
69@SET_MAKE@
70CC = @CC@
cce855bc 71CC_FOR_BUILD = @CC_FOR_BUILD@
ccc6cda3 72YACC = @YACC@
b72432fd 73SHELL = @MAKE_SHELL@
ccc6cda3
JA
74CP = cp
75RM = rm -f
76AR = @AR@
b72432fd 77ARFLAGS = @ARFLAGS@
ccc6cda3 78RANLIB = @RANLIB@
10590446 79SIZE = @SIZE@
ccc6cda3
JA
80
81INSTALL = @INSTALL@
82INSTALL_PROGRAM = @INSTALL_PROGRAM@
7117c2d2 83INSTALL_SCRIPT = @INSTALL_SCRIPT@
ccc6cda3 84INSTALL_DATA = @INSTALL_DATA@
b72432fd 85INSTALLMODE= -m 0755
bb70624e 86INSTALLMODE2 = -m 0555
ccc6cda3 87
d166f048
JA
88TESTSCRIPT = @TESTSCRIPT@
89
d3ad40de
CR
90DEBUGGER_START_FILE = @DEBUGGER_START_FILE@
91
ccc6cda3
JA
92#If you have purify, and want to use it, uncomment this definition or
93# run the make as `make PURIFY=purify'
94# or run configure with the --with-purify argument.
95PURIFY = @PURIFY@
96
97# Here is a rule for making .o files from .c files that does not
98# force the type of the machine (like -M_MACHINE) into the flags.
99.c.o:
100 $(RM) $@
101 $(CC) $(CCFLAGS) -c $<
102
bb70624e 103EXEEXT = @EXEEXT@
f73dda09
JA
104OBJEXT = @OBJEXT@
105
106# The name of this program and some version information.
107VERSPROG = bashversion$(EXEEXT)
108VERSOBJ = bashversion.$(OBJEXT)
109
bb70624e 110Program = bash$(EXEEXT)
d166f048 111Version = @BASHVERS@
f73dda09 112PatchLevel = `$(BUILD_DIR)/$(VERSPROG) -p`
7117c2d2 113RELSTATUS = @RELSTATUS@
d166f048 114
ccc6cda3
JA
115Machine = @host_cpu@
116OS = @host_os@
b72432fd 117VENDOR = @host_vendor@
ccc6cda3
JA
118MACHTYPE = @host@
119
28ef6c31 120# comment out for release
7117c2d2
JA
121DEBUG = @DEBUG@
122MALLOC_DEBUG = @MALLOC_DEBUG@
28ef6c31 123
ccc6cda3
JA
124THIS_SH = $(BUILD_DIR)/$(Program)
125
126# PROFILE_FLAGS is either -pg, to generate profiling info for use
127# with gprof, or nothing (the default).
cce855bc 128PROFILE_FLAGS= @PROFILE_FLAGS@
ccc6cda3 129
ccc6cda3 130CFLAGS = @CFLAGS@
9607141c 131CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ @CROSS_COMPILE@
cce855bc 132CPPFLAGS = @CPPFLAGS@
7117c2d2 133CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
bc7bed50 134LOCAL_CFLAGS = @LOCAL_CFLAGS@ ${DEBUG} ${MALLOC_DEBUG}
ccc6cda3 135DEFS = @DEFS@
d166f048 136LOCAL_DEFS = @LOCAL_DEFS@
7117c2d2 137
5e13499c
CR
138LOCALE_DEFS = -DLOCALEDIR='"$(localedir)"' -DPACKAGE='"$(PACKAGE)"'
139
ccc6cda3 140LOCAL_LIBS = @LOCAL_LIBS@
b72432fd 141LIBS = $(BUILTINS_LIB) $(LIBRARIES) @LIBS@
dc8fbaf9
CR
142LIBS_FOR_BUILD =
143
b72432fd 144STATIC_LD = @STATIC_LD@
ccc6cda3
JA
145LOCAL_LDFLAGS = @LOCAL_LDFLAGS@
146
5e13499c 147SYSTEM_FLAGS = -DPROGRAM='"$(Program)"' -DCONF_HOSTTYPE='"$(Machine)"' -DCONF_OSTYPE='"$(OS)"' -DCONF_MACHTYPE='"$(MACHTYPE)"' -DCONF_VENDOR='"$(VENDOR)"' $(LOCALE_DEFS)
ccc6cda3 148
7117c2d2
JA
149BASE_CCFLAGS = $(PROFILE_FLAGS) $(SYSTEM_FLAGS) $(LOCAL_DEFS) \
150 $(DEFS) $(LOCAL_CFLAGS) $(INCLUDES)
151
152CCFLAGS = $(BASE_CCFLAGS) $(CPPFLAGS) $(CFLAGS)
f73dda09 153
7117c2d2
JA
154CCFLAGS_FOR_BUILD = $(BASE_CCFLAGS) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)
155
156LDFLAGS = @LDFLAGS@ $(STATIC_LD) $(LOCAL_LDFLAGS) $(PROFILE_FLAGS) $(CFLAGS)
76af2125 157LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@ $(LOCAL_LDFLAGS) $(CFLAGS_FOR_BUILD)
ccc6cda3 158
5e13499c 159INCLUDES = -I. @RL_INCLUDE@ -I$(srcdir) -I$(BASHINCDIR) -I$(LIBSRC) $(INTL_INC)
ccc6cda3 160
d3ad40de
CR
161# Maybe add: -Wextra
162GCC_LINT_FLAGS = -O -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wno-parentheses \
163 -Wcast-align -Wstrict-prototypes -Wconversion -Wformat \
164 -Wformat-nonliteral -Wmissing-braces -Wuninitialized \
165 -Wmissing-declarations -Winline \
f73dda09
JA
166 -Wmissing-prototypes -Wtraditional -Wredundant-decls -pedantic
167
7117c2d2 168GCC_LINT_CFLAGS = $(BASE_CCFLAGS) $(CPPFLAGS) $(GCC_LINT_FLAGS)
ccc6cda3
JA
169
170#
171# Support libraries
172#
173
174dot = .
175
176LIBSUBDIR = lib
177LIBSRC = $(srcdir)/$(LIBSUBDIR)
178
12d937f9
CR
179LIBBUILD = ${BUILD_DIR}/${LIBSUBDIR}
180
f73dda09 181SUBDIR_INCLUDES = -I. @RL_INCLUDE@ -I$(topdir) -I$(topdir)/$(LIBSUBDIR)
ccc6cda3 182
5e13499c
CR
183BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
184USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
185
cce855bc
JA
186# the bash library
187# the library is a mix of functions that the C library does not provide on
188# some platforms and general shell utility functions
189SH_LIBSRC = $(LIBSRC)/sh
190SH_LIBDIR = $(dot)/${LIBSUBDIR}/sh
191SH_ABSSRC = ${topdir}/${SH_LIBSRC}
192
7117c2d2
JA
193SHLIB_SOURCE = ${SH_LIBSRC}/clktck.c ${SH_LIBSRC}/getcwd.c \
194 ${SH_LIBSRC}/getenv.c ${SH_LIBSRC}/oslib.c \
1b6902d4 195 ${SH_LIBSRC}/setlinebuf.c ${SH_LIBSRC}/strchrnul.c \
67440bc5
CR
196 ${SH_LIBSRC}/strcasecmp.c ${SH_LIBSRC}/strdup.c \
197 ${SH_LIBSRC}/strerror.c \
7117c2d2
JA
198 ${SH_LIBSRC}/strtod.c ${SH_LIBSRC}/strtol.c \
199 ${SH_LIBSRC}/strtoul.c ${SH_LIBSRC}/vprint.c \
200 ${SH_LIBSRC}/itos.c ${SH_LIBSRC}/rename.c \
201 ${SH_LIBSRC}/zread.c ${SH_LIBSRC}/zwrite.c \
202 ${SH_LIBSRC}/shtty.c ${SH_LIBSRC}/inet_aton.c \
203 ${SH_LIBSRC}/netopen.c ${SH_LIBSRC}/strpbrk.c \
204 ${SH_LIBSRC}/timeval.c ${SH_LIBSRC}/clock.c \
205 ${SH_LIBSRC}/makepath.c ${SH_LIBSRC}/pathcanon.c \
206 ${SH_LIBSRC}/pathphys.c ${SH_LIBSRC}/stringlist.c \
207 ${SH_LIBSRC}/stringvec.c ${SH_LIBSRC}/tmpfile.c \
208 ${SH_LIBSRC}/spell.c ${SH_LIBSRC}/strtrans.c \
d0ca3503 209 ${SH_LIBSRC}/strcasestr.c ${SH_LIBSRC}/shquote.c \
7117c2d2
JA
210 ${SH_LIBSRC}/snprintf.c ${SH_LIBSRC}/mailstat.c \
211 ${SH_LIBSRC}/fmtulong.c ${SH_LIBSRC}/fmtullong.c \
212 ${SH_LIBSRC}/strtoll.c ${SH_LIBSRC}/strtoull.c \
213 ${SH_LIBSRC}/strtoimax.c ${SH_LIBSRC}/strtoumax.c \
214 ${SH_LIBSRC}/fmtumax.c ${SH_LIBSRC}/netconn.c \
215 ${SH_LIBSRC}/mktime.c ${SH_LIBSRC}/strftime.c \
d0ca3503 216 ${SH_LIBSRC}/memset.c ${SH_LIBSRC}/mbschr.c \
301e2142 217 ${SH_LIBSRC}/zcatfd.c ${SH_LIBSRC}/shmatch.c \
ac18b312 218 ${SH_LIBSRC}/strnlen.c ${SH_LIBSRC}/winsize.c \
d3ad40de 219 ${SH_LIBSRC}/eaccess.c ${SH_LIBSRC}/wcsdup.c \
9cbcc93b 220 ${SH_LIBSRC}/zmapfd.c ${SH_LIBSRC}/fpurge.c \
29d25b54
CR
221 ${SH_LIBSRC}/zgetline.c ${SH_LIBSRC}/mbscmp.c \
222 ${SH_LIBSRC}/casemod.c ${SH_LIBSRC}/uconvert.c \
64419627 223 ${SH_LIBSRC}/ufuncs.c ${SH_LIBSRC}/dprintf.c \
8f714a7c 224 ${SH_LIBSRC}/input_avail.c ${SH_LIBSRC}/mbscasecmp.c \
220537f2 225 ${SH_LIBSRC}/fnxform.c ${SH_LIBSRC}/unicode.c \
47b599dc
CR
226 ${SH_LIBSRC}/wcswidth.c ${SH_LIBSRC}/wcsnwidth.c \
227 ${SH_LIBSRC}/shmbchar.c
cce855bc
JA
228
229SHLIB_LIB = -lsh
230SHLIB_LIBNAME = libsh.a
231SHLIB_LIBRARY = ${SH_LIBDIR}/${SHLIB_LIBNAME}
232SHLIB_LDFLAGS = -L${SH_LIBDIR}
233SHLIB_DEP = ${SHLIB_LIBRARY}
234
ccc6cda3
JA
235# we assume for now that readline source is being shipped with bash
236RL_LIBSRC = $(LIBSRC)/readline
237RL_LIBDOC = $(RL_LIBSRC)/doc
b72432fd 238RL_LIBDIR = @RL_LIBDIR@
ccc6cda3
JA
239RL_ABSSRC = ${topdir}/$(RL_LIBDIR)
240
f73dda09
JA
241RL_INCLUDEDIR = @RL_INCLUDEDIR@
242
ccc6cda3
JA
243READLINE_LIB = @READLINE_LIB@
244READLINE_LIBRARY = $(RL_LIBDIR)/libreadline.a
245READLINE_LDFLAGS = -L${RL_LIBDIR}
246READLINE_DEP = @READLINE_DEP@
247
248# The source, object and documentation of the GNU Readline library.
249READLINE_SOURCE = $(RL_LIBSRC)/rldefs.h $(RL_LIBSRC)/rlconf.h \
250 $(RL_LIBSRC)/readline.h $(RL_LIBSRC)/tcap.h \
251 $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/keymaps.h \
252 $(RL_LIBSRC)/history.h $(RL_LIBSRC)/histlib.h \
253 $(RL_LIBSRC)/posixstat.h $(RL_LIBSRC)/tilde.h \
bb70624e
JA
254 $(RL_LIBSRC)/rlstdc.h ${RL_LIBSRC}/xmalloc.h \
255 $(RL_LIBSRC)/rlshell.h ${RL_LIBSRC}/rlprivate.h \
5a318736 256 $(RL_LIBSRC)/colors.h $(RL_LIBSRC)/parse-colors.h \
ccc6cda3
JA
257 $(RL_LIBSRC)/funmap.c $(RL_LIBSRC)/emacs_keymap.c \
258 $(RL_LIBSRC)/search.c $(RL_LIBSRC)/vi_keymap.c \
259 $(RL_LIBSRC)/keymaps.c $(RL_LIBSRC)/parens.c \
260 $(RL_LIBSRC)/vi_mode.c $(RL_LIBSRC)/callback.c \
261 $(RL_LIBSRC)/readline.c $(RL_LIBSRC)/tilde.c \
262 $(RL_LIBSRC)/rltty.c $(RL_LIBSRC)/complete.c \
263 $(RL_LIBSRC)/bind.c $(RL_LIBSRC)/isearch.c \
264 $(RL_LIBSRC)/display.c $(RL_LIBSRC)/signals.c \
7117c2d2 265 $(RL_LIBSRC)/util.c $(RL_LIBSRC)/kill.c $(RL_LIBSRC)/text.c \
ccc6cda3
JA
266 $(RL_LIBSRC)/undo.c $(RL_LIBSRC)/macro.c \
267 $(RL_LIBSRC)/terminal.c $(RL_LIBSRC)/nls.c \
268 $(RL_LIBSRC)/input.c $(RL_LIBSRC)/xmalloc.c \
b72432fd 269 $(RL_LIBSRC)/shell.c $(RL_LIBSRC)/savestring.c \
5a318736 270 $(RL_LIBSRC)/colors.c $(RL_LIBSRC)/parse-colors.c \
d3a24ed2 271 $(RL_LIBSRC)/misc.c $(RL_LIBSRC)/mbutil.c $(RL_LIBSRC)/compat.c \
ccc6cda3
JA
272 $(RL_LIBSRC)/histexpand.c $(RL_LIBSRC)/history.c \
273 $(RL_LIBSRC)/histsearch.c $(RL_LIBSRC)/histfile.c
274
275READLINE_OBJ = $(RL_LIBDIR)/readline.o $(RL_LIBDIR)/funmap.o \
276 $(RL_LIBDIR)/parens.o $(RL_LIBDIR)/search.o \
277 $(RL_LIBDIR)/keymaps.o $(RL_LIBDIR)/xmalloc.o \
278 $(RL_LIBDIR)/rltty.o $(RL_LIBDIR)/complete.o \
279 $(RL_LIBDIR)/bind.o $(RL_LIBDIR)/isearch.o \
280 $(RL_LIBDIR)/display.o $(RL_LIBDIR)/signals.o \
281 $(RL_LIBDIR)/tilde.o $(RL_LIBDIR)/util.o \
282 $(RL_LIBDIR)/kill.o $(RL_LIBDIR)/undo.o $(RL_LIBDIR)/nls.o \
283 $(RL_LIBDIR)/macro.o $(RL_LIBDIR)/input.o \
284 $(RL_LIBDIR)/terminal.o $(RL_LIBDIR)/callback.o \
b72432fd 285 $(RL_LIBDIR)/shell.o $(RL_LIBDIR)/savestring.o \
d3a24ed2 286 $(RL_LIBDIR)/mbutil.o $(RL_LIBDIR)/compat.o \
ccc6cda3 287 $(RL_LIBDIR)/history.o $(RL_LIBDIR)/histexpand.o \
5a318736
CR
288 $(RL_LIBDIR)/histsearch.o $(RL_LIBDIR)/histfile.o \
289 $(RL_LIBDIR)/colors.o $(RL_LIBDIR)/parse-colors.o
ccc6cda3
JA
290
291HIST_LIBSRC = $(LIBSRC)/readline
b72432fd 292HIST_LIBDIR = @HIST_LIBDIR@
ccc6cda3
JA
293HIST_ABSSRC = ${topdir}/$(HIST_LIBDIR)
294
295HISTORY_LIB = @HISTORY_LIB@
296HISTORY_LIBRARY = $(HIST_LIBDIR)/libhistory.a
297HISTORY_LDFLAGS = -L$(HIST_LIBDIR)
298HISTORY_DEP = @HISTORY_DEP@
299
300# The source, object and documentation of the history library.
301HISTORY_SOURCE = $(HIST_LIBSRC)/history.c $(HIST_LIBSRC)/histexpand.c \
302 $(HIST_LIBSRC)/histsearch.c $(HIST_LIBSRC)/histfile.c \
d166f048 303 $(HIST_LIBSRC)/shell.c \
ccc6cda3
JA
304 $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/histlib.h
305HISTORY_OBJ = $(HIST_LIBDIR)/history.o $(HIST_LIBDIR)/histexpand.o \
d166f048
JA
306 $(HIST_LIBDIR)/histsearch.o $(HIST_LIBDIR)/histfile.o \
307 $(HIST_LIBDIR)/shell.o
ccc6cda3
JA
308
309# You only need termcap (or curses) if you are linking with GNU Readline.
310TERM_LIBSRC = $(LIBSRC)/termcap
311TERM_LIBDIR = $(dot)/$(LIBSUBDIR)/termcap
312TERM_ABSSRC = ${topdir}/$(TERM_LIBDIR)
313
314TERMCAP_LIB = @TERMCAP_LIB@
315TERMCAP_LIBRARY = $(TERM_LIBDIR)/libtermcap.a
316TERMCAP_LDFLAGS = -L$(TERM_LIBDIR)
317TERMCAP_DEP = @TERMCAP_DEP@
318
319TERMCAP_SOURCE = $(TERM_LIBSRC)/termcap.c $(TERM_LIBSRC)/tparam.c
320TERMCAP_OBJ = $(TERM_LIBDIR)/termcap.o $(TERM_LIBDIR)/tparam.o
321
322GLOB_LIBSRC = $(LIBSRC)/glob
323GLOB_LIBDIR = $(dot)/$(LIBSUBDIR)/glob
324GLOB_ABSSRC = ${topdir}/$(GLOB_LIBDIR)
325
326GLOB_LIB = -lglob
327GLOB_LIBRARY = $(GLOB_LIBDIR)/libglob.a
328GLOB_LDFLAGS = -L$(GLOB_LIBDIR)
329GLOB_DEP = $(GLOB_LIBRARY)
330
f73dda09 331GLOB_SOURCE = $(GLOB_LIBSRC)/glob.c $(GLOB_LIBSRC)/strmatch.c \
7117c2d2
JA
332 $(GLOB_LIBSRC)/smatch.c $(GLOB_LIBSRC)/xmbsrtowcs.c \
333 $(GLOB_LIBSRC)/glob_loop.c $(GLOB_LIBSRC)/sm_loop.c \
5f8cde23 334 $(GLOB_LIBSRC)/gmisc.c \
f73dda09 335 $(GLOB_LIBSRC)/glob.h $(GLOB_LIBSRC)/strmatch.h
7117c2d2 336GLOB_OBJ = $(GLOB_LIBDIR)/glob.o $(GLOB_LIBDIR)/strmatch.o \
5f8cde23
CR
337 $(GLOB_LIBDIR)/smatch.o $(GLOB_LIBDIR)/xmbsrtowcs.o \
338 $(GLOB_LIBDIR)/gmisc.o
ccc6cda3
JA
339
340# The source, object and documentation for the GNU Tilde library.
341TILDE_LIBSRC = $(LIBSRC)/tilde
342TILDE_LIBDIR = $(dot)/$(LIBSUBDIR)/tilde
343TILDE_ABSSRC = ${topdir}/$(TILDE_LIBDIR)
344
fd3925f1 345TILDE_LIB = @TILDE_LIB@
ccc6cda3
JA
346TILDE_LIBRARY = $(TILDE_LIBDIR)/libtilde.a
347TILDE_LDFLAGS = -L$(TILDE_LIBDIR)
348TILDE_DEP = $(TILDE_LIBRARY)
349
350TILDE_SOURCE = $(TILDE_LIBSRC)/tilde.c $(TILDE_LIBSRC)/tilde.h
351TILDE_OBJ = $(TILDE_LIBDIR)/tilde.o
352
5e13499c
CR
353# libintl
354INTL_LIBSRC = $(LIBSRC)/intl
355INTL_LIBDIR = $(dot)/$(LIBSUBDIR)/intl
356INTL_ABSSRC = ${topdir}/$(INTL_LIB)
12d937f9 357INTL_BUILDDIR = ${LIBBUILD}/intl
5e13499c
CR
358
359INTL_LIB = @LIBINTL@
360INTL_LIBRARY = $(INTL_LIBDIR)/libintl.a
361INTL_DEP = @INTL_DEP@
362INTL_INC = @INTL_INC@
363
12d937f9
CR
364LIBINTL_H = @LIBINTL_H@
365
8f714a7c
CR
366# libiconv
367LIBICONV = @LIBICONV@
368
5e13499c
CR
369# tests
370LIBINTL = @LIBINTL@
371LTLIBINTL = @LTLIBINTL@
372INTLLIBS = @INTLLIBS@
373INTLOBJS = @INTLOBJS@
374
ccc6cda3 375# Our malloc.
d166f048
JA
376MALLOC_TARGET = @MALLOC_TARGET@
377
378# set to alloca.o if we are using the C alloca in lib/malloc
379ALLOCA = @ALLOCA@
380
ccc6cda3
JA
381ALLOC_LIBSRC = $(LIBSRC)/malloc
382ALLOC_LIBDIR = $(dot)/$(LIBSUBDIR)/malloc
383ALLOC_ABSSRC = ${topdir}/$(ALLOC_LIBDIR)
384
ccc6cda3 385MALLOC_SRC = @MALLOC_SRC@
f73dda09 386MALLOC_OTHERSRC = ${ALLOC_LIBSRC}/trace.c ${ALLOC_LIBSRC}/stats.c \
7117c2d2 387 ${ALLOC_LIBSRC}/table.c ${ALLOC_LIBSRC}/watch.c
f73dda09
JA
388MALLOC_SOURCE = ${ALLOC_LIBSRC}/${MALLOC_SRC} ${MALLOC_OTHERSRC}
389MALLOC_CFLAGS = -DRCHECK -Dbotch=programming_error ${MALLOC_DEBUG}
ccc6cda3 390
f73dda09
JA
391MALLOC_LIB = @MALLOC_LIB@
392MALLOC_LIBRARY = @MALLOC_LIBRARY@
393MALLOC_LDFLAGS = @MALLOC_LDFLAGS@
394MALLOC_DEP = @MALLOC_DEP@
ccc6cda3 395
f73dda09 396ALLOC_HEADERS = $(ALLOC_LIBSRC)/getpagesize.h $(ALLOC_LIBSRC)/shmalloc.h \
7117c2d2
JA
397 $(ALLOC_LIBSRC)/imalloc.h $(ALLOC_LIBSRC)/mstats.h \
398 $(ALLOC_LIBSRC)/table.h $(ALLOC_LIBSRC)/watch.h
ccc6cda3 399
f73dda09 400$(MALLOC_LIBRARY): ${MALLOC_SOURCE} ${ALLOC_HEADERS} config.h
ccc6cda3
JA
401 @(cd $(ALLOC_LIBDIR) && \
402 $(MAKE) $(MFLAGS) \
d166f048 403 MALLOC_CFLAGS="$(MALLOC_CFLAGS)" ${MALLOC_TARGET} ) || exit 1
ccc6cda3 404
bb70624e
JA
405BASHINCDIR = ${srcdir}/include
406BASHINCFILES = $(BASHINCDIR)/posixstat.h $(BASHINCDIR)/ansi_stdlib.h \
407 $(BASHINCDIR)/filecntl.h $(BASHINCDIR)/posixdir.h \
408 $(BASHINCDIR)/memalloc.h $(BASHINCDIR)/stdc.h \
409 $(BASHINCDIR)/posixjmp.h $(BASHINCDIR)/posixwait.h \
410 $(BASHINCDIR)/posixtime.h $(BASHINCDIR)/systimes.h \
411 $(BASHINCDIR)/unionwait.h $(BASHINCDIR)/maxpath.h \
7117c2d2
JA
412 $(BASHINCDIR)/shtty.h $(BASHINCDIR)/typemax.h \
413 $(BASHINCDIR)/ocache.h
ccc6cda3 414
984a1947 415LIBRARIES = $(GLOB_LIB) $(SHLIB_LIB) $(READLINE_LIB) $(HISTORY_LIB) $(TERMCAP_LIB) \
8f714a7c 416 $(TILDE_LIB) $(MALLOC_LIB) $(INTL_LIB) $(LIBICONV) $(LOCAL_LIBS)
ccc6cda3 417
984a1947 418LIBDEP = $(GLOB_DEP) $(SHLIB_DEP) $(INTL_DEP) $(READLINE_DEP) $(HISTORY_DEP) $(TERMCAP_DEP) \
28ef6c31 419 $(TILDE_DEP) $(MALLOC_DEP)
ccc6cda3 420
b72432fd
JA
421LIBRARY_LDFLAGS = $(READLINE_LDFLAGS) $(HISTORY_LDFLAGS) $(GLOB_LDFLAGS) \
422 $(TILDE_LDFLAGS) $(MALLOC_LDFLAGS) $(SHLIB_LDFLAGS)
ccc6cda3
JA
423
424#
425# The shell itself
426#
427
428# The main source code for the Bourne Again SHell.
429CSOURCES = shell.c eval.c parse.y general.c make_cmd.c print_cmd.c y.tab.c \
430 dispose_cmd.c execute_cmd.c variables.c $(GLOBC) version.c \
d166f048
JA
431 expr.c copy_cmd.c flags.c subst.c hashcmd.c hashlib.c mailcheck.c \
432 test.c trap.c alias.c jobs.c nojobs.c $(ALLOC_FILES) braces.c \
4ac1ff98 433 input.c bashhist.c array.c arrayfunc.c assoc.c sig.c pathexp.c \
cce855bc 434 unwind_prot.c siglist.c bashline.c bracecomp.c error.c \
bb70624e 435 list.c stringlib.c locale.c findcmd.c redir.c \
28ef6c31 436 pcomplete.c pcomplib.c syntax.c xmalloc.c
ccc6cda3 437
d166f048 438HSOURCES = shell.h flags.h trap.h hashcmd.h hashlib.h jobs.h builtins.h \
bb70624e 439 general.h variables.h config.h $(ALLOC_HEADERS) alias.h \
f73dda09 440 quit.h unwind_prot.h syntax.h ${GRAM_H} \
ccc6cda3
JA
441 command.h input.h error.h bashansi.h dispose_cmd.h make_cmd.h \
442 subst.h externs.h siglist.h bashhist.h bashline.h bashtypes.h \
f73dda09 443 array.h arrayfunc.h sig.h mailcheck.h bashintl.h bashjmp.h \
4ac1ff98 444 execute_cmd.h parser.h pathexp.h pathnames.h pcomplete.h assoc.h \
bb70624e 445 $(BASHINCFILES)
ccc6cda3
JA
446
447SOURCES = $(CSOURCES) $(HSOURCES) $(BUILTIN_DEFS)
448
54a5fbe1
CR
449# headers in top-level source directory that get installed by install-headers
450INSTALLED_HEADERS = shell.h bashjmp.h command.h syntax.h general.h error.h \
451 variables.h array.h assoc.h arrayfunc.h quit.h dispose_cmd.h \
452 make_cmd.h subst.h sig.h externs.h builtins.h \
453 bashtypes.h xmalloc.h config-top.h config-bot.h \
454 bashintl.h bashansi.h bashjmp.h alias.h hashlib.h \
455 conftypes.h unwind_prot.h jobs.h siglist.h
456INSTALLED_BUILTINS_HEADERS = bashgetopt.h common.h getopt.h
457INSTALLED_INCFILES = posixstat.h ansi_stdlib.h filecntl.h posixdir.h \
458 memalloc.h stdc.h posixjmp.h posixwait.h posixtime.h systimes.h \
459 unionwait.h maxpath.h shtty.h typemax.h ocache.h chartypes.h gettext.h \
460 posixstat.h shmbchar.h shmbutil.h stat-time.h
461
cce855bc
JA
462# header files chosen based on running of configure
463SIGNAMES_H = @SIGNAMES_H@
464
ccc6cda3
JA
465# object files chosen based on running of configure
466JOBS_O = @JOBS_O@
f73dda09 467SIGLIST_O = @SIGLIST_O@
dc8fbaf9 468SIGNAMES_O = @SIGNAMES_O@
ccc6cda3
JA
469
470# Matching object files.
471OBJECTS = shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o $(GLOBO) \
472 dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o \
d166f048
JA
473 expr.o flags.o $(JOBS_O) subst.o hashcmd.o hashlib.o mailcheck.o \
474 trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o \
4ac1ff98 475 alias.o array.o arrayfunc.o assoc.o braces.o bracecomp.o bashhist.o \
f73dda09 476 bashline.o $(SIGLIST_O) list.o stringlib.o locale.o findcmd.o redir.o \
dc8fbaf9 477 pcomplete.o pcomplib.o syntax.o xmalloc.o $(SIGNAMES_O)
ccc6cda3
JA
478
479# Where the source code of the shell builtins resides.
480BUILTIN_SRCDIR=$(srcdir)/builtins
481DEFSRC=$(BUILTIN_SRCDIR)
482BUILTIN_ABSSRC=${topdir}/builtins
483DEFDIR = $(dot)/builtins
d3a24ed2 484DEBUGGER_DIR = $(dot)/debugger
ccc6cda3
JA
485
486BUILTIN_DEFS = $(DEFSRC)/alias.def $(DEFSRC)/bind.def $(DEFSRC)/break.def \
487 $(DEFSRC)/builtin.def $(DEFSRC)/cd.def $(DEFSRC)/colon.def \
bb70624e 488 $(DEFSRC)/command.def ${DEFSRC}/complete.def \
d3a24ed2 489 $(DEFSRC)/caller.def $(DEFSRC)/declare.def \
ccc6cda3
JA
490 $(DEFSRC)/echo.def $(DEFSRC)/enable.def $(DEFSRC)/eval.def \
491 $(DEFSRC)/exec.def $(DEFSRC)/exit.def $(DEFSRC)/fc.def \
492 $(DEFSRC)/fg_bg.def $(DEFSRC)/hash.def $(DEFSRC)/help.def \
493 $(DEFSRC)/history.def $(DEFSRC)/jobs.def $(DEFSRC)/kill.def \
494 $(DEFSRC)/let.def $(DEFSRC)/read.def $(DEFSRC)/return.def \
495 $(DEFSRC)/set.def $(DEFSRC)/setattr.def $(DEFSRC)/shift.def \
496 $(DEFSRC)/source.def $(DEFSRC)/suspend.def $(DEFSRC)/test.def \
497 $(DEFSRC)/times.def $(DEFSRC)/trap.def $(DEFSRC)/type.def \
498 $(DEFSRC)/ulimit.def $(DEFSRC)/umask.def $(DEFSRC)/wait.def \
499 $(DEFSRC)/getopts.def $(DEFSRC)/reserved.def \
6a8fd0ed
CR
500 $(DEFSRC)/pushd.def $(DEFSRC)/shopt.def $(DEFSRC)/printf.def \
501 $(DEFSRC)/mapfile.def
ccc6cda3
JA
502BUILTIN_C_SRC = $(DEFSRC)/mkbuiltins.c $(DEFSRC)/common.c \
503 $(DEFSRC)/evalstring.c $(DEFSRC)/evalfile.c \
d166f048 504 $(DEFSRC)/bashgetopt.c $(GETOPT_SOURCE)
ccc6cda3
JA
505BUILTIN_C_OBJ = $(DEFDIR)/common.o $(DEFDIR)/evalstring.o \
506 $(DEFDIR)/evalfile.o $(DEFDIR)/bashgetopt.o
507BUILTIN_OBJS = $(DEFDIR)/alias.o $(DEFDIR)/bind.o $(DEFDIR)/break.o \
508 $(DEFDIR)/builtin.o $(DEFDIR)/cd.o $(DEFDIR)/colon.o \
d3a24ed2 509 $(DEFDIR)/command.o $(DEFDIR)/caller.o $(DEFDIR)/declare.o \
ccc6cda3
JA
510 $(DEFDIR)/echo.o $(DEFDIR)/enable.o $(DEFDIR)/eval.o \
511 $(DEFDIR)/exec.o $(DEFDIR)/exit.o $(DEFDIR)/fc.o \
512 $(DEFDIR)/fg_bg.o $(DEFDIR)/hash.o $(DEFDIR)/help.o \
513 $(DEFDIR)/history.o $(DEFDIR)/jobs.o $(DEFDIR)/kill.o \
514 $(DEFDIR)/let.o $(DEFDIR)/pushd.o $(DEFDIR)/read.o \
cce855bc 515 $(DEFDIR)/return.o $(DEFDIR)/shopt.o $(DEFDIR)/printf.o \
ccc6cda3
JA
516 $(DEFDIR)/set.o $(DEFDIR)/setattr.o $(DEFDIR)/shift.o \
517 $(DEFDIR)/source.o $(DEFDIR)/suspend.o $(DEFDIR)/test.o \
518 $(DEFDIR)/times.o $(DEFDIR)/trap.o $(DEFDIR)/type.o \
519 $(DEFDIR)/ulimit.o $(DEFDIR)/umask.o $(DEFDIR)/wait.o \
6a8fd0ed 520 $(DEFDIR)/getopts.o $(DEFDIR)/mapfile.o $(BUILTIN_C_OBJ)
ccc6cda3
JA
521GETOPT_SOURCE = $(DEFSRC)/getopt.c $(DEFSRC)/getopt.h
522PSIZE_SOURCE = $(DEFSRC)/psize.sh $(DEFSRC)/psize.c
523
d166f048 524BUILTINS_LIBRARY = $(DEFDIR)/libbuiltins.a
ccc6cda3
JA
525BUILTINS_LIB = -lbuiltins
526BUILTINS_LDFLAGS = -L$(DEFDIR)
527BUILTINS_DEP = $(BUILTINS_LIBRARY)
528
529# Documentation for the shell.
530DOCSRC = $(srcdir)/doc
d166f048 531DOCDIR = $(dot)/doc
ccc6cda3 532
5e13499c
CR
533# Translations and other i18n support files
534PO_SRC = $(srcdir)/po/
535PO_DIR = $(dot)/po/
536
ccc6cda3
JA
537SIGNAMES_SUPPORT = $(SUPPORT_SRC)mksignames.c
538
539SUPPORT_SRC = $(srcdir)/support/
54a5fbe1 540SDIR = $(dot)/support
ccc6cda3 541
dd4f3dd8 542TESTS_SUPPORT = recho$(EXEEXT) zecho$(EXEEXT) printenv$(EXEEXT) xcase$(EXEEXT)
bb70624e
JA
543CREATED_SUPPORT = signames.h recho$(EXEEXT) zecho$(EXEEXT) printenv$(EXEEXT) \
544 tests/recho$(EXEEXT) tests/zecho$(EXEEXT) \
dd4f3dd8
CR
545 tests/printenv$(EXEEXT) xcase$(EXEEXT) tests/xcase$(EXEEXT) \
546 mksignames$(EXEEXT) lsignames.h \
7117c2d2 547 mksyntax${EXEEXT} syntax.c $(VERSPROG) $(VERSOBJ) \
d3ad40de 548 buildversion.o mksignames.o signames.o buildsignames.o
ccc6cda3 549CREATED_CONFIGURE = config.h config.cache config.status config.log \
18d2df91 550 stamp-h po/POTFILES config.status.lineno
ccc6cda3
JA
551CREATED_MAKEFILES = Makefile builtins/Makefile doc/Makefile \
552 lib/readline/Makefile lib/glob/Makefile \
cce855bc
JA
553 lib/sh/Makefile lib/tilde/Makefile lib/malloc/Makefile \
554 lib/termcap/Makefile examples/loadables/Makefile \
54a5fbe1 555 examples/loadables/Makefile.inc \
5e13499c
CR
556 examples/loadables/perl/Makefile support/Makefile \
557 lib/intl/Makefile po/Makefile po/Makefile.in
54a5fbe1
CR
558CREATED_HEADERS = signames.h config.h pathnames.h version.h y.tab.h \
559 ${DEFDIR}/builtext.h
ccc6cda3 560
c677e9e0
CR
561OTHER_DOCS = $(srcdir)/CHANGES $(srcdir)/COMPAT $(srcdir)/NEWS $(srcdir)/POSIX \
562 $(srcdir)/RBASH $(srcdir)/README
563OTHER_INSTALLED_DOCS = CHANGES COMPAT NEWS POSIX RBASH README
564
54a5fbe1
CR
565LOADABLES_DIR = ${top_builddir}/examples/loadables
566
ccc6cda3
JA
567# Keep GNU Make from exporting the entire environment for small machines.
568.NOEXPORT:
569
570.made: $(Program) bashbug
d166f048 571 @echo "$(Program) last made for a $(Machine) running $(OS)" >.made
ccc6cda3 572
d166f048 573$(Program): .build $(OBJECTS) $(BUILTINS_DEP) $(LIBDEP)
ccc6cda3 574 $(RM) $@
cce855bc 575 $(PURIFY) $(CC) $(BUILTINS_LDFLAGS) $(LIBRARY_LDFLAGS) $(LDFLAGS) -o $(Program) $(OBJECTS) $(LIBS)
ccc6cda3 576 ls -l $(Program)
10590446 577 -$(SIZE) $(Program)
ccc6cda3 578
f73dda09 579.build: $(SOURCES) config.h Makefile version.h $(VERSPROG)
ccc6cda3
JA
580 @echo
581 @echo " ***********************************************************"
582 @echo " * *"
f73dda09 583 @echo " * `$(BUILD_DIR)/$(VERSPROG) -l`"
ccc6cda3
JA
584 @echo " * *"
585 @echo " ***********************************************************"
586 @echo
587
f73dda09 588bashbug: $(SUPPORT_SRC)bashbug.sh config.h Makefile $(VERSPROG)
d166f048
JA
589 @sed -e "s%!MACHINE!%$(Machine)%" -e "s%!OS!%$(OS)%" \
590 -e "s%!CFLAGS!%$(CCFLAGS)%" -e "s%!CC!%$(CC)%" \
591 -e "s%!RELEASE!%$(Version)%" -e "s%!PATCHLEVEL!%$(PatchLevel)%" \
592 -e "s%!MACHTYPE!%$(MACHTYPE)%" -e "s%!RELSTATUS!%$(RELSTATUS)%" \
ccc6cda3
JA
593 $(SUPPORT_SRC)bashbug.sh > $@
594 @chmod a+rx bashbug
595
596strip: $(Program) .made
597 strip $(Program)
598 ls -l $(Program)
10590446 599 -$(SIZE) $(Program)
ccc6cda3 600
f73dda09
JA
601lint:
602 ${MAKE} ${MFLAGS} CFLAGS='${GCC_LINT_FLAGS}' .made
603
67362c60 604version.h: $(SOURCES) config.h Makefile patchlevel.h
f73dda09 605 $(SHELL) $(SUPPORT_SRC)mkversion.sh -b -S ${topdir} -s $(RELSTATUS) -d $(Version) -o newversion.h \
b72432fd 606 && mv newversion.h version.h
ccc6cda3 607
7117c2d2 608bashversion$(EXEEXT): patchlevel.h conftypes.h version.h buildversion.o $(SUPPORT_SRC)bashversion.c
348a457e 609 $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) ${LDFLAGS_FOR_BUILD} -o $@ $(SUPPORT_SRC)bashversion.c buildversion.o ${LIBS_FOR_BUILD}
7117c2d2
JA
610
611buildversion.o: version.h conftypes.h patchlevel.h $(srcdir)/version.c
5e13499c 612 $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) -DBUILDTOOL -c -o $@ $(srcdir)/version.c
f73dda09 613
ccc6cda3 614# old rules
d166f048 615GRAM_H = parser-built
c5402025 616y.tab.o: y.tab.h y.tab.c ${GRAM_H} command.h ${BASHINCDIR}/stdc.h input.h
d166f048
JA
617${GRAM_H}: y.tab.h
618 @-if test -f y.tab.h ; then \
619 cmp -s $@ y.tab.h 2>/dev/null || cp -p y.tab.h $@; \
620 fi
c5402025
CR
621
622y.tab.c: parse.y
d166f048 623# -if test -f y.tab.h; then mv -f y.tab.h old-y.tab.h; fi
ccc6cda3 624 $(YACC) -d $(srcdir)/parse.y
f73dda09 625 touch parser-built
d166f048 626# -if cmp -s old-y.tab.h y.tab.h; then mv old-y.tab.h y.tab.h; else cp -p y.tab.h ${GRAM_H}; fi
ccc6cda3 627
c5402025
CR
628y.tab.h: y.tab.c
629 @true
630
631
632# Subdirs will often times want version.h, so they'll change back up to
633# the top level and try to create it. This causes parallel build issues
634# so just force top level sanity before we descend.
635$(LIBDEP): .build
636#$(LIBDEP): version.h
ccc6cda3
JA
637
638$(READLINE_LIBRARY): config.h $(READLINE_SOURCE)
639 @echo making $@ in ${RL_LIBDIR}
b72432fd 640 @( { test "${RL_LIBDIR}" = "${libdir}" && exit 0; } || \
e2f12fdf 641 cd ${RL_LIBDIR} && $(MAKE) $(MFLAGS) DEBUG=${DEBUG} libreadline.a) || exit 1
ccc6cda3 642
94a5513e 643$(HISTORY_LIBRARY): config.h $(HISTORY_SOURCE) $(READLINE_DEP)
ccc6cda3 644 @echo making $@ in ${HIST_LIBDIR}
b72432fd 645 @( { test "${HIST_LIBDIR}" = "${libdir}" && exit 0; } || \
e2f12fdf 646 cd ${HIST_LIBDIR} && $(MAKE) $(MFLAGS) DEBUG=${DEBUG} libhistory.a) || exit 1
ccc6cda3
JA
647
648$(GLOB_LIBRARY): config.h $(GLOB_SOURCE)
649 @echo making $@ in ${GLOB_LIBDIR}
650 @(cd ${GLOB_LIBDIR} && \
f73dda09 651 $(MAKE) $(MFLAGS) DEBUG=${DEBUG} libglob.a) || exit 1
ccc6cda3
JA
652
653$(TILDE_LIBRARY): config.h $(TILDE_SOURCE)
654 @echo making $@ in ${TILDE_LIBDIR}
655 @(cd ${TILDE_LIBDIR} && \
656 $(MAKE) $(MFLAGS) libtilde.a) || exit 1
657
658$(TERMCAP_LIBRARY): config.h ${TERMCAP_SOURCE}
d166f048
JA
659 @echo making $@ in ${TERM_LIBDIR}
660 @(cd ${TERM_LIBDIR} && \
ccc6cda3
JA
661 $(MAKE) $(MFLAGS) libtermcap.a) || exit 1
662
cce855bc
JA
663$(SHLIB_LIBRARY): config.h ${SHLIB_SOURCE}
664 @echo making $@ in ${SH_LIBDIR}
665 @(cd ${SH_LIBDIR} && \
f73dda09 666 $(MAKE) $(MFLAGS) DEBUG=${DEBUG} ${SHLIB_LIBNAME}) || exit 1
cce855bc 667
5e13499c
CR
668${INTL_LIBRARY}: config.h ${INTL_LIBDIR}/Makefile
669 @echo making $@ in ${INTL_LIBDIR}
670 @(cd ${INTL_LIBDIR} && \
12d937f9
CR
671 $(MAKE) $(MFLAGS) all) || exit 1
672
d3ad40de 673${LIBINTL_H}: ${INTL_DEP}
5e13499c 674
dc8fbaf9
CR
675signames.o: $(SUPPORT_SRC)signames.c
676 $(RM) $@
677 $(CC) $(CCFLAGS) -c $(SUPPORT_SRC)signames.c
678
679buildsignames.o: $(SUPPORT_SRC)signames.c
680 $(RM) $@
681 $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) -DBUILDTOOL -o $@ -c $(SUPPORT_SRC)signames.c
682
683mksignames.o: $(SUPPORT_SRC)mksignames.c
684 $(RM) $@
685 $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) -DBUILDTOOL -c $(SUPPORT_SRC)mksignames.c
686
687mksignames$(EXEEXT): mksignames.o buildsignames.o
688 $(RM) $@
348a457e 689 $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) ${LDFLAGS_FOR_BUILD} -o $@ mksignames.o buildsignames.o ${LIBS_FOR_BUILD}
ccc6cda3 690
f73dda09 691mksyntax$(EXEEXT): ${srcdir}/mksyntax.c config.h syntax.h ${BASHINCDIR}/chartypes.h
dc8fbaf9 692 $(RM) $@
348a457e 693 ${CC_FOR_BUILD} ${CCFLAGS_FOR_BUILD} ${LDFLAGS_FOR_BUILD} -o $@ ${srcdir}/mksyntax.c ${LIBS_FOR_BUILD}
28ef6c31 694
cce855bc
JA
695# make a list of signals for the local system -- this is done when we're
696# *not* cross-compiling
bb70624e 697lsignames.h: mksignames$(EXEEXT)
ccc6cda3 698 $(RM) $@
3ffb039a 699 ./mksignames$(EXEEXT) $@
ccc6cda3 700
cce855bc
JA
701# copy the correct signames header file to signames.h
702signames.h: $(SIGNAMES_H)
703 -if cmp -s $(SIGNAMES_H) $@ ; then :; else $(RM) $@ ; $(CP) $(SIGNAMES_H) $@ ; fi
704
28ef6c31
JA
705syntax.c: mksyntax${EXEEXT} $(srcdir)/syntax.h
706 $(RM) $@
3ffb039a 707 ./mksyntax$(EXEEXT) -o $@
28ef6c31 708
631b20c6 709$(BUILTINS_LIBRARY): $(BUILTIN_DEFS) $(BUILTIN_C_SRC) config.h ${BASHINCDIR}/memalloc.h $(DEFDIR)/builtext.h version.h
abe2eb5b 710 @(cd $(DEFDIR) && $(MAKE) $(MFLAGS) DEBUG=${DEBUG} targets ) || exit 1
ccc6cda3
JA
711
712# these require special rules to circumvent make builtin rules
d166f048 713${DEFDIR}/common.o: $(BUILTIN_SRCDIR)/common.c
f73dda09 714 @(cd $(DEFDIR) && $(MAKE) $(MFLAGS) DEBUG=${DEBUG} common.o) || exit 1
ccc6cda3 715
d166f048 716${DEFDIR}/bashgetopt.o: $(BUILTIN_SRCDIR)/bashgetopt.c
f73dda09 717 @(cd $(DEFDIR) && $(MAKE) $(MFLAGS) DEBUG=${DEBUG} bashgetopt.o) || exit 1
ccc6cda3 718
d166f048 719${DEFDIR}/builtext.h: $(BUILTIN_DEFS)
ccc6cda3
JA
720 @(cd $(DEFDIR) && $(MAKE) $(MFLAGS) builtext.h ) || exit 1
721
722# For the justification of the following Makefile rules, see node
723# `Automatic Remaking' in GNU Autoconf documentation.
724
d166f048
JA
725Makefile makefile: config.status $(srcdir)/Makefile.in
726 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
ccc6cda3
JA
727
728Makefiles makefiles: config.status $(srcdir)/Makefile.in
729 @for mf in $(CREATED_MAKEFILES); do \
730 CONFIG_FILES=$$mf CONFIG_HEADERS= $(SHELL) ./config.status ; \
731 done
732
733config.h: stamp-h
734
b72432fd 735stamp-h: config.status $(srcdir)/config.h.in $(srcdir)/config-top.h $(srcdir)/config-bot.h
ccc6cda3
JA
736 CONFIG_FILES= CONFIG_HEADERS=config.h $(SHELL) ./config.status
737
738config.status: $(srcdir)/configure
739 $(SHELL) ./config.status --recheck
740
d3ad40de
CR
741pathnames.h: Makefile $(srcdir)/pathnames.h.in
742 @sed -e 's|@DEBUGGER_START_FILE\@|${DEBUGGER_START_FILE}|g' $(srcdir)/pathnames.h.in > pathnames.tmp
743 @if test -f $@; then \
744 cmp -s pathnames.tmp $@ || mv pathnames.tmp $@; \
745 else \
746 mv pathnames.tmp $@; \
747 fi
748 @${RM} pathnames.tmp
749
ccc6cda3 750# comment out for distribution
a7ad477f 751$(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4 $(srcdir)/config.h.in
b72432fd
JA
752 cd $(srcdir) && autoconf
753
754# for chet
755reconfig: force
301e2142 756 sh $(srcdir)/configure -C
ccc6cda3 757
54a5fbe1
CR
758loadables:
759 cd $(LOADABLES_DIR) && $(MAKE) $(MFLAGS) all
760
d166f048
JA
761#newversion: mkversion
762# $(RM) .build
763# ./mkversion -dir $(srcdir) -dist
764# mv -f newversion.h version.h
765# $(MAKE) -f $(srcdir)/Makefile $(MFLAGS) srcdir=$(srcdir)
ccc6cda3
JA
766
767doc documentation: force
768 @(cd $(DOCDIR) ; $(MAKE) $(MFLAGS) )
769
770info dvi ps: force
771 @(cd $(DOCDIR) ; $(MAKE) $(MFLAGS) CFLAGS='$(CCFLAGS)' $@ )
772
773force:
774
c677e9e0 775# unused
d3ad40de 776TAGS: $(SOURCES) $(BUILTIN_C_SRC) $(LIBRARY_SOURCE)
ccc6cda3
JA
777 etags $(SOURCES) $(BUILTIN_C_SRC) $(LIBRARY_SOURCE)
778
d3ad40de 779tags: $(SOURCES) $(BUILTIN_C_SRC) $(LIBRARY_SOURCE)
ccc6cda3
JA
780 ctags -x $(SOURCES) $(BUILTIN_C_SRC) $(LIBRARY_SOURCE) > $@
781
782# Targets that actually do things not part of the build
783
784installdirs:
5e13499c
CR
785 @${SHELL} $(SUPPORT_SRC)mkinstalldirs $(DESTDIR)$(bindir)
786 @${SHELL} $(SUPPORT_SRC)mkinstalldirs $(DESTDIR)$(man1dir)
787 @${SHELL} $(SUPPORT_SRC)mkinstalldirs $(DESTDIR)$(infodir)
c677e9e0 788 @${SHELL} $(SUPPORT_SRC)mkinstalldirs $(DESTDIR)$(docdir)
5e13499c 789 -( cd $(PO_DIR) ; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
ccc6cda3
JA
790
791install: .made installdirs
f73dda09 792 $(INSTALL_PROGRAM) $(INSTALLMODE) $(Program) $(DESTDIR)$(bindir)/$(Program)
7117c2d2 793 $(INSTALL_SCRIPT) $(INSTALLMODE2) bashbug $(DESTDIR)$(bindir)/bashbug
6e51e0d0 794 $(INSTALL_DATA) $(OTHER_DOCS) $(DESTDIR)$(docdir)
ccc6cda3
JA
795 -( cd $(DOCDIR) ; $(MAKE) $(MFLAGS) \
796 man1dir=$(man1dir) man1ext=$(man1ext) \
797 man3dir=$(man3dir) man3ext=$(man3ext) \
f73dda09 798 infodir=$(infodir) htmldir=$(htmldir) DESTDIR=$(DESTDIR) $@ )
7117c2d2 799 -( cd $(DEFDIR) ; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
5e13499c 800 -( cd $(PO_DIR) ; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
54a5fbe1 801 -( cd $(LOADABLES_DIR) && $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
ccc6cda3
JA
802
803install-strip:
804 $(MAKE) $(MFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' \
f73dda09
JA
805 prefix=${prefix} exec_prefix=${exec_prefix} \
806 DESTDIR=$(DESTDIR) install
ccc6cda3 807
54a5fbe1
CR
808install-headers-dirs:
809 @${SHELL} $(SUPPORT_SRC)mkinstalldirs $(DESTDIR)$(headersdir)
810 @${SHELL} $(SUPPORT_SRC)mkinstalldirs $(DESTDIR)$(headersdir)/builtins
811 @${SHELL} $(SUPPORT_SRC)mkinstalldirs $(DESTDIR)$(headersdir)/include
812 @${SHELL} $(SUPPORT_SRC)mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
813
814install-headers: install-headers-dirs
815 @for hf in $(INSTALLED_HEADERS) ; do \
816 ${INSTALL_DATA} $(srcdir)/"$$hf" $(DESTDIR)$(headersdir)/$$hf; \
817 done
818 @for hf in $(INSTALLED_INCFILES) ; do \
819 ${INSTALL_DATA} $(BASHINCDIR)/"$$hf" $(DESTDIR)$(headersdir)/include/$$hf; \
820 done
821 @for hf in $(INSTALLED_BUILTINS_HEADERS) ; do \
822 ${INSTALL_DATA} $(BUILTIN_SRCDIR)/"$$hf" $(DESTDIR)$(headersdir)/builtins/$$hf; \
823 done
824 @for hf in $(CREATED_HEADERS) ; do \
825 ${INSTALL_DATA} $(BUILD_DIR)/"$$hf" $(DESTDIR)$(headersdir)/$$hf; \
826 done
827 $(INSTALL_DATA) $(SDIR)/bash.pc $(DESTDIR)$(libdir)/pkgconfig/bash.pc
828
829uninstall-headers:
830 -( cd $(DESTDIR)$(headersdir) && $(RM) $(INSTALLED_HEADERS) )
831 -( cd $(DESTDIR)$(headersdir)/include && $(RM) $(INSTALLED_INCFILES) )
832 -( cd $(DESTDIR)$(headersdir)/builtins && $(RM) $(INSTALLED_BUILTINS_HEADERS) )
833 -( cd $(DESTDIR)$(headersdir) && $(RM) $(CREATED_HEADERS) )
834 -( $(RM) $(DESTDIR)$(libdir)/pkgconfig/bash.pc )
835
ccc6cda3 836uninstall: .made
f73dda09 837 $(RM) $(DESTDIR)$(bindir)/$(Program) $(DESTDIR)$(bindir)/bashbug
c677e9e0 838 -( cd $(DESTDIR)$(docdir) && ${RM} ${OTHER_INSTALLED_DOCS} )
ccc6cda3
JA
839 -( cd $(DOCDIR) ; $(MAKE) $(MFLAGS) \
840 man1dir=$(man1dir) man1ext=$(man1ext) \
841 man3dir=$(man3dir) man3ext=$(man3ext) \
f73dda09 842 infodir=$(infodir) htmldir=$(htmldir) DESTDIR=$(DESTDIR) $@ )
5e13499c 843 -( cd $(PO_DIR) ; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
54a5fbe1 844 -( cd $(LOADABLES_DIR) && $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
ccc6cda3 845
7117c2d2
JA
846.PHONY: basic-clean clean realclean maintainer-clean distclean mostlyclean maybe-clean
847
5e13499c
CR
848LIB_SUBDIRS = ${RL_LIBDIR} ${HIST_LIBDIR} ${TERM_LIBDIR} ${GLOB_LIBDIR} \
849 ${INTL_LIBDIR} ${TILDE_LIBDIR} ${ALLOC_LIBDIR} ${SH_LIBDIR}
850
ccc6cda3
JA
851basic-clean:
852 $(RM) $(OBJECTS) $(Program) bashbug
da719982 853 $(RM) .build .made version.h
ccc6cda3
JA
854
855clean: basic-clean
856 ( cd $(DOCDIR) && $(MAKE) $(MFLAGS) $@ )
857 ( cd builtins && $(MAKE) $(MFLAGS) $@ )
7117c2d2 858 -( cd $(SDIR) && $(MAKE) $(MFLAGS) $@ )
5e13499c
CR
859 -for libdir in ${LIB_SUBDIRS}; do \
860 (cd $$libdir && test -f Makefile && $(MAKE) $(MFLAGS) $@) ;\
861 done
862 -( cd $(PO_DIR) ; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
54a5fbe1 863 -( cd $(LOADABLES_DIR) && $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
ccc6cda3
JA
864 $(RM) $(CREATED_SUPPORT)
865
866mostlyclean: basic-clean
867 ( cd $(DOCDIR) && $(MAKE) $(MFLAGS) $@ )
868 ( cd builtins && $(MAKE) $(MFLAGS) $@ )
7117c2d2 869 -( cd $(SDIR) && $(MAKE) $(MFLAGS) $@ )
5e13499c
CR
870 -for libdir in ${LIB_SUBDIRS}; do \
871 (cd $$libdir && test -f Makefile && $(MAKE) $(MFLAGS) $@) ;\
872 done
873 -( cd $(PO_DIR) ; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
54a5fbe1 874 -( cd $(LOADABLES_DIR) && $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
ccc6cda3 875
7117c2d2 876distclean: basic-clean maybe-clean
ccc6cda3
JA
877 ( cd $(DOCDIR) && $(MAKE) $(MFLAGS) $@ )
878 ( cd builtins && $(MAKE) $(MFLAGS) $@ )
7117c2d2 879 -( cd $(SDIR) && $(MAKE) $(MFLAGS) $@ )
5e13499c
CR
880 -for libdir in ${LIB_SUBDIRS}; do \
881 (cd $$libdir && test -f Makefile && $(MAKE) $(MFLAGS) $@) ;\
882 done
883 -( cd $(PO_DIR) ; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
54a5fbe1 884 -( cd $(LOADABLES_DIR) && $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
ccc6cda3 885 $(RM) $(CREATED_CONFIGURE) tags TAGS
da719982 886 $(RM) $(CREATED_SUPPORT) Makefile $(CREATED_MAKEFILES) pathnames.h
ccc6cda3
JA
887
888maintainer-clean: basic-clean
889 @echo This command is intended for maintainers to use.
890 @echo It deletes files that may require special tools to rebuild.
f73dda09 891 $(RM) y.tab.c y.tab.h parser-built tags TAGS
ccc6cda3
JA
892 ( cd $(DOCDIR) && $(MAKE) $(MFLAGS) $@ )
893 ( cd builtins && $(MAKE) $(MFLAGS) $@ )
7117c2d2 894 ( cd $(SDIR) && $(MAKE) $(MFLAGS) $@ )
5e13499c
CR
895 -for libdir in ${LIB_SUBDIRS}; do \
896 (cd $$libdir && test -f Makefile && $(MAKE) $(MFLAGS) $@) ;\
897 done
898 -( cd $(PO_DIR) ; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
54a5fbe1 899 -( cd $(LOADABLES_DIR) && $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
ccc6cda3 900 $(RM) $(CREATED_CONFIGURE) $(CREATED_MAKEFILES)
da719982 901 $(RM) $(CREATED_SUPPORT) Makefile pathnames.h
ccc6cda3 902
7117c2d2
JA
903maybe-clean:
904 -if test "X$(topdir)" != "X$(BUILD_DIR)" ; then \
905 $(RM) parser-built y.tab.c y.tab.h ; \
906 fi
907
bb70624e 908recho$(EXEEXT): $(SUPPORT_SRC)recho.c
348a457e 909 @$(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) ${LDFLAGS_FOR_BUILD} -o $@ $(SUPPORT_SRC)recho.c ${LIBS_FOR_BUILD}
ccc6cda3 910
bb70624e 911zecho$(EXEEXT): $(SUPPORT_SRC)zecho.c
348a457e 912 @$(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) ${LDFLAGS_FOR_BUILD} -o $@ $(SUPPORT_SRC)zecho.c ${LIBS_FOR_BUILD}
d166f048 913
bb70624e 914printenv$(EXEEXT): $(SUPPORT_SRC)printenv.c
348a457e 915 @$(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) ${LDFLAGS_FOR_BUILD} -o $@ $(SUPPORT_SRC)printenv.c ${LIBS_FOR_BUILD}
ccc6cda3 916
dd4f3dd8 917xcase$(EXEEXT): $(SUPPORT_SRC)xcase.c
348a457e 918 @$(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) ${LDFLAGS_FOR_BUILD} -o $@ $(SUPPORT_SRC)xcase.c ${LIBS_FOR_BUILD}
dd4f3dd8 919
f73dda09 920test tests check: force $(Program) $(TESTS_SUPPORT)
ccc6cda3 921 @-test -d tests || mkdir tests
d166f048 922 @cp $(TESTS_SUPPORT) tests
ccc6cda3 923 @( cd $(srcdir)/tests && \
f6410766 924 PATH=$(BUILD_DIR)/tests:$$PATH THIS_SH=$(THIS_SH) $(SHELL) ${TESTSCRIPT} )
ccc6cda3
JA
925
926symlinks:
927 $(SHELL) $(SUPPORT_SRC)fixlinks -s $(srcdir)
928
929dist: force
930 @echo Bash distributions are created using $(srcdir)/support/mkdist.
931 @echo Here is a sample of the necessary commands:
54a5fbe1
CR
932 @echo $(Program) $(srcdir)/support/mkdist -m $(srcdir)/MANIFEST -s $(srcdir) -r ${PACKAGE} -t $(PACKAGE_VERSION)
933
934xdist: force
935 ( cd $(DOCDIR) && $(MAKE) $(MFLAGS) $@ )
936 ( cd po && $(MAKE) $(MFLAGS) $@ )
d166f048
JA
937
938depend: depends
939
bb70624e 940depends: force
d166f048 941 $(Program) $(SUPPORT_SRC)mkdep -c ${CC} -- ${CCFLAGS} ${CSOURCES}
ccc6cda3 942
f73dda09
JA
943#### PRIVATE TARGETS ####
944hashtest: hashlib.c
09f70f2f 945 $(CC) -DTEST_HASHING $(CCFLAGS) $(TEST_NBUCKETS) -o $@ $(srcdir)/hashlib.c xmalloc.o $(INTL_LIB)
f73dda09 946
ccc6cda3
JA
947############################ DEPENDENCIES ###############################
948
b72432fd 949# Files that depend on the definitions in config-top.h, which are not meant
ccc6cda3 950# to be changed
a3143574 951bashhist.o: config-top.h
b72432fd
JA
952shell.o: config-top.h
953input.o: config-top.h
954y.tab.o: config-top.h
955jobs.o: config-top.h
956nojobs.o: config-top.h
957execute_cmd.o: config-top.h
958variables.o: config-top.h
959builtins/command.o: config-top.h
960builtins/common.o: config-top.h
961builtins/break.o: config-top.h
962builtins/echo.o: config-top.h
963builtins/evalstring.o: config-top.h
964builtins/exit.o: config-top.h
965builtins/kill.o: config-top.h
d166f048
JA
966
967# shell basics
28ef6c31 968copy_cmd.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 969copy_cmd.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 970copy_cmd.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d166f048 971copy_cmd.o: make_cmd.h subst.h sig.h pathnames.h externs.h
bb70624e 972dispose_cmd.o: bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 973dispose_cmd.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h
f73dda09 974dispose_cmd.o: error.h general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 975dispose_cmd.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d166f048 976dispose_cmd.o: make_cmd.h subst.h sig.h pathnames.h externs.h
7117c2d2 977dispose_cmd.o: ${BASHINCDIR}/ocache.h
bb70624e 978error.o: config.h bashtypes.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h flags.h ${BASHINCDIR}/stdc.h error.h
f73dda09 979error.o: command.h general.h xmalloc.h externs.h input.h bashhist.h
d3a24ed2
CR
980error.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
981error.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
982error.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
983error.o: make_cmd.h subst.h sig.h pathnames.h externs.h
984error.o: input.h execute_cmd.h
bb70624e 985eval.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h trap.h flags.h ${DEFSRC}/common.h
28ef6c31 986eval.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 987eval.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 988eval.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d166f048 989eval.o: make_cmd.h subst.h sig.h pathnames.h externs.h
d3a24ed2 990eval.o: input.h execute_cmd.h
bb70624e 991execute_cmd.o: config.h bashtypes.h ${BASHINCDIR}/filecntl.h ${BASHINCDIR}/posixstat.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 992execute_cmd.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 993execute_cmd.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 994execute_cmd.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 995execute_cmd.o: make_cmd.h subst.h sig.h pathnames.h externs.h
bb70624e 996execute_cmd.o: ${BASHINCDIR}/memalloc.h ${GRAM_H} flags.h builtins.h jobs.h quit.h siglist.h
cce855bc 997execute_cmd.o: execute_cmd.h findcmd.h redir.h trap.h test.h pathexp.h
f73dda09
JA
998execute_cmd.o: $(DEFSRC)/common.h ${DEFDIR}/builtext.h ${GLOB_LIBSRC}/strmatch.h
999execute_cmd.o: ${BASHINCDIR}/posixtime.h ${BASHINCDIR}/chartypes.h
f3aad56d 1000execute_cmd.o: $(DEFSRC)/getopt.h
d3a24ed2 1001expr.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1002expr.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1003expr.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1004expr.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d166f048 1005expr.o: make_cmd.h subst.h sig.h pathnames.h externs.h
f73dda09 1006expr.o: ${BASHINCDIR}/chartypes.h
bb70624e 1007findcmd.o: config.h bashtypes.h ${BASHINCDIR}/filecntl.h ${BASHINCDIR}/posixstat.h bashansi.h
28ef6c31 1008findcmd.o: ${BASHINCDIR}/ansi_stdlib.h ${BASHINCDIR}/memalloc.h shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h
f73dda09 1009findcmd.o: ${BASHINCDIR}/stdc.h error.h general.h xmalloc.h variables.h arrayfunc.h conftypes.h quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h
cce855bc
JA
1010findcmd.o: dispose_cmd.h make_cmd.h subst.h sig.h pathnames.h externs.h
1011findcmd.o: flags.h hashlib.h pathexp.h hashcmd.h
f73dda09 1012findcmd.o: ${BASHINCDIR}/chartypes.h
d3a24ed2 1013flags.o: config.h flags.h
28ef6c31 1014flags.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1015flags.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1016flags.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
f73dda09 1017flags.o: make_cmd.h subst.h sig.h pathnames.h externs.h bashhist.h
bb70624e 1018general.o: config.h bashtypes.h ${BASHINCDIR}/posixstat.h ${BASHINCDIR}/filecntl.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1019general.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1020general.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1021general.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1022general.o: make_cmd.h subst.h sig.h pathnames.h externs.h
bb70624e 1023general.o: ${BASHINCDIR}/maxpath.h ${BASHINCDIR}/posixtime.h
f73dda09 1024general.o: ${BASHINCDIR}/chartypes.h
bb70624e 1025hashcmd.o: config.h ${BASHINCDIR}/posixstat.h bashtypes.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1026hashcmd.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1027hashcmd.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashcmd.h
bf6bd355 1028hashcmd.o: execute_cmd.h findcmd.h ${BASHINCDIR}/stdc.h pathnames.h hashlib.h
118fb670 1029hashcmd.o: quit.h sig.h
bb70624e 1030hashlib.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1031hashlib.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1032hashlib.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1033hashlib.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1034hashlib.o: make_cmd.h subst.h sig.h pathnames.h externs.h
bb70624e 1035input.o: config.h bashtypes.h ${BASHINCDIR}/filecntl.h ${BASHINCDIR}/posixstat.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
f73dda09 1036input.o: command.h ${BASHINCDIR}/stdc.h general.h xmalloc.h input.h error.h externs.h
bf6bd355 1037input.o: quit.h
28ef6c31 1038list.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1039list.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1040list.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1041list.o: make_cmd.h subst.h sig.h pathnames.h externs.h
12d937f9 1042locale.o: config.h bashtypes.h bashintl.h ${LIBINTL_H} bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1043locale.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1044locale.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1045locale.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1046locale.o: make_cmd.h subst.h sig.h pathnames.h externs.h
f73dda09 1047locale.o: ${BASHINCDIR}/chartypes.h
bb70624e 1048mailcheck.o: config.h bashtypes.h ${BASHINCDIR}/posixstat.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
f73dda09 1049mailcheck.o: ${BASHINCDIR}/posixtime.h
28ef6c31 1050mailcheck.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1051mailcheck.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1052mailcheck.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d166f048 1053mailcheck.o: make_cmd.h subst.h sig.h pathnames.h externs.h
d3a24ed2 1054mailcheck.o: execute_cmd.h mailcheck.h
bb70624e 1055make_cmd.o: config.h bashtypes.h ${BASHINCDIR}/filecntl.h bashansi.h
f73dda09
JA
1056make_cmd.o: command.h ${BASHINCDIR}/stdc.h general.h xmalloc.h error.h flags.h make_cmd.h
1057make_cmd.o: variables.h arrayfunc.h conftypes.h array.h hashlib.h subst.h input.h externs.h
118fb670 1058make_cmd.o: jobs.h quit.h sig.h siglist.h syntax.h dispose_cmd.h parser.h
adc6cff5 1059make_cmd.o: ${BASHINCDIR}/shmbutil.h ${BASHINCDIR}/shmbchar.h ${BASHINCDIR}/ocache.h
bb70624e 1060y.tab.o: config.h bashtypes.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h ${BASHINCDIR}/memalloc.h
28ef6c31 1061y.tab.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1062y.tab.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1063y.tab.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
f73dda09 1064y.tab.o: make_cmd.h subst.h sig.h pathnames.h externs.h test.h
d166f048
JA
1065y.tab.o: trap.h flags.h parser.h input.h mailcheck.h $(DEFSRC)/common.h
1066y.tab.o: $(DEFDIR)/builtext.h bashline.h bashhist.h jobs.h siglist.h alias.h
bb70624e 1067pathexp.o: config.h bashtypes.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1068pathexp.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1069pathexp.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1070pathexp.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
ccc6cda3 1071pathexp.o: make_cmd.h subst.h sig.h pathnames.h externs.h
d166f048 1072pathexp.o: pathexp.h flags.h
f73dda09 1073pathexp.o: $(GLOB_LIBSRC)/glob.h $(GLOB_LIBSRC)/strmatch.h
adc6cff5 1074pathexp.o: ${BASHINCDIR}/shmbutil.h ${BASHINCDIR}/shmbchar.h
bb70624e 1075print_cmd.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1076print_cmd.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1077print_cmd.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1078print_cmd.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1079print_cmd.o: make_cmd.h subst.h sig.h pathnames.h externs.h
d166f048 1080print_cmd.o: ${GRAM_H} $(DEFSRC)/common.h
bb70624e 1081redir.o: config.h bashtypes.h ${BASHINCDIR}/posixstat.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h ${BASHINCDIR}/filecntl.h
28ef6c31 1082redir.o: ${BASHINCDIR}/memalloc.h shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1083redir.o: general.h xmalloc.h variables.h arrayfunc.h conftypes.h array.h hashlib.h quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h
d3a24ed2 1084redir.o: dispose_cmd.h make_cmd.h subst.h sig.h pathnames.h externs.h
cce855bc 1085redir.o: flags.h execute_cmd.h redir.h input.h
bb70624e 1086shell.o: config.h bashtypes.h ${BASHINCDIR}/posixstat.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h ${BASHINCDIR}/filecntl.h
28ef6c31 1087shell.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1088shell.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1089shell.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1090shell.o: make_cmd.h subst.h sig.h pathnames.h externs.h
d166f048 1091shell.o: flags.h trap.h mailcheck.h builtins.h $(DEFSRC)/common.h
33fe8777 1092shell.o: jobs.h siglist.h input.h execute_cmd.h findcmd.h bashhist.h bashline.h
f73dda09 1093shell.o: ${GLOB_LIBSRC}/strmatch.h ${BASHINCDIR}/posixtime.h
d166f048 1094sig.o: config.h bashtypes.h
28ef6c31 1095sig.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1096sig.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1097sig.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1098sig.o: make_cmd.h subst.h sig.h pathnames.h externs.h
d166f048 1099sig.o: jobs.h siglist.h trap.h $(DEFSRC)/common.h bashline.h bashhist.h
c61bfbfd 1100sig.o: ${DEFDIR}/builtext.h
bf6bd355 1101siglist.o: config.h bashtypes.h siglist.h trap.h
f73dda09 1102stringlib.o: bashtypes.h ${BASHINCDIR}/chartypes.h
28ef6c31 1103stringlib.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1104stringlib.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1105stringlib.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1106stringlib.o: make_cmd.h subst.h sig.h pathnames.h externs.h
f73dda09 1107stringlib.o: ${GLOB_LIBSRC}/glob.h ${GLOB_LIBSRC}/strmatch.h
bb70624e 1108subst.o: config.h bashtypes.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h ${BASHINCDIR}/posixstat.h
28ef6c31 1109subst.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1110subst.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1111subst.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
9e51a74d 1112subst.o: make_cmd.h subst.h sig.h pathnames.h externs.h parser.h
bb70624e 1113subst.o: flags.h jobs.h siglist.h execute_cmd.h ${BASHINCDIR}/filecntl.h trap.h pathexp.h
d166f048 1114subst.o: mailcheck.h input.h $(DEFSRC)/getopt.h $(DEFSRC)/common.h
f73dda09
JA
1115subst.o: bashline.h bashhist.h ${GLOB_LIBSRC}/strmatch.h
1116subst.o: ${BASHINCDIR}/chartypes.h
adc6cff5 1117subst.o: ${BASHINCDIR}/shmbutil.h ${BASHINCDIR}/shmbchar.h
bf6bd355 1118subst.o: ${DEFDIR}/builtext.h
bb70624e 1119test.o: bashtypes.h ${BASHINCDIR}/posixstat.h ${BASHINCDIR}/filecntl.h
28ef6c31 1120test.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1121test.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1122test.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
cce855bc 1123test.o: make_cmd.h subst.h sig.h pathnames.h externs.h test.h
d3a24ed2 1124test.o: ${DEFSRC}/common.h
bb70624e 1125trap.o: config.h bashtypes.h trap.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1126trap.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1127trap.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1128trap.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1129trap.o: make_cmd.h subst.h sig.h pathnames.h externs.h
d166f048 1130trap.o: signames.h $(DEFSRC)/common.h
bf6bd355 1131trap.o: ${DEFDIR}/builtext.h jobs.h
bb70624e 1132unwind_prot.o: config.h bashtypes.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h command.h ${BASHINCDIR}/stdc.h
f73dda09 1133unwind_prot.o: general.h xmalloc.h unwind_prot.h quit.h sig.h
bb70624e 1134variables.o: config.h bashtypes.h ${BASHINCDIR}/posixstat.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1135variables.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1136variables.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1137variables.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1138variables.o: make_cmd.h subst.h sig.h pathnames.h externs.h
cce855bc 1139variables.o: flags.h execute_cmd.h mailcheck.h input.h $(DEFSRC)/common.h
f73dda09 1140variables.o: findcmd.h bashhist.h hashcmd.h pathexp.h
d3a24ed2 1141variables.o: pcomplete.h ${BASHINCDIR}/chartypes.h
bf6bd355 1142variables.o: ${BASHINCDIR}/posixtime.h assoc.h
c61bfbfd 1143variables.o: version.h $(DEFDIR)/builtext.h
d3a24ed2 1144version.o: conftypes.h patchlevel.h version.h
bb70624e 1145xmalloc.o: config.h bashtypes.h ${BASHINCDIR}/ansi_stdlib.h error.h
d166f048
JA
1146
1147# job control
1148
bb70624e
JA
1149jobs.o: config.h bashtypes.h trap.h ${BASHINCDIR}/filecntl.h input.h ${BASHINCDIR}/shtty.h
1150jobs.o: bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1151jobs.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1152jobs.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1153jobs.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
bf6bd355 1154jobs.o: execute_cmd.h make_cmd.h subst.h sig.h pathnames.h externs.h
d166f048 1155jobs.o: jobs.h flags.h $(DEFSRC)/common.h $(DEFDIR)/builtext.h
bb70624e 1156jobs.o: ${BASHINCDIR}/posixwait.h ${BASHINCDIR}/unionwait.h
f73dda09 1157jobs.o: ${BASHINCDIR}/posixtime.h
bb70624e 1158nojobs.o: config.h bashtypes.h ${BASHINCDIR}/filecntl.h bashjmp.h ${BASHINCDIR}/posixjmp.h
f73dda09 1159nojobs.o: command.h ${BASHINCDIR}/stdc.h general.h xmalloc.h jobs.h quit.h siglist.h externs.h
bb70624e 1160nojobs.o: sig.h error.h ${BASHINCDIR}/shtty.h input.h
29f3080f 1161nojobs.o: $(DEFDIR)/builtext.h
d166f048
JA
1162
1163# shell features that may be compiled in
1164
bb70624e 1165array.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1166array.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1167array.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1168array.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1169array.o: make_cmd.h subst.h sig.h pathnames.h externs.h
d166f048 1170array.o: $(DEFSRC)/common.h
f73dda09
JA
1171arrayfunc.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
1172arrayfunc.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
1173arrayfunc.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
1174arrayfunc.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
bf6bd355 1175arrayfunc.o: make_cmd.h subst.h sig.h pathnames.h externs.h pathexp.h
f73dda09 1176arrayfunc.o: $(DEFSRC)/common.h
adc6cff5 1177arrayfunc.o: ${BASHINCDIR}/shmbutil.h ${BASHINCDIR}/shmbchar.h
4ac1ff98
CR
1178assoc.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
1179assoc.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h
1180assoc.o: command.h ${BASHINCDIR}/stdc.h error.h
1181assoc.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h
1182assoc.o: assoc.h hashlib.h
1183assoc.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
1184assoc.o: make_cmd.h subst.h sig.h pathnames.h externs.h
1185assoc.o: $(DEFSRC)/common.h
bb70624e 1186braces.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1187braces.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1188braces.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1189braces.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1190braces.o: make_cmd.h subst.h sig.h pathnames.h externs.h
adc6cff5 1191braces.o: ${BASHINCDIR}/shmbutil.h ${BASHINCDIR}/shmbchar.h
bb70624e 1192alias.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h command.h ${BASHINCDIR}/stdc.h
f73dda09 1193alias.o: general.h xmalloc.h bashtypes.h externs.h alias.h
d3a24ed2 1194alias.o: pcomplete.h
f73dda09 1195alias.o: ${BASHINCDIR}/chartypes.h
bb70624e
JA
1196
1197pcomplib.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h bashtypes.h
28ef6c31 1198pcomplib.o: ${BASHINCDIR}/stdc.h hashlib.h pcomplete.h shell.h syntax.h
f73dda09 1199pcomplib.o: bashjmp.h command.h general.h xmalloc.h error.h variables.h arrayfunc.h conftypes.h quit.h
bb70624e
JA
1200pcomplib.o: unwind_prot.h dispose_cmd.h make_cmd.h subst.h sig.h pathnames.h
1201pcomplib.o: externs.h ${BASHINCDIR}/maxpath.h
1202
1203pcomplete.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h bashtypes.h
28ef6c31 1204pcomplete.o: ${BASHINCDIR}/stdc.h hashlib.h pcomplete.h shell.h syntax.h
f73dda09 1205pcomplete.o: bashjmp.h command.h general.h xmalloc.h error.h variables.h arrayfunc.h conftypes.h quit.h
bb70624e 1206pcomplete.o: unwind_prot.h dispose_cmd.h make_cmd.h subst.h sig.h pathnames.h
d3a24ed2 1207pcomplete.o: externs.h ${BASHINCDIR}/maxpath.h execute_cmd.h
adbaf2b3 1208pcomplete.o: ${DEFDIR}/builtext.h
d166f048
JA
1209
1210# library support files
1211
bb70624e
JA
1212bashhist.o: config.h bashtypes.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h ${BASHINCDIR}/posixstat.h
1213bashhist.o: ${BASHINCDIR}/filecntl.h
28ef6c31 1214bashhist.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1215bashhist.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1216bashhist.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1217bashhist.o: make_cmd.h subst.h sig.h pathnames.h externs.h
d166f048 1218bashhist.o: flags.h input.h parser.h pathexp.h $(DEFSRC)/common.h bashline.h
f73dda09 1219bashhist.o: $(GLOB_LIBSRC)/strmatch.h
bb70624e 1220bashline.o: config.h bashtypes.h ${BASHINCDIR}/posixstat.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1221bashline.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h command.h ${BASHINCDIR}/stdc.h error.h
f73dda09 1222bashline.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h array.h hashlib.h
bb70624e 1223bashline.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1224bashline.o: make_cmd.h subst.h sig.h pathnames.h externs.h
cce855bc 1225bashline.o: builtins.h bashhist.h bashline.h execute_cmd.h findcmd.h pathexp.h
d166f048 1226bashline.o: $(DEFSRC)/common.h $(GLOB_LIBSRC)/glob.h alias.h
7117c2d2 1227bashline.o: pcomplete.h ${BASHINCDIR}/chartypes.h input.h
51f7ea36 1228bashline.o: ${BASHINCDIR}/shmbutil.h ${BASHINCDIR}/shmbchar.h
bb70624e 1229bracecomp.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
bf6bd355
CR
1230bracecomp.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h
1231bracecomp.o: command.h ${BASHINCDIR}/stdc.h error.h
1232bracecomp.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h
1233bracecomp.o: array.h hashlib.h alias.h builtins.h
bb70624e 1234bracecomp.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1235bracecomp.o: make_cmd.h subst.h sig.h pathnames.h externs.h
ccc6cda3 1236
d166f048 1237# library dependencies
ccc6cda3 1238
d166f048 1239bashline.o: $(RL_LIBSRC)/rlconf.h
b72432fd 1240bashline.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/rlstdc.h
d166f048
JA
1241bashline.o: $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/readline.h
1242bracecomp.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/chardefs.h
b72432fd
JA
1243bracecomp.o: $(RL_LIBSRC)/readline.h $(RL_LIBSRC)/rlstdc.h
1244y.tab.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/chardefs.h
1245y.tab.o: $(RL_LIBSRC)/readline.h $(RL_LIBSRC)/rlstdc.h
1246subst.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/chardefs.h
1247subst.o: $(RL_LIBSRC)/readline.h $(RL_LIBSRC)/rlstdc.h
1248
1249shell.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h
1250subst.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h
1251bashline.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h
1252bashhist.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h
1253y.tab.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h
ccc6cda3 1254
ccc6cda3
JA
1255execute_cmd.o: $(TILDE_LIBSRC)/tilde.h
1256general.o: $(TILDE_LIBSRC)/tilde.h
1257mailcheck.o: $(TILDE_LIBSRC)/tilde.h
1258shell.o: $(TILDE_LIBSRC)/tilde.h
1259subst.o: $(TILDE_LIBSRC)/tilde.h
1260variables.o: $(TILDE_LIBSRC)/tilde.h
1261
5e13499c 1262# libintl dependencies
12d937f9
CR
1263arrayfunc.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1264bashhist.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1265bashline.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1266braces.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1267error.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1268eval.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1269execute_cmd.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1270expr.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1271general.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1272input.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1273jobs.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1274mailcheck.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1275make_cmd.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1276nojobs.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
108a433e 1277y.tab.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
12d937f9
CR
1278pcomplete.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1279pcomplib.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1280print_cmd.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1281redir.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1282shell.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1283sig.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1284siglist.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1285subst.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1286test.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1287trap.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1288variables.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1289version.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1290xmalloc.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
5e13499c 1291
dc8fbaf9
CR
1292signames.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
1293
d166f048
JA
1294# XXX - dependencies checked through here
1295
1296# builtin c sources
bb70624e 1297builtins/bashgetopt.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
f73dda09
JA
1298builtins/bashgetopt.o: shell.h syntax.h config.h bashjmp.h command.h general.h xmalloc.h error.h
1299builtins/bashgetopt.o: variables.h arrayfunc.h conftypes.h quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1300builtins/bashgetopt.o: make_cmd.h subst.h sig.h pathnames.h externs.h
d166f048 1301builtins/bashgetopt.o: $(DEFSRC)/common.h
f73dda09 1302builtins/bashgetopt.o: ${BASHINCDIR}/chartypes.h
bb70624e 1303builtins/common.o: bashtypes.h ${BASHINCDIR}/posixstat.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1304builtins/common.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h command.h
f73dda09 1305builtins/common.o: ${BASHINCDIR}/memalloc.h variables.h arrayfunc.h conftypes.h input.h siglist.h
bb70624e 1306builtins/common.o: quit.h unwind_prot.h ${BASHINCDIR}/maxpath.h jobs.h builtins.h
d3a24ed2 1307builtins/common.o: dispose_cmd.h make_cmd.h subst.h externs.h bashhist.h
f73dda09 1308builtins/common.o: execute_cmd.h ${BASHINCDIR}/stdc.h general.h xmalloc.h error.h pathnames.h
d166f048 1309builtins/common.o: ${DEFDIR}/builtext.h
f73dda09 1310builtins/common.o: ${BASHINCDIR}/chartypes.h
bb70624e 1311builtins/evalfile.o: bashtypes.h ${BASHINCDIR}/posixstat.h ${BASHINCDIR}/filecntl.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
f73dda09
JA
1312builtins/evalfile.o: shell.h syntax.h config.h bashjmp.h command.h general.h xmalloc.h error.h
1313builtins/evalfile.o: variables.h arrayfunc.h conftypes.h quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1314builtins/evalfile.o: make_cmd.h subst.h sig.h pathnames.h externs.h
d166f048
JA
1315builtins/evalfile.o: jobs.h builtins.h flags.h input.h execute_cmd.h
1316builtins/evalfile.o: bashhist.h $(DEFSRC)/common.h
bb70624e 1317builtins/evalstring.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
28ef6c31 1318builtins/evalstring.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h command.h siglist.h
f73dda09 1319builtins/evalstring.o: ${BASHINCDIR}/memalloc.h variables.h arrayfunc.h conftypes.h input.h
bb70624e 1320builtins/evalstring.o: quit.h unwind_prot.h ${BASHINCDIR}/maxpath.h jobs.h builtins.h
d166f048
JA
1321builtins/evalstring.o: dispose_cmd.h make_cmd.h subst.h externs.h
1322builtins/evalstring.o: jobs.h builtins.h flags.h input.h execute_cmd.h
a3143574 1323builtins/evalstring.o: bashhist.h $(DEFSRC)/common.h pathnames.h
bb70624e 1324builtins/getopt.o: config.h ${BASHINCDIR}/memalloc.h
f73dda09
JA
1325builtins/getopt.o: shell.h syntax.h bashjmp.h command.h general.h xmalloc.h error.h
1326builtins/getopt.o: variables.h arrayfunc.h conftypes.h quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h
d3a24ed2 1327builtins/getopt.o: make_cmd.h subst.h sig.h pathnames.h externs.h
d166f048 1328builtins/getopt.o: $(DEFSRC)/getopt.h
bb70624e
JA
1329builtins/mkbuiltins.o: config.h bashtypes.h ${BASHINCDIR}/posixstat.h ${BASHINCDIR}/filecntl.h
1330builtins/mkbuiltins.o: bashansi.h ${BASHINCDIR}/ansi_stdlib.h
d166f048
JA
1331
1332# builtin def files
f73dda09 1333builtins/alias.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bf6bd355 1334builtins/alias.o: quit.h $(DEFSRC)/common.h pathnames.h
28ef6c31 1335builtins/alias.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h command.h ${BASHINCDIR}/stdc.h unwind_prot.h
f73dda09
JA
1336builtins/alias.o: dispose_cmd.h make_cmd.h subst.h externs.h variables.h arrayfunc.h conftypes.h
1337builtins/bind.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1338builtins/bind.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1339builtins/bind.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h quit.h
bf6bd355 1340builtins/bind.o: $(DEFSRC)/bashgetopt.h pathnames.h
f73dda09
JA
1341builtins/break.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1342builtins/break.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h quit.h
bb70624e 1343builtins/break.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
bf6bd355 1344builtins/break.o: pathnames.h
f73dda09 1345builtins/builtin.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
7117c2d2 1346builtins/builtin.o: quit.h $(DEFSRC)/common.h $(DEFSRC)/bashgetopt.h
f73dda09 1347builtins/builtin.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bb70624e 1348builtins/builtin.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
bf6bd355 1349builtins/builtin.o: pathnames.h
d3a24ed2
CR
1350builtins/caller.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1351builtins/caller.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
1352builtins/caller.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
1353builtins/caller.o: $(DEFSRC)/common.h quit.h
1354builtins/caller.o: ${BASHINCDIR}/chartypes.h bashtypes.h
bf6bd355 1355builtins/caller.o: ${DEFDIR}/builtext.h pathnames.h
f73dda09
JA
1356builtins/cd.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1357builtins/cd.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bb70624e 1358builtins/cd.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
bf6bd355 1359builtins/cd.o: $(DEFSRC)/common.h quit.h pathnames.h
f73dda09 1360builtins/command.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
ccc6cda3 1361builtins/command.o: quit.h $(DEFSRC)/bashgetopt.h
f73dda09 1362builtins/command.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bf6bd355 1363builtins/command.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h pathnames.h
f73dda09
JA
1364builtins/declare.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1365builtins/declare.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h quit.h
bb70624e 1366builtins/declare.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
c28fcb7e 1367builtins/declare.o: $(DEFSRC)/bashgetopt.h pathnames.h flags.h
f73dda09
JA
1368builtins/echo.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1369builtins/echo.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h quit.h
bb70624e 1370builtins/echo.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
bf6bd355 1371builtins/echo.o: pathnames.h
f73dda09
JA
1372builtins/enable.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1373builtins/enable.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h quit.h
bb70624e 1374builtins/enable.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
bf6bd355 1375builtins/enable.o: pcomplete.h pathnames.h
f73dda09
JA
1376builtins/eval.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1377builtins/eval.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h quit.h
bb70624e 1378builtins/eval.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
a3143574 1379builtins/eval.o: pathnames.h
bf6bd355 1380builtins/exec.o: bashtypes.h pathnames.h
f73dda09
JA
1381builtins/exec.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1382builtins/exec.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
d3a24ed2 1383builtins/exec.o: dispose_cmd.h make_cmd.h subst.h externs.h execute_cmd.h
bb70624e 1384builtins/exec.o: findcmd.h flags.h quit.h $(DEFSRC)/common.h ${BASHINCDIR}/stdc.h
bf6bd355 1385builtins/exec.o: pathnames.h
d3a24ed2 1386builtins/exit.o: bashtypes.h
f73dda09
JA
1387builtins/exit.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1388builtins/exit.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h quit.h
bb70624e 1389builtins/exit.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
bf6bd355 1390builtins/exit.o: pathnames.h
bb70624e
JA
1391builtins/fc.o: bashtypes.h ${BASHINCDIR}/posixstat.h
1392builtins/fc.o: bashansi.h ${BASHINCDIR}/ansi_stdlib.h builtins.h command.h ${BASHINCDIR}/stdc.h
f73dda09
JA
1393builtins/fc.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1394builtins/fc.o: flags.h unwind_prot.h variables.h arrayfunc.h conftypes.h shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h
bb70624e 1395builtins/fc.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h quit.h
bf6bd355 1396builtins/fc.o: $(DEFSRC)/bashgetopt.h bashhist.h pathnames.h
f73dda09 1397builtins/fc.o: ${BASHINCDIR}/chartypes.h
d3a24ed2 1398builtins/fg_bg.o: bashtypes.h $(DEFSRC)/bashgetopt.h
f73dda09
JA
1399builtins/fg_bg.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1400builtins/fg_bg.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h quit.h
bb70624e 1401builtins/fg_bg.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
bf6bd355 1402builtins/fg_bg.o: pathnames.h
f73dda09
JA
1403builtins/getopts.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1404builtins/getopts.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h quit.h
bb70624e 1405builtins/getopts.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
bf6bd355 1406builtins/getopts.o: pathnames.h
d3a24ed2 1407builtins/hash.o: bashtypes.h
bb70624e 1408builtins/hash.o: builtins.h command.h findcmd.h ${BASHINCDIR}/stdc.h $(DEFSRC)/common.h
f73dda09
JA
1409builtins/hash.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1410builtins/hash.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h quit.h
bf6bd355 1411builtins/hash.o: pathnames.h
f73dda09 1412builtins/help.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1413builtins/help.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1414builtins/help.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h quit.h
bf6bd355
CR
1415builtins/help.o: $(GLOB_LIBSRC)/glob.h pathnames.h
1416builtins/history.o: bashtypes.h pathnames.h
f73dda09 1417builtins/history.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1418builtins/history.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
28ef6c31 1419builtins/history.o: ${BASHINCDIR}/filecntl.h shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h
f73dda09
JA
1420builtins/history.o: bashhist.h variables.h arrayfunc.h conftypes.h
1421builtins/inlib.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1422builtins/inlib.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h quit.h
bb70624e 1423builtins/inlib.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
bf6bd355 1424builtins/inlib.o: pathnames.h
f73dda09 1425builtins/jobs.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
ccc6cda3 1426builtins/jobs.o: quit.h $(DEFSRC)/bashgetopt.h
f73dda09 1427builtins/jobs.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bb70624e 1428builtins/jobs.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
bf6bd355 1429builtins/jobs.o: pathnames.h
f73dda09 1430builtins/kill.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1431builtins/kill.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1432builtins/kill.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h trap.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bf6bd355 1433builtins/kill.o: pathnames.h
f73dda09 1434builtins/let.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1435builtins/let.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1436builtins/let.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bf6bd355 1437builtins/let.o: pathnames.h
bb70624e 1438builtins/printf.o: config.h ${BASHINCDIR}/memalloc.h bashjmp.h command.h error.h
f73dda09 1439builtins/printf.o: general.h xmalloc.h quit.h dispose_cmd.h make_cmd.h subst.h
28ef6c31 1440builtins/printf.o: externs.h sig.h pathnames.h shell.h syntax.h unwind_prot.h
f73dda09 1441builtins/printf.o: variables.h arrayfunc.h conftypes.h ${BASHINCDIR}/stdc.h $(DEFSRC)/bashgetopt.h
bf6bd355 1442builtins/printf.o: ${BASHINCDIR}/chartypes.h
f73dda09 1443builtins/pushd.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1444builtins/pushd.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1445builtins/pushd.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bf6bd355 1446builtins/pushd.o: $(DEFSRC)/common.h pathnames.h
f73dda09 1447builtins/read.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1448builtins/read.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1449builtins/read.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bf6bd355 1450builtins/read.o: pathnames.h
f73dda09 1451builtins/return.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1452builtins/return.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1453builtins/return.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bf6bd355 1454builtins/return.o: pathnames.h
f73dda09 1455builtins/set.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1456builtins/set.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1457builtins/set.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h flags.h
bf6bd355 1458builtins/set.o: pathnames.h
f73dda09 1459builtins/setattr.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
ccc6cda3 1460builtins/setattr.o: quit.h $(DEFSRC)/common.h $(DEFSRC)/bashgetopt.h
f73dda09 1461builtins/setattr.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bb70624e 1462builtins/setattr.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
c28fcb7e 1463builtins/setattr.o: pathnames.h flags.h
f73dda09 1464builtins/shift.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1465builtins/shift.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1466builtins/shift.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bb70624e 1467builtins/shift.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
bf6bd355 1468builtins/shift.o: pathnames.h
f73dda09 1469builtins/shopt.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h
d166f048 1470builtins/shopt.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h
f73dda09 1471builtins/shopt.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h unwind_prot.h variables.h arrayfunc.h conftypes.h ${BASHINCDIR}/maxpath.h
bf6bd355 1472builtins/shopt.o: $(DEFSRC)/common.h $(DEFSRC)/bashgetopt.h pathnames.h
74d0116b 1473builtins/shopt.o: bashhist.h bashline.h
f73dda09 1474builtins/source.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1475builtins/source.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1476builtins/source.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
d3a24ed2 1477builtins/source.o: findcmd.h $(DEFSRC)/bashgetopt.h flags.h trap.h
bf6bd355 1478builtins/source.o: pathnames.h
f73dda09 1479builtins/suspend.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1480builtins/suspend.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1481builtins/suspend.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bf6bd355 1482builtins/suspend.o: pathnames.h
f73dda09 1483builtins/test.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1484builtins/test.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1485builtins/test.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bf6bd355 1486builtins/test.o: test.h pathnames.h
f73dda09 1487builtins/times.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1488builtins/times.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1489builtins/times.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bf6bd355 1490builtins/times.o: pathnames.h
f73dda09 1491builtins/trap.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
ccc6cda3 1492builtins/trap.o: quit.h $(DEFSRC)/common.h
f73dda09 1493builtins/trap.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bb70624e 1494builtins/trap.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
bf6bd355 1495builtins/trap.o: pathnames.h
f73dda09 1496builtins/type.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
cce855bc 1497builtins/type.o: quit.h $(DEFSRC)/common.h findcmd.h
f73dda09 1498builtins/type.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bb70624e 1499builtins/type.o: dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
bf6bd355 1500builtins/type.o: pathnames.h
f73dda09 1501builtins/ulimit.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1502builtins/ulimit.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1503builtins/ulimit.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bf6bd355 1504builtins/ulimit.o: pathnames.h
f73dda09 1505builtins/umask.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1506builtins/umask.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1507builtins/umask.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bf6bd355 1508builtins/umask.o: ${BASHINCDIR}/chartypes.h pathnames.h
f73dda09 1509builtins/wait.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
bb70624e 1510builtins/wait.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
f73dda09 1511builtins/wait.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bf6bd355 1512builtins/wait.o: ${BASHINCDIR}/chartypes.h pathnames.h
bb70624e 1513
28ef6c31 1514builtins/complete.o: config.h shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h
f73dda09 1515builtins/complete.o: unwind_prot.h variables.h arrayfunc.h conftypes.h
bb70624e 1516builtins/complete.o: bashtypes.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h
1573ba78
CR
1517builtins/complete.o: builtins.h pathnames.h general.h
1518builtins/complete.o: bashtypes.h ${BASHINCDIR}/chartypes.h xmalloc.h
bb70624e
JA
1519builtins/complete.o: pcomplete.h
1520builtins/complete.o: ${DEFSRC}/common.h ${DEFSRC}/bashgetopt.h
6a8fd0ed
CR
1521builtins/mapfile.o: command.h config.h ${BASHINCDIR}/memalloc.h error.h general.h xmalloc.h ${BASHINCDIR}/maxpath.h
1522builtins/mapfile.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h ${BASHINCDIR}/stdc.h
1523builtins/mapfile.o: shell.h syntax.h bashjmp.h ${BASHINCDIR}/posixjmp.h sig.h unwind_prot.h variables.h arrayfunc.h conftypes.h
bf6bd355 1524builtins/mapfile.o: pathnames.h
ccc6cda3 1525
5e13499c 1526# libintl dependencies
12d937f9
CR
1527builtins/bind.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1528builtins/break.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1529builtins/caller.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1530builtins/cd.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1531builtins/common.c: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1532builtins/complete.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1533builtins/declare.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1534builtins/enable.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1535builtins/evalfile.c: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1536builtins/exec.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1537builtins/exit.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1538builtins/fc.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1539builtins/fg_bg.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1540builtins/getopt.c: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1541builtins/hash.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1542builtins/help.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1543builtins/history.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1544builtins/inlib.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1545builtins/jobs.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1546builtins/kill.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1547builtins/let.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
6a8fd0ed 1548builtins/mapfile.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
d3ad40de 1549builtins/mkbuiltins.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
12d937f9
CR
1550builtins/printf.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1551builtins/pushd.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1552builtins/read.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1553builtins/return.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1554builtins/set.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1555builtins/setattr.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1556builtins/shift.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1557builtins/shopt.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1558builtins/source.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1559builtins/suspend.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1560builtins/type.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1561builtins/ulimit.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
1562builtins/umask.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
5e13499c 1563
d166f048 1564# builtin library dependencies
ccc6cda3 1565builtins/bind.o: $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/readline.h
b72432fd 1566builtins/bind.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/rlstdc.h
ccc6cda3 1567
b72432fd
JA
1568builtins/bind.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h
1569builtins/fc.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h
1570builtins/history.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h
ccc6cda3
JA
1571
1572builtins/common.o: $(TILDE_LIBSRC)/tilde.h
1573builtins/cd.o: $(TILDE_LIBSRC)/tilde.h
1574
1575builtins/alias.o: $(DEFSRC)/alias.def
1576builtins/bind.o: $(DEFSRC)/bind.def
1577builtins/break.o: $(DEFSRC)/break.def
1578builtins/builtin.o: $(DEFSRC)/builtin.def
d3a24ed2 1579builtins/caller.o: $(DEFSRC)/caller.def
ccc6cda3
JA
1580builtins/cd.o: $(DEFSRC)/cd.def
1581builtins/colon.o: $(DEFSRC)/colon.def
1582builtins/command.o: $(DEFSRC)/command.def
bb70624e 1583builtins/complete.o: $(DEFSRC)/complete.def
ccc6cda3
JA
1584builtins/declare.o: $(DEFSRC)/declare.def
1585builtins/echo.o: $(DEFSRC)/echo.def
1586builtins/enable.o: $(DEFSRC)/enable.def
1587builtins/eval.o: $(DEFSRC)/eval.def
1588builtins/exec.o: $(DEFSRC)/exec.def
1589builtins/exit.o: $(DEFSRC)/exit.def
1590builtins/fc.o: $(DEFSRC)/fc.def
1591builtins/fg_bg.o: $(DEFSRC)/fg_bg.def
1592builtins/getopts.o: $(DEFSRC)/getopts.def
1593builtins/hash.o: $(DEFSRC)/hash.def
1594builtins/help.o: $(DEFSRC)/help.def
1595builtins/history.o: $(DEFSRC)/history.def
1596builtins/inlib.o: $(DEFSRC)/inlib.def
1597builtins/jobs.o: $(DEFSRC)/jobs.def
1598builtins/kill.o: $(DEFSRC)/kill.def
1599builtins/let.o: $(DEFSRC)/let.def
6a8fd0ed 1600builtins/mapfile.o: $(DEFSRC)/mapfile.def
ccc6cda3
JA
1601builtins/pushd.o: $(DEFSRC)/pushd.def
1602builtins/read.o: $(DEFSRC)/read.def
1603builtins/reserved.o: $(DEFSRC)/reserved.def
1604builtins/return.o: $(DEFSRC)/return.def
1605builtins/set.o: $(DEFSRC)/set.def
1606builtins/setattr.o: $(DEFSRC)/setattr.def
1607builtins/shift.o: $(DEFSRC)/shift.def
1608builtins/shopt.o: $(DEFSRC)/shopt.def
1609builtins/source.o: $(DEFSRC)/source.def
1610builtins/suspend.o: $(DEFSRC)/suspend.def
1611builtins/test.o: $(DEFSRC)/test.def
1612builtins/times.o: $(DEFSRC)/times.def
1613builtins/trap.o: $(DEFSRC)/trap.def
1614builtins/type.o: $(DEFSRC)/type.def
1615builtins/ulimit.o: $(DEFSRC)/ulimit.def
1616builtins/umask.o: $(DEFSRC)/umask.def
1617builtins/wait.o: $(DEFSRC)/wait.def