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