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