1 # Makefile for bash-2.01, version 2.32
3 # Make sure the first target in the makefile is the right one
6 # Include some boilerplate Gnu makefile definitions.
9 exec_prefix = @exec_prefix@
13 includedir = @includedir@
19 man1dir = $(mandir)/$(manpfx)$(man1ext)
21 man3dir = $(mandir)/$(manpfx)$(man3ext)
24 BUILD_DIR = @BUILD_DIR@
38 INSTALL_PROGRAM = @INSTALL_PROGRAM@
39 INSTALL_DATA = @INSTALL_DATA@
44 TESTSCRIPT = @TESTSCRIPT@
46 #If you have purify, and want to use it, uncomment this definition or
47 # run the make as `make PURIFY=purify'
48 # or run configure with the --with-purify argument.
51 # Here is a rule for making .o files from .c files that does not
52 # force the type of the machine (like -M_MACHINE) into the flags.
55 $(CC) $(CCFLAGS) -c $<
57 # The name of this program and some version information.
60 PatchLevel = @BASHPATCH@
67 THIS_SH = $(BUILD_DIR)/$(Program)
69 # PROFILE_FLAGS is either -pg, to generate profiling info for use
70 # with gprof, or nothing (the default).
73 # The GNU coding standards don't recognize the possibility that
74 # other information besides optimization and debugging might be
75 # passed to cc. A different name should have been used.
77 LOCAL_CFLAGS = @LOCAL_CFLAGS@
79 LOCAL_DEFS = @LOCAL_DEFS@
80 LOCAL_LIBS = @LOCAL_LIBS@
81 LIBS = $(BUILTINS_LIB) $(LIBRARIES) $(LOCAL_LIBS) @LIBS@
82 LDFLAGS = @LDFLAGS@ $(LOCAL_LDFLAGS) $(PROFILE_FLAGS) $(CFLAGS)
83 LOCAL_LDFLAGS = @LOCAL_LDFLAGS@
85 SYSTEM_FLAGS = -DPROGRAM='"$(Program)"' -DHOSTTYPE='"$(Machine)"' -DOSTYPE='"$(OS)"' -DMACHTYPE='"$(MACHTYPE)"'
87 CCFLAGS = $(PROFILE_FLAGS) $(SYSTEM_FLAGS) $(LOCAL_DEFS) \
88 $(DEFS) $(LOCAL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS)
90 INCLUDES = -I. -I$(srcdir) -I$(LIBSRC)
92 GCC_LINT_FLAGS = -ansi -Wall -Wshadow -Wpointer-arith -Wcast-qual \
93 -Wwrite-strings -Werror -Wstrict-prototypes \
95 GCC_LINT_CFLAGS = $(CCFLAGS) $(GCC_LINT_FLAGS)
104 LIBSRC = $(srcdir)/$(LIBSUBDIR)
106 SUBDIR_INCLUDES = -I. -I$(topdir) -I$(topdir)/$(LIBSUBDIR) -I$(includedir)
108 # we assume for now that readline source is being shipped with bash
109 RL_LIBSRC = $(LIBSRC)/readline
110 RL_LIBDOC = $(RL_LIBSRC)/doc
111 RL_LIBDIR = $(dot)/$(LIBSUBDIR)/readline
112 RL_ABSSRC = ${topdir}/$(RL_LIBDIR)
114 READLINE_LIB = @READLINE_LIB@
115 READLINE_LIBRARY = $(RL_LIBDIR)/libreadline.a
116 READLINE_LDFLAGS = -L${RL_LIBDIR}
117 READLINE_DEP = @READLINE_DEP@
119 # The source, object and documentation of the GNU Readline library.
120 READLINE_SOURCE = $(RL_LIBSRC)/rldefs.h $(RL_LIBSRC)/rlconf.h \
121 $(RL_LIBSRC)/readline.h $(RL_LIBSRC)/tcap.h \
122 $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/keymaps.h \
123 $(RL_LIBSRC)/history.h $(RL_LIBSRC)/histlib.h \
124 $(RL_LIBSRC)/posixstat.h $(RL_LIBSRC)/tilde.h \
125 $(RL_LIBSRC)/funmap.c $(RL_LIBSRC)/emacs_keymap.c \
126 $(RL_LIBSRC)/search.c $(RL_LIBSRC)/vi_keymap.c \
127 $(RL_LIBSRC)/keymaps.c $(RL_LIBSRC)/parens.c \
128 $(RL_LIBSRC)/vi_mode.c $(RL_LIBSRC)/callback.c \
129 $(RL_LIBSRC)/readline.c $(RL_LIBSRC)/tilde.c \
130 $(RL_LIBSRC)/rltty.c $(RL_LIBSRC)/complete.c \
131 $(RL_LIBSRC)/bind.c $(RL_LIBSRC)/isearch.c \
132 $(RL_LIBSRC)/display.c $(RL_LIBSRC)/signals.c \
133 $(RL_LIBSRC)/util.c $(RL_LIBSRC)/kill.c \
134 $(RL_LIBSRC)/undo.c $(RL_LIBSRC)/macro.c \
135 $(RL_LIBSRC)/terminal.c $(RL_LIBSRC)/nls.c \
136 $(RL_LIBSRC)/input.c $(RL_LIBSRC)/xmalloc.c \
137 $(RL_LIBSRC)/shell.c \
138 $(RL_LIBSRC)/histexpand.c $(RL_LIBSRC)/history.c \
139 $(RL_LIBSRC)/histsearch.c $(RL_LIBSRC)/histfile.c
141 READLINE_OBJ = $(RL_LIBDIR)/readline.o $(RL_LIBDIR)/funmap.o \
142 $(RL_LIBDIR)/parens.o $(RL_LIBDIR)/search.o \
143 $(RL_LIBDIR)/keymaps.o $(RL_LIBDIR)/xmalloc.o \
144 $(RL_LIBDIR)/rltty.o $(RL_LIBDIR)/complete.o \
145 $(RL_LIBDIR)/bind.o $(RL_LIBDIR)/isearch.o \
146 $(RL_LIBDIR)/display.o $(RL_LIBDIR)/signals.o \
147 $(RL_LIBDIR)/tilde.o $(RL_LIBDIR)/util.o \
148 $(RL_LIBDIR)/kill.o $(RL_LIBDIR)/undo.o $(RL_LIBDIR)/nls.o \
149 $(RL_LIBDIR)/macro.o $(RL_LIBDIR)/input.o \
150 $(RL_LIBDIR)/terminal.o $(RL_LIBDIR)/callback.o \
151 $(RL_LIBDIR)/shell.o \
152 $(RL_LIBDIR)/history.o $(RL_LIBDIR)/histexpand.o \
153 $(RL_LIBDIR)/histsearch.o $(RL_LIBDIR)/histfile.o
155 HIST_LIBSRC = $(LIBSRC)/readline
156 HIST_LIBDIR = $(dot)/$(LIBSUBDIR)/readline
157 HIST_ABSSRC = ${topdir}/$(HIST_LIBDIR)
159 HISTORY_LIB = @HISTORY_LIB@
160 HISTORY_LIBRARY = $(HIST_LIBDIR)/libhistory.a
161 HISTORY_LDFLAGS = -L$(HIST_LIBDIR)
162 HISTORY_DEP = @HISTORY_DEP@
164 # The source, object and documentation of the history library.
165 HISTORY_SOURCE = $(HIST_LIBSRC)/history.c $(HIST_LIBSRC)/histexpand.c \
166 $(HIST_LIBSRC)/histsearch.c $(HIST_LIBSRC)/histfile.c \
167 $(HIST_LIBSRC)/shell.c \
168 $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/histlib.h
169 HISTORY_OBJ = $(HIST_LIBDIR)/history.o $(HIST_LIBDIR)/histexpand.o \
170 $(HIST_LIBDIR)/histsearch.o $(HIST_LIBDIR)/histfile.o \
171 $(HIST_LIBDIR)/shell.o
173 # You only need termcap (or curses) if you are linking with GNU Readline.
174 TERM_LIBSRC = $(LIBSRC)/termcap
175 TERM_LIBDIR = $(dot)/$(LIBSUBDIR)/termcap
176 TERM_ABSSRC = ${topdir}/$(TERM_LIBDIR)
178 TERMCAP_LIB = @TERMCAP_LIB@
179 TERMCAP_LIBRARY = $(TERM_LIBDIR)/libtermcap.a
180 TERMCAP_LDFLAGS = -L$(TERM_LIBDIR)
181 TERMCAP_DEP = @TERMCAP_DEP@
183 TERMCAP_SOURCE = $(TERM_LIBSRC)/termcap.c $(TERM_LIBSRC)/tparam.c
184 TERMCAP_OBJ = $(TERM_LIBDIR)/termcap.o $(TERM_LIBDIR)/tparam.o
186 GLOB_LIBSRC = $(LIBSRC)/glob
187 GLOB_LIBDIR = $(dot)/$(LIBSUBDIR)/glob
188 GLOB_ABSSRC = ${topdir}/$(GLOB_LIBDIR)
191 GLOB_LIBRARY = $(GLOB_LIBDIR)/libglob.a
192 GLOB_LDFLAGS = -L$(GLOB_LIBDIR)
193 GLOB_DEP = $(GLOB_LIBRARY)
195 GLOB_SOURCE = $(GLOB_LIBSRC)/glob.c $(GLOB_LIBSRC)/fnmatch.c \
196 $(GLOB_LIBSRC)/glob.h $(GLOB_LIBSRC)/fnmatch.h
197 GLOB_OBJ = $(GLOB_LIBDIR)/glob.o $(GLOB_LIBDIR)/fnmatch.o
199 # The source, object and documentation for the GNU Tilde library.
200 TILDE_LIBSRC = $(LIBSRC)/tilde
201 TILDE_LIBDIR = $(dot)/$(LIBSUBDIR)/tilde
202 TILDE_ABSSRC = ${topdir}/$(TILDE_LIBDIR)
205 TILDE_LIBRARY = $(TILDE_LIBDIR)/libtilde.a
206 TILDE_LDFLAGS = -L$(TILDE_LIBDIR)
207 TILDE_DEP = $(TILDE_LIBRARY)
209 TILDE_SOURCE = $(TILDE_LIBSRC)/tilde.c $(TILDE_LIBSRC)/tilde.h
210 TILDE_OBJ = $(TILDE_LIBDIR)/tilde.o
213 MALLOC_TARGET = @MALLOC_TARGET@
215 # set to alloca.o if we are using the C alloca in lib/malloc
218 ALLOC_LIBSRC = $(LIBSRC)/malloc
219 ALLOC_LIBDIR = $(dot)/$(LIBSUBDIR)/malloc
220 ALLOC_ABSSRC = ${topdir}/$(ALLOC_LIBDIR)
222 MALLOC_SRC = @MALLOC_SRC@
223 MALLOC_SOURCE = ${ALLOC_LIBSRC}/${MALLOC_SRC}
224 MALLOC_CFLAGS = -DRCHECK -Dbotch=programming_error
226 MALLOC_LIB = -lmalloc
227 MALLOC_LIBRARY = $(ALLOC_LIBDIR)/libmalloc.a
228 MALLOC_LDFLAGS = -L$(ALLOC_LIBDIR)
229 MALLOC_DEP = $(MALLOC_LIBRARY)
231 ALLOC_HEADERS = $(ALLOC_LIBSRC)/getpagesize.h
233 $(MALLOC_LIBRARY): ${MALLOC_SOURCE}
234 @(cd $(ALLOC_LIBDIR) && \
236 MALLOC_CFLAGS="$(MALLOC_CFLAGS)" ${MALLOC_TARGET} ) || exit 1
238 BASHPOSIX_LIB = $(LIBSRC)/posixheaders
239 BASHPOSIX_SUPPORT = $(BASHPOSIX_LIB)/posixstat.h $(BASHPOSIX_LIB)/ansi_stdlib.h \
240 $(BASHPOSIX_LIB)/memalloc.h $(BASHPOSIX_LIB)/stdc.h
242 LIBRARIES = $(READLINE_LIB) $(HISTORY_LIB) $(TERMCAP_LIB) $(GLOB_LIB) \
243 $(TILDE_LIB) $(MALLOC_LIB) $(LOCAL_LIBS)
245 LIBDEP = $(READLINE_DEP) $(TERMCAP_DEP) $(GLOB_DEP) $(HISTORY_DEP) \
246 $(TILDE_DEP) $(MALLOC_DEP)
248 LIBRARY_LDFLAGS = $(READLINE_LDFLAGS) $(HISTORY_LDFLAGS) $(TILDE_LDFLAGS) \
249 $(GLOB_LDFLAGS) $(MALLOC_LDFLAGS)
255 # The main source code for the Bourne Again SHell.
256 CSOURCES = shell.c eval.c parse.y general.c make_cmd.c print_cmd.c y.tab.c \
257 dispose_cmd.c execute_cmd.c variables.c $(GLOBC) version.c \
258 expr.c copy_cmd.c flags.c subst.c hashcmd.c hashlib.c mailcheck.c \
259 test.c trap.c alias.c jobs.c nojobs.c $(ALLOC_FILES) braces.c \
260 vprint.c input.c bashhist.c array.c sig.c pathexp.c oslib.c \
261 unwind_prot.c siglist.c getcwd.c bashline.c bracecomp.c error.c \
262 list.c stringlib.c locale.c xmalloc.c
264 HSOURCES = shell.h flags.h trap.h hashcmd.h hashlib.h jobs.h builtins.h \
265 general.h variables.h config.h $(ALLOC_HEADERS) alias.h maxpath.h \
266 quit.h posixdir.h posixstat.h filecntl.h unwind_prot.h ansi_stdlib.h \
267 command.h input.h error.h bashansi.h dispose_cmd.h make_cmd.h \
268 subst.h externs.h siglist.h bashhist.h bashline.h bashtypes.h \
269 array.h sig.h mailcheck.h bashtty.h bashintl.h bashjmp.h ${GRAM_H} \
270 posixwait.h execute_cmd.h memalloc.h parser.h pathexp.h pathnames.h \
271 posixjmp.h stdc.h unionwait.h $(BASHPOSIX_SUPPORT)
273 SOURCES = $(CSOURCES) $(HSOURCES) $(BUILTIN_DEFS)
275 # object files chosen based on running of configure
278 # Matching object files.
279 OBJECTS = shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o $(GLOBO) \
280 dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o \
281 expr.o flags.o $(JOBS_O) subst.o hashcmd.o hashlib.o mailcheck.o \
282 trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o \
283 alias.o array.o braces.o bracecomp.o bashhist.o bashline.o \
284 getcwd.o siglist.o vprint.o oslib.o list.o stringlib.o \
287 # Where the source code of the shell builtins resides.
288 BUILTIN_SRCDIR=$(srcdir)/builtins
289 DEFSRC=$(BUILTIN_SRCDIR)
290 BUILTIN_ABSSRC=${topdir}/builtins
291 DEFDIR = $(dot)/builtins
293 BUILTIN_DEFS = $(DEFSRC)/alias.def $(DEFSRC)/bind.def $(DEFSRC)/break.def \
294 $(DEFSRC)/builtin.def $(DEFSRC)/cd.def $(DEFSRC)/colon.def \
295 $(DEFSRC)/command.def $(DEFSRC)/declare.def \
296 $(DEFSRC)/echo.def $(DEFSRC)/enable.def $(DEFSRC)/eval.def \
297 $(DEFSRC)/exec.def $(DEFSRC)/exit.def $(DEFSRC)/fc.def \
298 $(DEFSRC)/fg_bg.def $(DEFSRC)/hash.def $(DEFSRC)/help.def \
299 $(DEFSRC)/history.def $(DEFSRC)/jobs.def $(DEFSRC)/kill.def \
300 $(DEFSRC)/let.def $(DEFSRC)/read.def $(DEFSRC)/return.def \
301 $(DEFSRC)/set.def $(DEFSRC)/setattr.def $(DEFSRC)/shift.def \
302 $(DEFSRC)/source.def $(DEFSRC)/suspend.def $(DEFSRC)/test.def \
303 $(DEFSRC)/times.def $(DEFSRC)/trap.def $(DEFSRC)/type.def \
304 $(DEFSRC)/ulimit.def $(DEFSRC)/umask.def $(DEFSRC)/wait.def \
305 $(DEFSRC)/getopts.def $(DEFSRC)/reserved.def \
306 $(DEFSRC)/pushd.def $(DEFSRC)/shopt.def
307 BUILTIN_C_SRC = $(DEFSRC)/mkbuiltins.c $(DEFSRC)/common.c \
308 $(DEFSRC)/evalstring.c $(DEFSRC)/evalfile.c \
309 $(DEFSRC)/bashgetopt.c $(GETOPT_SOURCE)
310 BUILTIN_C_OBJ = $(DEFDIR)/common.o $(DEFDIR)/evalstring.o \
311 $(DEFDIR)/evalfile.o $(DEFDIR)/bashgetopt.o
312 BUILTIN_OBJS = $(DEFDIR)/alias.o $(DEFDIR)/bind.o $(DEFDIR)/break.o \
313 $(DEFDIR)/builtin.o $(DEFDIR)/cd.o $(DEFDIR)/colon.o \
314 $(DEFDIR)/command.o $(DEFDIR)/declare.o \
315 $(DEFDIR)/echo.o $(DEFDIR)/enable.o $(DEFDIR)/eval.o \
316 $(DEFDIR)/exec.o $(DEFDIR)/exit.o $(DEFDIR)/fc.o \
317 $(DEFDIR)/fg_bg.o $(DEFDIR)/hash.o $(DEFDIR)/help.o \
318 $(DEFDIR)/history.o $(DEFDIR)/jobs.o $(DEFDIR)/kill.o \
319 $(DEFDIR)/let.o $(DEFDIR)/pushd.o $(DEFDIR)/read.o \
320 $(DEFDIR)/return.o $(DEFDIR)/shopt.o \
321 $(DEFDIR)/set.o $(DEFDIR)/setattr.o $(DEFDIR)/shift.o \
322 $(DEFDIR)/source.o $(DEFDIR)/suspend.o $(DEFDIR)/test.o \
323 $(DEFDIR)/times.o $(DEFDIR)/trap.o $(DEFDIR)/type.o \
324 $(DEFDIR)/ulimit.o $(DEFDIR)/umask.o $(DEFDIR)/wait.o \
325 $(DEFDIR)/getopts.o $(BUILTIN_C_OBJ)
326 GETOPT_SOURCE = $(DEFSRC)/getopt.c $(DEFSRC)/getopt.h
327 PSIZE_SOURCE = $(DEFSRC)/psize.sh $(DEFSRC)/psize.c
329 BUILTINS_LIBRARY = $(DEFDIR)/libbuiltins.a
330 BUILTINS_LIB = -lbuiltins
331 BUILTINS_LDFLAGS = -L$(DEFDIR)
332 BUILTINS_DEP = $(BUILTINS_LIBRARY)
334 # Documentation for the shell.
335 DOCSRC = $(srcdir)/doc
338 SIGNAMES_SUPPORT = $(SUPPORT_SRC)mksignames.c
340 SUPPORT_SRC = $(srcdir)/support/
341 SDIR = $(dot)/support/
343 TESTS_SUPPORT = recho zecho printenv
344 CREATED_SUPPORT = signames.h recho zecho printenv tests/recho tests/zecho \
345 tests/printenv mksignames
346 CREATED_CONFIGURE = config.h config.cache config.status config.log \
348 CREATED_MAKEFILES = Makefile builtins/Makefile doc/Makefile \
349 lib/readline/Makefile lib/glob/Makefile \
350 lib/tilde/Makefile lib/malloc/Makefile \
353 # Keep GNU Make from exporting the entire environment for small machines.
356 .made: $(Program) bashbug
357 @echo "$(Program) last made for a $(Machine) running $(OS)" >.made
359 $(Program): .build $(OBJECTS) $(BUILTINS_DEP) $(LIBDEP)
361 $(PURIFY) $(CC) $(LDFLAGS) $(BUILTINS_LDFLAGS) $(LIBRARY_LDFLAGS) -o $(Program) $(OBJECTS) $(LIBS)
365 .build: $(SOURCES) config.h Makefile version.h
367 @echo " ***********************************************************"
369 @echo " * Making Bash-$(Version).$(PatchLevel)-$(RELSTATUS) for a $(Machine) running $(OS)"
371 @echo " ***********************************************************"
374 bashbug: $(SUPPORT_SRC)bashbug.sh config.h Makefile
375 @sed -e "s%!MACHINE!%$(Machine)%" -e "s%!OS!%$(OS)%" \
376 -e "s%!CFLAGS!%$(CCFLAGS)%" -e "s%!CC!%$(CC)%" \
377 -e "s%!RELEASE!%$(Version)%" -e "s%!PATCHLEVEL!%$(PatchLevel)%" \
378 -e "s%!MACHTYPE!%$(MACHTYPE)%" -e "s%!RELSTATUS!%$(RELSTATUS)%" \
379 $(SUPPORT_SRC)bashbug.sh > $@
382 strip: $(Program) .made
387 version.h: $(SOURCES) config.h Makefile
388 if $(SHELL) $(SUPPORT_SRC)mkversion.sh -b -s $(RELSTATUS) -d $(Version) -p $(PatchLevel) -o newversion.h; \
389 then mv newversion.h version.h; fi;
392 GRAM_H = parser-built
393 y.tab.o: y.tab.c ${GRAM_H} command.h stdc.h input.h
395 @-if test -f y.tab.h ; then \
396 cmp -s $@ y.tab.h 2>/dev/null || cp -p y.tab.h $@; \
398 y.tab.c y.tab.h: parse.y
399 # -if test -f y.tab.h; then mv -f y.tab.h old-y.tab.h; fi
400 $(YACC) -d $(srcdir)/parse.y
401 # -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
403 # experimental new rules - work with GNU make but not BSD (or OSF) make
404 #y.tab.o: y.tab.c y.tab.h
405 #y.tab.c y.tab.h: parse.y command.h stdc.h input.h
406 # -if test -f y.tab.h; then mv -f y.tab.h old-y.tab.h; fi
407 # $(YACC) -d $(srcdir)/parse.y
408 # -if cmp -s old-y.tab.h y.tab.h; then mv old-y.tab.h y.tab.h; fi
410 $(READLINE_LIBRARY): config.h $(READLINE_SOURCE)
411 @echo making $@ in ${RL_LIBDIR}
412 @(cd ${RL_LIBDIR} && \
413 $(MAKE) $(MFLAGS) libreadline.a) || exit 1
415 $(HISTORY_LIBRARY): config.h $(HISTORY_SOURCE)
416 @echo making $@ in ${HIST_LIBDIR}
417 @(cd ${HIST_LIBDIR} && \
418 $(MAKE) $(MFLAGS) libhistory.a) || exit 1
420 $(GLOB_LIBRARY): config.h $(GLOB_SOURCE)
421 @echo making $@ in ${GLOB_LIBDIR}
422 @(cd ${GLOB_LIBDIR} && \
423 $(MAKE) $(MFLAGS) libglob.a) || exit 1
425 $(TILDE_LIBRARY): config.h $(TILDE_SOURCE)
426 @echo making $@ in ${TILDE_LIBDIR}
427 @(cd ${TILDE_LIBDIR} && \
428 $(MAKE) $(MFLAGS) libtilde.a) || exit 1
430 $(TERMCAP_LIBRARY): config.h ${TERMCAP_SOURCE}
431 @echo making $@ in ${TERM_LIBDIR}
432 @(cd ${TERM_LIBDIR} && \
433 $(MAKE) $(MFLAGS) libtermcap.a) || exit 1
435 mksignames: $(SUPPORT_SRC)mksignames.c
436 $(CC) $(CCFLAGS) $(CPPFLAGS) -o $@ $(SUPPORT_SRC)mksignames.c
438 signames.h: mksignames
442 $(BUILTINS_LIBRARY): $(BUILTIN_DEFS) $(BUILTIN_C_SRC) config.h memalloc.h
443 @(cd $(DEFDIR) && $(MAKE) $(MFLAGS) libbuiltins.a ) || exit 1
445 # these require special rules to circumvent make builtin rules
446 ${DEFDIR}/common.o: $(BUILTIN_SRCDIR)/common.c
447 @(cd $(DEFDIR) && $(MAKE) $(MFLAGS) common.o) || exit 1
449 ${DEFDIR}/bashgetopt.o: $(BUILTIN_SRCDIR)/bashgetopt.c
450 @(cd $(DEFDIR) && $(MAKE) $(MFLAGS) bashgetopt.o) || exit 1
452 ${DEFDIR}/builtext.h: $(BUILTIN_DEFS)
453 @(cd $(DEFDIR) && $(MAKE) $(MFLAGS) builtext.h ) || exit 1
455 # For the justification of the following Makefile rules, see node
456 # `Automatic Remaking' in GNU Autoconf documentation.
458 Makefile makefile: config.status $(srcdir)/Makefile.in
459 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
461 Makefiles makefiles: config.status $(srcdir)/Makefile.in
462 @for mf in $(CREATED_MAKEFILES); do \
463 CONFIG_FILES=$$mf CONFIG_HEADERS= $(SHELL) ./config.status ; \
468 stamp-h: config.status $(srcdir)/config.h.in $(srcdir)/config.h.top $(srcdir)/config.h.bot
469 CONFIG_FILES= CONFIG_HEADERS=config.h $(SHELL) ./config.status
471 config.status: $(srcdir)/configure
472 $(SHELL) ./config.status --recheck
474 # comment out for distribution
475 #$(srcdir)/configure: $(srcdir)/configure.in $(srcdir)/aclocal.m4
476 # cd $(srcdir) && autoconf
478 #newversion: mkversion
480 # ./mkversion -dir $(srcdir) -dist
481 # mv -f newversion.h version.h
482 # $(MAKE) -f $(srcdir)/Makefile $(MFLAGS) srcdir=$(srcdir)
484 doc documentation: force
485 @(cd $(DOCDIR) ; $(MAKE) $(MFLAGS) )
488 @(cd $(DOCDIR) ; $(MAKE) $(MFLAGS) CFLAGS='$(CCFLAGS)' $@ )
492 tags: $(SOURCES) $(BUILTIN_C_SRC) $(LIBRARY_SOURCE)
493 etags $(SOURCES) $(BUILTIN_C_SRC) $(LIBRARY_SOURCE)
495 TAGS: $(SOURCES) $(BUILTIN_C_SRC) $(LIBRARY_SOURCE)
496 ctags -x $(SOURCES) $(BUILTIN_C_SRC) $(LIBRARY_SOURCE) > $@
498 # Targets that actually do things not part of the build
501 @${SHELL} $(SUPPORT_SRC)mkdirs $(bindir)
502 @${SHELL} $(SUPPORT_SRC)mkdirs $(man1dir) $(man3dir)
503 @${SHELL} $(SUPPORT_SRC)mkdirs $(infodir)
505 install: .made installdirs
506 $(INSTALL_PROGRAM) $(Program) $(bindir)/$(Program)
507 $(INSTALL_PROGRAM) bashbug $(bindir)/bashbug
508 -( cd $(DOCDIR) ; $(MAKE) $(MFLAGS) \
509 man1dir=$(man1dir) man1ext=$(man1ext) \
510 man3dir=$(man3dir) man3ext=$(man3ext) \
511 infodir=$(infodir) $@ )
514 $(MAKE) $(MFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' \
515 prefix=${prefix} exec_prefix=${exec_prefix} install
518 $(RM) $(bindir)/$(Program) $(bindir)/bashbug
519 -( cd $(DOCDIR) ; $(MAKE) $(MFLAGS) \
520 man1dir=$(man1dir) man1ext=$(man1ext) \
521 man3dir=$(man3dir) man3ext=$(man3ext) \
522 infodir=$(infodir) $@ )
524 .PHONY: basic-clean clean realclean maintainer-clean distclean mostlyclean
526 $(RM) $(OBJECTS) $(Program) bashbug
527 $(RM) .build .made version.h
530 ( cd $(DOCDIR) && $(MAKE) $(MFLAGS) $@ )
531 ( cd builtins && $(MAKE) $(MFLAGS) $@ )
532 -(cd $(RL_LIBDIR) && $(MAKE) $(MFLAGS) $@)
533 -(cd $(HIST_LIBDIR) && test -f Makefile && $(MAKE) $(MFLAGS) $@)
534 -(cd $(TERM_LIBDIR) && $(MAKE) $(MFLAGS) $@)
535 -(cd $(GLOB_LIBDIR) && $(MAKE) $(MFLAGS) $@)
536 -(cd $(TILDE_LIBDIR) && $(MAKE) $(MFLAGS) $@)
537 -(cd $(ALLOC_LIBDIR) && $(MAKE) $(MFLAGS) $@)
538 $(RM) $(CREATED_SUPPORT)
540 mostlyclean: basic-clean
541 ( cd $(DOCDIR) && $(MAKE) $(MFLAGS) $@ )
542 ( cd builtins && $(MAKE) $(MFLAGS) $@ )
543 -(cd $(RL_LIBDIR) && $(MAKE) $(MFLAGS) $@)
544 -(cd $(HIST_LIBDIR) && test -f Makefile && $(MAKE) $(MFLAGS) $@)
545 -(cd $(TERM_LIBDIR) && $(MAKE) $(MFLAGS) $@)
546 -(cd $(GLOB_LIBDIR) && $(MAKE) $(MFLAGS) $@)
547 -(cd $(TILDE_LIBDIR) && $(MAKE) $(MFLAGS) $@)
548 -(cd $(ALLOC_LIBDIR) && $(MAKE) $(MFLAGS) $@)
550 distclean: basic-clean
551 ( cd $(DOCDIR) && $(MAKE) $(MFLAGS) $@ )
552 ( cd builtins && $(MAKE) $(MFLAGS) $@ )
553 -(cd $(RL_LIBDIR) && $(MAKE) $(MFLAGS) $@)
554 -(cd $(HIST_LIBDIR) && test -f Makefile && $(MAKE) $(MFLAGS) $@)
555 -(cd $(TERM_LIBDIR) && $(MAKE) $(MFLAGS) $@)
556 -(cd $(GLOB_LIBDIR) && $(MAKE) $(MFLAGS) $@)
557 -(cd $(TILDE_LIBDIR) && $(MAKE) $(MFLAGS) $@)
558 -(cd $(ALLOC_LIBDIR) && $(MAKE) $(MFLAGS) $@)
559 $(RM) $(CREATED_CONFIGURE) tags TAGS
560 $(RM) $(CREATED_SUPPORT) Makefile $(CREATED_MAKEFILES)
562 maintainer-clean: basic-clean
563 @echo This command is intended for maintainers to use.
564 @echo It deletes files that may require special tools to rebuild.
565 $(RM) y.tab.c y.tab.h parser-built.h tags TAGS
566 ( cd $(DOCDIR) && $(MAKE) $(MFLAGS) $@ )
567 ( cd builtins && $(MAKE) $(MFLAGS) $@ )
568 -(cd $(RL_LIBDIR) && $(MAKE) $(MFLAGS) $@)
569 -(cd $(HIST_LIBDIR) && test -f Makefile && $(MAKE) $(MFLAGS) $@)
570 -(cd $(TERM_LIBDIR) && $(MAKE) $(MFLAGS) $@)
571 -(cd $(GLOB_LIBDIR) && $(MAKE) $(MFLAGS) $@)
572 -(cd $(TILDE_LIBDIR) && $(MAKE) $(MFLAGS) $@)
573 -(cd $(ALLOC_LIBDIR) && $(MAKE) $(MFLAGS) $@)
574 $(RM) $(CREATED_CONFIGURE) $(CREATED_MAKEFILES)
575 $(RM) $(CREATED_SUPPORT) Makefile
577 recho: $(SUPPORT_SRC)recho.c
578 @$(CC) $(CCFLAGS) -o $@ $(SUPPORT_SRC)recho.c
580 zecho: $(SUPPORT_SRC)zecho.c
581 @$(CC) $(CCFLAGS) -o $@ $(SUPPORT_SRC)zecho.c
583 printenv: $(SUPPORT_SRC)printenv.c
584 @$(CC) $(CCFLAGS) -o $@ $(SUPPORT_SRC)printenv.c
586 test tests check: force $(Program) $(TESTS_SUPPORT)
587 @-test -d tests || mkdir tests
588 @cp $(TESTS_SUPPORT) tests
589 @( cd $(srcdir)/tests && \
590 PATH=$$PATH:$(BUILD_DIR)/tests THIS_SH=$(THIS_SH) sh ${TESTSCRIPT} )
593 $(SHELL) $(SUPPORT_SRC)fixlinks -s $(srcdir)
596 @echo Bash distributions are created using $(srcdir)/support/mkdist.
597 @echo Here is a sample of the necessary commands:
598 @echo $(Program) $(srcdir)/support/mkdist -m $(srcdir)/MANIFEST -s $(srcdir) -r ${Program} $(Version)
599 @echo tar cf $(Program)-$(Version).tar ${Program}-$(Version)
600 @echo gzip $(Program)-$(Version).tar
605 $(Program) $(SUPPORT_SRC)mkdep -c ${CC} -- ${CCFLAGS} ${CSOURCES}
607 ############################ DEPENDENCIES ###############################
609 # Files that depend on the definitions in config.h.top, which are not meant
611 shell.o: config.h.top
612 input.o: config.h.top
613 y.tab.o: config.h.top
615 nojobs.o: config.h.top
616 execute_cmd.o: config.h.top
617 variables.o: config.h.top
618 builtins/command.o: config.h.top
619 builtins/common.o: config.h.top
620 builtins/break.o: config.h.top
621 builtins/echo.o: config.h.top
622 builtins/evalstring.o: config.h.top
623 builtins/exit.o: config.h.top
624 builtins/kill.o: config.h.top
627 copy_cmd.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
628 copy_cmd.o: general.h bashtypes.h variables.h array.h hashlib.h
629 copy_cmd.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
630 copy_cmd.o: make_cmd.h subst.h sig.h pathnames.h externs.h
631 dispose_cmd.o: bashansi.h ansi_stdlib.h
632 dispose_cmd.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h
633 dispose_cmd.o: error.h general.h bashtypes.h variables.h array.h hashlib.h
634 dispose_cmd.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
635 dispose_cmd.o: make_cmd.h subst.h sig.h pathnames.h externs.h
636 getcwd.o: config.h bashtypes.h bashansi.h
637 getcwd.o: maxpath.h posixstat.h posixdir.h memalloc.h
638 error.o: config.h bashtypes.h bashansi.h ansi_stdlib.h flags.h stdc.h error.h
639 error.o: command.h general.h externs.h input.h bashhist.h
640 eval.o: config.h bashansi.h ansi_stdlib.h trap.h flags.h ${DEFSRC}/common.h
641 eval.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
642 eval.o: general.h bashtypes.h variables.h array.h hashlib.h
643 eval.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
644 eval.o: make_cmd.h subst.h sig.h pathnames.h externs.h
645 eval.o: input.h execute_cmd.h
646 execute_cmd.o: config.h bashtypes.h filecntl.h posixstat.h bashansi.h ansi_stdlib.h
647 execute_cmd.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
648 execute_cmd.o: general.h bashtypes.h variables.h array.h hashlib.h
649 execute_cmd.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
650 execute_cmd.o: make_cmd.h subst.h sig.h pathnames.h externs.h
651 execute_cmd.o: memalloc.h ${GRAM_H} flags.h builtins.h jobs.h quit.h siglist.h
652 execute_cmd.o: execute_cmd.h trap.h pathexp.h $(DEFSRC)/common.h
653 execute_cmd.o: ${DEFDIR}/builtext.h ${GLOB_LIBSRC}/fnmatch.h
654 expr.o: config.h bashansi.h ansi_stdlib.h
655 expr.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
656 expr.o: general.h bashtypes.h variables.h array.h hashlib.h
657 expr.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
658 expr.o: make_cmd.h subst.h sig.h pathnames.h externs.h
659 flags.o: config.h flags.h
660 flags.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
661 flags.o: general.h bashtypes.h variables.h array.h hashlib.h
662 flags.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
663 flags.o: make_cmd.h subst.h sig.h pathnames.h externs.h
664 general.o: config.h bashtypes.h posixstat.h filecntl.h bashansi.h ansi_stdlib.h
665 general.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
666 general.o: general.h bashtypes.h variables.h array.h hashlib.h
667 general.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
668 general.o: make_cmd.h subst.h sig.h pathnames.h externs.h
670 hashcmd.o: config.h posixstat.h bashtypes.h bashansi.h ansi_stdlib.h
671 hashcmd.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
672 hashcmd.o: general.h bashtypes.h variables.h array.h hashcmd.h
673 hashcmd.o: execute_cmd.h stdc.h
674 hashlib.o: config.h bashansi.h ansi_stdlib.h
675 hashlib.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
676 hashlib.o: general.h bashtypes.h variables.h array.h hashlib.h
677 hashlib.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
678 hashlib.o: make_cmd.h subst.h sig.h pathnames.h externs.h
679 input.o: config.h bashtypes.h filecntl.h posixstat.h bashansi.h ansi_stdlib.h
680 input.o: command.h stdc.h general.h input.h error.h externs.h
681 list.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
682 list.o: general.h bashtypes.h variables.h array.h hashlib.h
683 list.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
684 list.o: make_cmd.h subst.h sig.h pathnames.h externs.h
685 locale.o: config.h bashtypes.h bashintl.h bashansi.h ansi_stdlib.h
686 locale.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
687 locale.o: general.h bashtypes.h variables.h array.h hashlib.h
688 locale.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
689 locale.o: make_cmd.h subst.h sig.h pathnames.h externs.h
690 mailcheck.o: config.h bashtypes.h posixstat.h bashansi.h ansi_stdlib.h
691 mailcheck.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
692 mailcheck.o: general.h bashtypes.h variables.h array.h hashlib.h
693 mailcheck.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
694 mailcheck.o: make_cmd.h subst.h sig.h pathnames.h externs.h
695 mailcheck.o: execute_cmd.h mailcheck.h
696 make_cmd.o: config.h bashtypes.h filecntl.h bashansi.h
697 make_cmd.o: command.h stdc.h general.h error.h flags.h make_cmd.h
698 make_cmd.o: variables.h array.h hashlib.h subst.h input.h externs.h
699 make_cmd.o: jobs.h quit.h siglist.h
700 oslib.o: config.h bashtypes.h posixstat.h filecntl.h bashansi.h maxpath.h
701 oslib.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
702 oslib.o: general.h bashtypes.h variables.h array.h hashlib.h
703 oslib.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
704 oslib.o: make_cmd.h subst.h sig.h pathnames.h externs.h
705 y.tab.o: config.h bashtypes.h bashansi.h ansi_stdlib.h memalloc.h
706 y.tab.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
707 y.tab.o: general.h bashtypes.h variables.h array.h hashlib.h
708 y.tab.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
709 y.tab.o: make_cmd.h subst.h sig.h pathnames.h externs.h
710 y.tab.o: trap.h flags.h parser.h input.h mailcheck.h $(DEFSRC)/common.h
711 y.tab.o: $(DEFDIR)/builtext.h bashline.h bashhist.h jobs.h siglist.h alias.h
712 pathexp.o: config.h bashtypes.h bashansi.h ansi_stdlib.h
713 pathexp.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
714 pathexp.o: general.h bashtypes.h variables.h array.h hashlib.h
715 pathexp.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
716 pathexp.o: make_cmd.h subst.h sig.h pathnames.h externs.h
717 pathexp.o: pathexp.h flags.h
718 pathexp.o: $(GLOB_LIBSRC)/glob.h $(GLOB_LIBSRC)/fnmatch.h
719 print_cmd.o: config.h bashansi.h ansi_stdlib.h
720 print_cmd.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
721 print_cmd.o: general.h bashtypes.h variables.h array.h hashlib.h
722 print_cmd.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
723 print_cmd.o: make_cmd.h subst.h sig.h pathnames.h externs.h
724 print_cmd.o: ${GRAM_H} $(DEFSRC)/common.h
725 shell.o: config.h bashtypes.h posixstat.h bashansi.h ansi_stdlib.h filecntl.h
726 shell.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
727 shell.o: general.h bashtypes.h variables.h array.h hashlib.h
728 shell.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
729 shell.o: make_cmd.h subst.h sig.h pathnames.h externs.h
730 shell.o: flags.h trap.h mailcheck.h builtins.h $(DEFSRC)/common.h
731 shell.o: jobs.h siglist.h input.h execute_cmd.h bashhist.h
732 shell.o: ${GLOB_LIBSRC}/fnmatch.h
733 sig.o: config.h bashtypes.h
734 sig.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
735 sig.o: general.h bashtypes.h variables.h array.h hashlib.h
736 sig.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
737 sig.o: make_cmd.h subst.h sig.h pathnames.h externs.h
738 sig.o: jobs.h siglist.h trap.h $(DEFSRC)/common.h bashline.h bashhist.h
739 siglist.o: config.h bashtypes.h siglist.h trap.h
740 stringlib.o: bashtypes.h
741 stringlib.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
742 stringlib.o: general.h bashtypes.h variables.h array.h hashlib.h
743 stringlib.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
744 stringlib.o: make_cmd.h subst.h sig.h pathnames.h externs.h
745 subst.o: config.h bashtypes.h bashansi.h ansi_stdlib.h posixstat.h
746 subst.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
747 subst.o: general.h bashtypes.h variables.h array.h hashlib.h
748 subst.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
749 subst.o: make_cmd.h subst.h sig.h pathnames.h externs.h
750 subst.o: flags.h jobs.h siglist.h execute_cmd.h filecntl.h trap.h pathexp.h
751 subst.o: mailcheck.h input.h $(DEFSRC)/getopt.h $(DEFSRC)/common.h
752 subst.o: bashline.h bashhist.h ${GLOB_LIBSRC}/fnmatch.h
753 test.o: bashtypes.h posixstat.h filecntl.h
754 test.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
755 test.o: general.h bashtypes.h variables.h array.h hashlib.h
756 test.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
757 test.o: make_cmd.h subst.h sig.h pathnames.h externs.h
758 test.o: ${DEFSRC}/common.h
759 trap.o: config.h bashtypes.h trap.h bashansi.h ansi_stdlib.h
760 trap.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
761 trap.o: general.h bashtypes.h variables.h array.h hashlib.h
762 trap.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
763 trap.o: make_cmd.h subst.h sig.h pathnames.h externs.h
764 trap.o: signames.h $(DEFSRC)/common.h
765 unwind_prot.o: config.h bashtypes.h bashansi.h ansi_stdlib.h command.h stdc.h
766 unwind_prot.o: general.h unwind_prot.h quit.h sig.h
767 variables.o: config.h bashtypes.h posixstat.h bashansi.h ansi_stdlib.h
768 variables.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
769 variables.o: general.h bashtypes.h variables.h array.h hashlib.h
770 variables.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
771 variables.o: make_cmd.h subst.h sig.h pathnames.h externs.h
772 varibales.o: flags.h execute_cmd.h mailcheck.h input.h $(DEFSRC)/common.h
773 variables.o: bashhist.h
774 version.o: version.h .build
776 xmalloc.o: config.h bashtypes.h ansi_stdlib.h error.h
780 jobs.o: config.h bashtypes.h trap.h filecntl.h input.h bashtty.h
781 jobs.o: bashansi.h ansi_stdlib.h
782 jobs.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
783 jobs.o: general.h bashtypes.h variables.h array.h hashlib.h
784 jobs.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
785 jobs.o: make_cmd.h subst.h sig.h pathnames.h externs.h
786 jobs.o: jobs.h flags.h $(DEFSRC)/common.h $(DEFDIR)/builtext.h
787 nojobs.o: config.h bashtypes.h filecntl.h bashjmp.h posixjmp.h
788 nojobs.o: command.h stdc.h general.h jobs.h quit.h siglist.h externs.h
789 nojobs.o: sig.h error.h bashtty.h input.h
791 # shell features that may be compiled in
793 array.o: config.h bashansi.h ansi_stdlib.h
794 array.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
795 array.o: general.h bashtypes.h variables.h array.h hashlib.h
796 array.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
797 array.o: make_cmd.h subst.h sig.h pathnames.h externs.h
798 array.o: $(DEFSRC)/common.h
799 braces.o: config.h bashansi.h ansi_stdlib.h
800 braces.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
801 braces.o: general.h bashtypes.h variables.h array.h hashlib.h
802 braces.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
803 braces.o: make_cmd.h subst.h sig.h pathnames.h externs.h
804 alias.o: config.h bashansi.h ansi_stdlib.h command.h stdc.h
805 alias.o: general.h bashtypes.h externs.h alias.h
807 # library support files
809 bashhist.o: config.h bashtypes.h bashansi.h ansi_stdlib.h posixstat.h
810 bashhist.o: filecntl.h
811 bashhist.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
812 bashhist.o: general.h bashtypes.h variables.h array.h hashlib.h
813 bashhist.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
814 bashhist.o: make_cmd.h subst.h sig.h pathnames.h externs.h
815 bashhist.o: flags.h input.h parser.h pathexp.h $(DEFSRC)/common.h bashline.h
816 bashhist.o: $(GLOB_LIBSRC)/fnmatch.h
817 bashline.o: config.h bashtypes.h posixstat.h bashansi.h ansi_stdlib.h
818 bashline.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
819 bashline.o: general.h bashtypes.h variables.h array.h hashlib.h
820 bashline.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
821 bashline.o: make_cmd.h subst.h sig.h pathnames.h externs.h
822 bashline.o: builtins.h bashhist.h bashline.h execute_cmd.h pathexp.h
823 bashline.o: $(DEFSRC)/common.h $(GLOB_LIBSRC)/glob.h alias.h
824 bracecomp.o: config.h bashansi.h ansi_stdlib.h
825 bracecomp.o: shell.h config.h bashjmp.h posixjmp.h command.h stdc.h error.h
826 bracecomp.o: general.h bashtypes.h variables.h array.h hashlib.h
827 bracecomp.o: quit.h maxpath.h unwind_prot.h dispose_cmd.h
828 bracecomp.o: make_cmd.h subst.h sig.h pathnames.h externs.h
829 bracecomp.o: shell.h bashjmp.h posixjmp.h sig.h command.h hashlib.h builtins.h general.h
830 bracecomp.o: quit.h alias.h config.h variables.h
831 bracecomp.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
833 # library dependencies
835 bashline.o: $(RL_LIBSRC)/rlconf.h
836 bashline.o: $(RL_LIBSRC)/keymaps.h
837 bashline.o: $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/readline.h
838 bracecomp.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/chardefs.h
839 bracecomp.o: $(RL_LIBSRC)/readline.h
840 y.tab.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/readline.h
841 subst.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/readline.h
843 shell.o: $(HIST_LIBSRC)/history.h
844 subst.o: $(HIST_LIBSRC)/history.h
845 bashline.o: $(HIST_LIBSRC)/history.h
846 bashhist.o: $(HIST_LIBSRC)/history.h
847 y.tab.o: $(HIST_LIBSRC)/history.h
849 execute_cmd.o: $(TILDE_LIBSRC)/tilde.h
850 general.o: $(TILDE_LIBSRC)/tilde.h
851 mailcheck.o: $(TILDE_LIBSRC)/tilde.h
852 shell.o: $(TILDE_LIBSRC)/tilde.h
853 subst.o: $(TILDE_LIBSRC)/tilde.h
854 variables.o: $(TILDE_LIBSRC)/tilde.h
856 # XXX - dependencies checked through here
859 builtins/bashgetopt.o: config.h bashansi.h ansi_stdlib.h
860 builtins/bashgetopt.o: shell.h config.h bashjmp.h command.h general.h error.h
861 builtins/bashgetopt.o: variables.h quit.h maxpath.h unwind_prot.h dispose_cmd.h
862 builtins/bashgetopt.o: make_cmd.h subst.h sig.h pathnames.h externs.h
863 builtins/bashgetopt.o: $(DEFSRC)/common.h
864 builtins/common.o: bashtypes.h posixstat.h bashansi.h ansi_stdlib.h
865 builtins/common.o: shell.h config.h bashjmp.h posixjmp.h sig.h command.h
866 builtins/common.o: memalloc.h variables.h input.h siglist.h
867 builtins/common.o: quit.h unwind_prot.h maxpath.h jobs.h builtins.h
868 builtins/common.o: dispose_cmd.h make_cmd.h subst.h externs.h bashhist.h
869 builtins/common.o: execute_cmd.h stdc.h general.h error.h pathnames.h
870 builtins/common.o: ${DEFDIR}/builtext.h
871 builtins/evalfile.o: bashtypes.h posixstat.h filecntl.h bashansi.h ansi_stdlib.h
872 builtins/evalfile.o: shell.h config.h bashjmp.h command.h general.h error.h
873 builtins/evalfile.o: variables.h quit.h maxpath.h unwind_prot.h dispose_cmd.h
874 builtins/evalfile.o: make_cmd.h subst.h sig.h pathnames.h externs.h
875 builtins/evalfile.o: jobs.h builtins.h flags.h input.h execute_cmd.h
876 builtins/evalfile.o: bashhist.h $(DEFSRC)/common.h
877 builtins/evalstring.o: config.h bashansi.h ansi_stdlib.h
878 builtins/evalstring.o: shell.h bashjmp.h posixjmp.h sig.h command.h siglist.h
879 builtins/evalstring.o: memalloc.h variables.h input.h
880 builtins/evalstring.o: quit.h unwind_prot.h maxpath.h jobs.h builtins.h
881 builtins/evalstring.o: dispose_cmd.h make_cmd.h subst.h externs.h
882 builtins/evalstring.o: jobs.h builtins.h flags.h input.h execute_cmd.h
883 builtins/evalstring.o: bashhist.h $(DEFSRC)/common.h
884 builtins/getopt.o: config.h memalloc.h
885 builtins/getopt.o: shell.h bashjmp.h command.h general.h error.h
886 builtins/getopt.o: variables.h quit.h maxpath.h unwind_prot.h dispose_cmd.h
887 builtins/getopt.o: make_cmd.h subst.h sig.h pathnames.h externs.h
888 builtins/getopt.o: $(DEFSRC)/getopt.h
889 builtins/mkbuiltins.o: config.h bashtypes.h posixstat.h filecntl.h
890 builtins/mkbuiltins.o: bashansi.h ansi_stdlib.h
893 builtins/alias.o: command.h config.h memalloc.h error.h general.h maxpath.h
894 builtins/alias.o: quit.h $(DEFSRC)/common.h
895 builtins/alias.o: shell.h bashjmp.h posixjmp.h sig.h command.h stdc.h unwind_prot.h
896 builtins/alias.o: dispose_cmd.h make_cmd.h subst.h externs.h variables.h
897 builtins/bind.o: command.h config.h memalloc.h error.h general.h maxpath.h
898 builtins/bind.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
899 builtins/bind.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h quit.h
900 builtins/bind.o: $(DEFSRC)/bashgetopt.h
901 builtins/break.o: command.h config.h memalloc.h error.h general.h maxpath.h
902 builtins/break.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h quit.h
903 builtins/break.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
904 builtins/builtin.o: command.h config.h memalloc.h error.h general.h maxpath.h
905 builtins/builtin.o: quit.h $(DEFSRC)/common.h
906 builtins/builtin.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
907 builtins/builtin.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
908 builtins/cd.o: command.h config.h memalloc.h error.h general.h maxpath.h
909 builtins/cd.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
910 builtins/cd.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
911 builtins/cd.o: $(DEFSRC)/common.h quit.h
912 builtins/command.o: command.h config.h memalloc.h error.h general.h maxpath.h
913 builtins/command.o: quit.h $(DEFSRC)/bashgetopt.h
914 builtins/command.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
915 builtins/command.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
916 builtins/declare.o: command.h config.h memalloc.h error.h general.h maxpath.h
917 builtins/declare.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h quit.h
918 builtins/declare.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
919 builtins/echo.o: command.h config.h memalloc.h error.h general.h maxpath.h
920 builtins/echo.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h quit.h
921 builtins/echo.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
922 builtins/enable.o: command.h config.h memalloc.h error.h general.h maxpath.h
923 builtins/enable.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h quit.h
924 builtins/enable.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
925 builtins/eval.o: command.h config.h memalloc.h error.h general.h maxpath.h
926 builtins/eval.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h quit.h
927 builtins/eval.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
928 builtins/exec.o: bashtypes.h
929 builtins/exec.o: command.h config.h memalloc.h error.h general.h maxpath.h
930 builtins/exec.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
931 builtins/exec.o: dispose_cmd.h make_cmd.h subst.h externs.h execute_cmd.h
932 builtins/exec.o: flags.h quit.h $(DEFSRC)/common.h stdc.h
933 builtins/exit.o: bashtypes.h
934 builtins/exit.o: command.h config.h memalloc.h error.h general.h maxpath.h
935 builtins/exit.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h quit.h
936 builtins/exit.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
937 builtins/fc.o: bashtypes.h posixstat.h
938 builtins/fc.o: bashansi.h ansi_stdlib.h builtins.h command.h stdc.h
939 builtins/fc.o: command.h config.h memalloc.h error.h general.h maxpath.h
940 builtins/fc.o: flags.h unwind_prot.h variables.h shell.h bashjmp.h posixjmp.h sig.h
941 builtins/fc.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h quit.h
942 builtins/fc.o: $(DEFSRC)/bashgetopt.h bashhist.h
943 builtins/fg_bg.o: bashtypes.h
944 builtins/fg_bg.o: command.h config.h memalloc.h error.h general.h maxpath.h
945 builtins/fg_bg.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h quit.h
946 builtins/fg_bg.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
947 builtins/getopts.o: command.h config.h memalloc.h error.h general.h maxpath.h
948 builtins/getopts.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h quit.h
949 builtins/getopts.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
950 builtins/hash.o: bashtypes.h
951 builtins/hash.o: builtins.h command.h execute_cmd.h stdc.h $(DEFSRC)/common.h
952 builtins/hash.o: command.h config.h memalloc.h error.h general.h maxpath.h
953 builtins/hash.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h quit.h
954 builtins/help.o: command.h config.h memalloc.h error.h general.h maxpath.h
955 builtins/help.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
956 builtins/help.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h quit.h
957 builtins/help.o: $(GLOB_LIBSRC)/glob.h
958 builtins/history.o: bashtypes.h
959 builtins/history.o: command.h config.h memalloc.h error.h general.h maxpath.h
960 builtins/history.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
961 builtins/history.o: filecntl.h shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h
962 builtins/history.o: bashhist.h variables.h
963 builtins/inlib.o: command.h config.h memalloc.h error.h general.h maxpath.h
964 builtins/inlib.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h quit.h
965 builtins/inlib.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
966 builtins/jobs.o: command.h config.h memalloc.h error.h general.h maxpath.h
967 builtins/jobs.o: quit.h $(DEFSRC)/bashgetopt.h
968 builtins/jobs.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
969 builtins/jobs.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
970 builtins/kill.o: command.h config.h memalloc.h error.h general.h maxpath.h
971 builtins/kill.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
972 builtins/kill.o: shell.h bashjmp.h posixjmp.h sig.h trap.h unwind_prot.h variables.h
973 builtins/let.o: command.h config.h memalloc.h error.h general.h maxpath.h
974 builtins/let.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
975 builtins/let.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
976 builtins/pushd.o: command.h config.h memalloc.h error.h general.h maxpath.h
977 builtins/pushd.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
978 builtins/pushd.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
979 builtins/pushd.o: $(DEFSRC)/common.h
980 builtins/read.o: command.h config.h memalloc.h error.h general.h maxpath.h
981 builtins/read.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
982 builtins/read.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
983 builtins/return.o: command.h config.h memalloc.h error.h general.h maxpath.h
984 builtins/return.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
985 builtins/return.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
986 builtins/set.o: command.h config.h memalloc.h error.h general.h maxpath.h
987 builtins/set.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
988 builtins/set.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h flags.h
989 builtins/setattr.o: command.h config.h memalloc.h error.h general.h maxpath.h
990 builtins/setattr.o: quit.h $(DEFSRC)/common.h $(DEFSRC)/bashgetopt.h
991 builtins/setattr.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
992 builtins/setattr.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
993 builtins/shift.o: command.h config.h memalloc.h error.h general.h maxpath.h
994 builtins/shift.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
995 builtins/shift.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
996 builtins/shift.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
997 builtins/shopt.o: command.h config.h memalloc.h error.h general.h
998 builtins/shopt.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h
999 builtins/shopt.o: shell.h bashjmp.h posixjmp.h unwind_prot.h variables.h maxpath.h
1000 builtins/shopt.o: $(DEFSRC)/common.h $(DEFSRC)/bashgetopt.h
1001 builtins/source.o: command.h config.h memalloc.h error.h general.h maxpath.h
1002 builtins/source.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
1003 builtins/source.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
1004 builtins/suspend.o: command.h config.h memalloc.h error.h general.h maxpath.h
1005 builtins/suspend.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
1006 builtins/suspend.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
1007 builtins/test.o: command.h config.h memalloc.h error.h general.h maxpath.h
1008 builtins/test.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
1009 builtins/test.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
1010 builtins/times.o: command.h config.h memalloc.h error.h general.h maxpath.h
1011 builtins/times.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
1012 builtins/times.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
1013 builtins/trap.o: command.h config.h memalloc.h error.h general.h maxpath.h
1014 builtins/trap.o: quit.h $(DEFSRC)/common.h
1015 builtins/trap.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
1016 builtins/trap.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
1017 builtins/type.o: command.h config.h memalloc.h error.h general.h maxpath.h
1018 builtins/type.o: quit.h $(DEFSRC)/common.h execute_cmd.h
1019 builtins/type.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
1020 builtins/type.o: dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
1021 builtins/ulimit.o: command.h config.h memalloc.h error.h general.h maxpath.h
1022 builtins/ulimit.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
1023 builtins/ulimit.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
1024 builtins/umask.o: command.h config.h memalloc.h error.h general.h maxpath.h
1025 builtins/umask.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
1026 builtins/umask.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
1027 builtins/wait.o: command.h config.h memalloc.h error.h general.h maxpath.h
1028 builtins/wait.o: quit.h dispose_cmd.h make_cmd.h subst.h externs.h stdc.h
1029 builtins/wait.o: shell.h bashjmp.h posixjmp.h sig.h unwind_prot.h variables.h
1031 # builtin library dependencies
1032 builtins/bind.o: $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/readline.h
1033 builtins/bind.o: $(RL_LIBSRC)/keymaps.h
1035 builtins/bind.o: $(HIST_LIBSRC)/history.h
1036 builtins/fc.o: $(HIST_LIBSRC)/history.h
1037 builtins/history.o: $(HIST_LIBSRC)/history.h
1039 builtins/common.o: $(TILDE_LIBSRC)/tilde.h
1040 builtins/cd.o: $(TILDE_LIBSRC)/tilde.h
1042 builtins/alias.o: $(DEFSRC)/alias.def
1043 builtins/bind.o: $(DEFSRC)/bind.def
1044 builtins/break.o: $(DEFSRC)/break.def
1045 builtins/builtin.o: $(DEFSRC)/builtin.def
1046 builtins/cd.o: $(DEFSRC)/cd.def
1047 builtins/colon.o: $(DEFSRC)/colon.def
1048 builtins/command.o: $(DEFSRC)/command.def
1049 builtins/declare.o: $(DEFSRC)/declare.def
1050 builtins/echo.o: $(DEFSRC)/echo.def
1051 builtins/enable.o: $(DEFSRC)/enable.def
1052 builtins/eval.o: $(DEFSRC)/eval.def
1053 builtins/exec.o: $(DEFSRC)/exec.def
1054 builtins/exit.o: $(DEFSRC)/exit.def
1055 builtins/fc.o: $(DEFSRC)/fc.def
1056 builtins/fg_bg.o: $(DEFSRC)/fg_bg.def
1057 builtins/getopts.o: $(DEFSRC)/getopts.def
1058 builtins/hash.o: $(DEFSRC)/hash.def
1059 builtins/help.o: $(DEFSRC)/help.def
1060 builtins/history.o: $(DEFSRC)/history.def
1061 builtins/inlib.o: $(DEFSRC)/inlib.def
1062 builtins/jobs.o: $(DEFSRC)/jobs.def
1063 builtins/kill.o: $(DEFSRC)/kill.def
1064 builtins/let.o: $(DEFSRC)/let.def
1065 builtins/pushd.o: $(DEFSRC)/pushd.def
1066 builtins/read.o: $(DEFSRC)/read.def
1067 builtins/reserved.o: $(DEFSRC)/reserved.def
1068 builtins/return.o: $(DEFSRC)/return.def
1069 builtins/set.o: $(DEFSRC)/set.def
1070 builtins/setattr.o: $(DEFSRC)/setattr.def
1071 builtins/shift.o: $(DEFSRC)/shift.def
1072 builtins/shopt.o: $(DEFSRC)/shopt.def
1073 builtins/source.o: $(DEFSRC)/source.def
1074 builtins/suspend.o: $(DEFSRC)/suspend.def
1075 builtins/test.o: $(DEFSRC)/test.def
1076 builtins/times.o: $(DEFSRC)/times.def
1077 builtins/trap.o: $(DEFSRC)/trap.def
1078 builtins/type.o: $(DEFSRC)/type.def
1079 builtins/ulimit.o: $(DEFSRC)/ulimit.def
1080 builtins/umask.o: $(DEFSRC)/umask.def
1081 builtins/wait.o: $(DEFSRC)/wait.def