]> git.ipfire.org Git - thirdparty/bash.git/blame - builtins/Makefile
Imported from ../bash-1.14.7.tar.gz.
[thirdparty/bash.git] / builtins / Makefile
CommitLineData
726f6388
JA
1# This Makefile for building libbuiltins.a is in -*- text -*- for Emacs.
2#
3MKBUILTINS = mkbuiltins
4RANLIB = /usr/bin/ranlib
5CFLAGS = -g -I.. -I.
6SHELL = /bin/sh
7# CC = cc
8AR = ar
9RM = rm -f
10CP = cp
11
12srcdir = .
13VPATH = .:$(srcdir)
14
15.SUFFIXES:
16.SUFFIXES: .def .c .o
17# How to make a .o file from a .def file.
18.def.o:
19 $(RM) $@
20 ./$(MKBUILTINS) $(DIRECTDEFINE) $<
21 $(CC) -c $(CFLAGS) $(CPPFLAGS) $*.c || ( $(RM) $*.c ; exit 1 )
22 $(RM) $*.c
23
24# How to make a .c file from a .def file.
25.def.c:
26 $(RM) $@
27 ./$(MKBUILTINS) $(DIRECTDEFINE) $<
28
29# Here is a rule for making .o files from .c files that does not
30# force the type of the machine (like -M_MACHINE) into the flags.
31.c.o:
32 $(RM) $@
33 $(CC) -c $(CFLAGS) $(CPPFLAGS) $<
34
35DEFS = $(srcdir)/alias.def $(srcdir)/bind.def $(srcdir)/break.def \
36 $(srcdir)/builtin.def $(srcdir)/cd.def $(srcdir)/colon.def \
37 $(srcdir)/command.def $(srcdir)/declare.def $(srcdir)/echo.def \
38 $(srcdir)/enable.def $(srcdir)/eval.def $(srcdir)/getopts.def \
39 $(srcdir)/exec.def $(srcdir)/exit.def $(srcdir)/fc.def \
40 $(srcdir)/fg_bg.def $(srcdir)/hash.def $(srcdir)/help.def \
41 $(srcdir)/history.def $(srcdir)/jobs.def $(srcdir)/kill.def \
42 $(srcdir)/let.def $(srcdir)/read.def $(srcdir)/return.def \
43 $(srcdir)/set.def $(srcdir)/setattr.def $(srcdir)/shift.def \
44 $(srcdir)/source.def $(srcdir)/suspend.def $(srcdir)/test.def \
45 $(srcdir)/times.def $(srcdir)/trap.def $(srcdir)/type.def \
46 $(srcdir)/ulimit.def $(srcdir)/umask.def $(srcdir)/wait.def \
47 $(srcdir)/reserved.def
48
49STATIC_SOURCE = common.c getopt.c bashgetopt.c getopt.h
50
51OFILES = builtins.o \
52 alias.o bind.o break.o builtin.o cd.o colon.o command.o \
53 common.o declare.o echo.o enable.o eval.o exec.o exit.o \
54 fc.o fg_bg.o hash.o help.o history.o jobs.o kill.o \
55 let.o read.o return.o set.o setattr.o shift.o source.o \
56 suspend.o test.o times.o trap.o type.o ulimit.o umask.o \
57 wait.o getopts.o getopt.o bashgetopt.o
58
59THINGS_TO_TAR = $(DEFS) $(STATIC_SOURCE) Makefile ChangeLog
60
61CREATED_FILES = builtext.h builtins.c psize.aux pipesize.h
62
63all: $(MKBUILTINS) libbuiltins.a
64
65libbuiltins.a: $(MKBUILTINS) $(OFILES)
66 $(RM) $@
67 $(AR) cq $@ $(OFILES)
68 -$(RANLIB) $@
69
70builtext.h builtins.c: $(MKBUILTINS) $(DEFS)
71 $(RM) builtext.h builtins.c
72 ./$(MKBUILTINS) -externfile builtext.h -structfile builtins.c \
73 -noproduction $(DIRECTDEFINE) $(DEFS)
74
75mkbuiltins: $(srcdir)/mkbuiltins.c ../config.h
76 $(CC) $(CFLAGS) -o $(MKBUILTINS) $(srcdir)/mkbuiltins.c
77
78ulimit.o: ulimit.def pipesize.h
79
80pipesize.h: psize.aux
81 $(SHELL) $(srcdir)/psize.sh > pipesize.h
82
83psize.aux: psize.c
84 $(CC) $(CFLAGS) -o $@ $(srcdir)/psize.c
85
86documentation: builtins.texi
87
88$(OFILES): $(MKBUILTINS) ../config.h
89
90builtins.texi: $(MKBUILTINS)
91 ./$(MKBUILTINS) -documentonly $(DEFS)
92
93clean:
94 $(RM) $(OFILES) $(CREATED_FILES) $(MKBUILTINS)
95
96mostlyclean:
97 $(RM) $(OFILES) libbuiltins.a
98
99distclean realclean maintainer-clean: clean
100 $(RM) libbuiltins.a
101
102alias.o: alias.def
103bind.o: bind.def
104break.o: break.def
105builtin.o: builtin.def
106cd.o: cd.def
107colon.o: colon.def
108command.o: command.def
109declare.o: declare.def
110echo.o: echo.def
111enable.o: enable.def
112eval.o: eval.def
113exec.o: exec.def
114exit.o: exit.def
115fc.o: fc.def
116fg_bg.o: fg_bg.def
117hash.o: hash.def
118help.o: help.def
119history.o: history.def
120jobs.o: jobs.def
121kill.o: kill.def
122let.o: let.def
123read.o: read.def
124return.o: return.def
125set.o: set.def
126setattr.o: setattr.def
127shift.o: shift.def
128source.o: source.def
129suspend.o: suspend.def
130test.o: test.def
131times.o: times.def
132trap.o: trap.def
133type.o: type.def
134umask.o: umask.def
135wait.o: wait.def
136getopts.o: getopts.def
137reserved.o: reserved.def
138
139common.o: ../shell.h ../command.h ../config.h ../memalloc.h ../general.h
140common.o: ../variables.h ../input.h hashcom.h ../bashhist.h
141common.o: ../quit.h ../unwind_prot.h ../maxpath.h ../jobs.h ../builtins.h
142common.o: ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
143common.o: ../execute_cmd.h ../error.h
144alias.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
145alias.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
146alias.o: ../shell.h ../unwind_prot.h ../variables.h common.h ../maxpath.h
147bind.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
148bind.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
149bind.o: ../maxpath.h
150bind.o: ../shell.h ../unwind_prot.h ../variables.h bashgetopt.h
151break.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
152break.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
153break.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
154builtin.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
155builtin.o: ../quit.h common.h ../maxpath.h
156builtin.o: ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
157builtin.o: ../shell.h ../unwind_prot.h ../variables.h
158cd.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
159cd.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
160cd.o: ../shell.h ../unwind_prot.h ../variables.h common.h ../maxpath.h
161command.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
162command.o: ../quit.h bashgetopt.h ../maxpath.h
163command.o: ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
164command.o: ../shell.h ../unwind_prot.h ../variables.h
165declare.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
166declare.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
167declare.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
168echo.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
169echo.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
170echo.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
171enable.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
172enable.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
173enable.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
174eval.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
175eval.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
176eval.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
177exec.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
178exec.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
179exec.o: ../shell.h ../unwind_prot.h ../variables.h common.h ../execute_cmd.h
180exec.o: ../maxpath.h ../flags.h
181exit.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
182exit.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
183exit.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
184fc.o: ../builtins.h ../command.h bashgetopt.h ../bashhist.h
185fc.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
186fc.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
187fc.o: ../flags.h ../unwind_prot.h ../variables.h ../shell.h ../maxpath.h
188fg_bg.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
189fg_bg.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
190fg_bg.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
191getopts.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
192getopts.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
193getopts.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
194hash.o: ../builtins.h ../command.h ../quit.h ../execute_cmd.h
195hash.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
196hash.o: ../shell.h ../unwind_prot.h ../variables.h common.h ../maxpath.h
197help.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
198help.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
199help.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
200history.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
201history.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
202history.o: ../filecntl.h ../shell.h ../unwind_prot.h ../variables.h
203history.o: ../bashhist.h ../maxpath.h
204inlib.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
205inlib.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
206inlib.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
207jobs.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
208jobs.o: ../quit.h bashgetopt.h ../maxpath.h
209jobs.o: ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
210jobs.o: ../shell.h ../unwind_prot.h ../variables.h
211kill.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
212kill.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
213kill.o: ../shell.h ../trap.h ../unwind_prot.h ../variables.h ../maxpath.h
214let.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
215let.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
216let.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
217read.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
218read.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
219read.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
220return.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
221return.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
222return.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
223set.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
224set.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
225set.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
226setattr.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
227setattr.o: ../quit.h common.h bashgetopt.h ../maxpath.h
228setattr.o: ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
229setattr.o: ../shell.h ../unwind_prot.h ../variables.h
230shift.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
231shift.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
232shift.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
233source.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
234source.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
235source.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
236suspend.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
237suspend.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
238suspend.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
239test.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
240test.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
241test.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
242times.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
243times.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
244times.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
245trap.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
246trap.o: ../quit.h common.h ../maxpath.h
247trap.o: ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
248trap.o: ../shell.h ../unwind_prot.h ../variables.h ../execute_cmd.h
249type.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
250type.o: ../quit.h common.h ../maxpath.h
251type.o: ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
252type.o: ../shell.h ../unwind_prot.h ../variables.h
253ulimit.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
254ulimit.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
255ulimit.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
256umask.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
257umask.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
258umask.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
259wait.o: ../command.h ../config.h ../memalloc.h ../error.h ../general.h
260wait.o: ../quit.h ../dispose_cmd.h ../make_cmd.h ../subst.h ../externs.h
261wait.o: ../shell.h ../unwind_prot.h ../variables.h ../maxpath.h
262
263bashgetopt.o: ../bashansi.h ../ansi_stdlib.h
264mkbuiltins.o: ../bashansi.h ../ansi_stdlib.h
265fc.o: ../bashansi.h ../ansi_stdlib.h
266
267#bind.o: $(RL_LIBSRC)chardefs.h $(RL_LIBSRC)readline.h $(RL_LIBSRC)keymaps.h