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