]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/Makefile.in
Daily bump.
[thirdparty/gcc.git] / libiberty / Makefile.in
CommitLineData
f4f29b59
BE
1# Makefile for the libiberty library.
2# Originally written by K. Richard Pixley <rich@cygnus.com>.
6599da04 3#
f4f29b59 4# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
11ec770e 5# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
1cfabf34 6# Free Software Foundation
6599da04
JM
7#
8# This file is part of the libiberty library.
9# Libiberty is free software; you can redistribute it and/or
10# modify it under the terms of the GNU Library General Public
11# License as published by the Free Software Foundation; either
12# version 2 of the License, or (at your option) any later version.
13#
14# Libiberty is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17# Library General Public License for more details.
18#
19# You should have received a copy of the GNU Library General Public
20# License along with libiberty; see the file COPYING.LIB. If not,
ee58dffd
NC
21# write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
22# Boston, MA 02110-1301, USA.
6599da04 23
d8c22ce7 24libiberty_topdir = @libiberty_topdir@
3affd5f0 25srcdir = @srcdir@
6599da04 26
3affd5f0 27prefix = @prefix@
6599da04 28
3affd5f0
JL
29exec_prefix = @exec_prefix@
30bindir = @bindir@
31libdir = @libdir@
48d7db63
PE
32includedir = @includedir@
33target_header_dir = @target_header_dir@
16f60fcb 34objext = @OBJEXT@
6599da04 35
3affd5f0 36SHELL = @SHELL@
6599da04
JM
37
38# Multilib support variables.
39MULTISRCTOP =
40MULTIBUILDTOP =
41MULTIDIRS =
42MULTISUBDIR =
43MULTIDO = true
44MULTICLEAN = true
45
3affd5f0
JL
46INSTALL = @INSTALL@
47INSTALL_PROGRAM = @INSTALL_PROGRAM@
48INSTALL_DATA = @INSTALL_DATA@
d8c22ce7 49mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs
6599da04 50
24f2cabb
L
51# Some compilers can't handle cc -c blah.c -o foo/blah.o.
52OUTPUT_OPTION = @OUTPUT_OPTION@
53
3affd5f0 54AR = @AR@
6599da04
JM
55AR_FLAGS = rc
56
3affd5f0
JL
57CC = @CC@
58CFLAGS = @CFLAGS@
b36c386c 59CPPFLAGS = @CPPFLAGS@
3affd5f0 60RANLIB = @RANLIB@
aaa5f039
DD
61MAKEINFO = @MAKEINFO@
62PERL = @PERL@
6599da04 63
c91c9c2e 64PICFLAG = @PICFLAG@
6599da04
JM
65
66MAKEOVERRIDES =
67
398b3deb
DD
68TARGETLIB = ./libiberty.a
69TESTLIB = ./testlib.a
6599da04 70
3affd5f0 71LIBOBJS = @LIBOBJS@
6599da04
JM
72
73# A configuration can specify extra .o files that should be included,
74# even if they are in libc. (Perhaps the libc version is buggy.)
75EXTRA_OFILES =
76
77# Flags to pass to a recursive make.
78FLAGS_TO_PASS = \
79 "AR=$(AR)" \
80 "AR_FLAGS=$(AR_FLAGS)" \
81 "CC=$(CC)" \
82 "CFLAGS=$(CFLAGS)" \
b36c386c 83 "CPPFLAGS=$(CPPFLAGS)" \
90e5b39f 84 "DESTDIR=$(DESTDIR)" \
6599da04
JM
85 "EXTRA_OFILES=$(EXTRA_OFILES)" \
86 "HDEFINES=$(HDEFINES)" \
87 "INSTALL=$(INSTALL)" \
88 "INSTALL_DATA=$(INSTALL_DATA)" \
89 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
90 "LDFLAGS=$(LDFLAGS)" \
91 "LOADLIBES=$(LOADLIBES)" \
6599da04 92 "RANLIB=$(RANLIB)" \
76632dd0
DJ
93 "SHELL=$(SHELL)" \
94 "prefix=$(prefix)" \
95 "exec_prefix=$(exec_prefix)" \
96 "libdir=$(libdir)" \
97 "libsubdir=$(libsubdir)" \
98 "tooldir=$(tooldir)"
6599da04 99
2c375143
NS
100# Subdirectories to recurse into. We need to override this during cleaning
101SUBDIRS = testsuite
102
aaa5f039 103# FIXME: add @BUILD_INFO@ once we're sure it works for everyone.
ae2040df 104all: stamp-picdir $(TARGETLIB) required-list all-subdir
ef74edbd 105 @: $(MAKE) ; $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
6599da04
JM
106
107.PHONY: check installcheck
7c72138a
TT
108check: check-subdir
109installcheck: installcheck-subdir
6599da04 110
3affd5f0 111@host_makefile_frag@
6599da04
JM
112
113INCDIR=$(srcdir)/$(MULTISRCTOP)../include
114
b36c386c 115COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@
398b3deb
DD
116
117# Just to make sure we don't use a built-in rule with VPATH
16f60fcb 118.c.$(objext):
398b3deb 119 false
6599da04 120
6599da04 121# NOTE: If you add new files to the library, add them to this list
24f2cabb
L
122# (alphabetical), and add them to REQUIRED_OFILES, or
123# CONFIGURED_OFILES and funcs in configure.ac. Also run "make maint-deps"
124# to build the new rules.
9ce3f7e5
DD
125CFILES = alloca.c argv.c asprintf.c atexit.c \
126 basename.c bcmp.c bcopy.c bsearch.c bzero.c \
127 calloc.c choose-temp.c clock.c concat.c cp-demangle.c \
b524249c 128 cp-demint.c cplus-dem.c crc32.c \
11ec770e 129 dwarfnames.c dyn-string.c \
cde515d9
JB
130 fdmatch.c ffs.c fibheap.c filename_cmp.c floatformat.c \
131 fnmatch.c fopen_unlocked.c \
9ce3f7e5 132 getcwd.c getopt.c getopt1.c getpagesize.c getpwd.c getruntime.c \
17049f0b 133 gettimeofday.c \
9ce3f7e5
DD
134 hashtab.c hex.c \
135 index.c insque.c \
136 lbasename.c \
4876b2b4 137 lrealpath.c \
42766f8d 138 make-relative-prefix.c \
5fbd9447
ILT
139 make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmem.c \
140 memmove.c mempcpy.c memset.c mkstemps.c \
9ce3f7e5 141 objalloc.c obstack.c \
a584cf65
ILT
142 partition.c pexecute.c \
143 pex-common.c pex-djgpp.c pex-msdos.c pex-one.c \
55d0e5e0 144 pex-unix.c pex-win32.c \
a354191e 145 physmem.c putenv.c \
9ce3f7e5 146 random.c regex.c rename.c rindex.c \
6e9bd0f8 147 safe-ctype.c setenv.c setproctitle.c sha1.c sigsetmask.c \
1cfabf34 148 simple-object.c simple-object-coff.c simple-object-elf.c \
a9b01f00 149 simple-object-mach-o.c simple-object-xcoff.c \
6e9bd0f8 150 snprintf.c sort.c \
d423df48
JJ
151 spaces.c splay-tree.c stack-limit.c stpcpy.c stpncpy.c \
152 strcasecmp.c strchr.c strdup.c strerror.c strncasecmp.c \
153 strncmp.c strrchr.c strsignal.c strstr.c strtod.c strtol.c \
9a9baa52 154 strtoul.c strndup.c strnlen.c strverscmp.c \
4092fb6e 155 timeval-utils.c tmpnam.c \
c363985d 156 unlink-if-ordinary.c \
bd3fbc6b 157 vasprintf.c vfork.c vfprintf.c vprintf.c vsnprintf.c vsprintf.c \
9ce3f7e5 158 waitpid.c \
17998b22
KG
159 xatexit.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c \
160 xstrndup.c
9ce3f7e5
DD
161
162# These are always included in the library. The first four are listed
163# first and by compile time to optimize parallel builds.
598848e4 164REQUIRED_OFILES = \
16f60fcb
TG
165 ./regex.$(objext) ./cplus-dem.$(objext) ./cp-demangle.$(objext) \
166 ./md5.$(objext) ./sha1.$(objext) ./alloca.$(objext) \
167 ./argv.$(objext) \
168 ./choose-temp.$(objext) ./concat.$(objext) \
11ec770e
TT
169 ./cp-demint.$(objext) ./crc32.$(objext) \
170 ./dwarfnames.$(objext) ./dyn-string.$(objext) \
16f60fcb
TG
171 ./fdmatch.$(objext) ./fibheap.$(objext) \
172 ./filename_cmp.$(objext) ./floatformat.$(objext) \
173 ./fnmatch.$(objext) ./fopen_unlocked.$(objext) \
174 ./getopt.$(objext) ./getopt1.$(objext) ./getpwd.$(objext) \
175 ./getruntime.$(objext) ./hashtab.$(objext) ./hex.$(objext) \
176 ./lbasename.$(objext) ./lrealpath.$(objext) \
177 ./make-relative-prefix.$(objext) ./make-temp-file.$(objext) \
1cfabf34
ILT
178 ./objalloc.$(objext) \
179 ./obstack.$(objext) \
16f60fcb
TG
180 ./partition.$(objext) ./pexecute.$(objext) ./physmem.$(objext) \
181 ./pex-common.$(objext) ./pex-one.$(objext) \
182 ./@pexecute@.$(objext) \
1cfabf34
ILT
183 ./safe-ctype.$(objext) \
184 ./simple-object.$(objext) ./simple-object-coff.$(objext) \
185 ./simple-object-elf.$(objext) ./simple-object-mach-o.$(objext) \
a9b01f00 186 ./simple-object-xcoff.$(objext) \
1cfabf34 187 ./sort.$(objext) ./spaces.$(objext) \
d423df48 188 ./splay-tree.$(objext) ./stack-limit.$(objext) \
4092fb6e
DE
189 ./strerror.$(objext) ./strsignal.$(objext) \
190 ./timeval-utils.$(objext) ./unlink-if-ordinary.$(objext) \
16f60fcb
TG
191 ./xatexit.$(objext) ./xexit.$(objext) ./xmalloc.$(objext) \
192 ./xmemdup.$(objext) ./xstrdup.$(objext) ./xstrerror.$(objext) \
193 ./xstrndup.$(objext)
b548dffb 194
aaa5f039 195# These are all the objects that configure may add to the library via
9ce3f7e5
DD
196# $funcs or EXTRA_OFILES. This list exists here only for "make
197# maint-missing" and "make check".
16f60fcb
TG
198CONFIGURED_OFILES = ./asprintf.$(objext) ./atexit.$(objext) \
199 ./basename.$(objext) ./bcmp.$(objext) ./bcopy.$(objext) \
200 ./bsearch.$(objext) ./bzero.$(objext) \
201 ./calloc.$(objext) ./clock.$(objext) ./copysign.$(objext) \
202 ./_doprnt.$(objext) \
203 ./ffs.$(objext) \
204 ./getcwd.$(objext) ./getpagesize.$(objext) \
205 ./gettimeofday.$(objext) \
206 ./index.$(objext) ./insque.$(objext) \
207 ./memchr.$(objext) ./memcmp.$(objext) ./memcpy.$(objext) \
208 ./memmem.$(objext) ./memmove.$(objext) \
209 ./mempcpy.$(objext) ./memset.$(objext) ./mkstemps.$(objext) \
210 ./pex-djgpp.$(objext) ./pex-msdos.$(objext) \
211 ./pex-unix.$(objext) ./pex-win32.$(objext) \
212 ./putenv.$(objext) \
213 ./random.$(objext) ./rename.$(objext) ./rindex.$(objext) \
6e9bd0f8
AK
214 ./setenv.$(objext) \
215 ./setproctitle.$(objext) \
216 ./sigsetmask.$(objext) ./snprintf.$(objext) \
16f60fcb
TG
217 ./stpcpy.$(objext) ./stpncpy.$(objext) ./strcasecmp.$(objext) \
218 ./strchr.$(objext) ./strdup.$(objext) ./strncasecmp.$(objext) \
9a9baa52
ILT
219 ./strncmp.$(objext) ./strndup.$(objext) ./strnlen.$(objext) \
220 ./strrchr.$(objext) ./strstr.$(objext) ./strtod.$(objext) \
221 ./strtol.$(objext) ./strtoul.$(objext) ./strverscmp.$(objext) \
16f60fcb
TG
222 ./tmpnam.$(objext) \
223 ./vasprintf.$(objext) ./vfork.$(objext) ./vfprintf.$(objext) \
224 ./vprintf.$(objext) ./vsnprintf.$(objext) ./vsprintf.$(objext) \
225 ./waitpid.$(objext)
aaa5f039 226
48d7db63
PE
227# These files are installed if the library has been configured to do so.
228INSTALLED_HEADERS = \
229 $(INCDIR)/ansidecl.h \
230 $(INCDIR)/demangle.h \
231 $(INCDIR)/dyn-string.h \
232 $(INCDIR)/fibheap.h \
233 $(INCDIR)/floatformat.h \
234 $(INCDIR)/hashtab.h \
235 $(INCDIR)/libiberty.h \
236 $(INCDIR)/objalloc.h \
237 $(INCDIR)/partition.h \
238 $(INCDIR)/safe-ctype.h \
239 $(INCDIR)/sort.h \
4092fb6e
DE
240 $(INCDIR)/splay-tree.h \
241 $(INCDIR)/timeval-utils.h
48d7db63 242
24f2cabb
L
243$(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
244 -rm -f $(TARGETLIB) pic/$(TARGETLIB)
245 $(AR) $(AR_FLAGS) $(TARGETLIB) \
246 $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
247 $(RANLIB) $(TARGETLIB)
248 if [ x"$(PICFLAG)" != x ]; then \
249 cd pic; \
afb649d5
L
250 $(AR) $(AR_FLAGS) $(TARGETLIB) \
251 $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
252 $(RANLIB) $(TARGETLIB); \
253 cd ..; \
254 else true; fi
6599da04 255
24f2cabb
L
256$(TESTLIB): $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
257 -rm -f $(TESTLIB)
258 $(AR) $(AR_FLAGS) $(TESTLIB) \
259 $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
260 $(RANLIB) $(TESTLIB)
9ce3f7e5 261
aaa5f039
DD
262info: libiberty.info info-subdir
263install-info: install-info-subdir
264clean-info: clean-info-subdir
265dvi: libiberty.dvi dvi-subdir
267686a7
BM
266
267LIBIBERTY_PDFFILES = libiberty.pdf
268
269pdf: $(LIBIBERTY_PDFFILES) pdf-subdir
270
271.PHONY: install-pdf
272
273pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
274
275install-pdf: $(LIBIBERTY_PDFFILES)
276 @$(NORMAL_INSTALL)
277 test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)"
278 @list='$(LIBIBERTY_PDFFILES)'; for p in $$list; do \
279 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
280 f=$(pdf__strip_dir) \
281 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \
282 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \
283 done
cf61af07
CD
284
285# html, install-html targets
286HTMLS = libiberty.html
287
288html: $(HTMLS)
289
2eba9355 290.PHONY: install-html install-html-am
cf61af07
CD
291
292NORMAL_INSTALL = :
293mkdir_p = mkdir -p --
16f60fcb 294
cf61af07
CD
295html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
296
2eba9355 297install-html: install-html-am
cf61af07
CD
298
299install-html-am: $(HTMLS)
300 @$(NORMAL_INSTALL)
301 test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
302 @list='$(HTMLS)'; for p in $$list; do \
303 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
304 f=$(html__strip_dir) \
305 if test -d "$$d$$p"; then \
306 echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
307 $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
308 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
309 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
310 else \
311 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
312 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
313 fi; \
314 done
315
aaa5f039
DD
316TEXISRC = \
317 $(srcdir)/libiberty.texi \
318 $(srcdir)/copying-lib.texi \
319 $(srcdir)/obstacks.texi \
320 $(srcdir)/functions.texi
321
322# Additional files that have texi snippets that need to be collected
aac04c15
DD
323# and sorted. Some are here because the sources are imported from
324# elsewhere. Others represent headers in ../include.
1cfabf34 325TEXIFILES = fnmatch.txh pexecute.txh simple-object.txh
aaa5f039
DD
326
327libiberty.info : $(srcdir)/libiberty.texi $(TEXISRC)
328 $(MAKEINFO) -I$(srcdir) $(srcdir)/libiberty.texi
329
330libiberty.dvi : $(srcdir)/libiberty.texi $(TEXISRC)
331 texi2dvi $(srcdir)/libiberty.texi
332
b5422ad7
BM
333libiberty.pdf : $(srcdir)/libiberty.texi $(TEXISRC)
334 texi2pdf $(srcdir)/libiberty.texi
335
aaa5f039 336libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC)
610784f0 337 $(MAKEINFO) --no-split --html -I$(srcdir) -o $@ $<
aaa5f039
DD
338
339@MAINT@$(srcdir)/functions.texi : stamp-functions
340@MAINT@ @true
341
83fbfe42 342@MAINT@stamp-functions : $(CFILES:%=$(srcdir)/%) $(TEXIFILES:%=$(srcdir)/%) $(srcdir)/gather-docs Makefile
aaa5f039
DD
343@MAINT@@HAVE_PERL@ $(PERL) $(srcdir)/gather-docs $(srcdir) $(srcdir)/functions.texi $(CFILES) $(TEXIFILES)
344@MAINT@ echo stamp > stamp-functions
345
3affd5f0 346INSTALL_DEST = @INSTALL_DEST@
7c72138a 347install: install_to_$(INSTALL_DEST) install-subdir
455c8f48
RW
348install-strip: install
349
350.PHONY: install install-strip
6599da04 351
5f81370d
PB
352# This is tricky. Even though CC in the Makefile contains
353# multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
269f1d98 354# default multilib, so we have to take CFLAGS into account as well,
5f81370d 355# since it will be passed the multilib flags.
269f1d98 356MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
6599da04 357install_to_libdir: all
5f81370d
PB
358 ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR)
359 $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n
360 ( cd $(DESTDIR)$(libdir)/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n )
361 mv -f $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)
48d7db63
PE
362 if test -n "${target_header_dir}"; then \
363 case "${target_header_dir}" in \
364 /*) thd=${target_header_dir};; \
5f81370d 365 *) thd=${includedir}/${target_header_dir};; \
48d7db63 366 esac; \
112bae77 367 ${mkinstalldirs} $(DESTDIR)$${thd}; \
48d7db63 368 for h in ${INSTALLED_HEADERS}; do \
112bae77 369 ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \
48d7db63
PE
370 done; \
371 fi
6599da04
JM
372 @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
373
374install_to_tooldir: all
9f2e0608
AO
375 ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)
376 $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n
706601d9 377 ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n; $(RANLIB) $(TARGETLIB)n )
9f2e0608 378 mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)
6599da04
JM
379 @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
380
3affd5f0
JL
381# required-list was used when building a shared bfd/opcodes/libiberty
382# library. I don't know if it used by anything currently.
6599da04
JM
383required-list: Makefile
384 echo $(REQUIRED_OFILES) > required-list
385
24f2cabb
L
386stamp-picdir:
387 if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \
388 mkdir pic; \
389 else true; fi
390 touch stamp-picdir
391
3affd5f0 392.PHONY: all etags tags ls clean stage1 stage2
6599da04 393
7c72138a 394etags tags: TAGS etags-subdir
6599da04 395
b548dffb
ZW
396TAGS: $(CFILES)
397 etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done`
6599da04
JM
398
399# The standalone demangler (c++filt) has been moved to binutils.
d5f4eddd
JM
400# But make this target work anyway for demangler hacking.
401demangle: $(ALL) $(srcdir)/cp-demangle.c
6599da04
JM
402 @echo "The standalone demangler, now named c++filt, is now"
403 @echo "a part of binutils."
d5f4eddd
JM
404 $(CC) @DEFS@ $(CFLAGS) $(CPPFLAGS) -I. -I$(INCDIR) $(HDEFINES) \
405 $(srcdir)/cp-demangle.c -DSTANDALONE_DEMANGLER $(TARGETLIB) -o $@
6599da04
JM
406
407ls:
b548dffb 408 @echo Makefile $(CFILES)
6599da04 409
aaa5f039
DD
410# Various targets for maintainers.
411
412maint-missing :
24f2cabb 413 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) missing $(CFILES) $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
aaa5f039 414
24f2cabb 415maint-buildall : $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
aaa5f039
DD
416 @true
417
aac04c15
DD
418maint-undoc : $(srcdir)/functions.texi
419 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc
420
9ce3f7e5
DD
421maint-deps :
422 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) deps $(INCDIR)
423
6599da04
JM
424# Need to deal with profiled libraries, too.
425
2c375143
NS
426# Cleaning has to be done carefully to ensure that we don't clean our SUBDIRS
427# multiple times, hence our explicit recursion with an empty SUBDIRS.
7c72138a 428mostlyclean: mostlyclean-subdir
16f60fcb 429 -rm -rf *.$(objext) pic core errs \#* *.E a.out
ae2040df
EZ
430 -rm -f errors dummy config.h stamp-*
431 -rm -f $(CONFIG_H) stamp-picdir
aaa5f039
DD
432 -rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky
433 -rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg
434 -rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.vr
435 -rm -f libtexi.stamp
6599da04 436 @$(MULTICLEAN) multi-clean DO=mostlyclean
2c375143
NS
437clean: clean-subdir
438 $(MAKE) SUBDIRS="" mostlyclean
5a2eb52b 439 -rm -f *.a required-list tmpmulti.out
b5422ad7 440 -rm -f libiberty.dvi libiberty.pdf libiberty.info* libiberty.html
6599da04 441 @$(MULTICLEAN) multi-clean DO=clean
2c375143
NS
442distclean: distclean-subdir
443 $(MAKE) SUBDIRS="" clean
6599da04 444 @$(MULTICLEAN) multi-clean DO=distclean
0046e342 445 -rm -f *~ Makefile config.cache config.status xhost-mkfrag TAGS multilib.out
5a2eb52b 446 -rm -f config.log
b25a8973 447 -rmdir testsuite 2>/dev/null
2c375143
NS
448maintainer-clean realclean: maintainer-clean-subdir
449 $(MAKE) SUBDIRS="" distclean
6599da04
JM
450
451force:
452
3affd5f0
JL
453Makefile: $(srcdir)/Makefile.in config.status
454 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
455
97e620cf
DD
456# Depending on Makefile makes sure that config.status has been re-run
457# if needed. This prevents problems with parallel builds.
3affd5f0 458config.h: stamp-h ; @true
398b3deb
DD
459stamp-h: $(srcdir)/config.in config.status Makefile
460 CONFIG_FILES= CONFIG_HEADERS=config.h:$(srcdir)/config.in $(SHELL) ./config.status
3affd5f0 461
769b009e 462config.status: $(srcdir)/configure
3affd5f0 463 $(SHELL) ./config.status --recheck
6599da04 464
6efbd53f
RW
465AUTOCONF = autoconf
466configure_deps = $(srcdir)/aclocal.m4 \
467 $(srcdir)/../config/acx.m4 \
468 $(srcdir)/../config/no-executables.m4 \
469 $(srcdir)/../config/override.m4 \
470 $(srcdir)/../config/warnings.m4 \
471
472$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(configure_deps)
473 cd $(srcdir) && $(AUTOCONF)
474
f59a2f55 475# Depending on config.h makes sure that config.status has been re-run
97e620cf
DD
476# if needed. This prevents problems with parallel builds, in case
477# subdirectories need to run config.status also.
7c72138a 478all-subdir check-subdir installcheck-subdir info-subdir \
b5422ad7 479install-info-subdir clean-info-subdir dvi-subdir pdf-subdir install-subdir \
7c72138a 480etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
f59a2f55 481maintainer-clean-subdir: config.h
3b94497c 482 @subdirs='$(SUBDIRS)'; \
7277f72d 483 target=`echo $@ | sed -e 's/-subdir//'`; \
3b94497c 484 for dir in $$subdirs ; do \
4ce1921a 485 cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \
2c375143 486 done
7c72138a 487
24f2cabb
L
488$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS): stamp-picdir
489$(CONFIGURED_OFILES): stamp-picdir
490
17049f0b
MM
491# Don't export variables to the environment, in order to not confuse
492# configure.
493.NOEXPORT:
494
9ce3f7e5
DD
495# The dependencies in the remainder of this file are automatically
496# generated by "make maint-deps". Manual edits will be lost.
7b195f77 497
16f60fcb 498./_doprnt.$(objext): $(srcdir)/_doprnt.c config.h $(INCDIR)/ansidecl.h \
9ce3f7e5 499 $(INCDIR)/safe-ctype.h
24f2cabb
L
500 if [ x"$(PICFLAG)" != x ]; then \
501 $(COMPILE.c) $(PICFLAG) $(srcdir)/_doprnt.c -o pic/$@; \
502 else true; fi
503 $(COMPILE.c) $(srcdir)/_doprnt.c $(OUTPUT_OPTION)
398b3deb 504
16f60fcb 505./alloca.$(objext): $(srcdir)/alloca.c config.h $(INCDIR)/ansidecl.h \
f59a2f55 506 $(INCDIR)/libiberty.h
24f2cabb
L
507 if [ x"$(PICFLAG)" != x ]; then \
508 $(COMPILE.c) $(PICFLAG) $(srcdir)/alloca.c -o pic/$@; \
509 else true; fi
510 $(COMPILE.c) $(srcdir)/alloca.c $(OUTPUT_OPTION)
398b3deb 511
16f60fcb
TG
512./argv.$(objext): $(srcdir)/argv.c config.h $(INCDIR)/ansidecl.h \
513 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
24f2cabb
L
514 if [ x"$(PICFLAG)" != x ]; then \
515 $(COMPILE.c) $(PICFLAG) $(srcdir)/argv.c -o pic/$@; \
516 else true; fi
517 $(COMPILE.c) $(srcdir)/argv.c $(OUTPUT_OPTION)
398b3deb 518
16f60fcb 519./asprintf.$(objext): $(srcdir)/asprintf.c config.h $(INCDIR)/ansidecl.h \
bd7d50f8 520 $(INCDIR)/libiberty.h
24f2cabb
L
521 if [ x"$(PICFLAG)" != x ]; then \
522 $(COMPILE.c) $(PICFLAG) $(srcdir)/asprintf.c -o pic/$@; \
523 else true; fi
524 $(COMPILE.c) $(srcdir)/asprintf.c $(OUTPUT_OPTION)
398b3deb 525
16f60fcb 526./atexit.$(objext): $(srcdir)/atexit.c config.h
24f2cabb
L
527 if [ x"$(PICFLAG)" != x ]; then \
528 $(COMPILE.c) $(PICFLAG) $(srcdir)/atexit.c -o pic/$@; \
529 else true; fi
530 $(COMPILE.c) $(srcdir)/atexit.c $(OUTPUT_OPTION)
398b3deb 531
16f60fcb 532./basename.$(objext): $(srcdir)/basename.c config.h $(INCDIR)/ansidecl.h \
bd7d50f8 533 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
24f2cabb
L
534 if [ x"$(PICFLAG)" != x ]; then \
535 $(COMPILE.c) $(PICFLAG) $(srcdir)/basename.c -o pic/$@; \
536 else true; fi
537 $(COMPILE.c) $(srcdir)/basename.c $(OUTPUT_OPTION)
398b3deb 538
16f60fcb 539./bcmp.$(objext): $(srcdir)/bcmp.c
24f2cabb
L
540 if [ x"$(PICFLAG)" != x ]; then \
541 $(COMPILE.c) $(PICFLAG) $(srcdir)/bcmp.c -o pic/$@; \
542 else true; fi
543 $(COMPILE.c) $(srcdir)/bcmp.c $(OUTPUT_OPTION)
398b3deb 544
16f60fcb 545./bcopy.$(objext): $(srcdir)/bcopy.c
24f2cabb
L
546 if [ x"$(PICFLAG)" != x ]; then \
547 $(COMPILE.c) $(PICFLAG) $(srcdir)/bcopy.c -o pic/$@; \
548 else true; fi
549 $(COMPILE.c) $(srcdir)/bcopy.c $(OUTPUT_OPTION)
398b3deb 550
16f60fcb 551./bsearch.$(objext): $(srcdir)/bsearch.c config.h $(INCDIR)/ansidecl.h
24f2cabb
L
552 if [ x"$(PICFLAG)" != x ]; then \
553 $(COMPILE.c) $(PICFLAG) $(srcdir)/bsearch.c -o pic/$@; \
554 else true; fi
555 $(COMPILE.c) $(srcdir)/bsearch.c $(OUTPUT_OPTION)
398b3deb 556
16f60fcb 557./bzero.$(objext): $(srcdir)/bzero.c
24f2cabb
L
558 if [ x"$(PICFLAG)" != x ]; then \
559 $(COMPILE.c) $(PICFLAG) $(srcdir)/bzero.c -o pic/$@; \
560 else true; fi
561 $(COMPILE.c) $(srcdir)/bzero.c $(OUTPUT_OPTION)
398b3deb 562
16f60fcb 563./calloc.$(objext): $(srcdir)/calloc.c $(INCDIR)/ansidecl.h
24f2cabb
L
564 if [ x"$(PICFLAG)" != x ]; then \
565 $(COMPILE.c) $(PICFLAG) $(srcdir)/calloc.c -o pic/$@; \
566 else true; fi
567 $(COMPILE.c) $(srcdir)/calloc.c $(OUTPUT_OPTION)
398b3deb 568
16f60fcb 569./choose-temp.$(objext): $(srcdir)/choose-temp.c config.h $(INCDIR)/ansidecl.h \
398b3deb 570 $(INCDIR)/libiberty.h
24f2cabb
L
571 if [ x"$(PICFLAG)" != x ]; then \
572 $(COMPILE.c) $(PICFLAG) $(srcdir)/choose-temp.c -o pic/$@; \
573 else true; fi
574 $(COMPILE.c) $(srcdir)/choose-temp.c $(OUTPUT_OPTION)
398b3deb 575
16f60fcb 576./clock.$(objext): $(srcdir)/clock.c config.h
24f2cabb
L
577 if [ x"$(PICFLAG)" != x ]; then \
578 $(COMPILE.c) $(PICFLAG) $(srcdir)/clock.c -o pic/$@; \
579 else true; fi
580 $(COMPILE.c) $(srcdir)/clock.c $(OUTPUT_OPTION)
398b3deb 581
16f60fcb 582./concat.$(objext): $(srcdir)/concat.c config.h $(INCDIR)/ansidecl.h \
f59a2f55 583 $(INCDIR)/libiberty.h
24f2cabb
L
584 if [ x"$(PICFLAG)" != x ]; then \
585 $(COMPILE.c) $(PICFLAG) $(srcdir)/concat.c -o pic/$@; \
586 else true; fi
587 $(COMPILE.c) $(srcdir)/concat.c $(OUTPUT_OPTION)
398b3deb 588
16f60fcb 589./copysign.$(objext): $(srcdir)/copysign.c $(INCDIR)/ansidecl.h
24f2cabb
L
590 if [ x"$(PICFLAG)" != x ]; then \
591 $(COMPILE.c) $(PICFLAG) $(srcdir)/copysign.c -o pic/$@; \
592 else true; fi
593 $(COMPILE.c) $(srcdir)/copysign.c $(OUTPUT_OPTION)
398b3deb 594
16f60fcb 595./cp-demangle.$(objext): $(srcdir)/cp-demangle.c config.h $(INCDIR)/ansidecl.h \
398b3deb
DD
596 $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \
597 $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h
24f2cabb
L
598 if [ x"$(PICFLAG)" != x ]; then \
599 $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demangle.c -o pic/$@; \
600 else true; fi
601 $(COMPILE.c) $(srcdir)/cp-demangle.c $(OUTPUT_OPTION)
398b3deb 602
16f60fcb 603./cp-demint.$(objext): $(srcdir)/cp-demint.c config.h $(INCDIR)/ansidecl.h \
398b3deb 604 $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \
9ce3f7e5 605 $(INCDIR)/libiberty.h
24f2cabb
L
606 if [ x"$(PICFLAG)" != x ]; then \
607 $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demint.c -o pic/$@; \
608 else true; fi
609 $(COMPILE.c) $(srcdir)/cp-demint.c $(OUTPUT_OPTION)
398b3deb 610
16f60fcb 611./cplus-dem.$(objext): $(srcdir)/cplus-dem.c config.h $(INCDIR)/ansidecl.h \
398b3deb
DD
612 $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
613 $(INCDIR)/safe-ctype.h
24f2cabb
L
614 if [ x"$(PICFLAG)" != x ]; then \
615 $(COMPILE.c) $(PICFLAG) $(srcdir)/cplus-dem.c -o pic/$@; \
616 else true; fi
617 $(COMPILE.c) $(srcdir)/cplus-dem.c $(OUTPUT_OPTION)
398b3deb 618
16f60fcb
TG
619./crc32.$(objext): $(srcdir)/crc32.c config.h $(INCDIR)/ansidecl.h \
620 $(INCDIR)/libiberty.h
b524249c
ILT
621 if [ x"$(PICFLAG)" != x ]; then \
622 $(COMPILE.c) $(PICFLAG) $(srcdir)/crc32.c -o pic/$@; \
623 else true; fi
624 $(COMPILE.c) $(srcdir)/crc32.c $(OUTPUT_OPTION)
625
9a9baa52
ILT
626./dwarfnames.$(objext): $(srcdir)/dwarfnames.c $(INCDIR)/dwarf2.def \
627 $(INCDIR)/dwarf2.h
11ec770e
TT
628 if [ x"$(PICFLAG)" != x ]; then \
629 $(COMPILE.c) $(PICFLAG) $(srcdir)/dwarfnames.c -o pic/$@; \
630 else true; fi
631 $(COMPILE.c) $(srcdir)/dwarfnames.c $(OUTPUT_OPTION)
632
16f60fcb 633./dyn-string.$(objext): $(srcdir)/dyn-string.c config.h $(INCDIR)/ansidecl.h \
398b3deb 634 $(INCDIR)/dyn-string.h $(INCDIR)/libiberty.h
24f2cabb
L
635 if [ x"$(PICFLAG)" != x ]; then \
636 $(COMPILE.c) $(PICFLAG) $(srcdir)/dyn-string.c -o pic/$@; \
637 else true; fi
638 $(COMPILE.c) $(srcdir)/dyn-string.c $(OUTPUT_OPTION)
398b3deb 639
16f60fcb 640./fdmatch.$(objext): $(srcdir)/fdmatch.c config.h $(INCDIR)/ansidecl.h \
bd7d50f8 641 $(INCDIR)/libiberty.h
24f2cabb
L
642 if [ x"$(PICFLAG)" != x ]; then \
643 $(COMPILE.c) $(PICFLAG) $(srcdir)/fdmatch.c -o pic/$@; \
644 else true; fi
645 $(COMPILE.c) $(srcdir)/fdmatch.c $(OUTPUT_OPTION)
398b3deb 646
16f60fcb 647./ffs.$(objext): $(srcdir)/ffs.c
24f2cabb
L
648 if [ x"$(PICFLAG)" != x ]; then \
649 $(COMPILE.c) $(PICFLAG) $(srcdir)/ffs.c -o pic/$@; \
650 else true; fi
651 $(COMPILE.c) $(srcdir)/ffs.c $(OUTPUT_OPTION)
398b3deb 652
16f60fcb 653./fibheap.$(objext): $(srcdir)/fibheap.c config.h $(INCDIR)/ansidecl.h \
f59a2f55 654 $(INCDIR)/fibheap.h $(INCDIR)/libiberty.h
24f2cabb
L
655 if [ x"$(PICFLAG)" != x ]; then \
656 $(COMPILE.c) $(PICFLAG) $(srcdir)/fibheap.c -o pic/$@; \
657 else true; fi
658 $(COMPILE.c) $(srcdir)/fibheap.c $(OUTPUT_OPTION)
398b3deb 659
9a9baa52
ILT
660./filename_cmp.$(objext): $(srcdir)/filename_cmp.c config.h $(INCDIR)/ansidecl.h \
661 $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
186c60ab 662 $(INCDIR)/safe-ctype.h
cde515d9
JB
663 if [ x"$(PICFLAG)" != x ]; then \
664 $(COMPILE.c) $(PICFLAG) $(srcdir)/filename_cmp.c -o pic/$@; \
665 else true; fi
666 $(COMPILE.c) $(srcdir)/filename_cmp.c $(OUTPUT_OPTION)
667
16f60fcb 668./floatformat.$(objext): $(srcdir)/floatformat.c config.h $(INCDIR)/ansidecl.h \
398b3deb 669 $(INCDIR)/floatformat.h $(INCDIR)/libiberty.h
24f2cabb
L
670 if [ x"$(PICFLAG)" != x ]; then \
671 $(COMPILE.c) $(PICFLAG) $(srcdir)/floatformat.c -o pic/$@; \
672 else true; fi
673 $(COMPILE.c) $(srcdir)/floatformat.c $(OUTPUT_OPTION)
398b3deb 674
16f60fcb 675./fnmatch.$(objext): $(srcdir)/fnmatch.c config.h $(INCDIR)/fnmatch.h \
398b3deb 676 $(INCDIR)/safe-ctype.h
24f2cabb
L
677 if [ x"$(PICFLAG)" != x ]; then \
678 $(COMPILE.c) $(PICFLAG) $(srcdir)/fnmatch.c -o pic/$@; \
679 else true; fi
680 $(COMPILE.c) $(srcdir)/fnmatch.c $(OUTPUT_OPTION)
398b3deb 681
16f60fcb
TG
682./fopen_unlocked.$(objext): $(srcdir)/fopen_unlocked.c config.h \
683 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
78a7dc90
KG
684 if [ x"$(PICFLAG)" != x ]; then \
685 $(COMPILE.c) $(PICFLAG) $(srcdir)/fopen_unlocked.c -o pic/$@; \
686 else true; fi
687 $(COMPILE.c) $(srcdir)/fopen_unlocked.c $(OUTPUT_OPTION)
688
16f60fcb 689./getcwd.$(objext): $(srcdir)/getcwd.c config.h
24f2cabb
L
690 if [ x"$(PICFLAG)" != x ]; then \
691 $(COMPILE.c) $(PICFLAG) $(srcdir)/getcwd.c -o pic/$@; \
692 else true; fi
693 $(COMPILE.c) $(srcdir)/getcwd.c $(OUTPUT_OPTION)
398b3deb 694
16f60fcb
TG
695./getopt.$(objext): $(srcdir)/getopt.c config.h $(INCDIR)/ansidecl.h \
696 $(INCDIR)/getopt.h
24f2cabb
L
697 if [ x"$(PICFLAG)" != x ]; then \
698 $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt.c -o pic/$@; \
699 else true; fi
700 $(COMPILE.c) $(srcdir)/getopt.c $(OUTPUT_OPTION)
398b3deb 701
16f60fcb 702./getopt1.$(objext): $(srcdir)/getopt1.c config.h $(INCDIR)/getopt.h
24f2cabb
L
703 if [ x"$(PICFLAG)" != x ]; then \
704 $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt1.c -o pic/$@; \
705 else true; fi
706 $(COMPILE.c) $(srcdir)/getopt1.c $(OUTPUT_OPTION)
398b3deb 707
16f60fcb 708./getpagesize.$(objext): $(srcdir)/getpagesize.c config.h
24f2cabb
L
709 if [ x"$(PICFLAG)" != x ]; then \
710 $(COMPILE.c) $(PICFLAG) $(srcdir)/getpagesize.c -o pic/$@; \
711 else true; fi
712 $(COMPILE.c) $(srcdir)/getpagesize.c $(OUTPUT_OPTION)
398b3deb 713
16f60fcb 714./getpwd.$(objext): $(srcdir)/getpwd.c config.h $(INCDIR)/ansidecl.h \
f59a2f55 715 $(INCDIR)/libiberty.h
24f2cabb
L
716 if [ x"$(PICFLAG)" != x ]; then \
717 $(COMPILE.c) $(PICFLAG) $(srcdir)/getpwd.c -o pic/$@; \
718 else true; fi
719 $(COMPILE.c) $(srcdir)/getpwd.c $(OUTPUT_OPTION)
398b3deb 720
16f60fcb 721./getruntime.$(objext): $(srcdir)/getruntime.c config.h $(INCDIR)/ansidecl.h \
9ce3f7e5 722 $(INCDIR)/libiberty.h
24f2cabb
L
723 if [ x"$(PICFLAG)" != x ]; then \
724 $(COMPILE.c) $(PICFLAG) $(srcdir)/getruntime.c -o pic/$@; \
725 else true; fi
726 $(COMPILE.c) $(srcdir)/getruntime.c $(OUTPUT_OPTION)
398b3deb 727
16f60fcb 728./gettimeofday.$(objext): $(srcdir)/gettimeofday.c config.h $(INCDIR)/ansidecl.h \
17049f0b
MM
729 $(INCDIR)/libiberty.h
730 if [ x"$(PICFLAG)" != x ]; then \
731 $(COMPILE.c) $(PICFLAG) $(srcdir)/gettimeofday.c -o pic/$@; \
732 else true; fi
733 $(COMPILE.c) $(srcdir)/gettimeofday.c $(OUTPUT_OPTION)
734
16f60fcb 735./hashtab.$(objext): $(srcdir)/hashtab.c config.h $(INCDIR)/ansidecl.h \
f59a2f55 736 $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h
24f2cabb
L
737 if [ x"$(PICFLAG)" != x ]; then \
738 $(COMPILE.c) $(PICFLAG) $(srcdir)/hashtab.c -o pic/$@; \
739 else true; fi
740 $(COMPILE.c) $(srcdir)/hashtab.c $(OUTPUT_OPTION)
398b3deb 741
16f60fcb
TG
742./hex.$(objext): $(srcdir)/hex.c config.h $(INCDIR)/ansidecl.h \
743 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
24f2cabb
L
744 if [ x"$(PICFLAG)" != x ]; then \
745 $(COMPILE.c) $(PICFLAG) $(srcdir)/hex.c -o pic/$@; \
746 else true; fi
747 $(COMPILE.c) $(srcdir)/hex.c $(OUTPUT_OPTION)
398b3deb 748
16f60fcb 749./index.$(objext): $(srcdir)/index.c
24f2cabb
L
750 if [ x"$(PICFLAG)" != x ]; then \
751 $(COMPILE.c) $(PICFLAG) $(srcdir)/index.c -o pic/$@; \
752 else true; fi
753 $(COMPILE.c) $(srcdir)/index.c $(OUTPUT_OPTION)
398b3deb 754
16f60fcb 755./insque.$(objext): $(srcdir)/insque.c
24f2cabb
L
756 if [ x"$(PICFLAG)" != x ]; then \
757 $(COMPILE.c) $(PICFLAG) $(srcdir)/insque.c -o pic/$@; \
758 else true; fi
759 $(COMPILE.c) $(srcdir)/insque.c $(OUTPUT_OPTION)
398b3deb 760
16f60fcb 761./lbasename.$(objext): $(srcdir)/lbasename.c config.h $(INCDIR)/ansidecl.h \
9a9baa52 762 $(INCDIR)/filenames.h $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h \
16f60fcb 763 $(INCDIR)/safe-ctype.h
24f2cabb
L
764 if [ x"$(PICFLAG)" != x ]; then \
765 $(COMPILE.c) $(PICFLAG) $(srcdir)/lbasename.c -o pic/$@; \
766 else true; fi
767 $(COMPILE.c) $(srcdir)/lbasename.c $(OUTPUT_OPTION)
398b3deb 768
16f60fcb 769./lrealpath.$(objext): $(srcdir)/lrealpath.c config.h $(INCDIR)/ansidecl.h \
398b3deb 770 $(INCDIR)/libiberty.h
24f2cabb
L
771 if [ x"$(PICFLAG)" != x ]; then \
772 $(COMPILE.c) $(PICFLAG) $(srcdir)/lrealpath.c -o pic/$@; \
773 else true; fi
774 $(COMPILE.c) $(srcdir)/lrealpath.c $(OUTPUT_OPTION)
398b3deb 775
16f60fcb 776./make-relative-prefix.$(objext): $(srcdir)/make-relative-prefix.c config.h \
398b3deb 777 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
24f2cabb
L
778 if [ x"$(PICFLAG)" != x ]; then \
779 $(COMPILE.c) $(PICFLAG) $(srcdir)/make-relative-prefix.c -o pic/$@; \
780 else true; fi
781 $(COMPILE.c) $(srcdir)/make-relative-prefix.c $(OUTPUT_OPTION)
398b3deb 782
16f60fcb
TG
783./make-temp-file.$(objext): $(srcdir)/make-temp-file.c config.h \
784 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
24f2cabb
L
785 if [ x"$(PICFLAG)" != x ]; then \
786 $(COMPILE.c) $(PICFLAG) $(srcdir)/make-temp-file.c -o pic/$@; \
787 else true; fi
788 $(COMPILE.c) $(srcdir)/make-temp-file.c $(OUTPUT_OPTION)
398b3deb 789
16f60fcb 790./md5.$(objext): $(srcdir)/md5.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h
24f2cabb
L
791 if [ x"$(PICFLAG)" != x ]; then \
792 $(COMPILE.c) $(PICFLAG) $(srcdir)/md5.c -o pic/$@; \
793 else true; fi
794 $(COMPILE.c) $(srcdir)/md5.c $(OUTPUT_OPTION)
398b3deb 795
16f60fcb 796./memchr.$(objext): $(srcdir)/memchr.c $(INCDIR)/ansidecl.h
24f2cabb
L
797 if [ x"$(PICFLAG)" != x ]; then \
798 $(COMPILE.c) $(PICFLAG) $(srcdir)/memchr.c -o pic/$@; \
799 else true; fi
800 $(COMPILE.c) $(srcdir)/memchr.c $(OUTPUT_OPTION)
398b3deb 801
16f60fcb 802./memcmp.$(objext): $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h
24f2cabb
L
803 if [ x"$(PICFLAG)" != x ]; then \
804 $(COMPILE.c) $(PICFLAG) $(srcdir)/memcmp.c -o pic/$@; \
805 else true; fi
806 $(COMPILE.c) $(srcdir)/memcmp.c $(OUTPUT_OPTION)
398b3deb 807
16f60fcb 808./memcpy.$(objext): $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h
24f2cabb
L
809 if [ x"$(PICFLAG)" != x ]; then \
810 $(COMPILE.c) $(PICFLAG) $(srcdir)/memcpy.c -o pic/$@; \
811 else true; fi
812 $(COMPILE.c) $(srcdir)/memcpy.c $(OUTPUT_OPTION)
398b3deb 813
16f60fcb 814./memmem.$(objext): $(srcdir)/memmem.c config.h
5fbd9447
ILT
815 if [ x"$(PICFLAG)" != x ]; then \
816 $(COMPILE.c) $(PICFLAG) $(srcdir)/memmem.c -o pic/$@; \
817 else true; fi
818 $(COMPILE.c) $(srcdir)/memmem.c $(OUTPUT_OPTION)
819
16f60fcb 820./memmove.$(objext): $(srcdir)/memmove.c $(INCDIR)/ansidecl.h
24f2cabb
L
821 if [ x"$(PICFLAG)" != x ]; then \
822 $(COMPILE.c) $(PICFLAG) $(srcdir)/memmove.c -o pic/$@; \
823 else true; fi
824 $(COMPILE.c) $(srcdir)/memmove.c $(OUTPUT_OPTION)
398b3deb 825
16f60fcb 826./mempcpy.$(objext): $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h
24f2cabb
L
827 if [ x"$(PICFLAG)" != x ]; then \
828 $(COMPILE.c) $(PICFLAG) $(srcdir)/mempcpy.c -o pic/$@; \
829 else true; fi
830 $(COMPILE.c) $(srcdir)/mempcpy.c $(OUTPUT_OPTION)
398b3deb 831
16f60fcb 832./memset.$(objext): $(srcdir)/memset.c $(INCDIR)/ansidecl.h
24f2cabb
L
833 if [ x"$(PICFLAG)" != x ]; then \
834 $(COMPILE.c) $(PICFLAG) $(srcdir)/memset.c -o pic/$@; \
835 else true; fi
836 $(COMPILE.c) $(srcdir)/memset.c $(OUTPUT_OPTION)
398b3deb 837
16f60fcb 838./mkstemps.$(objext): $(srcdir)/mkstemps.c config.h $(INCDIR)/ansidecl.h
24f2cabb
L
839 if [ x"$(PICFLAG)" != x ]; then \
840 $(COMPILE.c) $(PICFLAG) $(srcdir)/mkstemps.c -o pic/$@; \
841 else true; fi
842 $(COMPILE.c) $(srcdir)/mkstemps.c $(OUTPUT_OPTION)
398b3deb 843
16f60fcb 844./msdos.$(objext): $(srcdir)/msdos.c
24f2cabb
L
845 if [ x"$(PICFLAG)" != x ]; then \
846 $(COMPILE.c) $(PICFLAG) $(srcdir)/msdos.c -o pic/$@; \
847 else true; fi
848 $(COMPILE.c) $(srcdir)/msdos.c $(OUTPUT_OPTION)
398b3deb 849
16f60fcb 850./objalloc.$(objext): $(srcdir)/objalloc.c config.h $(INCDIR)/ansidecl.h \
398b3deb 851 $(INCDIR)/objalloc.h
24f2cabb
L
852 if [ x"$(PICFLAG)" != x ]; then \
853 $(COMPILE.c) $(PICFLAG) $(srcdir)/objalloc.c -o pic/$@; \
854 else true; fi
855 $(COMPILE.c) $(srcdir)/objalloc.c $(OUTPUT_OPTION)
398b3deb 856
16f60fcb 857./obstack.$(objext): $(srcdir)/obstack.c config.h $(INCDIR)/obstack.h
24f2cabb
L
858 if [ x"$(PICFLAG)" != x ]; then \
859 $(COMPILE.c) $(PICFLAG) $(srcdir)/obstack.c -o pic/$@; \
860 else true; fi
861 $(COMPILE.c) $(srcdir)/obstack.c $(OUTPUT_OPTION)
398b3deb 862
16f60fcb 863./partition.$(objext): $(srcdir)/partition.c config.h $(INCDIR)/ansidecl.h \
398b3deb 864 $(INCDIR)/libiberty.h $(INCDIR)/partition.h
24f2cabb
L
865 if [ x"$(PICFLAG)" != x ]; then \
866 $(COMPILE.c) $(PICFLAG) $(srcdir)/partition.c -o pic/$@; \
867 else true; fi
868 $(COMPILE.c) $(srcdir)/partition.c $(OUTPUT_OPTION)
398b3deb 869
16f60fcb 870./pex-common.$(objext): $(srcdir)/pex-common.c config.h $(INCDIR)/ansidecl.h \
a584cf65
ILT
871 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
872 if [ x"$(PICFLAG)" != x ]; then \
873 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-common.c -o pic/$@; \
874 else true; fi
875 $(COMPILE.c) $(srcdir)/pex-common.c $(OUTPUT_OPTION)
876
16f60fcb 877./pex-djgpp.$(objext): $(srcdir)/pex-djgpp.c config.h $(INCDIR)/ansidecl.h \
398b3deb 878 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
24f2cabb
L
879 if [ x"$(PICFLAG)" != x ]; then \
880 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-djgpp.c -o pic/$@; \
881 else true; fi
882 $(COMPILE.c) $(srcdir)/pex-djgpp.c $(OUTPUT_OPTION)
398b3deb 883
16f60fcb 884./pex-msdos.$(objext): $(srcdir)/pex-msdos.c config.h $(INCDIR)/ansidecl.h \
398b3deb
DD
885 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h \
886 $(INCDIR)/safe-ctype.h
24f2cabb
L
887 if [ x"$(PICFLAG)" != x ]; then \
888 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-msdos.c -o pic/$@; \
889 else true; fi
890 $(COMPILE.c) $(srcdir)/pex-msdos.c $(OUTPUT_OPTION)
398b3deb 891
16f60fcb 892./pex-one.$(objext): $(srcdir)/pex-one.c config.h $(INCDIR)/ansidecl.h \
a584cf65
ILT
893 $(INCDIR)/libiberty.h
894 if [ x"$(PICFLAG)" != x ]; then \
895 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-one.c -o pic/$@; \
896 else true; fi
897 $(COMPILE.c) $(srcdir)/pex-one.c $(OUTPUT_OPTION)
898
16f60fcb 899./pex-unix.$(objext): $(srcdir)/pex-unix.c config.h $(INCDIR)/ansidecl.h \
398b3deb 900 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
24f2cabb
L
901 if [ x"$(PICFLAG)" != x ]; then \
902 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-unix.c -o pic/$@; \
903 else true; fi
904 $(COMPILE.c) $(srcdir)/pex-unix.c $(OUTPUT_OPTION)
398b3deb 905
16f60fcb 906./pex-win32.$(objext): $(srcdir)/pex-win32.c config.h $(INCDIR)/ansidecl.h \
398b3deb 907 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
24f2cabb
L
908 if [ x"$(PICFLAG)" != x ]; then \
909 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-win32.c -o pic/$@; \
910 else true; fi
911 $(COMPILE.c) $(srcdir)/pex-win32.c $(OUTPUT_OPTION)
398b3deb 912
16f60fcb 913./pexecute.$(objext): $(srcdir)/pexecute.c config.h $(INCDIR)/ansidecl.h \
a584cf65
ILT
914 $(INCDIR)/libiberty.h
915 if [ x"$(PICFLAG)" != x ]; then \
916 $(COMPILE.c) $(PICFLAG) $(srcdir)/pexecute.c -o pic/$@; \
917 else true; fi
918 $(COMPILE.c) $(srcdir)/pexecute.c $(OUTPUT_OPTION)
919
16f60fcb 920./physmem.$(objext): $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \
398b3deb 921 $(INCDIR)/libiberty.h
24f2cabb
L
922 if [ x"$(PICFLAG)" != x ]; then \
923 $(COMPILE.c) $(PICFLAG) $(srcdir)/physmem.c -o pic/$@; \
924 else true; fi
925 $(COMPILE.c) $(srcdir)/physmem.c $(OUTPUT_OPTION)
398b3deb 926
16f60fcb 927./putenv.$(objext): $(srcdir)/putenv.c config.h $(INCDIR)/ansidecl.h
24f2cabb
L
928 if [ x"$(PICFLAG)" != x ]; then \
929 $(COMPILE.c) $(PICFLAG) $(srcdir)/putenv.c -o pic/$@; \
930 else true; fi
931 $(COMPILE.c) $(srcdir)/putenv.c $(OUTPUT_OPTION)
398b3deb 932
16f60fcb 933./random.$(objext): $(srcdir)/random.c $(INCDIR)/ansidecl.h
24f2cabb
L
934 if [ x"$(PICFLAG)" != x ]; then \
935 $(COMPILE.c) $(PICFLAG) $(srcdir)/random.c -o pic/$@; \
936 else true; fi
937 $(COMPILE.c) $(srcdir)/random.c $(OUTPUT_OPTION)
398b3deb 938
16f60fcb
TG
939./regex.$(objext): $(srcdir)/regex.c config.h $(INCDIR)/ansidecl.h \
940 $(INCDIR)/xregex.h $(INCDIR)/xregex2.h
24f2cabb
L
941 if [ x"$(PICFLAG)" != x ]; then \
942 $(COMPILE.c) $(PICFLAG) $(srcdir)/regex.c -o pic/$@; \
943 else true; fi
944 $(COMPILE.c) $(srcdir)/regex.c $(OUTPUT_OPTION)
398b3deb 945
16f60fcb 946./rename.$(objext): $(srcdir)/rename.c config.h $(INCDIR)/ansidecl.h
24f2cabb
L
947 if [ x"$(PICFLAG)" != x ]; then \
948 $(COMPILE.c) $(PICFLAG) $(srcdir)/rename.c -o pic/$@; \
949 else true; fi
950 $(COMPILE.c) $(srcdir)/rename.c $(OUTPUT_OPTION)
398b3deb 951
16f60fcb 952./rindex.$(objext): $(srcdir)/rindex.c
24f2cabb
L
953 if [ x"$(PICFLAG)" != x ]; then \
954 $(COMPILE.c) $(PICFLAG) $(srcdir)/rindex.c -o pic/$@; \
955 else true; fi
956 $(COMPILE.c) $(srcdir)/rindex.c $(OUTPUT_OPTION)
398b3deb 957
16f60fcb 958./safe-ctype.$(objext): $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \
398b3deb 959 $(INCDIR)/safe-ctype.h
24f2cabb
L
960 if [ x"$(PICFLAG)" != x ]; then \
961 $(COMPILE.c) $(PICFLAG) $(srcdir)/safe-ctype.c -o pic/$@; \
962 else true; fi
963 $(COMPILE.c) $(srcdir)/safe-ctype.c $(OUTPUT_OPTION)
398b3deb 964
16f60fcb 965./setenv.$(objext): $(srcdir)/setenv.c config.h $(INCDIR)/ansidecl.h
24f2cabb
L
966 if [ x"$(PICFLAG)" != x ]; then \
967 $(COMPILE.c) $(PICFLAG) $(srcdir)/setenv.c -o pic/$@; \
968 else true; fi
969 $(COMPILE.c) $(srcdir)/setenv.c $(OUTPUT_OPTION)
398b3deb 970
6e9bd0f8
AK
971./setproctitle.$(objext): $(srcdir)/setproctitle.c config.h $(INCDIR)/ansidecl.h
972 if [ x"$(PICFLAG)" != x ]; then \
973 $(COMPILE.c) $(PICFLAG) $(srcdir)/setproctitle.c -o pic/$@; \
974 else true; fi
975 $(COMPILE.c) $(srcdir)/setproctitle.c $(OUTPUT_OPTION)
976
16f60fcb 977./sha1.$(objext): $(srcdir)/sha1.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/sha1.h
598848e4
ILT
978 if [ x"$(PICFLAG)" != x ]; then \
979 $(COMPILE.c) $(PICFLAG) $(srcdir)/sha1.c -o pic/$@; \
980 else true; fi
981 $(COMPILE.c) $(srcdir)/sha1.c $(OUTPUT_OPTION)
982
16f60fcb 983./sigsetmask.$(objext): $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h
24f2cabb
L
984 if [ x"$(PICFLAG)" != x ]; then \
985 $(COMPILE.c) $(PICFLAG) $(srcdir)/sigsetmask.c -o pic/$@; \
986 else true; fi
987 $(COMPILE.c) $(srcdir)/sigsetmask.c $(OUTPUT_OPTION)
398b3deb 988
1cfabf34
ILT
989./simple-object-coff.$(objext): $(srcdir)/simple-object-coff.c config.h \
990 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
991 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
992 if [ x"$(PICFLAG)" != x ]; then \
993 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-coff.c -o pic/$@; \
994 else true; fi
995 $(COMPILE.c) $(srcdir)/simple-object-coff.c $(OUTPUT_OPTION)
996
997./simple-object-elf.$(objext): $(srcdir)/simple-object-elf.c config.h \
998 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
999 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
1000 if [ x"$(PICFLAG)" != x ]; then \
1001 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-elf.c -o pic/$@; \
1002 else true; fi
1003 $(COMPILE.c) $(srcdir)/simple-object-elf.c $(OUTPUT_OPTION)
1004
1005./simple-object-mach-o.$(objext): $(srcdir)/simple-object-mach-o.c config.h \
1006 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
1007 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
1008 if [ x"$(PICFLAG)" != x ]; then \
1009 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-mach-o.c -o pic/$@; \
1010 else true; fi
1011 $(COMPILE.c) $(srcdir)/simple-object-mach-o.c $(OUTPUT_OPTION)
1012
a9b01f00
DE
1013./simple-object-xcoff.$(objext): $(srcdir)/simple-object-xcoff.c config.h \
1014 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
1015 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
1016 if [ x"$(PICFLAG)" != x ]; then \
1017 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-xcoff.c -o pic/$@; \
1018 else true; fi
1019 $(COMPILE.c) $(srcdir)/simple-object-xcoff.c $(OUTPUT_OPTION)
1020
1cfabf34
ILT
1021./simple-object.$(objext): $(srcdir)/simple-object.c config.h \
1022 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
1023 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
1024 if [ x"$(PICFLAG)" != x ]; then \
1025 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object.c -o pic/$@; \
1026 else true; fi
1027 $(COMPILE.c) $(srcdir)/simple-object.c $(OUTPUT_OPTION)
1028
16f60fcb 1029./snprintf.$(objext): $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h
24f2cabb
L
1030 if [ x"$(PICFLAG)" != x ]; then \
1031 $(COMPILE.c) $(PICFLAG) $(srcdir)/snprintf.c -o pic/$@; \
1032 else true; fi
1033 $(COMPILE.c) $(srcdir)/snprintf.c $(OUTPUT_OPTION)
398b3deb 1034
16f60fcb
TG
1035./sort.$(objext): $(srcdir)/sort.c config.h $(INCDIR)/ansidecl.h \
1036 $(INCDIR)/libiberty.h $(INCDIR)/sort.h
24f2cabb
L
1037 if [ x"$(PICFLAG)" != x ]; then \
1038 $(COMPILE.c) $(PICFLAG) $(srcdir)/sort.c -o pic/$@; \
1039 else true; fi
1040 $(COMPILE.c) $(srcdir)/sort.c $(OUTPUT_OPTION)
398b3deb 1041
16f60fcb 1042./spaces.$(objext): $(srcdir)/spaces.c config.h $(INCDIR)/ansidecl.h \
f59a2f55 1043 $(INCDIR)/libiberty.h
24f2cabb
L
1044 if [ x"$(PICFLAG)" != x ]; then \
1045 $(COMPILE.c) $(PICFLAG) $(srcdir)/spaces.c -o pic/$@; \
1046 else true; fi
1047 $(COMPILE.c) $(srcdir)/spaces.c $(OUTPUT_OPTION)
398b3deb 1048
16f60fcb 1049./splay-tree.$(objext): $(srcdir)/splay-tree.c config.h $(INCDIR)/ansidecl.h \
398b3deb 1050 $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h
24f2cabb
L
1051 if [ x"$(PICFLAG)" != x ]; then \
1052 $(COMPILE.c) $(PICFLAG) $(srcdir)/splay-tree.c -o pic/$@; \
1053 else true; fi
1054 $(COMPILE.c) $(srcdir)/splay-tree.c $(OUTPUT_OPTION)
398b3deb 1055
9a9baa52 1056./stack-limit.$(objext): $(srcdir)/stack-limit.c config.h $(INCDIR)/ansidecl.h
d423df48
JJ
1057 if [ x"$(PICFLAG)" != x ]; then \
1058 $(COMPILE.c) $(PICFLAG) $(srcdir)/stack-limit.c -o pic/$@; \
1059 else true; fi
1060 $(COMPILE.c) $(srcdir)/stack-limit.c $(OUTPUT_OPTION)
1061
16f60fcb 1062./stpcpy.$(objext): $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h
24f2cabb
L
1063 if [ x"$(PICFLAG)" != x ]; then \
1064 $(COMPILE.c) $(PICFLAG) $(srcdir)/stpcpy.c -o pic/$@; \
1065 else true; fi
1066 $(COMPILE.c) $(srcdir)/stpcpy.c $(OUTPUT_OPTION)
398b3deb 1067
16f60fcb 1068./stpncpy.$(objext): $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h
24f2cabb
L
1069 if [ x"$(PICFLAG)" != x ]; then \
1070 $(COMPILE.c) $(PICFLAG) $(srcdir)/stpncpy.c -o pic/$@; \
1071 else true; fi
1072 $(COMPILE.c) $(srcdir)/stpncpy.c $(OUTPUT_OPTION)
398b3deb 1073
16f60fcb 1074./strcasecmp.$(objext): $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h
24f2cabb
L
1075 if [ x"$(PICFLAG)" != x ]; then \
1076 $(COMPILE.c) $(PICFLAG) $(srcdir)/strcasecmp.c -o pic/$@; \
1077 else true; fi
1078 $(COMPILE.c) $(srcdir)/strcasecmp.c $(OUTPUT_OPTION)
398b3deb 1079
16f60fcb 1080./strchr.$(objext): $(srcdir)/strchr.c $(INCDIR)/ansidecl.h
24f2cabb
L
1081 if [ x"$(PICFLAG)" != x ]; then \
1082 $(COMPILE.c) $(PICFLAG) $(srcdir)/strchr.c -o pic/$@; \
1083 else true; fi
1084 $(COMPILE.c) $(srcdir)/strchr.c $(OUTPUT_OPTION)
398b3deb 1085
16f60fcb 1086./strdup.$(objext): $(srcdir)/strdup.c $(INCDIR)/ansidecl.h
24f2cabb
L
1087 if [ x"$(PICFLAG)" != x ]; then \
1088 $(COMPILE.c) $(PICFLAG) $(srcdir)/strdup.c -o pic/$@; \
1089 else true; fi
1090 $(COMPILE.c) $(srcdir)/strdup.c $(OUTPUT_OPTION)
398b3deb 1091
16f60fcb 1092./strerror.$(objext): $(srcdir)/strerror.c config.h $(INCDIR)/ansidecl.h \
398b3deb 1093 $(INCDIR)/libiberty.h
24f2cabb
L
1094 if [ x"$(PICFLAG)" != x ]; then \
1095 $(COMPILE.c) $(PICFLAG) $(srcdir)/strerror.c -o pic/$@; \
1096 else true; fi
1097 $(COMPILE.c) $(srcdir)/strerror.c $(OUTPUT_OPTION)
398b3deb 1098
16f60fcb 1099./strncasecmp.$(objext): $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h
24f2cabb
L
1100 if [ x"$(PICFLAG)" != x ]; then \
1101 $(COMPILE.c) $(PICFLAG) $(srcdir)/strncasecmp.c -o pic/$@; \
1102 else true; fi
1103 $(COMPILE.c) $(srcdir)/strncasecmp.c $(OUTPUT_OPTION)
398b3deb 1104
16f60fcb 1105./strncmp.$(objext): $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h
24f2cabb
L
1106 if [ x"$(PICFLAG)" != x ]; then \
1107 $(COMPILE.c) $(PICFLAG) $(srcdir)/strncmp.c -o pic/$@; \
1108 else true; fi
1109 $(COMPILE.c) $(srcdir)/strncmp.c $(OUTPUT_OPTION)
398b3deb 1110
16f60fcb 1111./strndup.$(objext): $(srcdir)/strndup.c $(INCDIR)/ansidecl.h
17998b22
KG
1112 if [ x"$(PICFLAG)" != x ]; then \
1113 $(COMPILE.c) $(PICFLAG) $(srcdir)/strndup.c -o pic/$@; \
1114 else true; fi
1115 $(COMPILE.c) $(srcdir)/strndup.c $(OUTPUT_OPTION)
1116
9a9baa52
ILT
1117./strnlen.$(objext): $(srcdir)/strnlen.c config.h
1118 if [ x"$(PICFLAG)" != x ]; then \
1119 $(COMPILE.c) $(PICFLAG) $(srcdir)/strnlen.c -o pic/$@; \
1120 else true; fi
1121 $(COMPILE.c) $(srcdir)/strnlen.c $(OUTPUT_OPTION)
1122
16f60fcb 1123./strrchr.$(objext): $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h
24f2cabb
L
1124 if [ x"$(PICFLAG)" != x ]; then \
1125 $(COMPILE.c) $(PICFLAG) $(srcdir)/strrchr.c -o pic/$@; \
1126 else true; fi
1127 $(COMPILE.c) $(srcdir)/strrchr.c $(OUTPUT_OPTION)
398b3deb 1128
16f60fcb 1129./strsignal.$(objext): $(srcdir)/strsignal.c config.h $(INCDIR)/ansidecl.h \
398b3deb 1130 $(INCDIR)/libiberty.h
24f2cabb
L
1131 if [ x"$(PICFLAG)" != x ]; then \
1132 $(COMPILE.c) $(PICFLAG) $(srcdir)/strsignal.c -o pic/$@; \
1133 else true; fi
1134 $(COMPILE.c) $(srcdir)/strsignal.c $(OUTPUT_OPTION)
398b3deb 1135
16f60fcb 1136./strstr.$(objext): $(srcdir)/strstr.c
24f2cabb
L
1137 if [ x"$(PICFLAG)" != x ]; then \
1138 $(COMPILE.c) $(PICFLAG) $(srcdir)/strstr.c -o pic/$@; \
1139 else true; fi
1140 $(COMPILE.c) $(srcdir)/strstr.c $(OUTPUT_OPTION)
398b3deb 1141
16f60fcb
TG
1142./strtod.$(objext): $(srcdir)/strtod.c $(INCDIR)/ansidecl.h \
1143 $(INCDIR)/safe-ctype.h
24f2cabb
L
1144 if [ x"$(PICFLAG)" != x ]; then \
1145 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtod.c -o pic/$@; \
1146 else true; fi
1147 $(COMPILE.c) $(srcdir)/strtod.c $(OUTPUT_OPTION)
398b3deb 1148
16f60fcb 1149./strtol.$(objext): $(srcdir)/strtol.c config.h $(INCDIR)/safe-ctype.h
24f2cabb
L
1150 if [ x"$(PICFLAG)" != x ]; then \
1151 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtol.c -o pic/$@; \
1152 else true; fi
1153 $(COMPILE.c) $(srcdir)/strtol.c $(OUTPUT_OPTION)
398b3deb 1154
16f60fcb 1155./strtoul.$(objext): $(srcdir)/strtoul.c config.h $(INCDIR)/ansidecl.h \
398b3deb 1156 $(INCDIR)/safe-ctype.h
24f2cabb
L
1157 if [ x"$(PICFLAG)" != x ]; then \
1158 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoul.c -o pic/$@; \
1159 else true; fi
1160 $(COMPILE.c) $(srcdir)/strtoul.c $(OUTPUT_OPTION)
398b3deb 1161
16f60fcb
TG
1162./strverscmp.$(objext): $(srcdir)/strverscmp.c $(INCDIR)/ansidecl.h \
1163 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
83fbfe42
GK
1164 if [ x"$(PICFLAG)" != x ]; then \
1165 $(COMPILE.c) $(PICFLAG) $(srcdir)/strverscmp.c -o pic/$@; \
1166 else true; fi
1167 $(COMPILE.c) $(srcdir)/strverscmp.c $(OUTPUT_OPTION)
1168
4092fb6e
DE
1169./timeval-utils.$(objext): $(srcdir)/timeval-utils.c config.h \
1170 $(INCDIR)/timeval-utils.h
1171 if [ x"$(PICFLAG)" != x ]; then \
1172 $(COMPILE.c) $(PICFLAG) $(srcdir)/timeval-utils.c -o pic/$@; \
1173 else true; fi
1174 $(COMPILE.c) $(srcdir)/timeval-utils.c $(OUTPUT_OPTION)
1175
16f60fcb 1176./tmpnam.$(objext): $(srcdir)/tmpnam.c
24f2cabb
L
1177 if [ x"$(PICFLAG)" != x ]; then \
1178 $(COMPILE.c) $(PICFLAG) $(srcdir)/tmpnam.c -o pic/$@; \
1179 else true; fi
1180 $(COMPILE.c) $(srcdir)/tmpnam.c $(OUTPUT_OPTION)
398b3deb 1181
16f60fcb 1182./unlink-if-ordinary.$(objext): $(srcdir)/unlink-if-ordinary.c config.h \
17049f0b 1183 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
c363985d
JB
1184 if [ x"$(PICFLAG)" != x ]; then \
1185 $(COMPILE.c) $(PICFLAG) $(srcdir)/unlink-if-ordinary.c -o pic/$@; \
1186 else true; fi
1187 $(COMPILE.c) $(srcdir)/unlink-if-ordinary.c $(OUTPUT_OPTION)
1188
16f60fcb 1189./vasprintf.$(objext): $(srcdir)/vasprintf.c config.h $(INCDIR)/ansidecl.h \
398b3deb 1190 $(INCDIR)/libiberty.h
24f2cabb
L
1191 if [ x"$(PICFLAG)" != x ]; then \
1192 $(COMPILE.c) $(PICFLAG) $(srcdir)/vasprintf.c -o pic/$@; \
1193 else true; fi
1194 $(COMPILE.c) $(srcdir)/vasprintf.c $(OUTPUT_OPTION)
398b3deb 1195
16f60fcb 1196./vfork.$(objext): $(srcdir)/vfork.c $(INCDIR)/ansidecl.h
24f2cabb
L
1197 if [ x"$(PICFLAG)" != x ]; then \
1198 $(COMPILE.c) $(PICFLAG) $(srcdir)/vfork.c -o pic/$@; \
1199 else true; fi
1200 $(COMPILE.c) $(srcdir)/vfork.c $(OUTPUT_OPTION)
398b3deb 1201
16f60fcb 1202./vfprintf.$(objext): $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h
24f2cabb
L
1203 if [ x"$(PICFLAG)" != x ]; then \
1204 $(COMPILE.c) $(PICFLAG) $(srcdir)/vfprintf.c -o pic/$@; \
1205 else true; fi
1206 $(COMPILE.c) $(srcdir)/vfprintf.c $(OUTPUT_OPTION)
398b3deb 1207
16f60fcb 1208./vprintf.$(objext): $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h
24f2cabb
L
1209 if [ x"$(PICFLAG)" != x ]; then \
1210 $(COMPILE.c) $(PICFLAG) $(srcdir)/vprintf.c -o pic/$@; \
1211 else true; fi
1212 $(COMPILE.c) $(srcdir)/vprintf.c $(OUTPUT_OPTION)
398b3deb 1213
16f60fcb 1214./vsnprintf.$(objext): $(srcdir)/vsnprintf.c config.h $(INCDIR)/ansidecl.h \
398b3deb 1215 $(INCDIR)/libiberty.h
24f2cabb
L
1216 if [ x"$(PICFLAG)" != x ]; then \
1217 $(COMPILE.c) $(PICFLAG) $(srcdir)/vsnprintf.c -o pic/$@; \
1218 else true; fi
1219 $(COMPILE.c) $(srcdir)/vsnprintf.c $(OUTPUT_OPTION)
398b3deb 1220
16f60fcb 1221./vsprintf.$(objext): $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h
24f2cabb
L
1222 if [ x"$(PICFLAG)" != x ]; then \
1223 $(COMPILE.c) $(PICFLAG) $(srcdir)/vsprintf.c -o pic/$@; \
1224 else true; fi
1225 $(COMPILE.c) $(srcdir)/vsprintf.c $(OUTPUT_OPTION)
398b3deb 1226
16f60fcb 1227./waitpid.$(objext): $(srcdir)/waitpid.c config.h $(INCDIR)/ansidecl.h
24f2cabb
L
1228 if [ x"$(PICFLAG)" != x ]; then \
1229 $(COMPILE.c) $(PICFLAG) $(srcdir)/waitpid.c -o pic/$@; \
1230 else true; fi
1231 $(COMPILE.c) $(srcdir)/waitpid.c $(OUTPUT_OPTION)
398b3deb 1232
16f60fcb 1233./xatexit.$(objext): $(srcdir)/xatexit.c config.h $(INCDIR)/ansidecl.h \
bd7d50f8 1234 $(INCDIR)/libiberty.h
24f2cabb
L
1235 if [ x"$(PICFLAG)" != x ]; then \
1236 $(COMPILE.c) $(PICFLAG) $(srcdir)/xatexit.c -o pic/$@; \
1237 else true; fi
1238 $(COMPILE.c) $(srcdir)/xatexit.c $(OUTPUT_OPTION)
398b3deb 1239
16f60fcb
TG
1240./xexit.$(objext): $(srcdir)/xexit.c config.h $(INCDIR)/ansidecl.h \
1241 $(INCDIR)/libiberty.h
24f2cabb
L
1242 if [ x"$(PICFLAG)" != x ]; then \
1243 $(COMPILE.c) $(PICFLAG) $(srcdir)/xexit.c -o pic/$@; \
1244 else true; fi
1245 $(COMPILE.c) $(srcdir)/xexit.c $(OUTPUT_OPTION)
398b3deb 1246
16f60fcb 1247./xmalloc.$(objext): $(srcdir)/xmalloc.c config.h $(INCDIR)/ansidecl.h \
398b3deb 1248 $(INCDIR)/libiberty.h
24f2cabb
L
1249 if [ x"$(PICFLAG)" != x ]; then \
1250 $(COMPILE.c) $(PICFLAG) $(srcdir)/xmalloc.c -o pic/$@; \
1251 else true; fi
1252 $(COMPILE.c) $(srcdir)/xmalloc.c $(OUTPUT_OPTION)
398b3deb 1253
16f60fcb 1254./xmemdup.$(objext): $(srcdir)/xmemdup.c config.h $(INCDIR)/ansidecl.h \
398b3deb 1255 $(INCDIR)/libiberty.h
24f2cabb
L
1256 if [ x"$(PICFLAG)" != x ]; then \
1257 $(COMPILE.c) $(PICFLAG) $(srcdir)/xmemdup.c -o pic/$@; \
1258 else true; fi
1259 $(COMPILE.c) $(srcdir)/xmemdup.c $(OUTPUT_OPTION)
398b3deb 1260
16f60fcb 1261./xstrdup.$(objext): $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \
398b3deb 1262 $(INCDIR)/libiberty.h
24f2cabb
L
1263 if [ x"$(PICFLAG)" != x ]; then \
1264 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrdup.c -o pic/$@; \
1265 else true; fi
1266 $(COMPILE.c) $(srcdir)/xstrdup.c $(OUTPUT_OPTION)
398b3deb 1267
16f60fcb 1268./xstrerror.$(objext): $(srcdir)/xstrerror.c config.h $(INCDIR)/ansidecl.h \
398b3deb 1269 $(INCDIR)/libiberty.h
24f2cabb
L
1270 if [ x"$(PICFLAG)" != x ]; then \
1271 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrerror.c -o pic/$@; \
1272 else true; fi
1273 $(COMPILE.c) $(srcdir)/xstrerror.c $(OUTPUT_OPTION)
398b3deb 1274
16f60fcb 1275./xstrndup.$(objext): $(srcdir)/xstrndup.c config.h $(INCDIR)/ansidecl.h \
17998b22
KG
1276 $(INCDIR)/libiberty.h
1277 if [ x"$(PICFLAG)" != x ]; then \
1278 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrndup.c -o pic/$@; \
1279 else true; fi
1280 $(COMPILE.c) $(srcdir)/xstrndup.c $(OUTPUT_OPTION)
1281