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