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