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