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