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