Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | # |
2 | # Makefile | |
7f285245 | 3 | # Copyright (C) 1990, 91-99, 2000, 2001, 2002, 2003 |
252b5132 RH |
4 | # Free Software Foundation |
5 | # | |
6 | # This file is part of the libiberty library. | |
7 | # Libiberty is free software; you can redistribute it and/or | |
8 | # modify it under the terms of the GNU Library General Public | |
9 | # License as published by the Free Software Foundation; either | |
10 | # version 2 of the License, or (at your option) any later version. | |
11 | # | |
12 | # Libiberty is distributed in the hope that it will be useful, | |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | # Library General Public License for more details. | |
16 | # | |
17 | # You should have received a copy of the GNU Library General Public | |
18 | # License along with libiberty; see the file COPYING.LIB. If not, | |
19 | # write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | # Boston, MA 02111-1307, USA. | |
21 | # | |
22 | ||
23 | # This file was written by K. Richard Pixley <rich@cygnus.com>. | |
24 | ||
25 | # | |
26 | # Makefile for libiberty directory | |
27 | # | |
28 | ||
85b9a938 | 29 | libiberty_topdir = @libiberty_topdir@ |
252b5132 RH |
30 | srcdir = @srcdir@ |
31 | VPATH = @srcdir@ | |
32 | ||
33 | prefix = @prefix@ | |
34 | ||
35 | exec_prefix = @exec_prefix@ | |
36 | bindir = @bindir@ | |
37 | libdir = @libdir@ | |
50d4562d DD |
38 | includedir = @includedir@ |
39 | target_header_dir = @target_header_dir@ | |
252b5132 RH |
40 | |
41 | SHELL = @SHELL@ | |
42 | ||
43 | # Multilib support variables. | |
44 | MULTISRCTOP = | |
45 | MULTIBUILDTOP = | |
46 | MULTIDIRS = | |
47 | MULTISUBDIR = | |
48 | MULTIDO = true | |
49 | MULTICLEAN = true | |
50 | ||
51 | INSTALL = @INSTALL@ | |
52 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
53 | INSTALL_DATA = @INSTALL_DATA@ | |
85b9a938 | 54 | mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs |
252b5132 | 55 | |
b39b76b8 DD |
56 | # Some compilers can't handle cc -c blah.c -o foo/blah.o. |
57 | OUTPUT_OPTION = @OUTPUT_OPTION@ | |
58 | ||
252b5132 RH |
59 | AR = @AR@ |
60 | AR_FLAGS = rc | |
61 | ||
62 | CC = @CC@ | |
63 | CFLAGS = @CFLAGS@ | |
64 | LIBCFLAGS = $(CFLAGS) | |
65 | RANLIB = @RANLIB@ | |
39423523 DD |
66 | MAKEINFO = @MAKEINFO@ |
67 | PERL = @PERL@ | |
252b5132 RH |
68 | |
69 | PICFLAG = | |
70 | ||
71 | MAKEOVERRIDES = | |
72 | ||
73 | TARGETLIB = libiberty.a | |
cc096b71 | 74 | TESTLIB = testlib.a |
252b5132 RH |
75 | |
76 | LIBOBJS = @LIBOBJS@ | |
252b5132 RH |
77 | |
78 | # A configuration can specify extra .o files that should be included, | |
79 | # even if they are in libc. (Perhaps the libc version is buggy.) | |
80 | EXTRA_OFILES = | |
81 | ||
82 | # Flags to pass to a recursive make. | |
83 | FLAGS_TO_PASS = \ | |
84 | "AR=$(AR)" \ | |
85 | "AR_FLAGS=$(AR_FLAGS)" \ | |
86 | "CC=$(CC)" \ | |
87 | "CFLAGS=$(CFLAGS)" \ | |
27a39a5f | 88 | "DESTDIR=$(DESTDIR)" \ |
252b5132 RH |
89 | "LIBCFLAGS=$(LIBCFLAGS)" \ |
90 | "EXTRA_OFILES=$(EXTRA_OFILES)" \ | |
91 | "HDEFINES=$(HDEFINES)" \ | |
92 | "INSTALL=$(INSTALL)" \ | |
93 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
94 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
95 | "LDFLAGS=$(LDFLAGS)" \ | |
96 | "LOADLIBES=$(LOADLIBES)" \ | |
97 | "RANLIB=$(RANLIB)" \ | |
0c0a36a4 ILT |
98 | "SHELL=$(SHELL)" \ |
99 | "prefix=$(prefix)" \ | |
100 | "exec_prefix=$(exec_prefix)" \ | |
101 | "libdir=$(libdir)" \ | |
102 | "libsubdir=$(libsubdir)" \ | |
103 | "tooldir=$(tooldir)" | |
252b5132 | 104 | |
0c0a36a4 ILT |
105 | # Subdirectories to recurse into. We need to override this during cleaning |
106 | SUBDIRS = testsuite | |
107 | ||
39423523 | 108 | # FIXME: add @BUILD_INFO@ once we're sure it works for everyone. |
0c0a36a4 | 109 | all: stamp-picdir $(TARGETLIB) needed-list required-list all-subdir |
1b67de92 | 110 | @: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all |
252b5132 RH |
111 | |
112 | .PHONY: check installcheck | |
0c0a36a4 ILT |
113 | check: check-subdir |
114 | installcheck: installcheck-subdir | |
252b5132 RH |
115 | |
116 | @host_makefile_frag@ | |
117 | ||
118 | INCDIR=$(srcdir)/$(MULTISRCTOP)../include | |
119 | ||
eb383413 | 120 | COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@ |
252b5132 | 121 | .c.o: |
eb383413 L |
122 | if [ x"$(PICFLAG)" != x ]; then \ |
123 | $(COMPILE.c) $(PICFLAG) $< -o pic/$@; \ | |
124 | else true; fi | |
b39b76b8 | 125 | $(COMPILE.c) $< $(OUTPUT_OPTION) |
252b5132 | 126 | |
252b5132 | 127 | # NOTE: If you add new files to the library, add them to this list |
cc096b71 DD |
128 | # (alphabetical), and add them to REQUIRED_OFILES, or |
129 | # CONFIGURED_OFILES and funcs in configure.in. | |
130 | CFILES = alloca.c argv.c asprintf.c atexit.c \ | |
131 | basename.c bcmp.c bcopy.c bsearch.c bzero.c \ | |
132 | calloc.c choose-temp.c clock.c concat.c cp-demangle.c \ | |
133 | cplus-dem.c \ | |
134 | dyn-string.c \ | |
135 | fdmatch.c ffs.c fibheap.c floatformat.c fnmatch.c \ | |
136 | getcwd.c getopt.c getopt1.c getpagesize.c getpwd.c getruntime.c \ | |
137 | hashtab.c hex.c \ | |
138 | index.c insque.c \ | |
139 | lbasename.c \ | |
ba61a412 | 140 | lrealpath.c \ |
2a80c0a4 | 141 | make-relative-prefix.c \ |
cc096b71 | 142 | make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmove.c \ |
10b57b38 | 143 | mempcpy.c memset.c mkstemps.c \ |
cc096b71 | 144 | objalloc.c obstack.c \ |
5a17353c | 145 | partition.c \ |
9c2259b8 | 146 | pex-djgpp.c pex-mpw.c pex-msdos.c pex-os2.c \ |
5a17353c | 147 | pex-unix.c pex-win32.c \ |
4938384a | 148 | physmem.c putenv.c \ |
cc096b71 | 149 | random.c regex.c rename.c rindex.c \ |
2ed1e5cc | 150 | safe-ctype.c setenv.c sigsetmask.c snprintf.c sort.c spaces.c \ |
10b57b38 DD |
151 | splay-tree.c stpcpy.c stpncpy.c strcasecmp.c strchr.c strdup.c \ |
152 | strerror.c strncasecmp.c strncmp.c strrchr.c strsignal.c \ | |
153 | strstr.c strtod.c strtol.c strtoul.c \ | |
cc096b71 | 154 | ternary.c tmpnam.c \ |
2ed1e5cc | 155 | vasprintf.c vfork.c vfprintf.c vprintf.c vsnprintf.c vsprintf.c \ |
cc096b71 DD |
156 | waitpid.c \ |
157 | xatexit.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c | |
158 | ||
159 | # These are always included in the library. The first four are listed | |
160 | # first and by compile time to optimize parallel builds. | |
161 | REQUIRED_OFILES = regex.o cplus-dem.o cp-demangle.o md5.o \ | |
162 | alloca.o argv.o \ | |
163 | choose-temp.o concat.o \ | |
164 | dyn-string.o \ | |
165 | fdmatch.o fibheap.o floatformat.o fnmatch.o \ | |
166 | getopt.o getopt1.o getpwd.o getruntime.o \ | |
167 | hashtab.o hex.o \ | |
168 | lbasename.o \ | |
ba61a412 | 169 | lrealpath.o \ |
2a80c0a4 | 170 | make-relative-prefix.o \ |
cc096b71 DD |
171 | make-temp-file.o \ |
172 | objalloc.o obstack.o \ | |
4938384a | 173 | partition.o physmem.o @pexecute@ \ |
cc096b71 DD |
174 | safe-ctype.o sort.o spaces.o splay-tree.o strerror.o \ |
175 | strsignal.o \ | |
176 | ternary.o \ | |
177 | xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o | |
30673bf5 | 178 | |
39423523 | 179 | # These are all the objects that configure may add to the library via |
cc096b71 DD |
180 | # $funcs or EXTRA_OFILES. This list exists here only for "make |
181 | # maint-missing" and "make check". | |
182 | CONFIGURED_OFILES = asprintf.o atexit.o \ | |
183 | basename.o bcmp.o bcopy.o bsearch.o bzero.o \ | |
184 | calloc.o clock.o copysign.o \ | |
185 | _doprnt.o \ | |
186 | ffs.o \ | |
187 | getcwd.o getpagesize.o \ | |
188 | index.o insque.o \ | |
10b57b38 | 189 | memchr.o memcmp.o memcpy.o memmove.o mempcpy.o memset.o mkstemps.o \ |
9c2259b8 | 190 | pex-djgpp.o pex-mpw.o pex-msdos.o pex-os2.o \ |
5a17353c DD |
191 | pex-unix.o pex-win32.o \ |
192 | putenv.o \ | |
cc096b71 | 193 | random.o rename.o rindex.o \ |
2ed1e5cc DD |
194 | setenv.o sigsetmask.o snprintf.o stpcpy.o stpncpy.o strcasecmp.o \ |
195 | strchr.o strdup.o strncasecmp.o strncmp.o strrchr.o strstr.o \ | |
196 | strtod.o strtol.o strtoul.o \ | |
cc096b71 | 197 | tmpnam.o \ |
2ed1e5cc | 198 | vasprintf.o vfork.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \ |
cc096b71 | 199 | waitpid.o |
39423523 | 200 | |
50d4562d DD |
201 | # These files are installed if the library has been configured to do so. |
202 | INSTALLED_HEADERS = \ | |
203 | $(INCDIR)/ansidecl.h \ | |
204 | $(INCDIR)/demangle.h \ | |
205 | $(INCDIR)/dyn-string.h \ | |
206 | $(INCDIR)/fibheap.h \ | |
207 | $(INCDIR)/floatformat.h \ | |
208 | $(INCDIR)/hashtab.h \ | |
209 | $(INCDIR)/libiberty.h \ | |
210 | $(INCDIR)/objalloc.h \ | |
211 | $(INCDIR)/partition.h \ | |
212 | $(INCDIR)/safe-ctype.h \ | |
213 | $(INCDIR)/sort.h \ | |
214 | $(INCDIR)/splay-tree.h \ | |
215 | $(INCDIR)/ternary.h | |
216 | ||
30673bf5 | 217 | $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) |
3bc62f91 | 218 | -rm -f $(TARGETLIB) pic/$(TARGETLIB) |
252b5132 | 219 | $(AR) $(AR_FLAGS) $(TARGETLIB) \ |
30673bf5 | 220 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) |
252b5132 | 221 | $(RANLIB) $(TARGETLIB) |
3bc62f91 DD |
222 | if [ x"$(PICFLAG)" != x ]; then \ |
223 | cd pic; \ | |
224 | $(AR) $(AR_FLAGS) $(TARGETLIB) \ | |
225 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ | |
226 | $(RANLIB) $(TARGETLIB); \ | |
227 | cd ..; \ | |
228 | else true; fi | |
252b5132 | 229 | |
cc096b71 DD |
230 | $(TESTLIB): $(REQUIRED_OFILES) $(CONFIGURED_OFILES) |
231 | -rm -f $(TESTLIB) | |
232 | $(AR) $(AR_FLAGS) $(TESTLIB) \ | |
233 | $(REQUIRED_OFILES) $(CONFIGURED_OFILES) | |
234 | $(RANLIB) $(TESTLIB) | |
235 | ||
39423523 DD |
236 | info: libiberty.info info-subdir |
237 | install-info: install-info-subdir | |
238 | clean-info: clean-info-subdir | |
239 | dvi: libiberty.dvi dvi-subdir | |
240 | html: libiberty.html | |
241 | ||
242 | TEXISRC = \ | |
243 | $(srcdir)/libiberty.texi \ | |
244 | $(srcdir)/copying-lib.texi \ | |
245 | $(srcdir)/obstacks.texi \ | |
246 | $(srcdir)/functions.texi | |
247 | ||
248 | # Additional files that have texi snippets that need to be collected | |
ba19b94f DD |
249 | # and sorted. Some are here because the sources are imported from |
250 | # elsewhere. Others represent headers in ../include. | |
5a17353c | 251 | TEXIFILES = fnmatch.txh pexecute.txh |
39423523 DD |
252 | |
253 | libiberty.info : $(srcdir)/libiberty.texi $(TEXISRC) | |
254 | $(MAKEINFO) -I$(srcdir) $(srcdir)/libiberty.texi | |
255 | ||
256 | libiberty.dvi : $(srcdir)/libiberty.texi $(TEXISRC) | |
257 | texi2dvi $(srcdir)/libiberty.texi | |
258 | ||
259 | libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC) | |
260 | $(MAKEINFO) --html -I$(srcdir) $(srcdir)/libiberty.texi | |
261 | ||
262 | @MAINT@$(srcdir)/functions.texi : stamp-functions | |
263 | @MAINT@ @true | |
264 | ||
265 | @MAINT@stamp-functions : $(CFILES) $(TEXIFILES) $(srcdir)/gather-docs Makefile | |
266 | @MAINT@@HAVE_PERL@ $(PERL) $(srcdir)/gather-docs $(srcdir) $(srcdir)/functions.texi $(CFILES) $(TEXIFILES) | |
267 | @MAINT@ echo stamp > stamp-functions | |
268 | ||
252b5132 | 269 | INSTALL_DEST = @INSTALL_DEST@ |
0c0a36a4 | 270 | install: install_to_$(INSTALL_DEST) install-subdir |
252b5132 RH |
271 | |
272 | install_to_libdir: all | |
27a39a5f | 273 | ${mkinstalldirs} $(DESTDIR)$(libdir)$(MULTISUBDIR) |
4748c6d8 DD |
274 | $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n |
275 | ( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n ) | |
276 | mv -f $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB) | |
50d4562d DD |
277 | if test -n "${target_header_dir}"; then \ |
278 | case "${target_header_dir}" in \ | |
279 | /*) thd=${target_header_dir};; \ | |
280 | *) thd=${includedir}${MULTISUBDIR}/${target_header_dir};; \ | |
281 | esac; \ | |
4748c6d8 | 282 | ${mkinstalldirs} $(DESTDIR)$${thd}; \ |
50d4562d | 283 | for h in ${INSTALLED_HEADERS}; do \ |
4748c6d8 | 284 | ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \ |
50d4562d DD |
285 | done; \ |
286 | fi | |
252b5132 RH |
287 | @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install |
288 | ||
aa072e59 AO |
289 | # This is tricky. Even though CC in the Makefile contains |
290 | # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the | |
291 | # default multilib, so we have to take LIBCFLAGS into account as well, | |
292 | # since it will be passed the multilib flags. | |
293 | MULTIOSDIR = `$(CC) $(LIBCFLAGS) -print-multi-os-directory` | |
252b5132 | 294 | install_to_tooldir: all |
aa072e59 AO |
295 | ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) |
296 | $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n | |
297 | ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; $(RANLIB) $(TARGETLIB)n ) | |
298 | mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB) | |
252b5132 RH |
299 | @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install |
300 | ||
0c0a36a4 ILT |
301 | # needed-list is used by libstdc++. NEEDED is the list of functions |
302 | # to include there. Do not add anything LGPL to this list; libstdc++ | |
303 | # can't use anything encumbering. | |
304 | NEEDED = atexit calloc memchr memcmp memcpy memmove memset rename strchr \ | |
eb383413 | 305 | strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf \ |
0c0a36a4 | 306 | vfork waitpid bcmp bcopy bzero |
252b5132 | 307 | needed-list: Makefile |
0c0a36a4 ILT |
308 | rm -f needed-list; touch needed-list; \ |
309 | for f in $(NEEDED); do \ | |
310 | for g in $(LIBOBJS) $(EXTRA_OFILES); do \ | |
311 | case "$$g" in \ | |
312 | *$$f*) echo $$g >> needed-list ;; \ | |
313 | esac; \ | |
314 | done; \ | |
315 | done | |
252b5132 RH |
316 | |
317 | # required-list was used when building a shared bfd/opcodes/libiberty | |
318 | # library. I don't know if it used by anything currently. | |
319 | required-list: Makefile | |
320 | echo $(REQUIRED_OFILES) > required-list | |
321 | ||
322 | stamp-picdir: | |
eb383413 | 323 | if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \ |
252b5132 RH |
324 | mkdir pic; \ |
325 | else true; fi | |
326 | touch stamp-picdir | |
327 | ||
328 | .PHONY: all etags tags ls clean stage1 stage2 | |
329 | ||
0c0a36a4 | 330 | etags tags: TAGS etags-subdir |
252b5132 | 331 | |
30673bf5 DD |
332 | TAGS: $(CFILES) |
333 | etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done` | |
252b5132 RH |
334 | |
335 | # The standalone demangler (c++filt) has been moved to binutils. | |
336 | demangle: | |
337 | @echo "The standalone demangler, now named c++filt, is now" | |
338 | @echo "a part of binutils." | |
339 | @false | |
340 | ||
341 | ls: | |
30673bf5 | 342 | @echo Makefile $(CFILES) |
252b5132 | 343 | |
39423523 DD |
344 | # Various targets for maintainers. |
345 | ||
346 | maint-missing : | |
347 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) missing $(CFILES) $(REQUIRED_OFILES) $(CONFIGURED_OFILES) | |
348 | ||
349 | maint-buildall : $(REQUIRED_OFILES) $(CONFIGURED_OFILES) | |
350 | @true | |
351 | ||
ba19b94f DD |
352 | maint-undoc : $(srcdir)/functions.texi |
353 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc | |
354 | ||
cc096b71 DD |
355 | maint-deps : |
356 | @$(PERL) $(srcdir)/maint-tool -s $(srcdir) deps $(INCDIR) | |
357 | ||
252b5132 RH |
358 | # Need to deal with profiled libraries, too. |
359 | ||
0c0a36a4 ILT |
360 | # Cleaning has to be done carefully to ensure that we don't clean our SUBDIRS |
361 | # multiple times, hence our explicit recursion with an empty SUBDIRS. | |
362 | mostlyclean: mostlyclean-subdir | |
c00c39ed DD |
363 | -rm -rf *.o pic core errs \#* *.E a.out |
364 | -rm -f needed.awk needed2.awk errors dummy needed-list config.h stamp-* | |
365 | -rm -f $(CONFIG_H) $(NEEDED_LIST) stamp-picdir | |
39423523 DD |
366 | -rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky |
367 | -rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg | |
368 | -rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.vr | |
369 | -rm -f libtexi.stamp | |
252b5132 | 370 | @$(MULTICLEAN) multi-clean DO=mostlyclean |
0c0a36a4 ILT |
371 | clean: clean-subdir |
372 | $(MAKE) SUBDIRS="" mostlyclean | |
c00c39ed | 373 | -rm -f *.a required-list tmpmulti.out |
39423523 | 374 | -rm -f libiberty.dvi libiberty.info* libiberty.html |
252b5132 | 375 | @$(MULTICLEAN) multi-clean DO=clean |
0c0a36a4 ILT |
376 | distclean: distclean-subdir |
377 | $(MAKE) SUBDIRS="" clean | |
252b5132 | 378 | @$(MULTICLEAN) multi-clean DO=distclean |
c00c39ed DD |
379 | -rm -f *~ Makefile config.status xhost-mkfrag TAGS multilib.out |
380 | -rm -f config.log | |
4415a860 | 381 | -rmdir testsuite 2>/dev/null |
0c0a36a4 ILT |
382 | maintainer-clean realclean: maintainer-clean-subdir |
383 | $(MAKE) SUBDIRS="" distclean | |
252b5132 RH |
384 | |
385 | force: | |
386 | ||
387 | Makefile: $(srcdir)/Makefile.in config.status | |
388 | CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status | |
389 | ||
fec50157 DD |
390 | # Depending on Makefile makes sure that config.status has been re-run |
391 | # if needed. This prevents problems with parallel builds. | |
252b5132 | 392 | config.h: stamp-h ; @true |
fec50157 | 393 | stamp-h: config.in config.status Makefile |
252b5132 RH |
394 | CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status |
395 | ||
396 | config.status: $(srcdir)/configure $(srcdir)/config.table | |
397 | $(SHELL) ./config.status --recheck | |
398 | ||
fec50157 DD |
399 | # Depending on config.h makes sure that config.status has been re-run |
400 | # if needed. This prevents problems with parallel builds, in case | |
401 | # subdirectories need to run config.status also. | |
0c0a36a4 ILT |
402 | all-subdir check-subdir installcheck-subdir info-subdir \ |
403 | install-info-subdir clean-info-subdir dvi-subdir install-subdir \ | |
404 | etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \ | |
fec50157 | 405 | maintainer-clean-subdir: config.h |
010c70e1 | 406 | @subdirs='$(SUBDIRS)'; \ |
19be4303 | 407 | target=`echo $@ | sed -e 's/-subdir//'`; \ |
010c70e1 | 408 | for dir in $$subdirs ; do \ |
578460f2 | 409 | cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \ |
0c0a36a4 ILT |
410 | done |
411 | ||
30673bf5 | 412 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS): stamp-picdir |
cc096b71 DD |
413 | $(CONFIGURED_OFILES): stamp-picdir |
414 | ||
415 | # The dependencies in the remainder of this file are automatically | |
416 | # generated by "make maint-deps". Manual edits will be lost. | |
252b5132 | 417 | |
cc096b71 DD |
418 | _doprnt.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h |
419 | alloca.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
420 | argv.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
421 | asprintf.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
252b5132 | 422 | atexit.o: config.h |
cc096b71 DD |
423 | basename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
424 | $(INCDIR)/safe-ctype.h | |
425 | bsearch.o: config.h $(INCDIR)/ansidecl.h | |
1ea16ec5 | 426 | calloc.o: $(INCDIR)/ansidecl.h |
cc096b71 | 427 | choose-temp.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
252b5132 | 428 | clock.o: config.h |
cc096b71 DD |
429 | concat.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
430 | copysign.o: $(INCDIR)/ansidecl.h | |
431 | cp-demangle.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/demangle.h \ | |
432 | $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h | |
433 | cplus-dem.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/demangle.h \ | |
1ea16ec5 | 434 | $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h |
cc096b71 DD |
435 | dyn-string.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/dyn-string.h \ |
436 | $(INCDIR)/libiberty.h | |
437 | fdmatch.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
438 | fibheap.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/fibheap.h \ | |
439 | $(INCDIR)/libiberty.h | |
440 | floatformat.o: $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h | |
441 | fnmatch.o: config.h $(INCDIR)/fnmatch.h $(INCDIR)/safe-ctype.h | |
252b5132 RH |
442 | getcwd.o: config.h |
443 | getopt.o: config.h $(INCDIR)/getopt.h | |
444 | getopt1.o: config.h $(INCDIR)/getopt.h | |
445 | getpagesize.o: config.h | |
cc096b71 DD |
446 | getpwd.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
447 | getruntime.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
448 | hashtab.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/hashtab.h \ | |
449 | $(INCDIR)/libiberty.h | |
70ecf948 DD |
450 | hex.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
451 | $(INCDIR)/safe-ctype.h | |
cc096b71 DD |
452 | lbasename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
453 | $(INCDIR)/safe-ctype.h | |
ba61a412 | 454 | lrealpath.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
1ea16ec5 DD |
455 | make-relative-prefix.o: config.h $(INCDIR)/ansidecl.h \ |
456 | $(INCDIR)/libiberty.h | |
cc096b71 DD |
457 | make-temp-file.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
458 | md5.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h | |
459 | memchr.o: $(INCDIR)/ansidecl.h | |
460 | memcmp.o: $(INCDIR)/ansidecl.h | |
461 | memcpy.o: $(INCDIR)/ansidecl.h | |
462 | memmove.o: $(INCDIR)/ansidecl.h | |
10b57b38 | 463 | mempcpy.o: $(INCDIR)/ansidecl.h |
cc096b71 DD |
464 | memset.o: $(INCDIR)/ansidecl.h |
465 | mkstemps.o: config.h $(INCDIR)/ansidecl.h | |
466 | objalloc.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/objalloc.h | |
252b5132 | 467 | obstack.o: config.h $(INCDIR)/obstack.h |
cc096b71 DD |
468 | partition.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
469 | $(INCDIR)/partition.h | |
1ea16ec5 DD |
470 | pex-djgpp.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
471 | $(srcdir)/pex-common.h | |
472 | pex-mpw.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ | |
473 | $(srcdir)/pex-common.h | |
474 | pex-msdos.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ | |
475 | $(srcdir)/pex-common.h $(INCDIR)/safe-ctype.h | |
476 | pex-os2.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ | |
477 | $(srcdir)/pex-common.h | |
478 | pex-unix.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ | |
479 | $(srcdir)/pex-common.h | |
480 | pex-win32.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ | |
481 | $(srcdir)/pex-common.h | |
482 | physmem.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
cc096b71 DD |
483 | putenv.o: config.h $(INCDIR)/ansidecl.h |
484 | random.o: $(INCDIR)/ansidecl.h | |
a5d8f731 | 485 | regex.o: config.h $(INCDIR)/xregex.h $(INCDIR)/xregex2.h |
1ea16ec5 | 486 | rename.o: config.h $(INCDIR)/ansidecl.h |
cc096b71 DD |
487 | safe-ctype.o: $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h |
488 | setenv.o: config.h $(INCDIR)/ansidecl.h | |
489 | sigsetmask.o: $(INCDIR)/ansidecl.h | |
2ed1e5cc | 490 | snprintf.o: $(INCDIR)/ansidecl.h |
cc096b71 DD |
491 | sort.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
492 | $(INCDIR)/sort.h | |
493 | spaces.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
494 | splay-tree.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ | |
495 | $(INCDIR)/splay-tree.h | |
10b57b38 DD |
496 | stpcpy.o: $(INCDIR)/ansidecl.h |
497 | stpncpy.o: $(INCDIR)/ansidecl.h | |
cc096b71 DD |
498 | strcasecmp.o: $(INCDIR)/ansidecl.h |
499 | strchr.o: $(INCDIR)/ansidecl.h | |
1ea16ec5 | 500 | strdup.o: $(INCDIR)/ansidecl.h |
cc096b71 DD |
501 | strerror.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
502 | strncasecmp.o: $(INCDIR)/ansidecl.h | |
503 | strncmp.o: $(INCDIR)/ansidecl.h | |
504 | strrchr.o: $(INCDIR)/ansidecl.h | |
505 | strsignal.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
506 | strtod.o: $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h | |
507 | strtol.o: config.h $(INCDIR)/safe-ctype.h | |
508 | strtoul.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h | |
509 | ternary.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ | |
510 | $(INCDIR)/ternary.h | |
511 | vasprintf.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
512 | vfork.o: $(INCDIR)/ansidecl.h | |
1ea16ec5 | 513 | vfprintf.o: $(INCDIR)/ansidecl.h |
cc096b71 | 514 | vprintf.o: $(INCDIR)/ansidecl.h |
2ed1e5cc | 515 | vsnprintf.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
cc096b71 | 516 | vsprintf.o: $(INCDIR)/ansidecl.h |
90aaccd1 | 517 | waitpid.o: config.h |
cc096b71 DD |
518 | xatexit.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |
519 | xexit.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
520 | xmalloc.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
521 | xmemdup.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
522 | xstrdup.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h | |
523 | xstrerror.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h |