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