1 # Makefile for the libiberty library.
2 # Originally written by K. Richard Pixley <rich@cygnus.com>.
4 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
5 # 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
6 # Free Software Foundation
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.
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.
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,
21 # write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
22 # Boston, MA 02110-1301, USA.
24 libiberty_topdir = @libiberty_topdir@
29 exec_prefix = @exec_prefix@
32 includedir = @includedir@
33 target_header_dir = @target_header_dir@
38 # Multilib support variables.
47 INSTALL_PROGRAM = @INSTALL_PROGRAM@
48 INSTALL_DATA = @INSTALL_DATA@
49 mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs
51 # Some compilers can't handle cc -c blah.c -o foo/blah.o.
52 OUTPUT_OPTION = @OUTPUT_OPTION@
68 TARGETLIB = ./libiberty.a
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.)
77 # Flags to pass to a recursive make.
80 "AR_FLAGS=$(AR_FLAGS)" \
83 "CPPFLAGS=$(CPPFLAGS)" \
84 "DESTDIR=$(DESTDIR)" \
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)" \
95 "exec_prefix=$(exec_prefix)" \
97 "libsubdir=$(libsubdir)" \
100 # Subdirectories to recurse into. We need to override this during cleaning
103 # FIXME: add @BUILD_INFO@ once we're sure it works for everyone.
104 all: stamp-picdir $(TARGETLIB) required-list all-subdir
105 @: $(MAKE) ; $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
107 .PHONY: check installcheck
109 installcheck: installcheck-subdir
113 INCDIR=$(srcdir)/$(MULTISRCTOP)../include
115 COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@
117 # Just to make sure we don't use a built-in rule with VPATH
121 # NOTE: If you add new files to the library, add them to this list
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.
125 CFILES = 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 \
128 cp-demint.c cplus-dem.c crc32.c \
129 dwarfnames.c dyn-string.c \
130 fdmatch.c ffs.c fibheap.c filename_cmp.c floatformat.c \
131 fnmatch.c fopen_unlocked.c \
132 getcwd.c getopt.c getopt1.c getpagesize.c getpwd.c getruntime.c \
138 make-relative-prefix.c \
139 make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmem.c \
140 memmove.c mempcpy.c memset.c mkstemps.c \
141 objalloc.c obstack.c \
142 partition.c pexecute.c \
143 pex-common.c pex-djgpp.c pex-msdos.c pex-one.c \
144 pex-unix.c pex-win32.c \
146 random.c regex.c rename.c rindex.c \
147 safe-ctype.c setenv.c setproctitle.c sha1.c sigsetmask.c \
148 simple-object.c simple-object-coff.c simple-object-elf.c \
149 simple-object-mach-o.c simple-object-xcoff.c \
151 spaces.c splay-tree.c stack-limit.c stpcpy.c stpncpy.c \
152 strcasecmp.c strchr.c strdup.c strerror.c strncasecmp.c \
153 strncmp.c strrchr.c strsignal.c strstr.c strtod.c strtol.c \
154 strtoul.c strndup.c strnlen.c strverscmp.c \
155 timeval-utils.c tmpnam.c \
156 unlink-if-ordinary.c \
157 vasprintf.c vfork.c vfprintf.c vprintf.c vsnprintf.c vsprintf.c \
159 xatexit.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c \
162 # These are always included in the library. The first four are listed
163 # first and by compile time to optimize parallel builds.
165 ./regex.$(objext) ./cplus-dem.$(objext) ./cp-demangle.$(objext) \
166 ./md5.$(objext) ./sha1.$(objext) ./alloca.$(objext) \
168 ./choose-temp.$(objext) ./concat.$(objext) \
169 ./cp-demint.$(objext) ./crc32.$(objext) \
170 ./dwarfnames.$(objext) ./dyn-string.$(objext) \
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) \
178 ./objalloc.$(objext) \
179 ./obstack.$(objext) \
180 ./partition.$(objext) ./pexecute.$(objext) ./physmem.$(objext) \
181 ./pex-common.$(objext) ./pex-one.$(objext) \
182 ./@pexecute@.$(objext) \
183 ./safe-ctype.$(objext) \
184 ./simple-object.$(objext) ./simple-object-coff.$(objext) \
185 ./simple-object-elf.$(objext) ./simple-object-mach-o.$(objext) \
186 ./simple-object-xcoff.$(objext) \
187 ./sort.$(objext) ./spaces.$(objext) \
188 ./splay-tree.$(objext) ./stack-limit.$(objext) \
189 ./strerror.$(objext) ./strsignal.$(objext) \
190 ./timeval-utils.$(objext) ./unlink-if-ordinary.$(objext) \
191 ./xatexit.$(objext) ./xexit.$(objext) ./xmalloc.$(objext) \
192 ./xmemdup.$(objext) ./xstrdup.$(objext) ./xstrerror.$(objext) \
195 # These are all the objects that configure may add to the library via
196 # $funcs or EXTRA_OFILES. This list exists here only for "make
197 # maint-missing" and "make check".
198 CONFIGURED_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) \
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) \
213 ./random.$(objext) ./rename.$(objext) ./rindex.$(objext) \
215 ./setproctitle.$(objext) \
216 ./sigsetmask.$(objext) ./snprintf.$(objext) \
217 ./stpcpy.$(objext) ./stpncpy.$(objext) ./strcasecmp.$(objext) \
218 ./strchr.$(objext) ./strdup.$(objext) ./strncasecmp.$(objext) \
219 ./strncmp.$(objext) ./strndup.$(objext) ./strnlen.$(objext) \
220 ./strrchr.$(objext) ./strstr.$(objext) ./strtod.$(objext) \
221 ./strtol.$(objext) ./strtoul.$(objext) ./strverscmp.$(objext) \
223 ./vasprintf.$(objext) ./vfork.$(objext) ./vfprintf.$(objext) \
224 ./vprintf.$(objext) ./vsnprintf.$(objext) ./vsprintf.$(objext) \
227 # These files are installed if the library has been configured to do so.
228 INSTALLED_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 \
240 $(INCDIR)/splay-tree.h \
241 $(INCDIR)/timeval-utils.h
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 \
250 $(AR) $(AR_FLAGS) $(TARGETLIB) \
251 $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
252 $(RANLIB) $(TARGETLIB); \
256 $(TESTLIB): $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
258 $(AR) $(AR_FLAGS) $(TESTLIB) \
259 $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
262 info: libiberty.info info-subdir
263 install-info: install-info-subdir
264 clean-info: clean-info-subdir
265 dvi: libiberty.dvi dvi-subdir
267 LIBIBERTY_PDFFILES = libiberty.pdf
269 pdf: $(LIBIBERTY_PDFFILES) pdf-subdir
273 pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
275 install-pdf: $(LIBIBERTY_PDFFILES)
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"; \
285 # html, install-html targets
286 HTMLS = libiberty.html
290 .PHONY: install-html install-html-am
293 mkdir_p = mkdir -p --
295 html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
297 install-html: install-html-am
299 install-html-am: $(HTMLS)
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"; \
311 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
312 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
317 $(srcdir)/libiberty.texi \
318 $(srcdir)/copying-lib.texi \
319 $(srcdir)/obstacks.texi \
320 $(srcdir)/functions.texi
322 # Additional files that have texi snippets that need to be collected
323 # and sorted. Some are here because the sources are imported from
324 # elsewhere. Others represent headers in ../include.
325 TEXIFILES = fnmatch.txh pexecute.txh simple-object.txh
327 libiberty.info : $(srcdir)/libiberty.texi $(TEXISRC)
328 $(MAKEINFO) -I$(srcdir) $(srcdir)/libiberty.texi
330 libiberty.dvi : $(srcdir)/libiberty.texi $(TEXISRC)
331 texi2dvi $(srcdir)/libiberty.texi
333 libiberty.pdf : $(srcdir)/libiberty.texi $(TEXISRC)
334 texi2pdf $(srcdir)/libiberty.texi
336 libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC)
337 $(MAKEINFO) --no-split --html -I$(srcdir) -o $@ $<
339 @MAINT@$(srcdir)/functions.texi : stamp-functions
342 @MAINT@stamp-functions : $(CFILES:%=$(srcdir)/%) $(TEXIFILES:%=$(srcdir)/%) $(srcdir)/gather-docs Makefile
343 @MAINT@@HAVE_PERL@ $(PERL) $(srcdir)/gather-docs $(srcdir) $(srcdir)/functions.texi $(CFILES) $(TEXIFILES)
344 @MAINT@ echo stamp > stamp-functions
346 INSTALL_DEST = @INSTALL_DEST@
347 install: install_to_$(INSTALL_DEST) install-subdir
348 install-strip: install
350 .PHONY: install install-strip
352 # This is tricky. Even though CC in the Makefile contains
353 # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
354 # default multilib, so we have to take CFLAGS into account as well,
355 # since it will be passed the multilib flags.
356 MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
357 install_to_libdir: all
358 if test -n "${target_header_dir}"; then \
359 ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR); \
360 $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n; \
361 ( cd $(DESTDIR)$(libdir)/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n ); \
362 mv -f $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB); \
363 case "${target_header_dir}" in \
364 /*) thd=${target_header_dir};; \
365 *) thd=${includedir}/${target_header_dir};; \
367 ${mkinstalldirs} $(DESTDIR)$${thd}; \
368 for h in ${INSTALLED_HEADERS}; do \
369 ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \
372 @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
374 install_to_tooldir: all
375 ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)
376 $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n
377 ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n; $(RANLIB) $(TARGETLIB)n )
378 mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)
379 @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
381 # required-list was used when building a shared bfd/opcodes/libiberty
382 # library. I don't know if it used by anything currently.
383 required-list: Makefile
384 echo $(REQUIRED_OFILES) > required-list
387 if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \
392 .PHONY: all etags tags ls clean stage1 stage2
394 etags tags: TAGS etags-subdir
397 etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done`
399 # The standalone demangler (c++filt) has been moved to binutils.
400 # But make this target work anyway for demangler hacking.
401 demangle: $(ALL) $(srcdir)/cp-demangle.c
402 @echo "The standalone demangler, now named c++filt, is now"
403 @echo "a part of binutils."
404 $(CC) @DEFS@ $(CFLAGS) $(CPPFLAGS) -I. -I$(INCDIR) $(HDEFINES) \
405 $(srcdir)/cp-demangle.c -DSTANDALONE_DEMANGLER $(TARGETLIB) -o $@
408 @echo Makefile $(CFILES)
410 # Various targets for maintainers.
413 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) missing $(CFILES) $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
415 maint-buildall : $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
418 maint-undoc : $(srcdir)/functions.texi
419 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc
422 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) deps $(INCDIR)
424 # Need to deal with profiled libraries, too.
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.
428 mostlyclean: mostlyclean-subdir
429 -rm -rf *.$(objext) pic core errs \#* *.E a.out
430 -rm -f errors dummy config.h stamp-*
431 -rm -f $(CONFIG_H) stamp-picdir
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
436 @$(MULTICLEAN) multi-clean DO=mostlyclean
438 $(MAKE) SUBDIRS="" mostlyclean
439 -rm -f *.a required-list tmpmulti.out
440 -rm -f libiberty.dvi libiberty.pdf libiberty.info* libiberty.html
441 @$(MULTICLEAN) multi-clean DO=clean
442 distclean: distclean-subdir
443 $(MAKE) SUBDIRS="" clean
444 @$(MULTICLEAN) multi-clean DO=distclean
445 -rm -f *~ Makefile config.cache config.status xhost-mkfrag TAGS multilib.out
447 -rmdir testsuite 2>/dev/null
448 maintainer-clean realclean: maintainer-clean-subdir
449 $(MAKE) SUBDIRS="" distclean
453 Makefile: $(srcdir)/Makefile.in config.status
454 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
456 # Depending on Makefile makes sure that config.status has been re-run
457 # if needed. This prevents problems with parallel builds.
458 config.h: stamp-h ; @true
459 stamp-h: $(srcdir)/config.in config.status Makefile
460 CONFIG_FILES= CONFIG_HEADERS=config.h:$(srcdir)/config.in $(SHELL) ./config.status
462 config.status: $(srcdir)/configure
463 $(SHELL) ./config.status --recheck
466 configure_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 \
472 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(configure_deps)
473 cd $(srcdir) && $(AUTOCONF)
475 # Depending on config.h makes sure that config.status has been re-run
476 # if needed. This prevents problems with parallel builds, in case
477 # subdirectories need to run config.status also.
478 all-subdir check-subdir installcheck-subdir info-subdir \
479 install-info-subdir clean-info-subdir dvi-subdir pdf-subdir install-subdir \
480 etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
481 maintainer-clean-subdir: config.h
482 @subdirs='$(SUBDIRS)'; \
483 target=`echo $@ | sed -e 's/-subdir//'`; \
484 for dir in $$subdirs ; do \
485 cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \
488 $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS): stamp-picdir
489 $(CONFIGURED_OFILES): stamp-picdir
491 # Don't export variables to the environment, in order to not confuse
495 # The dependencies in the remainder of this file are automatically
496 # generated by "make maint-deps". Manual edits will be lost.
498 ./_doprnt.$(objext): $(srcdir)/_doprnt.c config.h $(INCDIR)/ansidecl.h \
499 $(INCDIR)/safe-ctype.h
500 if [ x"$(PICFLAG)" != x ]; then \
501 $(COMPILE.c) $(PICFLAG) $(srcdir)/_doprnt.c -o pic/$@; \
503 $(COMPILE.c) $(srcdir)/_doprnt.c $(OUTPUT_OPTION)
505 ./alloca.$(objext): $(srcdir)/alloca.c config.h $(INCDIR)/ansidecl.h \
506 $(INCDIR)/libiberty.h
507 if [ x"$(PICFLAG)" != x ]; then \
508 $(COMPILE.c) $(PICFLAG) $(srcdir)/alloca.c -o pic/$@; \
510 $(COMPILE.c) $(srcdir)/alloca.c $(OUTPUT_OPTION)
512 ./argv.$(objext): $(srcdir)/argv.c config.h $(INCDIR)/ansidecl.h \
513 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
514 if [ x"$(PICFLAG)" != x ]; then \
515 $(COMPILE.c) $(PICFLAG) $(srcdir)/argv.c -o pic/$@; \
517 $(COMPILE.c) $(srcdir)/argv.c $(OUTPUT_OPTION)
519 ./asprintf.$(objext): $(srcdir)/asprintf.c config.h $(INCDIR)/ansidecl.h \
520 $(INCDIR)/libiberty.h
521 if [ x"$(PICFLAG)" != x ]; then \
522 $(COMPILE.c) $(PICFLAG) $(srcdir)/asprintf.c -o pic/$@; \
524 $(COMPILE.c) $(srcdir)/asprintf.c $(OUTPUT_OPTION)
526 ./atexit.$(objext): $(srcdir)/atexit.c config.h
527 if [ x"$(PICFLAG)" != x ]; then \
528 $(COMPILE.c) $(PICFLAG) $(srcdir)/atexit.c -o pic/$@; \
530 $(COMPILE.c) $(srcdir)/atexit.c $(OUTPUT_OPTION)
532 ./basename.$(objext): $(srcdir)/basename.c config.h $(INCDIR)/ansidecl.h \
533 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
534 if [ x"$(PICFLAG)" != x ]; then \
535 $(COMPILE.c) $(PICFLAG) $(srcdir)/basename.c -o pic/$@; \
537 $(COMPILE.c) $(srcdir)/basename.c $(OUTPUT_OPTION)
539 ./bcmp.$(objext): $(srcdir)/bcmp.c
540 if [ x"$(PICFLAG)" != x ]; then \
541 $(COMPILE.c) $(PICFLAG) $(srcdir)/bcmp.c -o pic/$@; \
543 $(COMPILE.c) $(srcdir)/bcmp.c $(OUTPUT_OPTION)
545 ./bcopy.$(objext): $(srcdir)/bcopy.c
546 if [ x"$(PICFLAG)" != x ]; then \
547 $(COMPILE.c) $(PICFLAG) $(srcdir)/bcopy.c -o pic/$@; \
549 $(COMPILE.c) $(srcdir)/bcopy.c $(OUTPUT_OPTION)
551 ./bsearch.$(objext): $(srcdir)/bsearch.c config.h $(INCDIR)/ansidecl.h
552 if [ x"$(PICFLAG)" != x ]; then \
553 $(COMPILE.c) $(PICFLAG) $(srcdir)/bsearch.c -o pic/$@; \
555 $(COMPILE.c) $(srcdir)/bsearch.c $(OUTPUT_OPTION)
557 ./bzero.$(objext): $(srcdir)/bzero.c
558 if [ x"$(PICFLAG)" != x ]; then \
559 $(COMPILE.c) $(PICFLAG) $(srcdir)/bzero.c -o pic/$@; \
561 $(COMPILE.c) $(srcdir)/bzero.c $(OUTPUT_OPTION)
563 ./calloc.$(objext): $(srcdir)/calloc.c $(INCDIR)/ansidecl.h
564 if [ x"$(PICFLAG)" != x ]; then \
565 $(COMPILE.c) $(PICFLAG) $(srcdir)/calloc.c -o pic/$@; \
567 $(COMPILE.c) $(srcdir)/calloc.c $(OUTPUT_OPTION)
569 ./choose-temp.$(objext): $(srcdir)/choose-temp.c config.h $(INCDIR)/ansidecl.h \
570 $(INCDIR)/libiberty.h
571 if [ x"$(PICFLAG)" != x ]; then \
572 $(COMPILE.c) $(PICFLAG) $(srcdir)/choose-temp.c -o pic/$@; \
574 $(COMPILE.c) $(srcdir)/choose-temp.c $(OUTPUT_OPTION)
576 ./clock.$(objext): $(srcdir)/clock.c config.h
577 if [ x"$(PICFLAG)" != x ]; then \
578 $(COMPILE.c) $(PICFLAG) $(srcdir)/clock.c -o pic/$@; \
580 $(COMPILE.c) $(srcdir)/clock.c $(OUTPUT_OPTION)
582 ./concat.$(objext): $(srcdir)/concat.c config.h $(INCDIR)/ansidecl.h \
583 $(INCDIR)/libiberty.h
584 if [ x"$(PICFLAG)" != x ]; then \
585 $(COMPILE.c) $(PICFLAG) $(srcdir)/concat.c -o pic/$@; \
587 $(COMPILE.c) $(srcdir)/concat.c $(OUTPUT_OPTION)
589 ./copysign.$(objext): $(srcdir)/copysign.c $(INCDIR)/ansidecl.h
590 if [ x"$(PICFLAG)" != x ]; then \
591 $(COMPILE.c) $(PICFLAG) $(srcdir)/copysign.c -o pic/$@; \
593 $(COMPILE.c) $(srcdir)/copysign.c $(OUTPUT_OPTION)
595 ./cp-demangle.$(objext): $(srcdir)/cp-demangle.c config.h $(INCDIR)/ansidecl.h \
596 $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \
597 $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h
598 if [ x"$(PICFLAG)" != x ]; then \
599 $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demangle.c -o pic/$@; \
601 $(COMPILE.c) $(srcdir)/cp-demangle.c $(OUTPUT_OPTION)
603 ./cp-demint.$(objext): $(srcdir)/cp-demint.c config.h $(INCDIR)/ansidecl.h \
604 $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \
605 $(INCDIR)/libiberty.h
606 if [ x"$(PICFLAG)" != x ]; then \
607 $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demint.c -o pic/$@; \
609 $(COMPILE.c) $(srcdir)/cp-demint.c $(OUTPUT_OPTION)
611 ./cplus-dem.$(objext): $(srcdir)/cplus-dem.c config.h $(INCDIR)/ansidecl.h \
612 $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
613 $(INCDIR)/safe-ctype.h
614 if [ x"$(PICFLAG)" != x ]; then \
615 $(COMPILE.c) $(PICFLAG) $(srcdir)/cplus-dem.c -o pic/$@; \
617 $(COMPILE.c) $(srcdir)/cplus-dem.c $(OUTPUT_OPTION)
619 ./crc32.$(objext): $(srcdir)/crc32.c config.h $(INCDIR)/ansidecl.h \
620 $(INCDIR)/libiberty.h
621 if [ x"$(PICFLAG)" != x ]; then \
622 $(COMPILE.c) $(PICFLAG) $(srcdir)/crc32.c -o pic/$@; \
624 $(COMPILE.c) $(srcdir)/crc32.c $(OUTPUT_OPTION)
626 ./dwarfnames.$(objext): $(srcdir)/dwarfnames.c $(INCDIR)/dwarf2.def \
628 if [ x"$(PICFLAG)" != x ]; then \
629 $(COMPILE.c) $(PICFLAG) $(srcdir)/dwarfnames.c -o pic/$@; \
631 $(COMPILE.c) $(srcdir)/dwarfnames.c $(OUTPUT_OPTION)
633 ./dyn-string.$(objext): $(srcdir)/dyn-string.c config.h $(INCDIR)/ansidecl.h \
634 $(INCDIR)/dyn-string.h $(INCDIR)/libiberty.h
635 if [ x"$(PICFLAG)" != x ]; then \
636 $(COMPILE.c) $(PICFLAG) $(srcdir)/dyn-string.c -o pic/$@; \
638 $(COMPILE.c) $(srcdir)/dyn-string.c $(OUTPUT_OPTION)
640 ./fdmatch.$(objext): $(srcdir)/fdmatch.c config.h $(INCDIR)/ansidecl.h \
641 $(INCDIR)/libiberty.h
642 if [ x"$(PICFLAG)" != x ]; then \
643 $(COMPILE.c) $(PICFLAG) $(srcdir)/fdmatch.c -o pic/$@; \
645 $(COMPILE.c) $(srcdir)/fdmatch.c $(OUTPUT_OPTION)
647 ./ffs.$(objext): $(srcdir)/ffs.c
648 if [ x"$(PICFLAG)" != x ]; then \
649 $(COMPILE.c) $(PICFLAG) $(srcdir)/ffs.c -o pic/$@; \
651 $(COMPILE.c) $(srcdir)/ffs.c $(OUTPUT_OPTION)
653 ./fibheap.$(objext): $(srcdir)/fibheap.c config.h $(INCDIR)/ansidecl.h \
654 $(INCDIR)/fibheap.h $(INCDIR)/libiberty.h
655 if [ x"$(PICFLAG)" != x ]; then \
656 $(COMPILE.c) $(PICFLAG) $(srcdir)/fibheap.c -o pic/$@; \
658 $(COMPILE.c) $(srcdir)/fibheap.c $(OUTPUT_OPTION)
660 ./filename_cmp.$(objext): $(srcdir)/filename_cmp.c config.h $(INCDIR)/ansidecl.h \
661 $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
662 $(INCDIR)/safe-ctype.h
663 if [ x"$(PICFLAG)" != x ]; then \
664 $(COMPILE.c) $(PICFLAG) $(srcdir)/filename_cmp.c -o pic/$@; \
666 $(COMPILE.c) $(srcdir)/filename_cmp.c $(OUTPUT_OPTION)
668 ./floatformat.$(objext): $(srcdir)/floatformat.c config.h $(INCDIR)/ansidecl.h \
669 $(INCDIR)/floatformat.h $(INCDIR)/libiberty.h
670 if [ x"$(PICFLAG)" != x ]; then \
671 $(COMPILE.c) $(PICFLAG) $(srcdir)/floatformat.c -o pic/$@; \
673 $(COMPILE.c) $(srcdir)/floatformat.c $(OUTPUT_OPTION)
675 ./fnmatch.$(objext): $(srcdir)/fnmatch.c config.h $(INCDIR)/fnmatch.h \
676 $(INCDIR)/safe-ctype.h
677 if [ x"$(PICFLAG)" != x ]; then \
678 $(COMPILE.c) $(PICFLAG) $(srcdir)/fnmatch.c -o pic/$@; \
680 $(COMPILE.c) $(srcdir)/fnmatch.c $(OUTPUT_OPTION)
682 ./fopen_unlocked.$(objext): $(srcdir)/fopen_unlocked.c config.h \
683 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
684 if [ x"$(PICFLAG)" != x ]; then \
685 $(COMPILE.c) $(PICFLAG) $(srcdir)/fopen_unlocked.c -o pic/$@; \
687 $(COMPILE.c) $(srcdir)/fopen_unlocked.c $(OUTPUT_OPTION)
689 ./getcwd.$(objext): $(srcdir)/getcwd.c config.h
690 if [ x"$(PICFLAG)" != x ]; then \
691 $(COMPILE.c) $(PICFLAG) $(srcdir)/getcwd.c -o pic/$@; \
693 $(COMPILE.c) $(srcdir)/getcwd.c $(OUTPUT_OPTION)
695 ./getopt.$(objext): $(srcdir)/getopt.c config.h $(INCDIR)/ansidecl.h \
697 if [ x"$(PICFLAG)" != x ]; then \
698 $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt.c -o pic/$@; \
700 $(COMPILE.c) $(srcdir)/getopt.c $(OUTPUT_OPTION)
702 ./getopt1.$(objext): $(srcdir)/getopt1.c config.h $(INCDIR)/getopt.h
703 if [ x"$(PICFLAG)" != x ]; then \
704 $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt1.c -o pic/$@; \
706 $(COMPILE.c) $(srcdir)/getopt1.c $(OUTPUT_OPTION)
708 ./getpagesize.$(objext): $(srcdir)/getpagesize.c config.h
709 if [ x"$(PICFLAG)" != x ]; then \
710 $(COMPILE.c) $(PICFLAG) $(srcdir)/getpagesize.c -o pic/$@; \
712 $(COMPILE.c) $(srcdir)/getpagesize.c $(OUTPUT_OPTION)
714 ./getpwd.$(objext): $(srcdir)/getpwd.c config.h $(INCDIR)/ansidecl.h \
715 $(INCDIR)/libiberty.h
716 if [ x"$(PICFLAG)" != x ]; then \
717 $(COMPILE.c) $(PICFLAG) $(srcdir)/getpwd.c -o pic/$@; \
719 $(COMPILE.c) $(srcdir)/getpwd.c $(OUTPUT_OPTION)
721 ./getruntime.$(objext): $(srcdir)/getruntime.c config.h $(INCDIR)/ansidecl.h \
722 $(INCDIR)/libiberty.h
723 if [ x"$(PICFLAG)" != x ]; then \
724 $(COMPILE.c) $(PICFLAG) $(srcdir)/getruntime.c -o pic/$@; \
726 $(COMPILE.c) $(srcdir)/getruntime.c $(OUTPUT_OPTION)
728 ./gettimeofday.$(objext): $(srcdir)/gettimeofday.c config.h $(INCDIR)/ansidecl.h \
729 $(INCDIR)/libiberty.h
730 if [ x"$(PICFLAG)" != x ]; then \
731 $(COMPILE.c) $(PICFLAG) $(srcdir)/gettimeofday.c -o pic/$@; \
733 $(COMPILE.c) $(srcdir)/gettimeofday.c $(OUTPUT_OPTION)
735 ./hashtab.$(objext): $(srcdir)/hashtab.c config.h $(INCDIR)/ansidecl.h \
736 $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h
737 if [ x"$(PICFLAG)" != x ]; then \
738 $(COMPILE.c) $(PICFLAG) $(srcdir)/hashtab.c -o pic/$@; \
740 $(COMPILE.c) $(srcdir)/hashtab.c $(OUTPUT_OPTION)
742 ./hex.$(objext): $(srcdir)/hex.c config.h $(INCDIR)/ansidecl.h \
743 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
744 if [ x"$(PICFLAG)" != x ]; then \
745 $(COMPILE.c) $(PICFLAG) $(srcdir)/hex.c -o pic/$@; \
747 $(COMPILE.c) $(srcdir)/hex.c $(OUTPUT_OPTION)
749 ./index.$(objext): $(srcdir)/index.c
750 if [ x"$(PICFLAG)" != x ]; then \
751 $(COMPILE.c) $(PICFLAG) $(srcdir)/index.c -o pic/$@; \
753 $(COMPILE.c) $(srcdir)/index.c $(OUTPUT_OPTION)
755 ./insque.$(objext): $(srcdir)/insque.c
756 if [ x"$(PICFLAG)" != x ]; then \
757 $(COMPILE.c) $(PICFLAG) $(srcdir)/insque.c -o pic/$@; \
759 $(COMPILE.c) $(srcdir)/insque.c $(OUTPUT_OPTION)
761 ./lbasename.$(objext): $(srcdir)/lbasename.c config.h $(INCDIR)/ansidecl.h \
762 $(INCDIR)/filenames.h $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h \
763 $(INCDIR)/safe-ctype.h
764 if [ x"$(PICFLAG)" != x ]; then \
765 $(COMPILE.c) $(PICFLAG) $(srcdir)/lbasename.c -o pic/$@; \
767 $(COMPILE.c) $(srcdir)/lbasename.c $(OUTPUT_OPTION)
769 ./lrealpath.$(objext): $(srcdir)/lrealpath.c config.h $(INCDIR)/ansidecl.h \
770 $(INCDIR)/libiberty.h
771 if [ x"$(PICFLAG)" != x ]; then \
772 $(COMPILE.c) $(PICFLAG) $(srcdir)/lrealpath.c -o pic/$@; \
774 $(COMPILE.c) $(srcdir)/lrealpath.c $(OUTPUT_OPTION)
776 ./make-relative-prefix.$(objext): $(srcdir)/make-relative-prefix.c config.h \
777 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
778 if [ x"$(PICFLAG)" != x ]; then \
779 $(COMPILE.c) $(PICFLAG) $(srcdir)/make-relative-prefix.c -o pic/$@; \
781 $(COMPILE.c) $(srcdir)/make-relative-prefix.c $(OUTPUT_OPTION)
783 ./make-temp-file.$(objext): $(srcdir)/make-temp-file.c config.h \
784 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
785 if [ x"$(PICFLAG)" != x ]; then \
786 $(COMPILE.c) $(PICFLAG) $(srcdir)/make-temp-file.c -o pic/$@; \
788 $(COMPILE.c) $(srcdir)/make-temp-file.c $(OUTPUT_OPTION)
790 ./md5.$(objext): $(srcdir)/md5.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h
791 if [ x"$(PICFLAG)" != x ]; then \
792 $(COMPILE.c) $(PICFLAG) $(srcdir)/md5.c -o pic/$@; \
794 $(COMPILE.c) $(srcdir)/md5.c $(OUTPUT_OPTION)
796 ./memchr.$(objext): $(srcdir)/memchr.c $(INCDIR)/ansidecl.h
797 if [ x"$(PICFLAG)" != x ]; then \
798 $(COMPILE.c) $(PICFLAG) $(srcdir)/memchr.c -o pic/$@; \
800 $(COMPILE.c) $(srcdir)/memchr.c $(OUTPUT_OPTION)
802 ./memcmp.$(objext): $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h
803 if [ x"$(PICFLAG)" != x ]; then \
804 $(COMPILE.c) $(PICFLAG) $(srcdir)/memcmp.c -o pic/$@; \
806 $(COMPILE.c) $(srcdir)/memcmp.c $(OUTPUT_OPTION)
808 ./memcpy.$(objext): $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h
809 if [ x"$(PICFLAG)" != x ]; then \
810 $(COMPILE.c) $(PICFLAG) $(srcdir)/memcpy.c -o pic/$@; \
812 $(COMPILE.c) $(srcdir)/memcpy.c $(OUTPUT_OPTION)
814 ./memmem.$(objext): $(srcdir)/memmem.c config.h
815 if [ x"$(PICFLAG)" != x ]; then \
816 $(COMPILE.c) $(PICFLAG) $(srcdir)/memmem.c -o pic/$@; \
818 $(COMPILE.c) $(srcdir)/memmem.c $(OUTPUT_OPTION)
820 ./memmove.$(objext): $(srcdir)/memmove.c $(INCDIR)/ansidecl.h
821 if [ x"$(PICFLAG)" != x ]; then \
822 $(COMPILE.c) $(PICFLAG) $(srcdir)/memmove.c -o pic/$@; \
824 $(COMPILE.c) $(srcdir)/memmove.c $(OUTPUT_OPTION)
826 ./mempcpy.$(objext): $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h
827 if [ x"$(PICFLAG)" != x ]; then \
828 $(COMPILE.c) $(PICFLAG) $(srcdir)/mempcpy.c -o pic/$@; \
830 $(COMPILE.c) $(srcdir)/mempcpy.c $(OUTPUT_OPTION)
832 ./memset.$(objext): $(srcdir)/memset.c $(INCDIR)/ansidecl.h
833 if [ x"$(PICFLAG)" != x ]; then \
834 $(COMPILE.c) $(PICFLAG) $(srcdir)/memset.c -o pic/$@; \
836 $(COMPILE.c) $(srcdir)/memset.c $(OUTPUT_OPTION)
838 ./mkstemps.$(objext): $(srcdir)/mkstemps.c config.h $(INCDIR)/ansidecl.h
839 if [ x"$(PICFLAG)" != x ]; then \
840 $(COMPILE.c) $(PICFLAG) $(srcdir)/mkstemps.c -o pic/$@; \
842 $(COMPILE.c) $(srcdir)/mkstemps.c $(OUTPUT_OPTION)
844 ./msdos.$(objext): $(srcdir)/msdos.c
845 if [ x"$(PICFLAG)" != x ]; then \
846 $(COMPILE.c) $(PICFLAG) $(srcdir)/msdos.c -o pic/$@; \
848 $(COMPILE.c) $(srcdir)/msdos.c $(OUTPUT_OPTION)
850 ./objalloc.$(objext): $(srcdir)/objalloc.c config.h $(INCDIR)/ansidecl.h \
852 if [ x"$(PICFLAG)" != x ]; then \
853 $(COMPILE.c) $(PICFLAG) $(srcdir)/objalloc.c -o pic/$@; \
855 $(COMPILE.c) $(srcdir)/objalloc.c $(OUTPUT_OPTION)
857 ./obstack.$(objext): $(srcdir)/obstack.c config.h $(INCDIR)/obstack.h
858 if [ x"$(PICFLAG)" != x ]; then \
859 $(COMPILE.c) $(PICFLAG) $(srcdir)/obstack.c -o pic/$@; \
861 $(COMPILE.c) $(srcdir)/obstack.c $(OUTPUT_OPTION)
863 ./partition.$(objext): $(srcdir)/partition.c config.h $(INCDIR)/ansidecl.h \
864 $(INCDIR)/libiberty.h $(INCDIR)/partition.h
865 if [ x"$(PICFLAG)" != x ]; then \
866 $(COMPILE.c) $(PICFLAG) $(srcdir)/partition.c -o pic/$@; \
868 $(COMPILE.c) $(srcdir)/partition.c $(OUTPUT_OPTION)
870 ./pex-common.$(objext): $(srcdir)/pex-common.c config.h $(INCDIR)/ansidecl.h \
871 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
872 if [ x"$(PICFLAG)" != x ]; then \
873 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-common.c -o pic/$@; \
875 $(COMPILE.c) $(srcdir)/pex-common.c $(OUTPUT_OPTION)
877 ./pex-djgpp.$(objext): $(srcdir)/pex-djgpp.c config.h $(INCDIR)/ansidecl.h \
878 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
879 if [ x"$(PICFLAG)" != x ]; then \
880 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-djgpp.c -o pic/$@; \
882 $(COMPILE.c) $(srcdir)/pex-djgpp.c $(OUTPUT_OPTION)
884 ./pex-msdos.$(objext): $(srcdir)/pex-msdos.c config.h $(INCDIR)/ansidecl.h \
885 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h \
886 $(INCDIR)/safe-ctype.h
887 if [ x"$(PICFLAG)" != x ]; then \
888 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-msdos.c -o pic/$@; \
890 $(COMPILE.c) $(srcdir)/pex-msdos.c $(OUTPUT_OPTION)
892 ./pex-one.$(objext): $(srcdir)/pex-one.c config.h $(INCDIR)/ansidecl.h \
893 $(INCDIR)/libiberty.h
894 if [ x"$(PICFLAG)" != x ]; then \
895 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-one.c -o pic/$@; \
897 $(COMPILE.c) $(srcdir)/pex-one.c $(OUTPUT_OPTION)
899 ./pex-unix.$(objext): $(srcdir)/pex-unix.c config.h $(INCDIR)/ansidecl.h \
900 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
901 if [ x"$(PICFLAG)" != x ]; then \
902 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-unix.c -o pic/$@; \
904 $(COMPILE.c) $(srcdir)/pex-unix.c $(OUTPUT_OPTION)
906 ./pex-win32.$(objext): $(srcdir)/pex-win32.c config.h $(INCDIR)/ansidecl.h \
907 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
908 if [ x"$(PICFLAG)" != x ]; then \
909 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-win32.c -o pic/$@; \
911 $(COMPILE.c) $(srcdir)/pex-win32.c $(OUTPUT_OPTION)
913 ./pexecute.$(objext): $(srcdir)/pexecute.c config.h $(INCDIR)/ansidecl.h \
914 $(INCDIR)/libiberty.h
915 if [ x"$(PICFLAG)" != x ]; then \
916 $(COMPILE.c) $(PICFLAG) $(srcdir)/pexecute.c -o pic/$@; \
918 $(COMPILE.c) $(srcdir)/pexecute.c $(OUTPUT_OPTION)
920 ./physmem.$(objext): $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \
921 $(INCDIR)/libiberty.h
922 if [ x"$(PICFLAG)" != x ]; then \
923 $(COMPILE.c) $(PICFLAG) $(srcdir)/physmem.c -o pic/$@; \
925 $(COMPILE.c) $(srcdir)/physmem.c $(OUTPUT_OPTION)
927 ./putenv.$(objext): $(srcdir)/putenv.c config.h $(INCDIR)/ansidecl.h
928 if [ x"$(PICFLAG)" != x ]; then \
929 $(COMPILE.c) $(PICFLAG) $(srcdir)/putenv.c -o pic/$@; \
931 $(COMPILE.c) $(srcdir)/putenv.c $(OUTPUT_OPTION)
933 ./random.$(objext): $(srcdir)/random.c $(INCDIR)/ansidecl.h
934 if [ x"$(PICFLAG)" != x ]; then \
935 $(COMPILE.c) $(PICFLAG) $(srcdir)/random.c -o pic/$@; \
937 $(COMPILE.c) $(srcdir)/random.c $(OUTPUT_OPTION)
939 ./regex.$(objext): $(srcdir)/regex.c config.h $(INCDIR)/ansidecl.h \
940 $(INCDIR)/xregex.h $(INCDIR)/xregex2.h
941 if [ x"$(PICFLAG)" != x ]; then \
942 $(COMPILE.c) $(PICFLAG) $(srcdir)/regex.c -o pic/$@; \
944 $(COMPILE.c) $(srcdir)/regex.c $(OUTPUT_OPTION)
946 ./rename.$(objext): $(srcdir)/rename.c config.h $(INCDIR)/ansidecl.h
947 if [ x"$(PICFLAG)" != x ]; then \
948 $(COMPILE.c) $(PICFLAG) $(srcdir)/rename.c -o pic/$@; \
950 $(COMPILE.c) $(srcdir)/rename.c $(OUTPUT_OPTION)
952 ./rindex.$(objext): $(srcdir)/rindex.c
953 if [ x"$(PICFLAG)" != x ]; then \
954 $(COMPILE.c) $(PICFLAG) $(srcdir)/rindex.c -o pic/$@; \
956 $(COMPILE.c) $(srcdir)/rindex.c $(OUTPUT_OPTION)
958 ./safe-ctype.$(objext): $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \
959 $(INCDIR)/safe-ctype.h
960 if [ x"$(PICFLAG)" != x ]; then \
961 $(COMPILE.c) $(PICFLAG) $(srcdir)/safe-ctype.c -o pic/$@; \
963 $(COMPILE.c) $(srcdir)/safe-ctype.c $(OUTPUT_OPTION)
965 ./setenv.$(objext): $(srcdir)/setenv.c config.h $(INCDIR)/ansidecl.h
966 if [ x"$(PICFLAG)" != x ]; then \
967 $(COMPILE.c) $(PICFLAG) $(srcdir)/setenv.c -o pic/$@; \
969 $(COMPILE.c) $(srcdir)/setenv.c $(OUTPUT_OPTION)
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/$@; \
975 $(COMPILE.c) $(srcdir)/setproctitle.c $(OUTPUT_OPTION)
977 ./sha1.$(objext): $(srcdir)/sha1.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/sha1.h
978 if [ x"$(PICFLAG)" != x ]; then \
979 $(COMPILE.c) $(PICFLAG) $(srcdir)/sha1.c -o pic/$@; \
981 $(COMPILE.c) $(srcdir)/sha1.c $(OUTPUT_OPTION)
983 ./sigsetmask.$(objext): $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h
984 if [ x"$(PICFLAG)" != x ]; then \
985 $(COMPILE.c) $(PICFLAG) $(srcdir)/sigsetmask.c -o pic/$@; \
987 $(COMPILE.c) $(srcdir)/sigsetmask.c $(OUTPUT_OPTION)
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/$@; \
995 $(COMPILE.c) $(srcdir)/simple-object-coff.c $(OUTPUT_OPTION)
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/$@; \
1003 $(COMPILE.c) $(srcdir)/simple-object-elf.c $(OUTPUT_OPTION)
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/$@; \
1011 $(COMPILE.c) $(srcdir)/simple-object-mach-o.c $(OUTPUT_OPTION)
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/$@; \
1019 $(COMPILE.c) $(srcdir)/simple-object-xcoff.c $(OUTPUT_OPTION)
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/$@; \
1027 $(COMPILE.c) $(srcdir)/simple-object.c $(OUTPUT_OPTION)
1029 ./snprintf.$(objext): $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h
1030 if [ x"$(PICFLAG)" != x ]; then \
1031 $(COMPILE.c) $(PICFLAG) $(srcdir)/snprintf.c -o pic/$@; \
1033 $(COMPILE.c) $(srcdir)/snprintf.c $(OUTPUT_OPTION)
1035 ./sort.$(objext): $(srcdir)/sort.c config.h $(INCDIR)/ansidecl.h \
1036 $(INCDIR)/libiberty.h $(INCDIR)/sort.h
1037 if [ x"$(PICFLAG)" != x ]; then \
1038 $(COMPILE.c) $(PICFLAG) $(srcdir)/sort.c -o pic/$@; \
1040 $(COMPILE.c) $(srcdir)/sort.c $(OUTPUT_OPTION)
1042 ./spaces.$(objext): $(srcdir)/spaces.c config.h $(INCDIR)/ansidecl.h \
1043 $(INCDIR)/libiberty.h
1044 if [ x"$(PICFLAG)" != x ]; then \
1045 $(COMPILE.c) $(PICFLAG) $(srcdir)/spaces.c -o pic/$@; \
1047 $(COMPILE.c) $(srcdir)/spaces.c $(OUTPUT_OPTION)
1049 ./splay-tree.$(objext): $(srcdir)/splay-tree.c config.h $(INCDIR)/ansidecl.h \
1050 $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h
1051 if [ x"$(PICFLAG)" != x ]; then \
1052 $(COMPILE.c) $(PICFLAG) $(srcdir)/splay-tree.c -o pic/$@; \
1054 $(COMPILE.c) $(srcdir)/splay-tree.c $(OUTPUT_OPTION)
1056 ./stack-limit.$(objext): $(srcdir)/stack-limit.c config.h $(INCDIR)/ansidecl.h
1057 if [ x"$(PICFLAG)" != x ]; then \
1058 $(COMPILE.c) $(PICFLAG) $(srcdir)/stack-limit.c -o pic/$@; \
1060 $(COMPILE.c) $(srcdir)/stack-limit.c $(OUTPUT_OPTION)
1062 ./stpcpy.$(objext): $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h
1063 if [ x"$(PICFLAG)" != x ]; then \
1064 $(COMPILE.c) $(PICFLAG) $(srcdir)/stpcpy.c -o pic/$@; \
1066 $(COMPILE.c) $(srcdir)/stpcpy.c $(OUTPUT_OPTION)
1068 ./stpncpy.$(objext): $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h
1069 if [ x"$(PICFLAG)" != x ]; then \
1070 $(COMPILE.c) $(PICFLAG) $(srcdir)/stpncpy.c -o pic/$@; \
1072 $(COMPILE.c) $(srcdir)/stpncpy.c $(OUTPUT_OPTION)
1074 ./strcasecmp.$(objext): $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h
1075 if [ x"$(PICFLAG)" != x ]; then \
1076 $(COMPILE.c) $(PICFLAG) $(srcdir)/strcasecmp.c -o pic/$@; \
1078 $(COMPILE.c) $(srcdir)/strcasecmp.c $(OUTPUT_OPTION)
1080 ./strchr.$(objext): $(srcdir)/strchr.c $(INCDIR)/ansidecl.h
1081 if [ x"$(PICFLAG)" != x ]; then \
1082 $(COMPILE.c) $(PICFLAG) $(srcdir)/strchr.c -o pic/$@; \
1084 $(COMPILE.c) $(srcdir)/strchr.c $(OUTPUT_OPTION)
1086 ./strdup.$(objext): $(srcdir)/strdup.c $(INCDIR)/ansidecl.h
1087 if [ x"$(PICFLAG)" != x ]; then \
1088 $(COMPILE.c) $(PICFLAG) $(srcdir)/strdup.c -o pic/$@; \
1090 $(COMPILE.c) $(srcdir)/strdup.c $(OUTPUT_OPTION)
1092 ./strerror.$(objext): $(srcdir)/strerror.c config.h $(INCDIR)/ansidecl.h \
1093 $(INCDIR)/libiberty.h
1094 if [ x"$(PICFLAG)" != x ]; then \
1095 $(COMPILE.c) $(PICFLAG) $(srcdir)/strerror.c -o pic/$@; \
1097 $(COMPILE.c) $(srcdir)/strerror.c $(OUTPUT_OPTION)
1099 ./strncasecmp.$(objext): $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h
1100 if [ x"$(PICFLAG)" != x ]; then \
1101 $(COMPILE.c) $(PICFLAG) $(srcdir)/strncasecmp.c -o pic/$@; \
1103 $(COMPILE.c) $(srcdir)/strncasecmp.c $(OUTPUT_OPTION)
1105 ./strncmp.$(objext): $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h
1106 if [ x"$(PICFLAG)" != x ]; then \
1107 $(COMPILE.c) $(PICFLAG) $(srcdir)/strncmp.c -o pic/$@; \
1109 $(COMPILE.c) $(srcdir)/strncmp.c $(OUTPUT_OPTION)
1111 ./strndup.$(objext): $(srcdir)/strndup.c $(INCDIR)/ansidecl.h
1112 if [ x"$(PICFLAG)" != x ]; then \
1113 $(COMPILE.c) $(PICFLAG) $(srcdir)/strndup.c -o pic/$@; \
1115 $(COMPILE.c) $(srcdir)/strndup.c $(OUTPUT_OPTION)
1117 ./strnlen.$(objext): $(srcdir)/strnlen.c config.h
1118 if [ x"$(PICFLAG)" != x ]; then \
1119 $(COMPILE.c) $(PICFLAG) $(srcdir)/strnlen.c -o pic/$@; \
1121 $(COMPILE.c) $(srcdir)/strnlen.c $(OUTPUT_OPTION)
1123 ./strrchr.$(objext): $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h
1124 if [ x"$(PICFLAG)" != x ]; then \
1125 $(COMPILE.c) $(PICFLAG) $(srcdir)/strrchr.c -o pic/$@; \
1127 $(COMPILE.c) $(srcdir)/strrchr.c $(OUTPUT_OPTION)
1129 ./strsignal.$(objext): $(srcdir)/strsignal.c config.h $(INCDIR)/ansidecl.h \
1130 $(INCDIR)/libiberty.h
1131 if [ x"$(PICFLAG)" != x ]; then \
1132 $(COMPILE.c) $(PICFLAG) $(srcdir)/strsignal.c -o pic/$@; \
1134 $(COMPILE.c) $(srcdir)/strsignal.c $(OUTPUT_OPTION)
1136 ./strstr.$(objext): $(srcdir)/strstr.c
1137 if [ x"$(PICFLAG)" != x ]; then \
1138 $(COMPILE.c) $(PICFLAG) $(srcdir)/strstr.c -o pic/$@; \
1140 $(COMPILE.c) $(srcdir)/strstr.c $(OUTPUT_OPTION)
1142 ./strtod.$(objext): $(srcdir)/strtod.c $(INCDIR)/ansidecl.h \
1143 $(INCDIR)/safe-ctype.h
1144 if [ x"$(PICFLAG)" != x ]; then \
1145 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtod.c -o pic/$@; \
1147 $(COMPILE.c) $(srcdir)/strtod.c $(OUTPUT_OPTION)
1149 ./strtol.$(objext): $(srcdir)/strtol.c config.h $(INCDIR)/safe-ctype.h
1150 if [ x"$(PICFLAG)" != x ]; then \
1151 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtol.c -o pic/$@; \
1153 $(COMPILE.c) $(srcdir)/strtol.c $(OUTPUT_OPTION)
1155 ./strtoul.$(objext): $(srcdir)/strtoul.c config.h $(INCDIR)/ansidecl.h \
1156 $(INCDIR)/safe-ctype.h
1157 if [ x"$(PICFLAG)" != x ]; then \
1158 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoul.c -o pic/$@; \
1160 $(COMPILE.c) $(srcdir)/strtoul.c $(OUTPUT_OPTION)
1162 ./strverscmp.$(objext): $(srcdir)/strverscmp.c $(INCDIR)/ansidecl.h \
1163 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
1164 if [ x"$(PICFLAG)" != x ]; then \
1165 $(COMPILE.c) $(PICFLAG) $(srcdir)/strverscmp.c -o pic/$@; \
1167 $(COMPILE.c) $(srcdir)/strverscmp.c $(OUTPUT_OPTION)
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/$@; \
1174 $(COMPILE.c) $(srcdir)/timeval-utils.c $(OUTPUT_OPTION)
1176 ./tmpnam.$(objext): $(srcdir)/tmpnam.c
1177 if [ x"$(PICFLAG)" != x ]; then \
1178 $(COMPILE.c) $(PICFLAG) $(srcdir)/tmpnam.c -o pic/$@; \
1180 $(COMPILE.c) $(srcdir)/tmpnam.c $(OUTPUT_OPTION)
1182 ./unlink-if-ordinary.$(objext): $(srcdir)/unlink-if-ordinary.c config.h \
1183 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
1184 if [ x"$(PICFLAG)" != x ]; then \
1185 $(COMPILE.c) $(PICFLAG) $(srcdir)/unlink-if-ordinary.c -o pic/$@; \
1187 $(COMPILE.c) $(srcdir)/unlink-if-ordinary.c $(OUTPUT_OPTION)
1189 ./vasprintf.$(objext): $(srcdir)/vasprintf.c config.h $(INCDIR)/ansidecl.h \
1190 $(INCDIR)/libiberty.h
1191 if [ x"$(PICFLAG)" != x ]; then \
1192 $(COMPILE.c) $(PICFLAG) $(srcdir)/vasprintf.c -o pic/$@; \
1194 $(COMPILE.c) $(srcdir)/vasprintf.c $(OUTPUT_OPTION)
1196 ./vfork.$(objext): $(srcdir)/vfork.c $(INCDIR)/ansidecl.h
1197 if [ x"$(PICFLAG)" != x ]; then \
1198 $(COMPILE.c) $(PICFLAG) $(srcdir)/vfork.c -o pic/$@; \
1200 $(COMPILE.c) $(srcdir)/vfork.c $(OUTPUT_OPTION)
1202 ./vfprintf.$(objext): $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h
1203 if [ x"$(PICFLAG)" != x ]; then \
1204 $(COMPILE.c) $(PICFLAG) $(srcdir)/vfprintf.c -o pic/$@; \
1206 $(COMPILE.c) $(srcdir)/vfprintf.c $(OUTPUT_OPTION)
1208 ./vprintf.$(objext): $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h
1209 if [ x"$(PICFLAG)" != x ]; then \
1210 $(COMPILE.c) $(PICFLAG) $(srcdir)/vprintf.c -o pic/$@; \
1212 $(COMPILE.c) $(srcdir)/vprintf.c $(OUTPUT_OPTION)
1214 ./vsnprintf.$(objext): $(srcdir)/vsnprintf.c config.h $(INCDIR)/ansidecl.h \
1215 $(INCDIR)/libiberty.h
1216 if [ x"$(PICFLAG)" != x ]; then \
1217 $(COMPILE.c) $(PICFLAG) $(srcdir)/vsnprintf.c -o pic/$@; \
1219 $(COMPILE.c) $(srcdir)/vsnprintf.c $(OUTPUT_OPTION)
1221 ./vsprintf.$(objext): $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h
1222 if [ x"$(PICFLAG)" != x ]; then \
1223 $(COMPILE.c) $(PICFLAG) $(srcdir)/vsprintf.c -o pic/$@; \
1225 $(COMPILE.c) $(srcdir)/vsprintf.c $(OUTPUT_OPTION)
1227 ./waitpid.$(objext): $(srcdir)/waitpid.c config.h $(INCDIR)/ansidecl.h
1228 if [ x"$(PICFLAG)" != x ]; then \
1229 $(COMPILE.c) $(PICFLAG) $(srcdir)/waitpid.c -o pic/$@; \
1231 $(COMPILE.c) $(srcdir)/waitpid.c $(OUTPUT_OPTION)
1233 ./xatexit.$(objext): $(srcdir)/xatexit.c config.h $(INCDIR)/ansidecl.h \
1234 $(INCDIR)/libiberty.h
1235 if [ x"$(PICFLAG)" != x ]; then \
1236 $(COMPILE.c) $(PICFLAG) $(srcdir)/xatexit.c -o pic/$@; \
1238 $(COMPILE.c) $(srcdir)/xatexit.c $(OUTPUT_OPTION)
1240 ./xexit.$(objext): $(srcdir)/xexit.c config.h $(INCDIR)/ansidecl.h \
1241 $(INCDIR)/libiberty.h
1242 if [ x"$(PICFLAG)" != x ]; then \
1243 $(COMPILE.c) $(PICFLAG) $(srcdir)/xexit.c -o pic/$@; \
1245 $(COMPILE.c) $(srcdir)/xexit.c $(OUTPUT_OPTION)
1247 ./xmalloc.$(objext): $(srcdir)/xmalloc.c config.h $(INCDIR)/ansidecl.h \
1248 $(INCDIR)/libiberty.h
1249 if [ x"$(PICFLAG)" != x ]; then \
1250 $(COMPILE.c) $(PICFLAG) $(srcdir)/xmalloc.c -o pic/$@; \
1252 $(COMPILE.c) $(srcdir)/xmalloc.c $(OUTPUT_OPTION)
1254 ./xmemdup.$(objext): $(srcdir)/xmemdup.c config.h $(INCDIR)/ansidecl.h \
1255 $(INCDIR)/libiberty.h
1256 if [ x"$(PICFLAG)" != x ]; then \
1257 $(COMPILE.c) $(PICFLAG) $(srcdir)/xmemdup.c -o pic/$@; \
1259 $(COMPILE.c) $(srcdir)/xmemdup.c $(OUTPUT_OPTION)
1261 ./xstrdup.$(objext): $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \
1262 $(INCDIR)/libiberty.h
1263 if [ x"$(PICFLAG)" != x ]; then \
1264 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrdup.c -o pic/$@; \
1266 $(COMPILE.c) $(srcdir)/xstrdup.c $(OUTPUT_OPTION)
1268 ./xstrerror.$(objext): $(srcdir)/xstrerror.c config.h $(INCDIR)/ansidecl.h \
1269 $(INCDIR)/libiberty.h
1270 if [ x"$(PICFLAG)" != x ]; then \
1271 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrerror.c -o pic/$@; \
1273 $(COMPILE.c) $(srcdir)/xstrerror.c $(OUTPUT_OPTION)
1275 ./xstrndup.$(objext): $(srcdir)/xstrndup.c config.h $(INCDIR)/ansidecl.h \
1276 $(INCDIR)/libiberty.h
1277 if [ x"$(PICFLAG)" != x ]; then \
1278 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrndup.c -o pic/$@; \
1280 $(COMPILE.c) $(srcdir)/xstrndup.c $(OUTPUT_OPTION)