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