1 # Makefile for the libiberty library.
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 \
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 ./sort.$(objext) ./spaces.$(objext) \
187 ./splay-tree.$(objext) ./stack-limit.$(objext) \
188 ./strerror.$(objext) ./strsignal.$(objext) \
189 ./timeval-utils.$(objext) ./unlink-if-ordinary.$(objext) \
190 ./xatexit.$(objext) ./xexit.$(objext) ./xmalloc.$(objext) \
191 ./xmemdup.$(objext) ./xstrdup.$(objext) ./xstrerror.$(objext) \
194 # These are all the objects that configure may add to the library via
195 # $funcs or EXTRA_OFILES. This list exists here only for "make
196 # maint-missing" and "make check".
197 CONFIGURED_OFILES = ./asprintf.$(objext) ./atexit.$(objext) \
198 ./basename.$(objext) ./bcmp.$(objext) ./bcopy.$(objext) \
199 ./bsearch.$(objext) ./bzero.$(objext) \
200 ./calloc.$(objext) ./clock.$(objext) ./copysign.$(objext) \
201 ./_doprnt.$(objext) \
203 ./getcwd.$(objext) ./getpagesize.$(objext) \
204 ./gettimeofday.$(objext) \
205 ./index.$(objext) ./insque.$(objext) \
206 ./memchr.$(objext) ./memcmp.$(objext) ./memcpy.$(objext) \
207 ./memmem.$(objext) ./memmove.$(objext) \
208 ./mempcpy.$(objext) ./memset.$(objext) ./mkstemps.$(objext) \
209 ./pex-djgpp.$(objext) ./pex-msdos.$(objext) \
210 ./pex-unix.$(objext) ./pex-win32.$(objext) \
212 ./random.$(objext) ./rename.$(objext) ./rindex.$(objext) \
214 ./setproctitle.$(objext) \
215 ./sigsetmask.$(objext) ./snprintf.$(objext) \
216 ./stpcpy.$(objext) ./stpncpy.$(objext) ./strcasecmp.$(objext) \
217 ./strchr.$(objext) ./strdup.$(objext) ./strncasecmp.$(objext) \
218 ./strncmp.$(objext) ./strndup.$(objext) ./strnlen.$(objext) \
219 ./strrchr.$(objext) ./strstr.$(objext) ./strtod.$(objext) \
220 ./strtol.$(objext) ./strtoul.$(objext) ./strverscmp.$(objext) \
222 ./vasprintf.$(objext) ./vfork.$(objext) ./vfprintf.$(objext) \
223 ./vprintf.$(objext) ./vsnprintf.$(objext) ./vsprintf.$(objext) \
226 # These files are installed if the library has been configured to do so.
227 INSTALLED_HEADERS = \
228 $(INCDIR)/ansidecl.h \
229 $(INCDIR)/demangle.h \
230 $(INCDIR)/dyn-string.h \
231 $(INCDIR)/fibheap.h \
232 $(INCDIR)/floatformat.h \
233 $(INCDIR)/hashtab.h \
234 $(INCDIR)/libiberty.h \
235 $(INCDIR)/objalloc.h \
236 $(INCDIR)/partition.h \
237 $(INCDIR)/safe-ctype.h \
239 $(INCDIR)/splay-tree.h \
240 $(INCDIR)/timeval-utils.h
242 $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
243 -rm -f $(TARGETLIB) pic/$(TARGETLIB)
244 $(AR) $(AR_FLAGS) $(TARGETLIB) \
245 $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
246 $(RANLIB) $(TARGETLIB)
247 if [ x"$(PICFLAG)" != x ]; then \
249 $(AR) $(AR_FLAGS) $(TARGETLIB) \
250 $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
251 $(RANLIB) $(TARGETLIB); \
255 $(TESTLIB): $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
257 $(AR) $(AR_FLAGS) $(TESTLIB) \
258 $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
261 info: libiberty.info info-subdir
262 install-info: install-info-subdir
263 clean-info: clean-info-subdir
264 dvi: libiberty.dvi dvi-subdir
266 LIBIBERTY_PDFFILES = libiberty.pdf
268 pdf: $(LIBIBERTY_PDFFILES) pdf-subdir
272 pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
274 install-pdf: $(LIBIBERTY_PDFFILES)
276 test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)"
277 @list='$(LIBIBERTY_PDFFILES)'; for p in $$list; do \
278 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
279 f=$(pdf__strip_dir) \
280 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \
281 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \
284 # html, install-html targets
285 HTMLS = libiberty.html
289 .PHONY: install-html install-html-am
292 mkdir_p = mkdir -p --
294 html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
296 install-html: install-html-am
298 install-html-am: $(HTMLS)
300 test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
301 @list='$(HTMLS)'; for p in $$list; do \
302 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
303 f=$(html__strip_dir) \
304 if test -d "$$d$$p"; then \
305 echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
306 $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
307 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
308 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
310 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
311 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
316 $(srcdir)/libiberty.texi \
317 $(srcdir)/copying-lib.texi \
318 $(srcdir)/obstacks.texi \
319 $(srcdir)/functions.texi
321 # Additional files that have texi snippets that need to be collected
322 # and sorted. Some are here because the sources are imported from
323 # elsewhere. Others represent headers in ../include.
324 TEXIFILES = fnmatch.txh pexecute.txh simple-object.txh
326 libiberty.info : $(srcdir)/libiberty.texi $(TEXISRC)
327 $(MAKEINFO) -I$(srcdir) $(srcdir)/libiberty.texi
329 libiberty.dvi : $(srcdir)/libiberty.texi $(TEXISRC)
330 texi2dvi $(srcdir)/libiberty.texi
332 libiberty.pdf : $(srcdir)/libiberty.texi $(TEXISRC)
333 texi2pdf $(srcdir)/libiberty.texi
335 libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC)
336 $(MAKEINFO) --no-split --html -I$(srcdir) -o $@ $<
338 @MAINT@$(srcdir)/functions.texi : stamp-functions
341 @MAINT@stamp-functions : $(CFILES:%=$(srcdir)/%) $(TEXIFILES:%=$(srcdir)/%) $(srcdir)/gather-docs Makefile
342 @MAINT@@HAVE_PERL@ $(PERL) $(srcdir)/gather-docs $(srcdir) $(srcdir)/functions.texi $(CFILES) $(TEXIFILES)
343 @MAINT@ echo stamp > stamp-functions
345 INSTALL_DEST = @INSTALL_DEST@
346 install: install_to_$(INSTALL_DEST) install-subdir
347 install-strip: install
349 .PHONY: install install-strip
351 # This is tricky. Even though CC in the Makefile contains
352 # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
353 # default multilib, so we have to take CFLAGS into account as well,
354 # since it will be passed the multilib flags.
355 MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
356 install_to_libdir: all
357 ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR)
358 $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n
359 ( cd $(DESTDIR)$(libdir)/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n )
360 mv -f $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)
361 if test -n "${target_header_dir}"; then \
362 case "${target_header_dir}" in \
363 /*) thd=${target_header_dir};; \
364 *) thd=${includedir}/${target_header_dir};; \
366 ${mkinstalldirs} $(DESTDIR)$${thd}; \
367 for h in ${INSTALLED_HEADERS}; do \
368 ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \
371 @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
373 install_to_tooldir: all
374 ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)
375 $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n
376 ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n; $(RANLIB) $(TARGETLIB)n )
377 mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)
378 @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
380 # required-list was used when building a shared bfd/opcodes/libiberty
381 # library. I don't know if it used by anything currently.
382 required-list: Makefile
383 echo $(REQUIRED_OFILES) > required-list
386 if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \
391 .PHONY: all etags tags ls clean stage1 stage2
393 etags tags: TAGS etags-subdir
396 etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done`
398 # The standalone demangler (c++filt) has been moved to binutils.
399 # But make this target work anyway for demangler hacking.
400 demangle: $(ALL) $(srcdir)/cp-demangle.c
401 @echo "The standalone demangler, now named c++filt, is now"
402 @echo "a part of binutils."
403 $(CC) @DEFS@ $(CFLAGS) $(CPPFLAGS) -I. -I$(INCDIR) $(HDEFINES) \
404 $(srcdir)/cp-demangle.c -DSTANDALONE_DEMANGLER $(TARGETLIB) -o $@
407 @echo Makefile $(CFILES)
409 # Various targets for maintainers.
412 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) missing $(CFILES) $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
414 maint-buildall : $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
417 maint-undoc : $(srcdir)/functions.texi
418 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc
421 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) deps $(INCDIR)
423 # Need to deal with profiled libraries, too.
425 # Cleaning has to be done carefully to ensure that we don't clean our SUBDIRS
426 # multiple times, hence our explicit recursion with an empty SUBDIRS.
427 mostlyclean: mostlyclean-subdir
428 -rm -rf *.$(objext) pic core errs \#* *.E a.out
429 -rm -f errors dummy config.h stamp-*
430 -rm -f $(CONFIG_H) stamp-picdir
431 -rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky
432 -rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg
433 -rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.vr
435 @$(MULTICLEAN) multi-clean DO=mostlyclean
437 $(MAKE) SUBDIRS="" mostlyclean
438 -rm -f *.a required-list tmpmulti.out
439 -rm -f libiberty.dvi libiberty.pdf libiberty.info* libiberty.html
440 @$(MULTICLEAN) multi-clean DO=clean
441 distclean: distclean-subdir
442 $(MAKE) SUBDIRS="" clean
443 @$(MULTICLEAN) multi-clean DO=distclean
444 -rm -f *~ Makefile config.cache config.status xhost-mkfrag TAGS multilib.out
446 -rmdir testsuite 2>/dev/null
447 maintainer-clean realclean: maintainer-clean-subdir
448 $(MAKE) SUBDIRS="" distclean
452 Makefile: $(srcdir)/Makefile.in config.status
453 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
455 # Depending on Makefile makes sure that config.status has been re-run
456 # if needed. This prevents problems with parallel builds.
457 config.h: stamp-h ; @true
458 stamp-h: $(srcdir)/config.in config.status Makefile
459 CONFIG_FILES= CONFIG_HEADERS=config.h:$(srcdir)/config.in $(SHELL) ./config.status
461 config.status: $(srcdir)/configure
462 $(SHELL) ./config.status --recheck
465 configure_deps = $(srcdir)/aclocal.m4 \
466 $(srcdir)/../config/acx.m4 \
467 $(srcdir)/../config/no-executables.m4 \
468 $(srcdir)/../config/override.m4 \
469 $(srcdir)/../config/warnings.m4 \
471 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(configure_deps)
472 cd $(srcdir) && $(AUTOCONF)
474 # Depending on config.h makes sure that config.status has been re-run
475 # if needed. This prevents problems with parallel builds, in case
476 # subdirectories need to run config.status also.
477 all-subdir check-subdir installcheck-subdir info-subdir \
478 install-info-subdir clean-info-subdir dvi-subdir pdf-subdir install-subdir \
479 etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
480 maintainer-clean-subdir: config.h
481 @subdirs='$(SUBDIRS)'; \
482 target=`echo $@ | sed -e 's/-subdir//'`; \
483 for dir in $$subdirs ; do \
484 cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \
487 $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS): stamp-picdir
488 $(CONFIGURED_OFILES): stamp-picdir
490 # Don't export variables to the environment, in order to not confuse
494 # The dependencies in the remainder of this file are automatically
495 # generated by "make maint-deps". Manual edits will be lost.
497 ./_doprnt.$(objext): $(srcdir)/_doprnt.c config.h $(INCDIR)/ansidecl.h \
498 $(INCDIR)/safe-ctype.h
499 if [ x"$(PICFLAG)" != x ]; then \
500 $(COMPILE.c) $(PICFLAG) $(srcdir)/_doprnt.c -o pic/$@; \
502 $(COMPILE.c) $(srcdir)/_doprnt.c $(OUTPUT_OPTION)
504 ./alloca.$(objext): $(srcdir)/alloca.c config.h $(INCDIR)/ansidecl.h \
505 $(INCDIR)/libiberty.h
506 if [ x"$(PICFLAG)" != x ]; then \
507 $(COMPILE.c) $(PICFLAG) $(srcdir)/alloca.c -o pic/$@; \
509 $(COMPILE.c) $(srcdir)/alloca.c $(OUTPUT_OPTION)
511 ./argv.$(objext): $(srcdir)/argv.c config.h $(INCDIR)/ansidecl.h \
512 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
513 if [ x"$(PICFLAG)" != x ]; then \
514 $(COMPILE.c) $(PICFLAG) $(srcdir)/argv.c -o pic/$@; \
516 $(COMPILE.c) $(srcdir)/argv.c $(OUTPUT_OPTION)
518 ./asprintf.$(objext): $(srcdir)/asprintf.c config.h $(INCDIR)/ansidecl.h \
519 $(INCDIR)/libiberty.h
520 if [ x"$(PICFLAG)" != x ]; then \
521 $(COMPILE.c) $(PICFLAG) $(srcdir)/asprintf.c -o pic/$@; \
523 $(COMPILE.c) $(srcdir)/asprintf.c $(OUTPUT_OPTION)
525 ./atexit.$(objext): $(srcdir)/atexit.c config.h
526 if [ x"$(PICFLAG)" != x ]; then \
527 $(COMPILE.c) $(PICFLAG) $(srcdir)/atexit.c -o pic/$@; \
529 $(COMPILE.c) $(srcdir)/atexit.c $(OUTPUT_OPTION)
531 ./basename.$(objext): $(srcdir)/basename.c config.h $(INCDIR)/ansidecl.h \
532 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
533 if [ x"$(PICFLAG)" != x ]; then \
534 $(COMPILE.c) $(PICFLAG) $(srcdir)/basename.c -o pic/$@; \
536 $(COMPILE.c) $(srcdir)/basename.c $(OUTPUT_OPTION)
538 ./bcmp.$(objext): $(srcdir)/bcmp.c
539 if [ x"$(PICFLAG)" != x ]; then \
540 $(COMPILE.c) $(PICFLAG) $(srcdir)/bcmp.c -o pic/$@; \
542 $(COMPILE.c) $(srcdir)/bcmp.c $(OUTPUT_OPTION)
544 ./bcopy.$(objext): $(srcdir)/bcopy.c
545 if [ x"$(PICFLAG)" != x ]; then \
546 $(COMPILE.c) $(PICFLAG) $(srcdir)/bcopy.c -o pic/$@; \
548 $(COMPILE.c) $(srcdir)/bcopy.c $(OUTPUT_OPTION)
550 ./bsearch.$(objext): $(srcdir)/bsearch.c config.h $(INCDIR)/ansidecl.h
551 if [ x"$(PICFLAG)" != x ]; then \
552 $(COMPILE.c) $(PICFLAG) $(srcdir)/bsearch.c -o pic/$@; \
554 $(COMPILE.c) $(srcdir)/bsearch.c $(OUTPUT_OPTION)
556 ./bzero.$(objext): $(srcdir)/bzero.c
557 if [ x"$(PICFLAG)" != x ]; then \
558 $(COMPILE.c) $(PICFLAG) $(srcdir)/bzero.c -o pic/$@; \
560 $(COMPILE.c) $(srcdir)/bzero.c $(OUTPUT_OPTION)
562 ./calloc.$(objext): $(srcdir)/calloc.c $(INCDIR)/ansidecl.h
563 if [ x"$(PICFLAG)" != x ]; then \
564 $(COMPILE.c) $(PICFLAG) $(srcdir)/calloc.c -o pic/$@; \
566 $(COMPILE.c) $(srcdir)/calloc.c $(OUTPUT_OPTION)
568 ./choose-temp.$(objext): $(srcdir)/choose-temp.c config.h $(INCDIR)/ansidecl.h \
569 $(INCDIR)/libiberty.h
570 if [ x"$(PICFLAG)" != x ]; then \
571 $(COMPILE.c) $(PICFLAG) $(srcdir)/choose-temp.c -o pic/$@; \
573 $(COMPILE.c) $(srcdir)/choose-temp.c $(OUTPUT_OPTION)
575 ./clock.$(objext): $(srcdir)/clock.c config.h
576 if [ x"$(PICFLAG)" != x ]; then \
577 $(COMPILE.c) $(PICFLAG) $(srcdir)/clock.c -o pic/$@; \
579 $(COMPILE.c) $(srcdir)/clock.c $(OUTPUT_OPTION)
581 ./concat.$(objext): $(srcdir)/concat.c config.h $(INCDIR)/ansidecl.h \
582 $(INCDIR)/libiberty.h
583 if [ x"$(PICFLAG)" != x ]; then \
584 $(COMPILE.c) $(PICFLAG) $(srcdir)/concat.c -o pic/$@; \
586 $(COMPILE.c) $(srcdir)/concat.c $(OUTPUT_OPTION)
588 ./copysign.$(objext): $(srcdir)/copysign.c $(INCDIR)/ansidecl.h
589 if [ x"$(PICFLAG)" != x ]; then \
590 $(COMPILE.c) $(PICFLAG) $(srcdir)/copysign.c -o pic/$@; \
592 $(COMPILE.c) $(srcdir)/copysign.c $(OUTPUT_OPTION)
594 ./cp-demangle.$(objext): $(srcdir)/cp-demangle.c config.h $(INCDIR)/ansidecl.h \
595 $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \
596 $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h
597 if [ x"$(PICFLAG)" != x ]; then \
598 $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demangle.c -o pic/$@; \
600 $(COMPILE.c) $(srcdir)/cp-demangle.c $(OUTPUT_OPTION)
602 ./cp-demint.$(objext): $(srcdir)/cp-demint.c config.h $(INCDIR)/ansidecl.h \
603 $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \
604 $(INCDIR)/libiberty.h
605 if [ x"$(PICFLAG)" != x ]; then \
606 $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demint.c -o pic/$@; \
608 $(COMPILE.c) $(srcdir)/cp-demint.c $(OUTPUT_OPTION)
610 ./cplus-dem.$(objext): $(srcdir)/cplus-dem.c config.h $(INCDIR)/ansidecl.h \
611 $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
612 $(INCDIR)/safe-ctype.h
613 if [ x"$(PICFLAG)" != x ]; then \
614 $(COMPILE.c) $(PICFLAG) $(srcdir)/cplus-dem.c -o pic/$@; \
616 $(COMPILE.c) $(srcdir)/cplus-dem.c $(OUTPUT_OPTION)
618 ./crc32.$(objext): $(srcdir)/crc32.c config.h $(INCDIR)/ansidecl.h \
619 $(INCDIR)/libiberty.h
620 if [ x"$(PICFLAG)" != x ]; then \
621 $(COMPILE.c) $(PICFLAG) $(srcdir)/crc32.c -o pic/$@; \
623 $(COMPILE.c) $(srcdir)/crc32.c $(OUTPUT_OPTION)
625 ./dwarfnames.$(objext): $(srcdir)/dwarfnames.c $(INCDIR)/dwarf2.def \
627 if [ x"$(PICFLAG)" != x ]; then \
628 $(COMPILE.c) $(PICFLAG) $(srcdir)/dwarfnames.c -o pic/$@; \
630 $(COMPILE.c) $(srcdir)/dwarfnames.c $(OUTPUT_OPTION)
632 ./dyn-string.$(objext): $(srcdir)/dyn-string.c config.h $(INCDIR)/ansidecl.h \
633 $(INCDIR)/dyn-string.h $(INCDIR)/libiberty.h
634 if [ x"$(PICFLAG)" != x ]; then \
635 $(COMPILE.c) $(PICFLAG) $(srcdir)/dyn-string.c -o pic/$@; \
637 $(COMPILE.c) $(srcdir)/dyn-string.c $(OUTPUT_OPTION)
639 ./fdmatch.$(objext): $(srcdir)/fdmatch.c config.h $(INCDIR)/ansidecl.h \
640 $(INCDIR)/libiberty.h
641 if [ x"$(PICFLAG)" != x ]; then \
642 $(COMPILE.c) $(PICFLAG) $(srcdir)/fdmatch.c -o pic/$@; \
644 $(COMPILE.c) $(srcdir)/fdmatch.c $(OUTPUT_OPTION)
646 ./ffs.$(objext): $(srcdir)/ffs.c
647 if [ x"$(PICFLAG)" != x ]; then \
648 $(COMPILE.c) $(PICFLAG) $(srcdir)/ffs.c -o pic/$@; \
650 $(COMPILE.c) $(srcdir)/ffs.c $(OUTPUT_OPTION)
652 ./fibheap.$(objext): $(srcdir)/fibheap.c config.h $(INCDIR)/ansidecl.h \
653 $(INCDIR)/fibheap.h $(INCDIR)/libiberty.h
654 if [ x"$(PICFLAG)" != x ]; then \
655 $(COMPILE.c) $(PICFLAG) $(srcdir)/fibheap.c -o pic/$@; \
657 $(COMPILE.c) $(srcdir)/fibheap.c $(OUTPUT_OPTION)
659 ./filename_cmp.$(objext): $(srcdir)/filename_cmp.c config.h $(INCDIR)/ansidecl.h \
660 $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
661 $(INCDIR)/safe-ctype.h
662 if [ x"$(PICFLAG)" != x ]; then \
663 $(COMPILE.c) $(PICFLAG) $(srcdir)/filename_cmp.c -o pic/$@; \
665 $(COMPILE.c) $(srcdir)/filename_cmp.c $(OUTPUT_OPTION)
667 ./floatformat.$(objext): $(srcdir)/floatformat.c config.h $(INCDIR)/ansidecl.h \
668 $(INCDIR)/floatformat.h $(INCDIR)/libiberty.h
669 if [ x"$(PICFLAG)" != x ]; then \
670 $(COMPILE.c) $(PICFLAG) $(srcdir)/floatformat.c -o pic/$@; \
672 $(COMPILE.c) $(srcdir)/floatformat.c $(OUTPUT_OPTION)
674 ./fnmatch.$(objext): $(srcdir)/fnmatch.c config.h $(INCDIR)/fnmatch.h \
675 $(INCDIR)/safe-ctype.h
676 if [ x"$(PICFLAG)" != x ]; then \
677 $(COMPILE.c) $(PICFLAG) $(srcdir)/fnmatch.c -o pic/$@; \
679 $(COMPILE.c) $(srcdir)/fnmatch.c $(OUTPUT_OPTION)
681 ./fopen_unlocked.$(objext): $(srcdir)/fopen_unlocked.c config.h \
682 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
683 if [ x"$(PICFLAG)" != x ]; then \
684 $(COMPILE.c) $(PICFLAG) $(srcdir)/fopen_unlocked.c -o pic/$@; \
686 $(COMPILE.c) $(srcdir)/fopen_unlocked.c $(OUTPUT_OPTION)
688 ./getcwd.$(objext): $(srcdir)/getcwd.c config.h
689 if [ x"$(PICFLAG)" != x ]; then \
690 $(COMPILE.c) $(PICFLAG) $(srcdir)/getcwd.c -o pic/$@; \
692 $(COMPILE.c) $(srcdir)/getcwd.c $(OUTPUT_OPTION)
694 ./getopt.$(objext): $(srcdir)/getopt.c config.h $(INCDIR)/ansidecl.h \
696 if [ x"$(PICFLAG)" != x ]; then \
697 $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt.c -o pic/$@; \
699 $(COMPILE.c) $(srcdir)/getopt.c $(OUTPUT_OPTION)
701 ./getopt1.$(objext): $(srcdir)/getopt1.c config.h $(INCDIR)/getopt.h
702 if [ x"$(PICFLAG)" != x ]; then \
703 $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt1.c -o pic/$@; \
705 $(COMPILE.c) $(srcdir)/getopt1.c $(OUTPUT_OPTION)
707 ./getpagesize.$(objext): $(srcdir)/getpagesize.c config.h
708 if [ x"$(PICFLAG)" != x ]; then \
709 $(COMPILE.c) $(PICFLAG) $(srcdir)/getpagesize.c -o pic/$@; \
711 $(COMPILE.c) $(srcdir)/getpagesize.c $(OUTPUT_OPTION)
713 ./getpwd.$(objext): $(srcdir)/getpwd.c config.h $(INCDIR)/ansidecl.h \
714 $(INCDIR)/libiberty.h
715 if [ x"$(PICFLAG)" != x ]; then \
716 $(COMPILE.c) $(PICFLAG) $(srcdir)/getpwd.c -o pic/$@; \
718 $(COMPILE.c) $(srcdir)/getpwd.c $(OUTPUT_OPTION)
720 ./getruntime.$(objext): $(srcdir)/getruntime.c config.h $(INCDIR)/ansidecl.h \
721 $(INCDIR)/libiberty.h
722 if [ x"$(PICFLAG)" != x ]; then \
723 $(COMPILE.c) $(PICFLAG) $(srcdir)/getruntime.c -o pic/$@; \
725 $(COMPILE.c) $(srcdir)/getruntime.c $(OUTPUT_OPTION)
727 ./gettimeofday.$(objext): $(srcdir)/gettimeofday.c config.h $(INCDIR)/ansidecl.h \
728 $(INCDIR)/libiberty.h
729 if [ x"$(PICFLAG)" != x ]; then \
730 $(COMPILE.c) $(PICFLAG) $(srcdir)/gettimeofday.c -o pic/$@; \
732 $(COMPILE.c) $(srcdir)/gettimeofday.c $(OUTPUT_OPTION)
734 ./hashtab.$(objext): $(srcdir)/hashtab.c config.h $(INCDIR)/ansidecl.h \
735 $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h
736 if [ x"$(PICFLAG)" != x ]; then \
737 $(COMPILE.c) $(PICFLAG) $(srcdir)/hashtab.c -o pic/$@; \
739 $(COMPILE.c) $(srcdir)/hashtab.c $(OUTPUT_OPTION)
741 ./hex.$(objext): $(srcdir)/hex.c config.h $(INCDIR)/ansidecl.h \
742 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
743 if [ x"$(PICFLAG)" != x ]; then \
744 $(COMPILE.c) $(PICFLAG) $(srcdir)/hex.c -o pic/$@; \
746 $(COMPILE.c) $(srcdir)/hex.c $(OUTPUT_OPTION)
748 ./index.$(objext): $(srcdir)/index.c
749 if [ x"$(PICFLAG)" != x ]; then \
750 $(COMPILE.c) $(PICFLAG) $(srcdir)/index.c -o pic/$@; \
752 $(COMPILE.c) $(srcdir)/index.c $(OUTPUT_OPTION)
754 ./insque.$(objext): $(srcdir)/insque.c
755 if [ x"$(PICFLAG)" != x ]; then \
756 $(COMPILE.c) $(PICFLAG) $(srcdir)/insque.c -o pic/$@; \
758 $(COMPILE.c) $(srcdir)/insque.c $(OUTPUT_OPTION)
760 ./lbasename.$(objext): $(srcdir)/lbasename.c config.h $(INCDIR)/ansidecl.h \
761 $(INCDIR)/filenames.h $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h \
762 $(INCDIR)/safe-ctype.h
763 if [ x"$(PICFLAG)" != x ]; then \
764 $(COMPILE.c) $(PICFLAG) $(srcdir)/lbasename.c -o pic/$@; \
766 $(COMPILE.c) $(srcdir)/lbasename.c $(OUTPUT_OPTION)
768 ./lrealpath.$(objext): $(srcdir)/lrealpath.c config.h $(INCDIR)/ansidecl.h \
769 $(INCDIR)/libiberty.h
770 if [ x"$(PICFLAG)" != x ]; then \
771 $(COMPILE.c) $(PICFLAG) $(srcdir)/lrealpath.c -o pic/$@; \
773 $(COMPILE.c) $(srcdir)/lrealpath.c $(OUTPUT_OPTION)
775 ./make-relative-prefix.$(objext): $(srcdir)/make-relative-prefix.c config.h \
776 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
777 if [ x"$(PICFLAG)" != x ]; then \
778 $(COMPILE.c) $(PICFLAG) $(srcdir)/make-relative-prefix.c -o pic/$@; \
780 $(COMPILE.c) $(srcdir)/make-relative-prefix.c $(OUTPUT_OPTION)
782 ./make-temp-file.$(objext): $(srcdir)/make-temp-file.c config.h \
783 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
784 if [ x"$(PICFLAG)" != x ]; then \
785 $(COMPILE.c) $(PICFLAG) $(srcdir)/make-temp-file.c -o pic/$@; \
787 $(COMPILE.c) $(srcdir)/make-temp-file.c $(OUTPUT_OPTION)
789 ./md5.$(objext): $(srcdir)/md5.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h
790 if [ x"$(PICFLAG)" != x ]; then \
791 $(COMPILE.c) $(PICFLAG) $(srcdir)/md5.c -o pic/$@; \
793 $(COMPILE.c) $(srcdir)/md5.c $(OUTPUT_OPTION)
795 ./memchr.$(objext): $(srcdir)/memchr.c $(INCDIR)/ansidecl.h
796 if [ x"$(PICFLAG)" != x ]; then \
797 $(COMPILE.c) $(PICFLAG) $(srcdir)/memchr.c -o pic/$@; \
799 $(COMPILE.c) $(srcdir)/memchr.c $(OUTPUT_OPTION)
801 ./memcmp.$(objext): $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h
802 if [ x"$(PICFLAG)" != x ]; then \
803 $(COMPILE.c) $(PICFLAG) $(srcdir)/memcmp.c -o pic/$@; \
805 $(COMPILE.c) $(srcdir)/memcmp.c $(OUTPUT_OPTION)
807 ./memcpy.$(objext): $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h
808 if [ x"$(PICFLAG)" != x ]; then \
809 $(COMPILE.c) $(PICFLAG) $(srcdir)/memcpy.c -o pic/$@; \
811 $(COMPILE.c) $(srcdir)/memcpy.c $(OUTPUT_OPTION)
813 ./memmem.$(objext): $(srcdir)/memmem.c config.h
814 if [ x"$(PICFLAG)" != x ]; then \
815 $(COMPILE.c) $(PICFLAG) $(srcdir)/memmem.c -o pic/$@; \
817 $(COMPILE.c) $(srcdir)/memmem.c $(OUTPUT_OPTION)
819 ./memmove.$(objext): $(srcdir)/memmove.c $(INCDIR)/ansidecl.h
820 if [ x"$(PICFLAG)" != x ]; then \
821 $(COMPILE.c) $(PICFLAG) $(srcdir)/memmove.c -o pic/$@; \
823 $(COMPILE.c) $(srcdir)/memmove.c $(OUTPUT_OPTION)
825 ./mempcpy.$(objext): $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h
826 if [ x"$(PICFLAG)" != x ]; then \
827 $(COMPILE.c) $(PICFLAG) $(srcdir)/mempcpy.c -o pic/$@; \
829 $(COMPILE.c) $(srcdir)/mempcpy.c $(OUTPUT_OPTION)
831 ./memset.$(objext): $(srcdir)/memset.c $(INCDIR)/ansidecl.h
832 if [ x"$(PICFLAG)" != x ]; then \
833 $(COMPILE.c) $(PICFLAG) $(srcdir)/memset.c -o pic/$@; \
835 $(COMPILE.c) $(srcdir)/memset.c $(OUTPUT_OPTION)
837 ./mkstemps.$(objext): $(srcdir)/mkstemps.c config.h $(INCDIR)/ansidecl.h
838 if [ x"$(PICFLAG)" != x ]; then \
839 $(COMPILE.c) $(PICFLAG) $(srcdir)/mkstemps.c -o pic/$@; \
841 $(COMPILE.c) $(srcdir)/mkstemps.c $(OUTPUT_OPTION)
843 ./msdos.$(objext): $(srcdir)/msdos.c
844 if [ x"$(PICFLAG)" != x ]; then \
845 $(COMPILE.c) $(PICFLAG) $(srcdir)/msdos.c -o pic/$@; \
847 $(COMPILE.c) $(srcdir)/msdos.c $(OUTPUT_OPTION)
849 ./objalloc.$(objext): $(srcdir)/objalloc.c config.h $(INCDIR)/ansidecl.h \
851 if [ x"$(PICFLAG)" != x ]; then \
852 $(COMPILE.c) $(PICFLAG) $(srcdir)/objalloc.c -o pic/$@; \
854 $(COMPILE.c) $(srcdir)/objalloc.c $(OUTPUT_OPTION)
856 ./obstack.$(objext): $(srcdir)/obstack.c config.h $(INCDIR)/obstack.h
857 if [ x"$(PICFLAG)" != x ]; then \
858 $(COMPILE.c) $(PICFLAG) $(srcdir)/obstack.c -o pic/$@; \
860 $(COMPILE.c) $(srcdir)/obstack.c $(OUTPUT_OPTION)
862 ./partition.$(objext): $(srcdir)/partition.c config.h $(INCDIR)/ansidecl.h \
863 $(INCDIR)/libiberty.h $(INCDIR)/partition.h
864 if [ x"$(PICFLAG)" != x ]; then \
865 $(COMPILE.c) $(PICFLAG) $(srcdir)/partition.c -o pic/$@; \
867 $(COMPILE.c) $(srcdir)/partition.c $(OUTPUT_OPTION)
869 ./pex-common.$(objext): $(srcdir)/pex-common.c config.h $(INCDIR)/ansidecl.h \
870 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
871 if [ x"$(PICFLAG)" != x ]; then \
872 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-common.c -o pic/$@; \
874 $(COMPILE.c) $(srcdir)/pex-common.c $(OUTPUT_OPTION)
876 ./pex-djgpp.$(objext): $(srcdir)/pex-djgpp.c config.h $(INCDIR)/ansidecl.h \
877 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
878 if [ x"$(PICFLAG)" != x ]; then \
879 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-djgpp.c -o pic/$@; \
881 $(COMPILE.c) $(srcdir)/pex-djgpp.c $(OUTPUT_OPTION)
883 ./pex-msdos.$(objext): $(srcdir)/pex-msdos.c config.h $(INCDIR)/ansidecl.h \
884 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h \
885 $(INCDIR)/safe-ctype.h
886 if [ x"$(PICFLAG)" != x ]; then \
887 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-msdos.c -o pic/$@; \
889 $(COMPILE.c) $(srcdir)/pex-msdos.c $(OUTPUT_OPTION)
891 ./pex-one.$(objext): $(srcdir)/pex-one.c config.h $(INCDIR)/ansidecl.h \
892 $(INCDIR)/libiberty.h
893 if [ x"$(PICFLAG)" != x ]; then \
894 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-one.c -o pic/$@; \
896 $(COMPILE.c) $(srcdir)/pex-one.c $(OUTPUT_OPTION)
898 ./pex-unix.$(objext): $(srcdir)/pex-unix.c config.h $(INCDIR)/ansidecl.h \
899 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
900 if [ x"$(PICFLAG)" != x ]; then \
901 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-unix.c -o pic/$@; \
903 $(COMPILE.c) $(srcdir)/pex-unix.c $(OUTPUT_OPTION)
905 ./pex-win32.$(objext): $(srcdir)/pex-win32.c config.h $(INCDIR)/ansidecl.h \
906 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
907 if [ x"$(PICFLAG)" != x ]; then \
908 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-win32.c -o pic/$@; \
910 $(COMPILE.c) $(srcdir)/pex-win32.c $(OUTPUT_OPTION)
912 ./pexecute.$(objext): $(srcdir)/pexecute.c config.h $(INCDIR)/ansidecl.h \
913 $(INCDIR)/libiberty.h
914 if [ x"$(PICFLAG)" != x ]; then \
915 $(COMPILE.c) $(PICFLAG) $(srcdir)/pexecute.c -o pic/$@; \
917 $(COMPILE.c) $(srcdir)/pexecute.c $(OUTPUT_OPTION)
919 ./physmem.$(objext): $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \
920 $(INCDIR)/libiberty.h
921 if [ x"$(PICFLAG)" != x ]; then \
922 $(COMPILE.c) $(PICFLAG) $(srcdir)/physmem.c -o pic/$@; \
924 $(COMPILE.c) $(srcdir)/physmem.c $(OUTPUT_OPTION)
926 ./putenv.$(objext): $(srcdir)/putenv.c config.h $(INCDIR)/ansidecl.h
927 if [ x"$(PICFLAG)" != x ]; then \
928 $(COMPILE.c) $(PICFLAG) $(srcdir)/putenv.c -o pic/$@; \
930 $(COMPILE.c) $(srcdir)/putenv.c $(OUTPUT_OPTION)
932 ./random.$(objext): $(srcdir)/random.c $(INCDIR)/ansidecl.h
933 if [ x"$(PICFLAG)" != x ]; then \
934 $(COMPILE.c) $(PICFLAG) $(srcdir)/random.c -o pic/$@; \
936 $(COMPILE.c) $(srcdir)/random.c $(OUTPUT_OPTION)
938 ./regex.$(objext): $(srcdir)/regex.c config.h $(INCDIR)/ansidecl.h \
939 $(INCDIR)/xregex.h $(INCDIR)/xregex2.h
940 if [ x"$(PICFLAG)" != x ]; then \
941 $(COMPILE.c) $(PICFLAG) $(srcdir)/regex.c -o pic/$@; \
943 $(COMPILE.c) $(srcdir)/regex.c $(OUTPUT_OPTION)
945 ./rename.$(objext): $(srcdir)/rename.c config.h $(INCDIR)/ansidecl.h
946 if [ x"$(PICFLAG)" != x ]; then \
947 $(COMPILE.c) $(PICFLAG) $(srcdir)/rename.c -o pic/$@; \
949 $(COMPILE.c) $(srcdir)/rename.c $(OUTPUT_OPTION)
951 ./rindex.$(objext): $(srcdir)/rindex.c
952 if [ x"$(PICFLAG)" != x ]; then \
953 $(COMPILE.c) $(PICFLAG) $(srcdir)/rindex.c -o pic/$@; \
955 $(COMPILE.c) $(srcdir)/rindex.c $(OUTPUT_OPTION)
957 ./safe-ctype.$(objext): $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \
958 $(INCDIR)/safe-ctype.h
959 if [ x"$(PICFLAG)" != x ]; then \
960 $(COMPILE.c) $(PICFLAG) $(srcdir)/safe-ctype.c -o pic/$@; \
962 $(COMPILE.c) $(srcdir)/safe-ctype.c $(OUTPUT_OPTION)
964 ./setenv.$(objext): $(srcdir)/setenv.c config.h $(INCDIR)/ansidecl.h
965 if [ x"$(PICFLAG)" != x ]; then \
966 $(COMPILE.c) $(PICFLAG) $(srcdir)/setenv.c -o pic/$@; \
968 $(COMPILE.c) $(srcdir)/setenv.c $(OUTPUT_OPTION)
970 ./setproctitle.$(objext): $(srcdir)/setproctitle.c config.h $(INCDIR)/ansidecl.h
971 if [ x"$(PICFLAG)" != x ]; then \
972 $(COMPILE.c) $(PICFLAG) $(srcdir)/setproctitle.c -o pic/$@; \
974 $(COMPILE.c) $(srcdir)/setproctitle.c $(OUTPUT_OPTION)
976 ./sha1.$(objext): $(srcdir)/sha1.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/sha1.h
977 if [ x"$(PICFLAG)" != x ]; then \
978 $(COMPILE.c) $(PICFLAG) $(srcdir)/sha1.c -o pic/$@; \
980 $(COMPILE.c) $(srcdir)/sha1.c $(OUTPUT_OPTION)
982 ./sigsetmask.$(objext): $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h
983 if [ x"$(PICFLAG)" != x ]; then \
984 $(COMPILE.c) $(PICFLAG) $(srcdir)/sigsetmask.c -o pic/$@; \
986 $(COMPILE.c) $(srcdir)/sigsetmask.c $(OUTPUT_OPTION)
988 ./simple-object-coff.$(objext): $(srcdir)/simple-object-coff.c config.h \
989 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
990 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
991 if [ x"$(PICFLAG)" != x ]; then \
992 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-coff.c -o pic/$@; \
994 $(COMPILE.c) $(srcdir)/simple-object-coff.c $(OUTPUT_OPTION)
996 ./simple-object-elf.$(objext): $(srcdir)/simple-object-elf.c config.h \
997 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
998 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
999 if [ x"$(PICFLAG)" != x ]; then \
1000 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-elf.c -o pic/$@; \
1002 $(COMPILE.c) $(srcdir)/simple-object-elf.c $(OUTPUT_OPTION)
1004 ./simple-object-mach-o.$(objext): $(srcdir)/simple-object-mach-o.c config.h \
1005 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
1006 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
1007 if [ x"$(PICFLAG)" != x ]; then \
1008 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-mach-o.c -o pic/$@; \
1010 $(COMPILE.c) $(srcdir)/simple-object-mach-o.c $(OUTPUT_OPTION)
1012 ./simple-object.$(objext): $(srcdir)/simple-object.c config.h \
1013 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
1014 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
1015 if [ x"$(PICFLAG)" != x ]; then \
1016 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object.c -o pic/$@; \
1018 $(COMPILE.c) $(srcdir)/simple-object.c $(OUTPUT_OPTION)
1020 ./snprintf.$(objext): $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h
1021 if [ x"$(PICFLAG)" != x ]; then \
1022 $(COMPILE.c) $(PICFLAG) $(srcdir)/snprintf.c -o pic/$@; \
1024 $(COMPILE.c) $(srcdir)/snprintf.c $(OUTPUT_OPTION)
1026 ./sort.$(objext): $(srcdir)/sort.c config.h $(INCDIR)/ansidecl.h \
1027 $(INCDIR)/libiberty.h $(INCDIR)/sort.h
1028 if [ x"$(PICFLAG)" != x ]; then \
1029 $(COMPILE.c) $(PICFLAG) $(srcdir)/sort.c -o pic/$@; \
1031 $(COMPILE.c) $(srcdir)/sort.c $(OUTPUT_OPTION)
1033 ./spaces.$(objext): $(srcdir)/spaces.c config.h $(INCDIR)/ansidecl.h \
1034 $(INCDIR)/libiberty.h
1035 if [ x"$(PICFLAG)" != x ]; then \
1036 $(COMPILE.c) $(PICFLAG) $(srcdir)/spaces.c -o pic/$@; \
1038 $(COMPILE.c) $(srcdir)/spaces.c $(OUTPUT_OPTION)
1040 ./splay-tree.$(objext): $(srcdir)/splay-tree.c config.h $(INCDIR)/ansidecl.h \
1041 $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h
1042 if [ x"$(PICFLAG)" != x ]; then \
1043 $(COMPILE.c) $(PICFLAG) $(srcdir)/splay-tree.c -o pic/$@; \
1045 $(COMPILE.c) $(srcdir)/splay-tree.c $(OUTPUT_OPTION)
1047 ./stack-limit.$(objext): $(srcdir)/stack-limit.c config.h $(INCDIR)/ansidecl.h
1048 if [ x"$(PICFLAG)" != x ]; then \
1049 $(COMPILE.c) $(PICFLAG) $(srcdir)/stack-limit.c -o pic/$@; \
1051 $(COMPILE.c) $(srcdir)/stack-limit.c $(OUTPUT_OPTION)
1053 ./stpcpy.$(objext): $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h
1054 if [ x"$(PICFLAG)" != x ]; then \
1055 $(COMPILE.c) $(PICFLAG) $(srcdir)/stpcpy.c -o pic/$@; \
1057 $(COMPILE.c) $(srcdir)/stpcpy.c $(OUTPUT_OPTION)
1059 ./stpncpy.$(objext): $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h
1060 if [ x"$(PICFLAG)" != x ]; then \
1061 $(COMPILE.c) $(PICFLAG) $(srcdir)/stpncpy.c -o pic/$@; \
1063 $(COMPILE.c) $(srcdir)/stpncpy.c $(OUTPUT_OPTION)
1065 ./strcasecmp.$(objext): $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h
1066 if [ x"$(PICFLAG)" != x ]; then \
1067 $(COMPILE.c) $(PICFLAG) $(srcdir)/strcasecmp.c -o pic/$@; \
1069 $(COMPILE.c) $(srcdir)/strcasecmp.c $(OUTPUT_OPTION)
1071 ./strchr.$(objext): $(srcdir)/strchr.c $(INCDIR)/ansidecl.h
1072 if [ x"$(PICFLAG)" != x ]; then \
1073 $(COMPILE.c) $(PICFLAG) $(srcdir)/strchr.c -o pic/$@; \
1075 $(COMPILE.c) $(srcdir)/strchr.c $(OUTPUT_OPTION)
1077 ./strdup.$(objext): $(srcdir)/strdup.c $(INCDIR)/ansidecl.h
1078 if [ x"$(PICFLAG)" != x ]; then \
1079 $(COMPILE.c) $(PICFLAG) $(srcdir)/strdup.c -o pic/$@; \
1081 $(COMPILE.c) $(srcdir)/strdup.c $(OUTPUT_OPTION)
1083 ./strerror.$(objext): $(srcdir)/strerror.c config.h $(INCDIR)/ansidecl.h \
1084 $(INCDIR)/libiberty.h
1085 if [ x"$(PICFLAG)" != x ]; then \
1086 $(COMPILE.c) $(PICFLAG) $(srcdir)/strerror.c -o pic/$@; \
1088 $(COMPILE.c) $(srcdir)/strerror.c $(OUTPUT_OPTION)
1090 ./strncasecmp.$(objext): $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h
1091 if [ x"$(PICFLAG)" != x ]; then \
1092 $(COMPILE.c) $(PICFLAG) $(srcdir)/strncasecmp.c -o pic/$@; \
1094 $(COMPILE.c) $(srcdir)/strncasecmp.c $(OUTPUT_OPTION)
1096 ./strncmp.$(objext): $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h
1097 if [ x"$(PICFLAG)" != x ]; then \
1098 $(COMPILE.c) $(PICFLAG) $(srcdir)/strncmp.c -o pic/$@; \
1100 $(COMPILE.c) $(srcdir)/strncmp.c $(OUTPUT_OPTION)
1102 ./strndup.$(objext): $(srcdir)/strndup.c $(INCDIR)/ansidecl.h
1103 if [ x"$(PICFLAG)" != x ]; then \
1104 $(COMPILE.c) $(PICFLAG) $(srcdir)/strndup.c -o pic/$@; \
1106 $(COMPILE.c) $(srcdir)/strndup.c $(OUTPUT_OPTION)
1108 ./strnlen.$(objext): $(srcdir)/strnlen.c config.h
1109 if [ x"$(PICFLAG)" != x ]; then \
1110 $(COMPILE.c) $(PICFLAG) $(srcdir)/strnlen.c -o pic/$@; \
1112 $(COMPILE.c) $(srcdir)/strnlen.c $(OUTPUT_OPTION)
1114 ./strrchr.$(objext): $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h
1115 if [ x"$(PICFLAG)" != x ]; then \
1116 $(COMPILE.c) $(PICFLAG) $(srcdir)/strrchr.c -o pic/$@; \
1118 $(COMPILE.c) $(srcdir)/strrchr.c $(OUTPUT_OPTION)
1120 ./strsignal.$(objext): $(srcdir)/strsignal.c config.h $(INCDIR)/ansidecl.h \
1121 $(INCDIR)/libiberty.h
1122 if [ x"$(PICFLAG)" != x ]; then \
1123 $(COMPILE.c) $(PICFLAG) $(srcdir)/strsignal.c -o pic/$@; \
1125 $(COMPILE.c) $(srcdir)/strsignal.c $(OUTPUT_OPTION)
1127 ./strstr.$(objext): $(srcdir)/strstr.c
1128 if [ x"$(PICFLAG)" != x ]; then \
1129 $(COMPILE.c) $(PICFLAG) $(srcdir)/strstr.c -o pic/$@; \
1131 $(COMPILE.c) $(srcdir)/strstr.c $(OUTPUT_OPTION)
1133 ./strtod.$(objext): $(srcdir)/strtod.c $(INCDIR)/ansidecl.h \
1134 $(INCDIR)/safe-ctype.h
1135 if [ x"$(PICFLAG)" != x ]; then \
1136 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtod.c -o pic/$@; \
1138 $(COMPILE.c) $(srcdir)/strtod.c $(OUTPUT_OPTION)
1140 ./strtol.$(objext): $(srcdir)/strtol.c config.h $(INCDIR)/safe-ctype.h
1141 if [ x"$(PICFLAG)" != x ]; then \
1142 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtol.c -o pic/$@; \
1144 $(COMPILE.c) $(srcdir)/strtol.c $(OUTPUT_OPTION)
1146 ./strtoul.$(objext): $(srcdir)/strtoul.c config.h $(INCDIR)/ansidecl.h \
1147 $(INCDIR)/safe-ctype.h
1148 if [ x"$(PICFLAG)" != x ]; then \
1149 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoul.c -o pic/$@; \
1151 $(COMPILE.c) $(srcdir)/strtoul.c $(OUTPUT_OPTION)
1153 ./strverscmp.$(objext): $(srcdir)/strverscmp.c $(INCDIR)/ansidecl.h \
1154 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
1155 if [ x"$(PICFLAG)" != x ]; then \
1156 $(COMPILE.c) $(PICFLAG) $(srcdir)/strverscmp.c -o pic/$@; \
1158 $(COMPILE.c) $(srcdir)/strverscmp.c $(OUTPUT_OPTION)
1160 ./timeval-utils.$(objext): $(srcdir)/timeval-utils.c config.h \
1161 $(INCDIR)/timeval-utils.h
1162 if [ x"$(PICFLAG)" != x ]; then \
1163 $(COMPILE.c) $(PICFLAG) $(srcdir)/timeval-utils.c -o pic/$@; \
1165 $(COMPILE.c) $(srcdir)/timeval-utils.c $(OUTPUT_OPTION)
1167 ./tmpnam.$(objext): $(srcdir)/tmpnam.c
1168 if [ x"$(PICFLAG)" != x ]; then \
1169 $(COMPILE.c) $(PICFLAG) $(srcdir)/tmpnam.c -o pic/$@; \
1171 $(COMPILE.c) $(srcdir)/tmpnam.c $(OUTPUT_OPTION)
1173 ./unlink-if-ordinary.$(objext): $(srcdir)/unlink-if-ordinary.c config.h \
1174 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
1175 if [ x"$(PICFLAG)" != x ]; then \
1176 $(COMPILE.c) $(PICFLAG) $(srcdir)/unlink-if-ordinary.c -o pic/$@; \
1178 $(COMPILE.c) $(srcdir)/unlink-if-ordinary.c $(OUTPUT_OPTION)
1180 ./vasprintf.$(objext): $(srcdir)/vasprintf.c config.h $(INCDIR)/ansidecl.h \
1181 $(INCDIR)/libiberty.h
1182 if [ x"$(PICFLAG)" != x ]; then \
1183 $(COMPILE.c) $(PICFLAG) $(srcdir)/vasprintf.c -o pic/$@; \
1185 $(COMPILE.c) $(srcdir)/vasprintf.c $(OUTPUT_OPTION)
1187 ./vfork.$(objext): $(srcdir)/vfork.c $(INCDIR)/ansidecl.h
1188 if [ x"$(PICFLAG)" != x ]; then \
1189 $(COMPILE.c) $(PICFLAG) $(srcdir)/vfork.c -o pic/$@; \
1191 $(COMPILE.c) $(srcdir)/vfork.c $(OUTPUT_OPTION)
1193 ./vfprintf.$(objext): $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h
1194 if [ x"$(PICFLAG)" != x ]; then \
1195 $(COMPILE.c) $(PICFLAG) $(srcdir)/vfprintf.c -o pic/$@; \
1197 $(COMPILE.c) $(srcdir)/vfprintf.c $(OUTPUT_OPTION)
1199 ./vprintf.$(objext): $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h
1200 if [ x"$(PICFLAG)" != x ]; then \
1201 $(COMPILE.c) $(PICFLAG) $(srcdir)/vprintf.c -o pic/$@; \
1203 $(COMPILE.c) $(srcdir)/vprintf.c $(OUTPUT_OPTION)
1205 ./vsnprintf.$(objext): $(srcdir)/vsnprintf.c config.h $(INCDIR)/ansidecl.h \
1206 $(INCDIR)/libiberty.h
1207 if [ x"$(PICFLAG)" != x ]; then \
1208 $(COMPILE.c) $(PICFLAG) $(srcdir)/vsnprintf.c -o pic/$@; \
1210 $(COMPILE.c) $(srcdir)/vsnprintf.c $(OUTPUT_OPTION)
1212 ./vsprintf.$(objext): $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h
1213 if [ x"$(PICFLAG)" != x ]; then \
1214 $(COMPILE.c) $(PICFLAG) $(srcdir)/vsprintf.c -o pic/$@; \
1216 $(COMPILE.c) $(srcdir)/vsprintf.c $(OUTPUT_OPTION)
1218 ./waitpid.$(objext): $(srcdir)/waitpid.c config.h $(INCDIR)/ansidecl.h
1219 if [ x"$(PICFLAG)" != x ]; then \
1220 $(COMPILE.c) $(PICFLAG) $(srcdir)/waitpid.c -o pic/$@; \
1222 $(COMPILE.c) $(srcdir)/waitpid.c $(OUTPUT_OPTION)
1224 ./xatexit.$(objext): $(srcdir)/xatexit.c config.h $(INCDIR)/ansidecl.h \
1225 $(INCDIR)/libiberty.h
1226 if [ x"$(PICFLAG)" != x ]; then \
1227 $(COMPILE.c) $(PICFLAG) $(srcdir)/xatexit.c -o pic/$@; \
1229 $(COMPILE.c) $(srcdir)/xatexit.c $(OUTPUT_OPTION)
1231 ./xexit.$(objext): $(srcdir)/xexit.c config.h $(INCDIR)/ansidecl.h \
1232 $(INCDIR)/libiberty.h
1233 if [ x"$(PICFLAG)" != x ]; then \
1234 $(COMPILE.c) $(PICFLAG) $(srcdir)/xexit.c -o pic/$@; \
1236 $(COMPILE.c) $(srcdir)/xexit.c $(OUTPUT_OPTION)
1238 ./xmalloc.$(objext): $(srcdir)/xmalloc.c config.h $(INCDIR)/ansidecl.h \
1239 $(INCDIR)/libiberty.h
1240 if [ x"$(PICFLAG)" != x ]; then \
1241 $(COMPILE.c) $(PICFLAG) $(srcdir)/xmalloc.c -o pic/$@; \
1243 $(COMPILE.c) $(srcdir)/xmalloc.c $(OUTPUT_OPTION)
1245 ./xmemdup.$(objext): $(srcdir)/xmemdup.c config.h $(INCDIR)/ansidecl.h \
1246 $(INCDIR)/libiberty.h
1247 if [ x"$(PICFLAG)" != x ]; then \
1248 $(COMPILE.c) $(PICFLAG) $(srcdir)/xmemdup.c -o pic/$@; \
1250 $(COMPILE.c) $(srcdir)/xmemdup.c $(OUTPUT_OPTION)
1252 ./xstrdup.$(objext): $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \
1253 $(INCDIR)/libiberty.h
1254 if [ x"$(PICFLAG)" != x ]; then \
1255 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrdup.c -o pic/$@; \
1257 $(COMPILE.c) $(srcdir)/xstrdup.c $(OUTPUT_OPTION)
1259 ./xstrerror.$(objext): $(srcdir)/xstrerror.c config.h $(INCDIR)/ansidecl.h \
1260 $(INCDIR)/libiberty.h
1261 if [ x"$(PICFLAG)" != x ]; then \
1262 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrerror.c -o pic/$@; \
1264 $(COMPILE.c) $(srcdir)/xstrerror.c $(OUTPUT_OPTION)
1266 ./xstrndup.$(objext): $(srcdir)/xstrndup.c config.h $(INCDIR)/ansidecl.h \
1267 $(INCDIR)/libiberty.h
1268 if [ x"$(PICFLAG)" != x ]; then \
1269 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrndup.c -o pic/$@; \
1271 $(COMPILE.c) $(srcdir)/xstrndup.c $(OUTPUT_OPTION)