Added gitignore entries needed to ignore derived objects generated from full build...
[bash.git] / examples / loadables / Makefile.in
blob343beb02e4b95eda55d9d13066d3ac1102251253
2 # Simple makefile for the sample loadable builtins
4 # Copyright (C) 1996-2009 Free Software Foundation, Inc.
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 # Include some boilerplate Gnu makefile definitions.
21 prefix = @prefix@
23 exec_prefix = @exec_prefix@
24 bindir = @bindir@
25 libdir = @libdir@
26 infodir = @infodir@
27 includedir = @includedir@
29 datarootdir = @datarootdir@
31 topdir = @top_srcdir@
32 BUILD_DIR = @BUILD_DIR@
33 srcdir = @srcdir@
34 VPATH = .:@srcdir@
36 @SET_MAKE@
37 CC = @CC@
38 RM = rm -f
40 SHELL = @MAKE_SHELL@
42 host_os = @host_os@
43 host_cpu = @host_cpu@
44 host_vendor = @host_vendor@
46 CFLAGS = @CFLAGS@
47 LOCAL_CFLAGS = @LOCAL_CFLAGS@
48 DEFS = @DEFS@
49 LOCAL_DEFS = @LOCAL_DEFS@
51 CPPFLAGS = @CPPFLAGS@
53 BASHINCDIR = ${topdir}/include
55 LIBBUILD = ${BUILD_DIR}/lib
57 INTL_LIBSRC = ${topdir}/lib/intl
58 INTL_BUILDDIR = ${LIBBUILD}/intl
59 INTL_INC = @INTL_INC@
60 LIBINTL_H = @LIBINTL_H@
62 CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(LOCAL_CFLAGS) $(CFLAGS)
65 # These values are generated for configure by ${topdir}/support/shobj-conf.
66 # If your system is not supported by that script, but includes facilities for
67 # dynamic loading of shared objects, please update the script and send the
68 # changes to bash-maintainers@gnu.org.
70 SHOBJ_CC = @SHOBJ_CC@
71 SHOBJ_CFLAGS = @SHOBJ_CFLAGS@
72 SHOBJ_LD = @SHOBJ_LD@
73 SHOBJ_LDFLAGS = @SHOBJ_LDFLAGS@ @LDFLAGS@
74 SHOBJ_XLDFLAGS = @SHOBJ_XLDFLAGS@
75 SHOBJ_LIBS = @SHOBJ_LIBS@
76 SHOBJ_STATUS = @SHOBJ_STATUS@
78 INC = -I. -I.. -I$(topdir) -I$(topdir)/lib -I$(topdir)/builtins \
79 -I$(BASHINCDIR) -I$(BUILD_DIR) -I$(LIBBUILD) \
80 -I$(BUILD_DIR)/builtins $(INTL_INC)
82 .c.o:
83 $(SHOBJ_CC) $(SHOBJ_CFLAGS) $(CCFLAGS) $(INC) -c -o $@ $<
86 ALLPROG = print truefalse sleep pushd finfo logname basename dirname \
87 tty pathchk tee head mkdir rmdir printenv id whoami \
88 uname sync push ln unlink cut realpath getconf strftime mypid
89 OTHERPROG = necho hello cat
91 all: $(SHOBJ_STATUS)
93 supported: $(ALLPROG)
94 others: $(OTHERPROG)
96 unsupported:
97 @echo "Your system (${host_os}) is not supported by the"
98 @echo "${topdir}/support/shobj-conf script."
99 @echo "If your operating system provides facilities for dynamic"
100 @echo "loading of shared objects using the dlopen(3) interface,"
101 @echo "please update the script and re-run configure.
102 @echo "Please send the changes you made to bash-maintainers@gnu.org"
103 @echo "for inclusion in future bash releases."
105 everything: supported others
107 print: print.o
108 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ print.o $(SHOBJ_LIBS)
110 necho: necho.o
111 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ necho.o $(SHOBJ_LIBS)
113 getconf: getconf.o
114 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ getconf.o $(SHOBJ_LIBS)
116 hello: hello.o
117 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ hello.o $(SHOBJ_LIBS)
119 truefalse: truefalse.o
120 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ truefalse.o $(SHOBJ_LIBS)
122 sleep: sleep.o
123 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ sleep.o $(SHOBJ_LIBS)
125 finfo: finfo.o
126 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ finfo.o $(SHOBJ_LIBS)
128 cat: cat.o
129 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ cat.o $(SHOBJ_LIBS)
131 logname: logname.o
132 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ logname.o $(SHOBJ_LIBS)
134 basename: basename.o
135 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ basename.o $(SHOBJ_LIBS)
137 dirname: dirname.o
138 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ dirname.o $(SHOBJ_LIBS)
140 tty: tty.o
141 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ tty.o $(SHOBJ_LIBS)
143 pathchk: pathchk.o
144 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ pathchk.o $(SHOBJ_LIBS)
146 tee: tee.o
147 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ tee.o $(SHOBJ_LIBS)
149 mkdir: mkdir.o
150 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ mkdir.o $(SHOBJ_LIBS)
152 rmdir: rmdir.o
153 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ rmdir.o $(SHOBJ_LIBS)
155 head: head.o
156 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ head.o $(SHOBJ_LIBS)
158 printenv: printenv.o
159 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ printenv.o $(SHOBJ_LIBS)
161 id: id.o
162 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ id.o $(SHOBJ_LIBS)
164 whoami: whoami.o
165 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ whoami.o $(SHOBJ_LIBS)
167 uname: uname.o
168 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ uname.o $(SHOBJ_LIBS)
170 sync: sync.o
171 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ sync.o $(SHOBJ_LIBS)
173 push: push.o
174 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ push.o $(SHOBJ_LIBS)
176 ln: ln.o
177 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ ln.o $(SHOBJ_LIBS)
179 unlink: unlink.o
180 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ unlink.o $(SHOBJ_LIBS)
182 cut: cut.o
183 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ cut.o $(SHOBJ_LIBS)
185 realpath: realpath.o
186 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ realpath.o $(SHOBJ_LIBS)
188 strftime: strftime.o
189 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ strftime.o $(SHOBJ_LIBS)
191 mypid: mypid.o
192 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ mypid.o $(SHOBJ_LIBS)
194 # pushd is a special case. We use the same source that the builtin version
195 # uses, with special compilation options.
197 pushd.c: ${topdir}/builtins/pushd.def
198 $(RM) $@
199 ${BUILD_DIR}/builtins/mkbuiltins -D ${topdir}/builtins ${topdir}/builtins/pushd.def
201 pushd.o: pushd.c
202 $(RM) $@
203 $(SHOBJ_CC) -DHAVE_CONFIG_H -DPUSHD_AND_POPD -DLOADABLE_BUILTIN $(SHOBJ_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(INC) -c -o $@ $<
205 pushd: pushd.o
206 $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ pushd.o $(SHOBJ_LIBS)
208 clean:
209 $(RM) $(ALLPROG) $(OTHERPROG) *.o
210 -( cd perl && ${MAKE} ${MFLAGS} $@ )
212 mostlyclean: clean
213 -( cd perl && ${MAKE} ${MFLAGS} $@ )
215 distclean maintainer-clean: clean
216 $(RM) Makefile pushd.c
217 -( cd perl && ${MAKE} ${MFLAGS} $@ )
219 print.o: print.c
220 truefalse.o: truefalse.c
221 sleep.o: sleep.c
222 finfo.o: finfo.c
223 logname.o: logname.c
224 basename.o: basename.c
225 dirname.o: dirname.c
226 tty.o: tty.c
227 pathchk.o: pathchk.c
228 tee.o: tee.c
229 head.o: head.c
230 rmdir.o: rmdir.c
231 necho.o: necho.c
232 getconf.o: getconf.c
233 hello.o: hello.c
234 cat.o: cat.c
235 printenv.o: printenv.c
236 id.o: id.c
237 whoami.o: whoami.c
238 uname.o: uname.c
239 sync.o: sync.c
240 push.o: push.c
241 mkdir.o: mkdir.c
242 realpath.o: realpath.c
243 strftime.o: strftime.c
244 mypid.o: mypid.c