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
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 \
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 stpcpy.c stpncpy.c strcasecmp.c \
152 strchr.c strdup.c strerror.c strncasecmp.c strncmp.c \
153 strrchr.c strsignal.c strstr.c strtod.c strtol.c strtoul.c \
154 strndup.c strverscmp.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) ./dyn-string.$(objext) \
170 ./fdmatch.$(objext) ./fibheap.$(objext) \
171 ./filename_cmp.$(objext) ./floatformat.$(objext) \
172 ./fnmatch.$(objext) ./fopen_unlocked.$(objext) \
173 ./getopt.$(objext) ./getopt1.$(objext) ./getpwd.$(objext) \
174 ./getruntime.$(objext) ./hashtab.$(objext) ./hex.$(objext) \
175 ./lbasename.$(objext) ./lrealpath.$(objext) \
176 ./make-relative-prefix.$(objext) ./make-temp-file.$(objext) \
177 ./objalloc.$(objext) \
178 ./obstack.$(objext) \
179 ./partition.$(objext) ./pexecute.$(objext) ./physmem.$(objext) \
180 ./pex-common.$(objext) ./pex-one.$(objext) \
181 ./@pexecute@.$(objext) \
182 ./safe-ctype.$(objext) \
183 ./simple-object.$(objext) ./simple-object-coff.$(objext) \
184 ./simple-object-elf.$(objext) ./simple-object-mach-o.$(objext) \
185 ./sort.$(objext) ./spaces.$(objext) \
186 ./splay-tree.$(objext) ./strerror.$(objext) \
187 ./strsignal.$(objext) ./unlink-if-ordinary.$(objext) \
188 ./xatexit.$(objext) ./xexit.$(objext) ./xmalloc.$(objext) \
189 ./xmemdup.$(objext) ./xstrdup.$(objext) ./xstrerror.$(objext) \
192 # These are all the objects that configure may add to the library via
193 # $funcs or EXTRA_OFILES. This list exists here only for "make
194 # maint-missing" and "make check".
195 CONFIGURED_OFILES = ./asprintf.$(objext) ./atexit.$(objext) \
196 ./basename.$(objext) ./bcmp.$(objext) ./bcopy.$(objext) \
197 ./bsearch.$(objext) ./bzero.$(objext) \
198 ./calloc.$(objext) ./clock.$(objext) ./copysign.$(objext) \
199 ./_doprnt.$(objext) \
201 ./getcwd.$(objext) ./getpagesize.$(objext) \
202 ./gettimeofday.$(objext) \
203 ./index.$(objext) ./insque.$(objext) \
204 ./memchr.$(objext) ./memcmp.$(objext) ./memcpy.$(objext) \
205 ./memmem.$(objext) ./memmove.$(objext) \
206 ./mempcpy.$(objext) ./memset.$(objext) ./mkstemps.$(objext) \
207 ./pex-djgpp.$(objext) ./pex-msdos.$(objext) \
208 ./pex-unix.$(objext) ./pex-win32.$(objext) \
210 ./random.$(objext) ./rename.$(objext) ./rindex.$(objext) \
212 ./setproctitle.$(objext) \
213 ./sigsetmask.$(objext) ./snprintf.$(objext) \
214 ./stpcpy.$(objext) ./stpncpy.$(objext) ./strcasecmp.$(objext) \
215 ./strchr.$(objext) ./strdup.$(objext) ./strncasecmp.$(objext) \
216 ./strncmp.$(objext) ./strndup.$(objext) ./strrchr.$(objext) \
217 ./strstr.$(objext) ./strtod.$(objext) ./strtol.$(objext) \
218 ./strtoul.$(objext) ./strverscmp.$(objext) \
220 ./vasprintf.$(objext) ./vfork.$(objext) ./vfprintf.$(objext) \
221 ./vprintf.$(objext) ./vsnprintf.$(objext) ./vsprintf.$(objext) \
224 # These files are installed if the library has been configured to do so.
225 INSTALLED_HEADERS = \
226 $(INCDIR)/ansidecl.h \
227 $(INCDIR)/demangle.h \
228 $(INCDIR)/dyn-string.h \
229 $(INCDIR)/fibheap.h \
230 $(INCDIR)/floatformat.h \
231 $(INCDIR)/hashtab.h \
232 $(INCDIR)/libiberty.h \
233 $(INCDIR)/objalloc.h \
234 $(INCDIR)/partition.h \
235 $(INCDIR)/safe-ctype.h \
237 $(INCDIR)/splay-tree.h
239 $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
240 -rm -f $(TARGETLIB) pic/$(TARGETLIB)
241 $(AR) $(AR_FLAGS) $(TARGETLIB) \
242 $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
243 $(RANLIB) $(TARGETLIB)
244 if [ x"$(PICFLAG)" != x ]; then \
246 $(AR) $(AR_FLAGS) $(TARGETLIB) \
247 $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
248 $(RANLIB) $(TARGETLIB); \
252 $(TESTLIB): $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
254 $(AR) $(AR_FLAGS) $(TESTLIB) \
255 $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
258 info: libiberty.info info-subdir
259 install-info: install-info-subdir
260 clean-info: clean-info-subdir
261 dvi: libiberty.dvi dvi-subdir
263 LIBIBERTY_PDFFILES = libiberty.pdf
265 pdf: $(LIBIBERTY_PDFFILES) pdf-subdir
269 pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
271 install-pdf: $(LIBIBERTY_PDFFILES)
273 test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)"
274 @list='$(LIBIBERTY_PDFFILES)'; for p in $$list; do \
275 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
276 f=$(pdf__strip_dir) \
277 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \
278 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \
281 # html, install-html targets
282 HTMLS = libiberty.html
286 .PHONY: install-html install-html-am
289 mkdir_p = mkdir -p --
291 html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
293 install-html: install-html-am
295 install-html-am: $(HTMLS)
297 test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
298 @list='$(HTMLS)'; for p in $$list; do \
299 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
300 f=$(html__strip_dir) \
301 if test -d "$$d$$p"; then \
302 echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
303 $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
304 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
305 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
307 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
308 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
313 $(srcdir)/libiberty.texi \
314 $(srcdir)/copying-lib.texi \
315 $(srcdir)/obstacks.texi \
316 $(srcdir)/functions.texi
318 # Additional files that have texi snippets that need to be collected
319 # and sorted. Some are here because the sources are imported from
320 # elsewhere. Others represent headers in ../include.
321 TEXIFILES = fnmatch.txh pexecute.txh simple-object.txh
323 libiberty.info : $(srcdir)/libiberty.texi $(TEXISRC)
324 $(MAKEINFO) -I$(srcdir) $(srcdir)/libiberty.texi
326 libiberty.dvi : $(srcdir)/libiberty.texi $(TEXISRC)
327 texi2dvi $(srcdir)/libiberty.texi
329 libiberty.pdf : $(srcdir)/libiberty.texi $(TEXISRC)
330 texi2pdf $(srcdir)/libiberty.texi
332 libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC)
333 $(MAKEINFO) --no-split --html -I$(srcdir) -o $@ $<
335 @MAINT@$(srcdir)/functions.texi : stamp-functions
338 @MAINT@stamp-functions : $(CFILES:%=$(srcdir)/%) $(TEXIFILES:%=$(srcdir)/%) $(srcdir)/gather-docs Makefile
339 @MAINT@@HAVE_PERL@ $(PERL) $(srcdir)/gather-docs $(srcdir) $(srcdir)/functions.texi $(CFILES) $(TEXIFILES)
340 @MAINT@ echo stamp > stamp-functions
342 INSTALL_DEST = @INSTALL_DEST@
343 install: install_to_$(INSTALL_DEST) install-subdir
345 # This is tricky. Even though CC in the Makefile contains
346 # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
347 # default multilib, so we have to take CFLAGS into account as well,
348 # since it will be passed the multilib flags.
349 MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
350 install_to_libdir: all
351 ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR)
352 $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n
353 ( cd $(DESTDIR)$(libdir)/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n )
354 mv -f $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)
355 if test -n "${target_header_dir}"; then \
356 case "${target_header_dir}" in \
357 /*) thd=${target_header_dir};; \
358 *) thd=${includedir}/${target_header_dir};; \
360 ${mkinstalldirs} $(DESTDIR)$${thd}; \
361 for h in ${INSTALLED_HEADERS}; do \
362 ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \
365 @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
367 install_to_tooldir: all
368 ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)
369 $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n
370 ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n; $(RANLIB) $(TARGETLIB)n )
371 mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)
372 @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
374 # required-list was used when building a shared bfd/opcodes/libiberty
375 # library. I don't know if it used by anything currently.
376 required-list: Makefile
377 echo $(REQUIRED_OFILES) > required-list
380 if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \
385 .PHONY: all etags tags ls clean stage1 stage2
387 etags tags: TAGS etags-subdir
390 etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done`
392 # The standalone demangler (c++filt) has been moved to binutils.
393 # But make this target work anyway for demangler hacking.
394 demangle: $(ALL) $(srcdir)/cp-demangle.c
395 @echo "The standalone demangler, now named c++filt, is now"
396 @echo "a part of binutils."
397 $(CC) @DEFS@ $(CFLAGS) $(CPPFLAGS) -I. -I$(INCDIR) $(HDEFINES) \
398 $(srcdir)/cp-demangle.c -DSTANDALONE_DEMANGLER $(TARGETLIB) -o $@
401 @echo Makefile $(CFILES)
403 # Various targets for maintainers.
406 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) missing $(CFILES) $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
408 maint-buildall : $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
411 maint-undoc : $(srcdir)/functions.texi
412 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc
415 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) deps $(INCDIR)
417 # Need to deal with profiled libraries, too.
419 # Cleaning has to be done carefully to ensure that we don't clean our SUBDIRS
420 # multiple times, hence our explicit recursion with an empty SUBDIRS.
421 mostlyclean: mostlyclean-subdir
422 -rm -rf *.$(objext) pic core errs \#* *.E a.out
423 -rm -f errors dummy config.h stamp-*
424 -rm -f $(CONFIG_H) stamp-picdir
425 -rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky
426 -rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg
427 -rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.vr
429 @$(MULTICLEAN) multi-clean DO=mostlyclean
431 $(MAKE) SUBDIRS="" mostlyclean
432 -rm -f *.a required-list tmpmulti.out
433 -rm -f libiberty.dvi libiberty.pdf libiberty.info* libiberty.html
434 @$(MULTICLEAN) multi-clean DO=clean
435 distclean: distclean-subdir
436 $(MAKE) SUBDIRS="" clean
437 @$(MULTICLEAN) multi-clean DO=distclean
438 -rm -f *~ Makefile config.cache config.status xhost-mkfrag TAGS multilib.out
440 -rmdir testsuite 2>/dev/null
441 maintainer-clean realclean: maintainer-clean-subdir
442 $(MAKE) SUBDIRS="" distclean
446 Makefile: $(srcdir)/Makefile.in config.status
447 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
449 # Depending on Makefile makes sure that config.status has been re-run
450 # if needed. This prevents problems with parallel builds.
451 config.h: stamp-h ; @true
452 stamp-h: $(srcdir)/config.in config.status Makefile
453 CONFIG_FILES= CONFIG_HEADERS=config.h:$(srcdir)/config.in $(SHELL) ./config.status
455 config.status: $(srcdir)/configure
456 $(SHELL) ./config.status --recheck
459 configure_deps = $(srcdir)/aclocal.m4 \
460 $(srcdir)/../config/acx.m4 \
461 $(srcdir)/../config/no-executables.m4 \
462 $(srcdir)/../config/override.m4 \
463 $(srcdir)/../config/warnings.m4 \
465 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(configure_deps)
466 cd $(srcdir) && $(AUTOCONF)
468 # Depending on config.h makes sure that config.status has been re-run
469 # if needed. This prevents problems with parallel builds, in case
470 # subdirectories need to run config.status also.
471 all-subdir check-subdir installcheck-subdir info-subdir \
472 install-info-subdir clean-info-subdir dvi-subdir pdf-subdir install-subdir \
473 etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
474 maintainer-clean-subdir: config.h
475 @subdirs='$(SUBDIRS)'; \
476 target=`echo $@ | sed -e 's/-subdir//'`; \
477 for dir in $$subdirs ; do \
478 cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \
481 $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS): stamp-picdir
482 $(CONFIGURED_OFILES): stamp-picdir
484 # Don't export variables to the environment, in order to not confuse
488 # The dependencies in the remainder of this file are automatically
489 # generated by "make maint-deps". Manual edits will be lost.
491 ./_doprnt.$(objext): $(srcdir)/_doprnt.c config.h $(INCDIR)/ansidecl.h \
492 $(INCDIR)/safe-ctype.h
493 if [ x"$(PICFLAG)" != x ]; then \
494 $(COMPILE.c) $(PICFLAG) $(srcdir)/_doprnt.c -o pic/$@; \
496 $(COMPILE.c) $(srcdir)/_doprnt.c $(OUTPUT_OPTION)
498 ./alloca.$(objext): $(srcdir)/alloca.c config.h $(INCDIR)/ansidecl.h \
499 $(INCDIR)/libiberty.h
500 if [ x"$(PICFLAG)" != x ]; then \
501 $(COMPILE.c) $(PICFLAG) $(srcdir)/alloca.c -o pic/$@; \
503 $(COMPILE.c) $(srcdir)/alloca.c $(OUTPUT_OPTION)
505 ./argv.$(objext): $(srcdir)/argv.c config.h $(INCDIR)/ansidecl.h \
506 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
507 if [ x"$(PICFLAG)" != x ]; then \
508 $(COMPILE.c) $(PICFLAG) $(srcdir)/argv.c -o pic/$@; \
510 $(COMPILE.c) $(srcdir)/argv.c $(OUTPUT_OPTION)
512 ./asprintf.$(objext): $(srcdir)/asprintf.c config.h $(INCDIR)/ansidecl.h \
513 $(INCDIR)/libiberty.h
514 if [ x"$(PICFLAG)" != x ]; then \
515 $(COMPILE.c) $(PICFLAG) $(srcdir)/asprintf.c -o pic/$@; \
517 $(COMPILE.c) $(srcdir)/asprintf.c $(OUTPUT_OPTION)
519 ./atexit.$(objext): $(srcdir)/atexit.c config.h
520 if [ x"$(PICFLAG)" != x ]; then \
521 $(COMPILE.c) $(PICFLAG) $(srcdir)/atexit.c -o pic/$@; \
523 $(COMPILE.c) $(srcdir)/atexit.c $(OUTPUT_OPTION)
525 ./basename.$(objext): $(srcdir)/basename.c config.h $(INCDIR)/ansidecl.h \
526 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
527 if [ x"$(PICFLAG)" != x ]; then \
528 $(COMPILE.c) $(PICFLAG) $(srcdir)/basename.c -o pic/$@; \
530 $(COMPILE.c) $(srcdir)/basename.c $(OUTPUT_OPTION)
532 ./bcmp.$(objext): $(srcdir)/bcmp.c
533 if [ x"$(PICFLAG)" != x ]; then \
534 $(COMPILE.c) $(PICFLAG) $(srcdir)/bcmp.c -o pic/$@; \
536 $(COMPILE.c) $(srcdir)/bcmp.c $(OUTPUT_OPTION)
538 ./bcopy.$(objext): $(srcdir)/bcopy.c
539 if [ x"$(PICFLAG)" != x ]; then \
540 $(COMPILE.c) $(PICFLAG) $(srcdir)/bcopy.c -o pic/$@; \
542 $(COMPILE.c) $(srcdir)/bcopy.c $(OUTPUT_OPTION)
544 ./bsearch.$(objext): $(srcdir)/bsearch.c config.h $(INCDIR)/ansidecl.h
545 if [ x"$(PICFLAG)" != x ]; then \
546 $(COMPILE.c) $(PICFLAG) $(srcdir)/bsearch.c -o pic/$@; \
548 $(COMPILE.c) $(srcdir)/bsearch.c $(OUTPUT_OPTION)
550 ./bzero.$(objext): $(srcdir)/bzero.c
551 if [ x"$(PICFLAG)" != x ]; then \
552 $(COMPILE.c) $(PICFLAG) $(srcdir)/bzero.c -o pic/$@; \
554 $(COMPILE.c) $(srcdir)/bzero.c $(OUTPUT_OPTION)
556 ./calloc.$(objext): $(srcdir)/calloc.c $(INCDIR)/ansidecl.h
557 if [ x"$(PICFLAG)" != x ]; then \
558 $(COMPILE.c) $(PICFLAG) $(srcdir)/calloc.c -o pic/$@; \
560 $(COMPILE.c) $(srcdir)/calloc.c $(OUTPUT_OPTION)
562 ./choose-temp.$(objext): $(srcdir)/choose-temp.c config.h $(INCDIR)/ansidecl.h \
563 $(INCDIR)/libiberty.h
564 if [ x"$(PICFLAG)" != x ]; then \
565 $(COMPILE.c) $(PICFLAG) $(srcdir)/choose-temp.c -o pic/$@; \
567 $(COMPILE.c) $(srcdir)/choose-temp.c $(OUTPUT_OPTION)
569 ./clock.$(objext): $(srcdir)/clock.c config.h
570 if [ x"$(PICFLAG)" != x ]; then \
571 $(COMPILE.c) $(PICFLAG) $(srcdir)/clock.c -o pic/$@; \
573 $(COMPILE.c) $(srcdir)/clock.c $(OUTPUT_OPTION)
575 ./concat.$(objext): $(srcdir)/concat.c config.h $(INCDIR)/ansidecl.h \
576 $(INCDIR)/libiberty.h
577 if [ x"$(PICFLAG)" != x ]; then \
578 $(COMPILE.c) $(PICFLAG) $(srcdir)/concat.c -o pic/$@; \
580 $(COMPILE.c) $(srcdir)/concat.c $(OUTPUT_OPTION)
582 ./copysign.$(objext): $(srcdir)/copysign.c $(INCDIR)/ansidecl.h
583 if [ x"$(PICFLAG)" != x ]; then \
584 $(COMPILE.c) $(PICFLAG) $(srcdir)/copysign.c -o pic/$@; \
586 $(COMPILE.c) $(srcdir)/copysign.c $(OUTPUT_OPTION)
588 ./cp-demangle.$(objext): $(srcdir)/cp-demangle.c config.h $(INCDIR)/ansidecl.h \
589 $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \
590 $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h
591 if [ x"$(PICFLAG)" != x ]; then \
592 $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demangle.c -o pic/$@; \
594 $(COMPILE.c) $(srcdir)/cp-demangle.c $(OUTPUT_OPTION)
596 ./cp-demint.$(objext): $(srcdir)/cp-demint.c config.h $(INCDIR)/ansidecl.h \
597 $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \
598 $(INCDIR)/libiberty.h
599 if [ x"$(PICFLAG)" != x ]; then \
600 $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demint.c -o pic/$@; \
602 $(COMPILE.c) $(srcdir)/cp-demint.c $(OUTPUT_OPTION)
604 ./cplus-dem.$(objext): $(srcdir)/cplus-dem.c config.h $(INCDIR)/ansidecl.h \
605 $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
606 $(INCDIR)/safe-ctype.h
607 if [ x"$(PICFLAG)" != x ]; then \
608 $(COMPILE.c) $(PICFLAG) $(srcdir)/cplus-dem.c -o pic/$@; \
610 $(COMPILE.c) $(srcdir)/cplus-dem.c $(OUTPUT_OPTION)
612 ./crc32.$(objext): $(srcdir)/crc32.c config.h $(INCDIR)/ansidecl.h \
613 $(INCDIR)/libiberty.h
614 if [ x"$(PICFLAG)" != x ]; then \
615 $(COMPILE.c) $(PICFLAG) $(srcdir)/crc32.c -o pic/$@; \
617 $(COMPILE.c) $(srcdir)/crc32.c $(OUTPUT_OPTION)
619 ./dyn-string.$(objext): $(srcdir)/dyn-string.c config.h $(INCDIR)/ansidecl.h \
620 $(INCDIR)/dyn-string.h $(INCDIR)/libiberty.h
621 if [ x"$(PICFLAG)" != x ]; then \
622 $(COMPILE.c) $(PICFLAG) $(srcdir)/dyn-string.c -o pic/$@; \
624 $(COMPILE.c) $(srcdir)/dyn-string.c $(OUTPUT_OPTION)
626 ./fdmatch.$(objext): $(srcdir)/fdmatch.c config.h $(INCDIR)/ansidecl.h \
627 $(INCDIR)/libiberty.h
628 if [ x"$(PICFLAG)" != x ]; then \
629 $(COMPILE.c) $(PICFLAG) $(srcdir)/fdmatch.c -o pic/$@; \
631 $(COMPILE.c) $(srcdir)/fdmatch.c $(OUTPUT_OPTION)
633 ./ffs.$(objext): $(srcdir)/ffs.c
634 if [ x"$(PICFLAG)" != x ]; then \
635 $(COMPILE.c) $(PICFLAG) $(srcdir)/ffs.c -o pic/$@; \
637 $(COMPILE.c) $(srcdir)/ffs.c $(OUTPUT_OPTION)
639 ./fibheap.$(objext): $(srcdir)/fibheap.c config.h $(INCDIR)/ansidecl.h \
640 $(INCDIR)/fibheap.h $(INCDIR)/libiberty.h
641 if [ x"$(PICFLAG)" != x ]; then \
642 $(COMPILE.c) $(PICFLAG) $(srcdir)/fibheap.c -o pic/$@; \
644 $(COMPILE.c) $(srcdir)/fibheap.c $(OUTPUT_OPTION)
646 ./filename_cmp.$(objext): $(srcdir)/filename_cmp.c config.h $(INCDIR)/filenames.h \
647 $(INCDIR)/safe-ctype.h
648 if [ x"$(PICFLAG)" != x ]; then \
649 $(COMPILE.c) $(PICFLAG) $(srcdir)/filename_cmp.c -o pic/$@; \
651 $(COMPILE.c) $(srcdir)/filename_cmp.c $(OUTPUT_OPTION)
653 ./floatformat.$(objext): $(srcdir)/floatformat.c config.h $(INCDIR)/ansidecl.h \
654 $(INCDIR)/floatformat.h $(INCDIR)/libiberty.h
655 if [ x"$(PICFLAG)" != x ]; then \
656 $(COMPILE.c) $(PICFLAG) $(srcdir)/floatformat.c -o pic/$@; \
658 $(COMPILE.c) $(srcdir)/floatformat.c $(OUTPUT_OPTION)
660 ./fnmatch.$(objext): $(srcdir)/fnmatch.c config.h $(INCDIR)/fnmatch.h \
661 $(INCDIR)/safe-ctype.h
662 if [ x"$(PICFLAG)" != x ]; then \
663 $(COMPILE.c) $(PICFLAG) $(srcdir)/fnmatch.c -o pic/$@; \
665 $(COMPILE.c) $(srcdir)/fnmatch.c $(OUTPUT_OPTION)
667 ./fopen_unlocked.$(objext): $(srcdir)/fopen_unlocked.c config.h \
668 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
669 if [ x"$(PICFLAG)" != x ]; then \
670 $(COMPILE.c) $(PICFLAG) $(srcdir)/fopen_unlocked.c -o pic/$@; \
672 $(COMPILE.c) $(srcdir)/fopen_unlocked.c $(OUTPUT_OPTION)
674 ./getcwd.$(objext): $(srcdir)/getcwd.c config.h
675 if [ x"$(PICFLAG)" != x ]; then \
676 $(COMPILE.c) $(PICFLAG) $(srcdir)/getcwd.c -o pic/$@; \
678 $(COMPILE.c) $(srcdir)/getcwd.c $(OUTPUT_OPTION)
680 ./getopt.$(objext): $(srcdir)/getopt.c config.h $(INCDIR)/ansidecl.h \
682 if [ x"$(PICFLAG)" != x ]; then \
683 $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt.c -o pic/$@; \
685 $(COMPILE.c) $(srcdir)/getopt.c $(OUTPUT_OPTION)
687 ./getopt1.$(objext): $(srcdir)/getopt1.c config.h $(INCDIR)/getopt.h
688 if [ x"$(PICFLAG)" != x ]; then \
689 $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt1.c -o pic/$@; \
691 $(COMPILE.c) $(srcdir)/getopt1.c $(OUTPUT_OPTION)
693 ./getpagesize.$(objext): $(srcdir)/getpagesize.c config.h
694 if [ x"$(PICFLAG)" != x ]; then \
695 $(COMPILE.c) $(PICFLAG) $(srcdir)/getpagesize.c -o pic/$@; \
697 $(COMPILE.c) $(srcdir)/getpagesize.c $(OUTPUT_OPTION)
699 ./getpwd.$(objext): $(srcdir)/getpwd.c config.h $(INCDIR)/ansidecl.h \
700 $(INCDIR)/libiberty.h
701 if [ x"$(PICFLAG)" != x ]; then \
702 $(COMPILE.c) $(PICFLAG) $(srcdir)/getpwd.c -o pic/$@; \
704 $(COMPILE.c) $(srcdir)/getpwd.c $(OUTPUT_OPTION)
706 ./getruntime.$(objext): $(srcdir)/getruntime.c config.h $(INCDIR)/ansidecl.h \
707 $(INCDIR)/libiberty.h
708 if [ x"$(PICFLAG)" != x ]; then \
709 $(COMPILE.c) $(PICFLAG) $(srcdir)/getruntime.c -o pic/$@; \
711 $(COMPILE.c) $(srcdir)/getruntime.c $(OUTPUT_OPTION)
713 ./gettimeofday.$(objext): $(srcdir)/gettimeofday.c config.h $(INCDIR)/ansidecl.h \
714 $(INCDIR)/libiberty.h
715 if [ x"$(PICFLAG)" != x ]; then \
716 $(COMPILE.c) $(PICFLAG) $(srcdir)/gettimeofday.c -o pic/$@; \
718 $(COMPILE.c) $(srcdir)/gettimeofday.c $(OUTPUT_OPTION)
720 ./hashtab.$(objext): $(srcdir)/hashtab.c config.h $(INCDIR)/ansidecl.h \
721 $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h
722 if [ x"$(PICFLAG)" != x ]; then \
723 $(COMPILE.c) $(PICFLAG) $(srcdir)/hashtab.c -o pic/$@; \
725 $(COMPILE.c) $(srcdir)/hashtab.c $(OUTPUT_OPTION)
727 ./hex.$(objext): $(srcdir)/hex.c config.h $(INCDIR)/ansidecl.h \
728 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
729 if [ x"$(PICFLAG)" != x ]; then \
730 $(COMPILE.c) $(PICFLAG) $(srcdir)/hex.c -o pic/$@; \
732 $(COMPILE.c) $(srcdir)/hex.c $(OUTPUT_OPTION)
734 ./index.$(objext): $(srcdir)/index.c
735 if [ x"$(PICFLAG)" != x ]; then \
736 $(COMPILE.c) $(PICFLAG) $(srcdir)/index.c -o pic/$@; \
738 $(COMPILE.c) $(srcdir)/index.c $(OUTPUT_OPTION)
740 ./insque.$(objext): $(srcdir)/insque.c
741 if [ x"$(PICFLAG)" != x ]; then \
742 $(COMPILE.c) $(PICFLAG) $(srcdir)/insque.c -o pic/$@; \
744 $(COMPILE.c) $(srcdir)/insque.c $(OUTPUT_OPTION)
746 ./lbasename.$(objext): $(srcdir)/lbasename.c config.h $(INCDIR)/ansidecl.h \
747 $(INCDIR)/filenames.h $(INCDIR)/libiberty.h \
748 $(INCDIR)/safe-ctype.h
749 if [ x"$(PICFLAG)" != x ]; then \
750 $(COMPILE.c) $(PICFLAG) $(srcdir)/lbasename.c -o pic/$@; \
752 $(COMPILE.c) $(srcdir)/lbasename.c $(OUTPUT_OPTION)
754 ./lrealpath.$(objext): $(srcdir)/lrealpath.c config.h $(INCDIR)/ansidecl.h \
755 $(INCDIR)/libiberty.h
756 if [ x"$(PICFLAG)" != x ]; then \
757 $(COMPILE.c) $(PICFLAG) $(srcdir)/lrealpath.c -o pic/$@; \
759 $(COMPILE.c) $(srcdir)/lrealpath.c $(OUTPUT_OPTION)
761 ./make-relative-prefix.$(objext): $(srcdir)/make-relative-prefix.c config.h \
762 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
763 if [ x"$(PICFLAG)" != x ]; then \
764 $(COMPILE.c) $(PICFLAG) $(srcdir)/make-relative-prefix.c -o pic/$@; \
766 $(COMPILE.c) $(srcdir)/make-relative-prefix.c $(OUTPUT_OPTION)
768 ./make-temp-file.$(objext): $(srcdir)/make-temp-file.c config.h \
769 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
770 if [ x"$(PICFLAG)" != x ]; then \
771 $(COMPILE.c) $(PICFLAG) $(srcdir)/make-temp-file.c -o pic/$@; \
773 $(COMPILE.c) $(srcdir)/make-temp-file.c $(OUTPUT_OPTION)
775 ./md5.$(objext): $(srcdir)/md5.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h
776 if [ x"$(PICFLAG)" != x ]; then \
777 $(COMPILE.c) $(PICFLAG) $(srcdir)/md5.c -o pic/$@; \
779 $(COMPILE.c) $(srcdir)/md5.c $(OUTPUT_OPTION)
781 ./memchr.$(objext): $(srcdir)/memchr.c $(INCDIR)/ansidecl.h
782 if [ x"$(PICFLAG)" != x ]; then \
783 $(COMPILE.c) $(PICFLAG) $(srcdir)/memchr.c -o pic/$@; \
785 $(COMPILE.c) $(srcdir)/memchr.c $(OUTPUT_OPTION)
787 ./memcmp.$(objext): $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h
788 if [ x"$(PICFLAG)" != x ]; then \
789 $(COMPILE.c) $(PICFLAG) $(srcdir)/memcmp.c -o pic/$@; \
791 $(COMPILE.c) $(srcdir)/memcmp.c $(OUTPUT_OPTION)
793 ./memcpy.$(objext): $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h
794 if [ x"$(PICFLAG)" != x ]; then \
795 $(COMPILE.c) $(PICFLAG) $(srcdir)/memcpy.c -o pic/$@; \
797 $(COMPILE.c) $(srcdir)/memcpy.c $(OUTPUT_OPTION)
799 ./memmem.$(objext): $(srcdir)/memmem.c config.h
800 if [ x"$(PICFLAG)" != x ]; then \
801 $(COMPILE.c) $(PICFLAG) $(srcdir)/memmem.c -o pic/$@; \
803 $(COMPILE.c) $(srcdir)/memmem.c $(OUTPUT_OPTION)
805 ./memmove.$(objext): $(srcdir)/memmove.c $(INCDIR)/ansidecl.h
806 if [ x"$(PICFLAG)" != x ]; then \
807 $(COMPILE.c) $(PICFLAG) $(srcdir)/memmove.c -o pic/$@; \
809 $(COMPILE.c) $(srcdir)/memmove.c $(OUTPUT_OPTION)
811 ./mempcpy.$(objext): $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h
812 if [ x"$(PICFLAG)" != x ]; then \
813 $(COMPILE.c) $(PICFLAG) $(srcdir)/mempcpy.c -o pic/$@; \
815 $(COMPILE.c) $(srcdir)/mempcpy.c $(OUTPUT_OPTION)
817 ./memset.$(objext): $(srcdir)/memset.c $(INCDIR)/ansidecl.h
818 if [ x"$(PICFLAG)" != x ]; then \
819 $(COMPILE.c) $(PICFLAG) $(srcdir)/memset.c -o pic/$@; \
821 $(COMPILE.c) $(srcdir)/memset.c $(OUTPUT_OPTION)
823 ./mkstemps.$(objext): $(srcdir)/mkstemps.c config.h $(INCDIR)/ansidecl.h
824 if [ x"$(PICFLAG)" != x ]; then \
825 $(COMPILE.c) $(PICFLAG) $(srcdir)/mkstemps.c -o pic/$@; \
827 $(COMPILE.c) $(srcdir)/mkstemps.c $(OUTPUT_OPTION)
829 ./msdos.$(objext): $(srcdir)/msdos.c
830 if [ x"$(PICFLAG)" != x ]; then \
831 $(COMPILE.c) $(PICFLAG) $(srcdir)/msdos.c -o pic/$@; \
833 $(COMPILE.c) $(srcdir)/msdos.c $(OUTPUT_OPTION)
835 ./objalloc.$(objext): $(srcdir)/objalloc.c config.h $(INCDIR)/ansidecl.h \
837 if [ x"$(PICFLAG)" != x ]; then \
838 $(COMPILE.c) $(PICFLAG) $(srcdir)/objalloc.c -o pic/$@; \
840 $(COMPILE.c) $(srcdir)/objalloc.c $(OUTPUT_OPTION)
842 ./obstack.$(objext): $(srcdir)/obstack.c config.h $(INCDIR)/obstack.h
843 if [ x"$(PICFLAG)" != x ]; then \
844 $(COMPILE.c) $(PICFLAG) $(srcdir)/obstack.c -o pic/$@; \
846 $(COMPILE.c) $(srcdir)/obstack.c $(OUTPUT_OPTION)
848 ./partition.$(objext): $(srcdir)/partition.c config.h $(INCDIR)/ansidecl.h \
849 $(INCDIR)/libiberty.h $(INCDIR)/partition.h
850 if [ x"$(PICFLAG)" != x ]; then \
851 $(COMPILE.c) $(PICFLAG) $(srcdir)/partition.c -o pic/$@; \
853 $(COMPILE.c) $(srcdir)/partition.c $(OUTPUT_OPTION)
855 ./pex-common.$(objext): $(srcdir)/pex-common.c config.h $(INCDIR)/ansidecl.h \
856 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
857 if [ x"$(PICFLAG)" != x ]; then \
858 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-common.c -o pic/$@; \
860 $(COMPILE.c) $(srcdir)/pex-common.c $(OUTPUT_OPTION)
862 ./pex-djgpp.$(objext): $(srcdir)/pex-djgpp.c config.h $(INCDIR)/ansidecl.h \
863 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
864 if [ x"$(PICFLAG)" != x ]; then \
865 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-djgpp.c -o pic/$@; \
867 $(COMPILE.c) $(srcdir)/pex-djgpp.c $(OUTPUT_OPTION)
869 ./pex-msdos.$(objext): $(srcdir)/pex-msdos.c config.h $(INCDIR)/ansidecl.h \
870 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h \
871 $(INCDIR)/safe-ctype.h
872 if [ x"$(PICFLAG)" != x ]; then \
873 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-msdos.c -o pic/$@; \
875 $(COMPILE.c) $(srcdir)/pex-msdos.c $(OUTPUT_OPTION)
877 ./pex-one.$(objext): $(srcdir)/pex-one.c config.h $(INCDIR)/ansidecl.h \
878 $(INCDIR)/libiberty.h
879 if [ x"$(PICFLAG)" != x ]; then \
880 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-one.c -o pic/$@; \
882 $(COMPILE.c) $(srcdir)/pex-one.c $(OUTPUT_OPTION)
884 ./pex-unix.$(objext): $(srcdir)/pex-unix.c config.h $(INCDIR)/ansidecl.h \
885 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
886 if [ x"$(PICFLAG)" != x ]; then \
887 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-unix.c -o pic/$@; \
889 $(COMPILE.c) $(srcdir)/pex-unix.c $(OUTPUT_OPTION)
891 ./pex-win32.$(objext): $(srcdir)/pex-win32.c config.h $(INCDIR)/ansidecl.h \
892 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
893 if [ x"$(PICFLAG)" != x ]; then \
894 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-win32.c -o pic/$@; \
896 $(COMPILE.c) $(srcdir)/pex-win32.c $(OUTPUT_OPTION)
898 ./pexecute.$(objext): $(srcdir)/pexecute.c config.h $(INCDIR)/ansidecl.h \
899 $(INCDIR)/libiberty.h
900 if [ x"$(PICFLAG)" != x ]; then \
901 $(COMPILE.c) $(PICFLAG) $(srcdir)/pexecute.c -o pic/$@; \
903 $(COMPILE.c) $(srcdir)/pexecute.c $(OUTPUT_OPTION)
905 ./physmem.$(objext): $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \
906 $(INCDIR)/libiberty.h
907 if [ x"$(PICFLAG)" != x ]; then \
908 $(COMPILE.c) $(PICFLAG) $(srcdir)/physmem.c -o pic/$@; \
910 $(COMPILE.c) $(srcdir)/physmem.c $(OUTPUT_OPTION)
912 ./putenv.$(objext): $(srcdir)/putenv.c config.h $(INCDIR)/ansidecl.h
913 if [ x"$(PICFLAG)" != x ]; then \
914 $(COMPILE.c) $(PICFLAG) $(srcdir)/putenv.c -o pic/$@; \
916 $(COMPILE.c) $(srcdir)/putenv.c $(OUTPUT_OPTION)
918 ./random.$(objext): $(srcdir)/random.c $(INCDIR)/ansidecl.h
919 if [ x"$(PICFLAG)" != x ]; then \
920 $(COMPILE.c) $(PICFLAG) $(srcdir)/random.c -o pic/$@; \
922 $(COMPILE.c) $(srcdir)/random.c $(OUTPUT_OPTION)
924 ./regex.$(objext): $(srcdir)/regex.c config.h $(INCDIR)/ansidecl.h \
925 $(INCDIR)/xregex.h $(INCDIR)/xregex2.h
926 if [ x"$(PICFLAG)" != x ]; then \
927 $(COMPILE.c) $(PICFLAG) $(srcdir)/regex.c -o pic/$@; \
929 $(COMPILE.c) $(srcdir)/regex.c $(OUTPUT_OPTION)
931 ./rename.$(objext): $(srcdir)/rename.c config.h $(INCDIR)/ansidecl.h
932 if [ x"$(PICFLAG)" != x ]; then \
933 $(COMPILE.c) $(PICFLAG) $(srcdir)/rename.c -o pic/$@; \
935 $(COMPILE.c) $(srcdir)/rename.c $(OUTPUT_OPTION)
937 ./rindex.$(objext): $(srcdir)/rindex.c
938 if [ x"$(PICFLAG)" != x ]; then \
939 $(COMPILE.c) $(PICFLAG) $(srcdir)/rindex.c -o pic/$@; \
941 $(COMPILE.c) $(srcdir)/rindex.c $(OUTPUT_OPTION)
943 ./safe-ctype.$(objext): $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \
944 $(INCDIR)/safe-ctype.h
945 if [ x"$(PICFLAG)" != x ]; then \
946 $(COMPILE.c) $(PICFLAG) $(srcdir)/safe-ctype.c -o pic/$@; \
948 $(COMPILE.c) $(srcdir)/safe-ctype.c $(OUTPUT_OPTION)
950 ./setenv.$(objext): $(srcdir)/setenv.c config.h $(INCDIR)/ansidecl.h
951 if [ x"$(PICFLAG)" != x ]; then \
952 $(COMPILE.c) $(PICFLAG) $(srcdir)/setenv.c -o pic/$@; \
954 $(COMPILE.c) $(srcdir)/setenv.c $(OUTPUT_OPTION)
956 ./setproctitle.$(objext): $(srcdir)/setproctitle.c config.h $(INCDIR)/ansidecl.h
957 if [ x"$(PICFLAG)" != x ]; then \
958 $(COMPILE.c) $(PICFLAG) $(srcdir)/setproctitle.c -o pic/$@; \
960 $(COMPILE.c) $(srcdir)/setproctitle.c $(OUTPUT_OPTION)
962 ./sha1.$(objext): $(srcdir)/sha1.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/sha1.h
963 if [ x"$(PICFLAG)" != x ]; then \
964 $(COMPILE.c) $(PICFLAG) $(srcdir)/sha1.c -o pic/$@; \
966 $(COMPILE.c) $(srcdir)/sha1.c $(OUTPUT_OPTION)
968 ./sigsetmask.$(objext): $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h
969 if [ x"$(PICFLAG)" != x ]; then \
970 $(COMPILE.c) $(PICFLAG) $(srcdir)/sigsetmask.c -o pic/$@; \
972 $(COMPILE.c) $(srcdir)/sigsetmask.c $(OUTPUT_OPTION)
974 ./simple-object-coff.$(objext): $(srcdir)/simple-object-coff.c config.h \
975 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
976 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
977 if [ x"$(PICFLAG)" != x ]; then \
978 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-coff.c -o pic/$@; \
980 $(COMPILE.c) $(srcdir)/simple-object-coff.c $(OUTPUT_OPTION)
982 ./simple-object-elf.$(objext): $(srcdir)/simple-object-elf.c config.h \
983 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
984 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
985 if [ x"$(PICFLAG)" != x ]; then \
986 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-elf.c -o pic/$@; \
988 $(COMPILE.c) $(srcdir)/simple-object-elf.c $(OUTPUT_OPTION)
990 ./simple-object-mach-o.$(objext): $(srcdir)/simple-object-mach-o.c config.h \
991 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
992 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
993 if [ x"$(PICFLAG)" != x ]; then \
994 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-mach-o.c -o pic/$@; \
996 $(COMPILE.c) $(srcdir)/simple-object-mach-o.c $(OUTPUT_OPTION)
998 ./simple-object.$(objext): $(srcdir)/simple-object.c config.h \
999 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
1000 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
1001 if [ x"$(PICFLAG)" != x ]; then \
1002 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object.c -o pic/$@; \
1004 $(COMPILE.c) $(srcdir)/simple-object.c $(OUTPUT_OPTION)
1006 ./snprintf.$(objext): $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h
1007 if [ x"$(PICFLAG)" != x ]; then \
1008 $(COMPILE.c) $(PICFLAG) $(srcdir)/snprintf.c -o pic/$@; \
1010 $(COMPILE.c) $(srcdir)/snprintf.c $(OUTPUT_OPTION)
1012 ./sort.$(objext): $(srcdir)/sort.c config.h $(INCDIR)/ansidecl.h \
1013 $(INCDIR)/libiberty.h $(INCDIR)/sort.h
1014 if [ x"$(PICFLAG)" != x ]; then \
1015 $(COMPILE.c) $(PICFLAG) $(srcdir)/sort.c -o pic/$@; \
1017 $(COMPILE.c) $(srcdir)/sort.c $(OUTPUT_OPTION)
1019 ./spaces.$(objext): $(srcdir)/spaces.c config.h $(INCDIR)/ansidecl.h \
1020 $(INCDIR)/libiberty.h
1021 if [ x"$(PICFLAG)" != x ]; then \
1022 $(COMPILE.c) $(PICFLAG) $(srcdir)/spaces.c -o pic/$@; \
1024 $(COMPILE.c) $(srcdir)/spaces.c $(OUTPUT_OPTION)
1026 ./splay-tree.$(objext): $(srcdir)/splay-tree.c config.h $(INCDIR)/ansidecl.h \
1027 $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h
1028 if [ x"$(PICFLAG)" != x ]; then \
1029 $(COMPILE.c) $(PICFLAG) $(srcdir)/splay-tree.c -o pic/$@; \
1031 $(COMPILE.c) $(srcdir)/splay-tree.c $(OUTPUT_OPTION)
1033 ./stpcpy.$(objext): $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h
1034 if [ x"$(PICFLAG)" != x ]; then \
1035 $(COMPILE.c) $(PICFLAG) $(srcdir)/stpcpy.c -o pic/$@; \
1037 $(COMPILE.c) $(srcdir)/stpcpy.c $(OUTPUT_OPTION)
1039 ./stpncpy.$(objext): $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h
1040 if [ x"$(PICFLAG)" != x ]; then \
1041 $(COMPILE.c) $(PICFLAG) $(srcdir)/stpncpy.c -o pic/$@; \
1043 $(COMPILE.c) $(srcdir)/stpncpy.c $(OUTPUT_OPTION)
1045 ./strcasecmp.$(objext): $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h
1046 if [ x"$(PICFLAG)" != x ]; then \
1047 $(COMPILE.c) $(PICFLAG) $(srcdir)/strcasecmp.c -o pic/$@; \
1049 $(COMPILE.c) $(srcdir)/strcasecmp.c $(OUTPUT_OPTION)
1051 ./strchr.$(objext): $(srcdir)/strchr.c $(INCDIR)/ansidecl.h
1052 if [ x"$(PICFLAG)" != x ]; then \
1053 $(COMPILE.c) $(PICFLAG) $(srcdir)/strchr.c -o pic/$@; \
1055 $(COMPILE.c) $(srcdir)/strchr.c $(OUTPUT_OPTION)
1057 ./strdup.$(objext): $(srcdir)/strdup.c $(INCDIR)/ansidecl.h
1058 if [ x"$(PICFLAG)" != x ]; then \
1059 $(COMPILE.c) $(PICFLAG) $(srcdir)/strdup.c -o pic/$@; \
1061 $(COMPILE.c) $(srcdir)/strdup.c $(OUTPUT_OPTION)
1063 ./strerror.$(objext): $(srcdir)/strerror.c config.h $(INCDIR)/ansidecl.h \
1064 $(INCDIR)/libiberty.h
1065 if [ x"$(PICFLAG)" != x ]; then \
1066 $(COMPILE.c) $(PICFLAG) $(srcdir)/strerror.c -o pic/$@; \
1068 $(COMPILE.c) $(srcdir)/strerror.c $(OUTPUT_OPTION)
1070 ./strncasecmp.$(objext): $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h
1071 if [ x"$(PICFLAG)" != x ]; then \
1072 $(COMPILE.c) $(PICFLAG) $(srcdir)/strncasecmp.c -o pic/$@; \
1074 $(COMPILE.c) $(srcdir)/strncasecmp.c $(OUTPUT_OPTION)
1076 ./strncmp.$(objext): $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h
1077 if [ x"$(PICFLAG)" != x ]; then \
1078 $(COMPILE.c) $(PICFLAG) $(srcdir)/strncmp.c -o pic/$@; \
1080 $(COMPILE.c) $(srcdir)/strncmp.c $(OUTPUT_OPTION)
1082 ./strndup.$(objext): $(srcdir)/strndup.c $(INCDIR)/ansidecl.h
1083 if [ x"$(PICFLAG)" != x ]; then \
1084 $(COMPILE.c) $(PICFLAG) $(srcdir)/strndup.c -o pic/$@; \
1086 $(COMPILE.c) $(srcdir)/strndup.c $(OUTPUT_OPTION)
1088 ./strrchr.$(objext): $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h
1089 if [ x"$(PICFLAG)" != x ]; then \
1090 $(COMPILE.c) $(PICFLAG) $(srcdir)/strrchr.c -o pic/$@; \
1092 $(COMPILE.c) $(srcdir)/strrchr.c $(OUTPUT_OPTION)
1094 ./strsignal.$(objext): $(srcdir)/strsignal.c config.h $(INCDIR)/ansidecl.h \
1095 $(INCDIR)/libiberty.h
1096 if [ x"$(PICFLAG)" != x ]; then \
1097 $(COMPILE.c) $(PICFLAG) $(srcdir)/strsignal.c -o pic/$@; \
1099 $(COMPILE.c) $(srcdir)/strsignal.c $(OUTPUT_OPTION)
1101 ./strstr.$(objext): $(srcdir)/strstr.c
1102 if [ x"$(PICFLAG)" != x ]; then \
1103 $(COMPILE.c) $(PICFLAG) $(srcdir)/strstr.c -o pic/$@; \
1105 $(COMPILE.c) $(srcdir)/strstr.c $(OUTPUT_OPTION)
1107 ./strtod.$(objext): $(srcdir)/strtod.c $(INCDIR)/ansidecl.h \
1108 $(INCDIR)/safe-ctype.h
1109 if [ x"$(PICFLAG)" != x ]; then \
1110 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtod.c -o pic/$@; \
1112 $(COMPILE.c) $(srcdir)/strtod.c $(OUTPUT_OPTION)
1114 ./strtol.$(objext): $(srcdir)/strtol.c config.h $(INCDIR)/safe-ctype.h
1115 if [ x"$(PICFLAG)" != x ]; then \
1116 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtol.c -o pic/$@; \
1118 $(COMPILE.c) $(srcdir)/strtol.c $(OUTPUT_OPTION)
1120 ./strtoul.$(objext): $(srcdir)/strtoul.c config.h $(INCDIR)/ansidecl.h \
1121 $(INCDIR)/safe-ctype.h
1122 if [ x"$(PICFLAG)" != x ]; then \
1123 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoul.c -o pic/$@; \
1125 $(COMPILE.c) $(srcdir)/strtoul.c $(OUTPUT_OPTION)
1127 ./strverscmp.$(objext): $(srcdir)/strverscmp.c $(INCDIR)/ansidecl.h \
1128 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
1129 if [ x"$(PICFLAG)" != x ]; then \
1130 $(COMPILE.c) $(PICFLAG) $(srcdir)/strverscmp.c -o pic/$@; \
1132 $(COMPILE.c) $(srcdir)/strverscmp.c $(OUTPUT_OPTION)
1134 ./tmpnam.$(objext): $(srcdir)/tmpnam.c
1135 if [ x"$(PICFLAG)" != x ]; then \
1136 $(COMPILE.c) $(PICFLAG) $(srcdir)/tmpnam.c -o pic/$@; \
1138 $(COMPILE.c) $(srcdir)/tmpnam.c $(OUTPUT_OPTION)
1140 ./unlink-if-ordinary.$(objext): $(srcdir)/unlink-if-ordinary.c config.h \
1141 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
1142 if [ x"$(PICFLAG)" != x ]; then \
1143 $(COMPILE.c) $(PICFLAG) $(srcdir)/unlink-if-ordinary.c -o pic/$@; \
1145 $(COMPILE.c) $(srcdir)/unlink-if-ordinary.c $(OUTPUT_OPTION)
1147 ./vasprintf.$(objext): $(srcdir)/vasprintf.c config.h $(INCDIR)/ansidecl.h \
1148 $(INCDIR)/libiberty.h
1149 if [ x"$(PICFLAG)" != x ]; then \
1150 $(COMPILE.c) $(PICFLAG) $(srcdir)/vasprintf.c -o pic/$@; \
1152 $(COMPILE.c) $(srcdir)/vasprintf.c $(OUTPUT_OPTION)
1154 ./vfork.$(objext): $(srcdir)/vfork.c $(INCDIR)/ansidecl.h
1155 if [ x"$(PICFLAG)" != x ]; then \
1156 $(COMPILE.c) $(PICFLAG) $(srcdir)/vfork.c -o pic/$@; \
1158 $(COMPILE.c) $(srcdir)/vfork.c $(OUTPUT_OPTION)
1160 ./vfprintf.$(objext): $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h
1161 if [ x"$(PICFLAG)" != x ]; then \
1162 $(COMPILE.c) $(PICFLAG) $(srcdir)/vfprintf.c -o pic/$@; \
1164 $(COMPILE.c) $(srcdir)/vfprintf.c $(OUTPUT_OPTION)
1166 ./vprintf.$(objext): $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h
1167 if [ x"$(PICFLAG)" != x ]; then \
1168 $(COMPILE.c) $(PICFLAG) $(srcdir)/vprintf.c -o pic/$@; \
1170 $(COMPILE.c) $(srcdir)/vprintf.c $(OUTPUT_OPTION)
1172 ./vsnprintf.$(objext): $(srcdir)/vsnprintf.c config.h $(INCDIR)/ansidecl.h \
1173 $(INCDIR)/libiberty.h
1174 if [ x"$(PICFLAG)" != x ]; then \
1175 $(COMPILE.c) $(PICFLAG) $(srcdir)/vsnprintf.c -o pic/$@; \
1177 $(COMPILE.c) $(srcdir)/vsnprintf.c $(OUTPUT_OPTION)
1179 ./vsprintf.$(objext): $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h
1180 if [ x"$(PICFLAG)" != x ]; then \
1181 $(COMPILE.c) $(PICFLAG) $(srcdir)/vsprintf.c -o pic/$@; \
1183 $(COMPILE.c) $(srcdir)/vsprintf.c $(OUTPUT_OPTION)
1185 ./waitpid.$(objext): $(srcdir)/waitpid.c config.h $(INCDIR)/ansidecl.h
1186 if [ x"$(PICFLAG)" != x ]; then \
1187 $(COMPILE.c) $(PICFLAG) $(srcdir)/waitpid.c -o pic/$@; \
1189 $(COMPILE.c) $(srcdir)/waitpid.c $(OUTPUT_OPTION)
1191 ./xatexit.$(objext): $(srcdir)/xatexit.c config.h $(INCDIR)/ansidecl.h \
1192 $(INCDIR)/libiberty.h
1193 if [ x"$(PICFLAG)" != x ]; then \
1194 $(COMPILE.c) $(PICFLAG) $(srcdir)/xatexit.c -o pic/$@; \
1196 $(COMPILE.c) $(srcdir)/xatexit.c $(OUTPUT_OPTION)
1198 ./xexit.$(objext): $(srcdir)/xexit.c config.h $(INCDIR)/ansidecl.h \
1199 $(INCDIR)/libiberty.h
1200 if [ x"$(PICFLAG)" != x ]; then \
1201 $(COMPILE.c) $(PICFLAG) $(srcdir)/xexit.c -o pic/$@; \
1203 $(COMPILE.c) $(srcdir)/xexit.c $(OUTPUT_OPTION)
1205 ./xmalloc.$(objext): $(srcdir)/xmalloc.c config.h $(INCDIR)/ansidecl.h \
1206 $(INCDIR)/libiberty.h
1207 if [ x"$(PICFLAG)" != x ]; then \
1208 $(COMPILE.c) $(PICFLAG) $(srcdir)/xmalloc.c -o pic/$@; \
1210 $(COMPILE.c) $(srcdir)/xmalloc.c $(OUTPUT_OPTION)
1212 ./xmemdup.$(objext): $(srcdir)/xmemdup.c config.h $(INCDIR)/ansidecl.h \
1213 $(INCDIR)/libiberty.h
1214 if [ x"$(PICFLAG)" != x ]; then \
1215 $(COMPILE.c) $(PICFLAG) $(srcdir)/xmemdup.c -o pic/$@; \
1217 $(COMPILE.c) $(srcdir)/xmemdup.c $(OUTPUT_OPTION)
1219 ./xstrdup.$(objext): $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \
1220 $(INCDIR)/libiberty.h
1221 if [ x"$(PICFLAG)" != x ]; then \
1222 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrdup.c -o pic/$@; \
1224 $(COMPILE.c) $(srcdir)/xstrdup.c $(OUTPUT_OPTION)
1226 ./xstrerror.$(objext): $(srcdir)/xstrerror.c config.h $(INCDIR)/ansidecl.h \
1227 $(INCDIR)/libiberty.h
1228 if [ x"$(PICFLAG)" != x ]; then \
1229 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrerror.c -o pic/$@; \
1231 $(COMPILE.c) $(srcdir)/xstrerror.c $(OUTPUT_OPTION)
1233 ./xstrndup.$(objext): $(srcdir)/xstrndup.c config.h $(INCDIR)/ansidecl.h \
1234 $(INCDIR)/libiberty.h
1235 if [ x"$(PICFLAG)" != x ]; then \
1236 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrndup.c -o pic/$@; \
1238 $(COMPILE.c) $(srcdir)/xstrndup.c $(OUTPUT_OPTION)