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