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
344 install-strip: install
346 .PHONY: install install-strip
348 # This is tricky. Even though CC in the Makefile contains
349 # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
350 # default multilib, so we have to take CFLAGS into account as well,
351 # since it will be passed the multilib flags.
352 MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
353 install_to_libdir: all
354 ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR)
355 $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n
356 ( cd $(DESTDIR)$(libdir)/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n )
357 mv -f $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)
358 if test -n "${target_header_dir}"; then \
359 case "${target_header_dir}" in \
360 /*) thd=${target_header_dir};; \
361 *) thd=${includedir}/${target_header_dir};; \
363 ${mkinstalldirs} $(DESTDIR)$${thd}; \
364 for h in ${INSTALLED_HEADERS}; do \
365 ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \
368 @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
370 install_to_tooldir: all
371 ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)
372 $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n
373 ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n; $(RANLIB) $(TARGETLIB)n )
374 mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)
375 @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
377 # required-list was used when building a shared bfd/opcodes/libiberty
378 # library. I don't know if it used by anything currently.
379 required-list: Makefile
380 echo $(REQUIRED_OFILES) > required-list
383 if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \
388 .PHONY: all etags tags ls clean stage1 stage2
390 etags tags: TAGS etags-subdir
393 etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done`
395 # The standalone demangler (c++filt) has been moved to binutils.
396 # But make this target work anyway for demangler hacking.
397 demangle: $(ALL) $(srcdir)/cp-demangle.c
398 @echo "The standalone demangler, now named c++filt, is now"
399 @echo "a part of binutils."
400 $(CC) @DEFS@ $(CFLAGS) $(CPPFLAGS) -I. -I$(INCDIR) $(HDEFINES) \
401 $(srcdir)/cp-demangle.c -DSTANDALONE_DEMANGLER $(TARGETLIB) -o $@
404 @echo Makefile $(CFILES)
406 # Various targets for maintainers.
409 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) missing $(CFILES) $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
411 maint-buildall : $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
414 maint-undoc : $(srcdir)/functions.texi
415 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc
418 @$(PERL) $(srcdir)/maint-tool -s $(srcdir) deps $(INCDIR)
420 # Need to deal with profiled libraries, too.
422 # Cleaning has to be done carefully to ensure that we don't clean our SUBDIRS
423 # multiple times, hence our explicit recursion with an empty SUBDIRS.
424 mostlyclean: mostlyclean-subdir
425 -rm -rf *.$(objext) pic core errs \#* *.E a.out
426 -rm -f errors dummy config.h stamp-*
427 -rm -f $(CONFIG_H) stamp-picdir
428 -rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky
429 -rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg
430 -rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.vr
432 @$(MULTICLEAN) multi-clean DO=mostlyclean
434 $(MAKE) SUBDIRS="" mostlyclean
435 -rm -f *.a required-list tmpmulti.out
436 -rm -f libiberty.dvi libiberty.pdf libiberty.info* libiberty.html
437 @$(MULTICLEAN) multi-clean DO=clean
438 distclean: distclean-subdir
439 $(MAKE) SUBDIRS="" clean
440 @$(MULTICLEAN) multi-clean DO=distclean
441 -rm -f *~ Makefile config.cache config.status xhost-mkfrag TAGS multilib.out
443 -rmdir testsuite 2>/dev/null
444 maintainer-clean realclean: maintainer-clean-subdir
445 $(MAKE) SUBDIRS="" distclean
449 Makefile: $(srcdir)/Makefile.in config.status
450 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
452 # Depending on Makefile makes sure that config.status has been re-run
453 # if needed. This prevents problems with parallel builds.
454 config.h: stamp-h ; @true
455 stamp-h: $(srcdir)/config.in config.status Makefile
456 CONFIG_FILES= CONFIG_HEADERS=config.h:$(srcdir)/config.in $(SHELL) ./config.status
458 config.status: $(srcdir)/configure
459 $(SHELL) ./config.status --recheck
462 configure_deps = $(srcdir)/aclocal.m4 \
463 $(srcdir)/../config/acx.m4 \
464 $(srcdir)/../config/no-executables.m4 \
465 $(srcdir)/../config/override.m4 \
466 $(srcdir)/../config/warnings.m4 \
468 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(configure_deps)
469 cd $(srcdir) && $(AUTOCONF)
471 # Depending on config.h makes sure that config.status has been re-run
472 # if needed. This prevents problems with parallel builds, in case
473 # subdirectories need to run config.status also.
474 all-subdir check-subdir installcheck-subdir info-subdir \
475 install-info-subdir clean-info-subdir dvi-subdir pdf-subdir install-subdir \
476 etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
477 maintainer-clean-subdir: config.h
478 @subdirs='$(SUBDIRS)'; \
479 target=`echo $@ | sed -e 's/-subdir//'`; \
480 for dir in $$subdirs ; do \
481 cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \
484 $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS): stamp-picdir
485 $(CONFIGURED_OFILES): stamp-picdir
487 # Don't export variables to the environment, in order to not confuse
491 # The dependencies in the remainder of this file are automatically
492 # generated by "make maint-deps". Manual edits will be lost.
494 ./_doprnt.$(objext): $(srcdir)/_doprnt.c config.h $(INCDIR)/ansidecl.h \
495 $(INCDIR)/safe-ctype.h
496 if [ x"$(PICFLAG)" != x ]; then \
497 $(COMPILE.c) $(PICFLAG) $(srcdir)/_doprnt.c -o pic/$@; \
499 $(COMPILE.c) $(srcdir)/_doprnt.c $(OUTPUT_OPTION)
501 ./alloca.$(objext): $(srcdir)/alloca.c config.h $(INCDIR)/ansidecl.h \
502 $(INCDIR)/libiberty.h
503 if [ x"$(PICFLAG)" != x ]; then \
504 $(COMPILE.c) $(PICFLAG) $(srcdir)/alloca.c -o pic/$@; \
506 $(COMPILE.c) $(srcdir)/alloca.c $(OUTPUT_OPTION)
508 ./argv.$(objext): $(srcdir)/argv.c config.h $(INCDIR)/ansidecl.h \
509 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
510 if [ x"$(PICFLAG)" != x ]; then \
511 $(COMPILE.c) $(PICFLAG) $(srcdir)/argv.c -o pic/$@; \
513 $(COMPILE.c) $(srcdir)/argv.c $(OUTPUT_OPTION)
515 ./asprintf.$(objext): $(srcdir)/asprintf.c config.h $(INCDIR)/ansidecl.h \
516 $(INCDIR)/libiberty.h
517 if [ x"$(PICFLAG)" != x ]; then \
518 $(COMPILE.c) $(PICFLAG) $(srcdir)/asprintf.c -o pic/$@; \
520 $(COMPILE.c) $(srcdir)/asprintf.c $(OUTPUT_OPTION)
522 ./atexit.$(objext): $(srcdir)/atexit.c config.h
523 if [ x"$(PICFLAG)" != x ]; then \
524 $(COMPILE.c) $(PICFLAG) $(srcdir)/atexit.c -o pic/$@; \
526 $(COMPILE.c) $(srcdir)/atexit.c $(OUTPUT_OPTION)
528 ./basename.$(objext): $(srcdir)/basename.c config.h $(INCDIR)/ansidecl.h \
529 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
530 if [ x"$(PICFLAG)" != x ]; then \
531 $(COMPILE.c) $(PICFLAG) $(srcdir)/basename.c -o pic/$@; \
533 $(COMPILE.c) $(srcdir)/basename.c $(OUTPUT_OPTION)
535 ./bcmp.$(objext): $(srcdir)/bcmp.c
536 if [ x"$(PICFLAG)" != x ]; then \
537 $(COMPILE.c) $(PICFLAG) $(srcdir)/bcmp.c -o pic/$@; \
539 $(COMPILE.c) $(srcdir)/bcmp.c $(OUTPUT_OPTION)
541 ./bcopy.$(objext): $(srcdir)/bcopy.c
542 if [ x"$(PICFLAG)" != x ]; then \
543 $(COMPILE.c) $(PICFLAG) $(srcdir)/bcopy.c -o pic/$@; \
545 $(COMPILE.c) $(srcdir)/bcopy.c $(OUTPUT_OPTION)
547 ./bsearch.$(objext): $(srcdir)/bsearch.c config.h $(INCDIR)/ansidecl.h
548 if [ x"$(PICFLAG)" != x ]; then \
549 $(COMPILE.c) $(PICFLAG) $(srcdir)/bsearch.c -o pic/$@; \
551 $(COMPILE.c) $(srcdir)/bsearch.c $(OUTPUT_OPTION)
553 ./bzero.$(objext): $(srcdir)/bzero.c
554 if [ x"$(PICFLAG)" != x ]; then \
555 $(COMPILE.c) $(PICFLAG) $(srcdir)/bzero.c -o pic/$@; \
557 $(COMPILE.c) $(srcdir)/bzero.c $(OUTPUT_OPTION)
559 ./calloc.$(objext): $(srcdir)/calloc.c $(INCDIR)/ansidecl.h
560 if [ x"$(PICFLAG)" != x ]; then \
561 $(COMPILE.c) $(PICFLAG) $(srcdir)/calloc.c -o pic/$@; \
563 $(COMPILE.c) $(srcdir)/calloc.c $(OUTPUT_OPTION)
565 ./choose-temp.$(objext): $(srcdir)/choose-temp.c config.h $(INCDIR)/ansidecl.h \
566 $(INCDIR)/libiberty.h
567 if [ x"$(PICFLAG)" != x ]; then \
568 $(COMPILE.c) $(PICFLAG) $(srcdir)/choose-temp.c -o pic/$@; \
570 $(COMPILE.c) $(srcdir)/choose-temp.c $(OUTPUT_OPTION)
572 ./clock.$(objext): $(srcdir)/clock.c config.h
573 if [ x"$(PICFLAG)" != x ]; then \
574 $(COMPILE.c) $(PICFLAG) $(srcdir)/clock.c -o pic/$@; \
576 $(COMPILE.c) $(srcdir)/clock.c $(OUTPUT_OPTION)
578 ./concat.$(objext): $(srcdir)/concat.c config.h $(INCDIR)/ansidecl.h \
579 $(INCDIR)/libiberty.h
580 if [ x"$(PICFLAG)" != x ]; then \
581 $(COMPILE.c) $(PICFLAG) $(srcdir)/concat.c -o pic/$@; \
583 $(COMPILE.c) $(srcdir)/concat.c $(OUTPUT_OPTION)
585 ./copysign.$(objext): $(srcdir)/copysign.c $(INCDIR)/ansidecl.h
586 if [ x"$(PICFLAG)" != x ]; then \
587 $(COMPILE.c) $(PICFLAG) $(srcdir)/copysign.c -o pic/$@; \
589 $(COMPILE.c) $(srcdir)/copysign.c $(OUTPUT_OPTION)
591 ./cp-demangle.$(objext): $(srcdir)/cp-demangle.c config.h $(INCDIR)/ansidecl.h \
592 $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \
593 $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h
594 if [ x"$(PICFLAG)" != x ]; then \
595 $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demangle.c -o pic/$@; \
597 $(COMPILE.c) $(srcdir)/cp-demangle.c $(OUTPUT_OPTION)
599 ./cp-demint.$(objext): $(srcdir)/cp-demint.c config.h $(INCDIR)/ansidecl.h \
600 $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \
601 $(INCDIR)/libiberty.h
602 if [ x"$(PICFLAG)" != x ]; then \
603 $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demint.c -o pic/$@; \
605 $(COMPILE.c) $(srcdir)/cp-demint.c $(OUTPUT_OPTION)
607 ./cplus-dem.$(objext): $(srcdir)/cplus-dem.c config.h $(INCDIR)/ansidecl.h \
608 $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
609 $(INCDIR)/safe-ctype.h
610 if [ x"$(PICFLAG)" != x ]; then \
611 $(COMPILE.c) $(PICFLAG) $(srcdir)/cplus-dem.c -o pic/$@; \
613 $(COMPILE.c) $(srcdir)/cplus-dem.c $(OUTPUT_OPTION)
615 ./crc32.$(objext): $(srcdir)/crc32.c config.h $(INCDIR)/ansidecl.h \
616 $(INCDIR)/libiberty.h
617 if [ x"$(PICFLAG)" != x ]; then \
618 $(COMPILE.c) $(PICFLAG) $(srcdir)/crc32.c -o pic/$@; \
620 $(COMPILE.c) $(srcdir)/crc32.c $(OUTPUT_OPTION)
622 ./dyn-string.$(objext): $(srcdir)/dyn-string.c config.h $(INCDIR)/ansidecl.h \
623 $(INCDIR)/dyn-string.h $(INCDIR)/libiberty.h
624 if [ x"$(PICFLAG)" != x ]; then \
625 $(COMPILE.c) $(PICFLAG) $(srcdir)/dyn-string.c -o pic/$@; \
627 $(COMPILE.c) $(srcdir)/dyn-string.c $(OUTPUT_OPTION)
629 ./fdmatch.$(objext): $(srcdir)/fdmatch.c config.h $(INCDIR)/ansidecl.h \
630 $(INCDIR)/libiberty.h
631 if [ x"$(PICFLAG)" != x ]; then \
632 $(COMPILE.c) $(PICFLAG) $(srcdir)/fdmatch.c -o pic/$@; \
634 $(COMPILE.c) $(srcdir)/fdmatch.c $(OUTPUT_OPTION)
636 ./ffs.$(objext): $(srcdir)/ffs.c
637 if [ x"$(PICFLAG)" != x ]; then \
638 $(COMPILE.c) $(PICFLAG) $(srcdir)/ffs.c -o pic/$@; \
640 $(COMPILE.c) $(srcdir)/ffs.c $(OUTPUT_OPTION)
642 ./fibheap.$(objext): $(srcdir)/fibheap.c config.h $(INCDIR)/ansidecl.h \
643 $(INCDIR)/fibheap.h $(INCDIR)/libiberty.h
644 if [ x"$(PICFLAG)" != x ]; then \
645 $(COMPILE.c) $(PICFLAG) $(srcdir)/fibheap.c -o pic/$@; \
647 $(COMPILE.c) $(srcdir)/fibheap.c $(OUTPUT_OPTION)
649 ./filename_cmp.$(objext): $(srcdir)/filename_cmp.c config.h $(INCDIR)/filenames.h \
650 $(INCDIR)/safe-ctype.h
651 if [ x"$(PICFLAG)" != x ]; then \
652 $(COMPILE.c) $(PICFLAG) $(srcdir)/filename_cmp.c -o pic/$@; \
654 $(COMPILE.c) $(srcdir)/filename_cmp.c $(OUTPUT_OPTION)
656 ./floatformat.$(objext): $(srcdir)/floatformat.c config.h $(INCDIR)/ansidecl.h \
657 $(INCDIR)/floatformat.h $(INCDIR)/libiberty.h
658 if [ x"$(PICFLAG)" != x ]; then \
659 $(COMPILE.c) $(PICFLAG) $(srcdir)/floatformat.c -o pic/$@; \
661 $(COMPILE.c) $(srcdir)/floatformat.c $(OUTPUT_OPTION)
663 ./fnmatch.$(objext): $(srcdir)/fnmatch.c config.h $(INCDIR)/fnmatch.h \
664 $(INCDIR)/safe-ctype.h
665 if [ x"$(PICFLAG)" != x ]; then \
666 $(COMPILE.c) $(PICFLAG) $(srcdir)/fnmatch.c -o pic/$@; \
668 $(COMPILE.c) $(srcdir)/fnmatch.c $(OUTPUT_OPTION)
670 ./fopen_unlocked.$(objext): $(srcdir)/fopen_unlocked.c config.h \
671 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
672 if [ x"$(PICFLAG)" != x ]; then \
673 $(COMPILE.c) $(PICFLAG) $(srcdir)/fopen_unlocked.c -o pic/$@; \
675 $(COMPILE.c) $(srcdir)/fopen_unlocked.c $(OUTPUT_OPTION)
677 ./getcwd.$(objext): $(srcdir)/getcwd.c config.h
678 if [ x"$(PICFLAG)" != x ]; then \
679 $(COMPILE.c) $(PICFLAG) $(srcdir)/getcwd.c -o pic/$@; \
681 $(COMPILE.c) $(srcdir)/getcwd.c $(OUTPUT_OPTION)
683 ./getopt.$(objext): $(srcdir)/getopt.c config.h $(INCDIR)/ansidecl.h \
685 if [ x"$(PICFLAG)" != x ]; then \
686 $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt.c -o pic/$@; \
688 $(COMPILE.c) $(srcdir)/getopt.c $(OUTPUT_OPTION)
690 ./getopt1.$(objext): $(srcdir)/getopt1.c config.h $(INCDIR)/getopt.h
691 if [ x"$(PICFLAG)" != x ]; then \
692 $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt1.c -o pic/$@; \
694 $(COMPILE.c) $(srcdir)/getopt1.c $(OUTPUT_OPTION)
696 ./getpagesize.$(objext): $(srcdir)/getpagesize.c config.h
697 if [ x"$(PICFLAG)" != x ]; then \
698 $(COMPILE.c) $(PICFLAG) $(srcdir)/getpagesize.c -o pic/$@; \
700 $(COMPILE.c) $(srcdir)/getpagesize.c $(OUTPUT_OPTION)
702 ./getpwd.$(objext): $(srcdir)/getpwd.c config.h $(INCDIR)/ansidecl.h \
703 $(INCDIR)/libiberty.h
704 if [ x"$(PICFLAG)" != x ]; then \
705 $(COMPILE.c) $(PICFLAG) $(srcdir)/getpwd.c -o pic/$@; \
707 $(COMPILE.c) $(srcdir)/getpwd.c $(OUTPUT_OPTION)
709 ./getruntime.$(objext): $(srcdir)/getruntime.c config.h $(INCDIR)/ansidecl.h \
710 $(INCDIR)/libiberty.h
711 if [ x"$(PICFLAG)" != x ]; then \
712 $(COMPILE.c) $(PICFLAG) $(srcdir)/getruntime.c -o pic/$@; \
714 $(COMPILE.c) $(srcdir)/getruntime.c $(OUTPUT_OPTION)
716 ./gettimeofday.$(objext): $(srcdir)/gettimeofday.c config.h $(INCDIR)/ansidecl.h \
717 $(INCDIR)/libiberty.h
718 if [ x"$(PICFLAG)" != x ]; then \
719 $(COMPILE.c) $(PICFLAG) $(srcdir)/gettimeofday.c -o pic/$@; \
721 $(COMPILE.c) $(srcdir)/gettimeofday.c $(OUTPUT_OPTION)
723 ./hashtab.$(objext): $(srcdir)/hashtab.c config.h $(INCDIR)/ansidecl.h \
724 $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h
725 if [ x"$(PICFLAG)" != x ]; then \
726 $(COMPILE.c) $(PICFLAG) $(srcdir)/hashtab.c -o pic/$@; \
728 $(COMPILE.c) $(srcdir)/hashtab.c $(OUTPUT_OPTION)
730 ./hex.$(objext): $(srcdir)/hex.c config.h $(INCDIR)/ansidecl.h \
731 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
732 if [ x"$(PICFLAG)" != x ]; then \
733 $(COMPILE.c) $(PICFLAG) $(srcdir)/hex.c -o pic/$@; \
735 $(COMPILE.c) $(srcdir)/hex.c $(OUTPUT_OPTION)
737 ./index.$(objext): $(srcdir)/index.c
738 if [ x"$(PICFLAG)" != x ]; then \
739 $(COMPILE.c) $(PICFLAG) $(srcdir)/index.c -o pic/$@; \
741 $(COMPILE.c) $(srcdir)/index.c $(OUTPUT_OPTION)
743 ./insque.$(objext): $(srcdir)/insque.c
744 if [ x"$(PICFLAG)" != x ]; then \
745 $(COMPILE.c) $(PICFLAG) $(srcdir)/insque.c -o pic/$@; \
747 $(COMPILE.c) $(srcdir)/insque.c $(OUTPUT_OPTION)
749 ./lbasename.$(objext): $(srcdir)/lbasename.c config.h $(INCDIR)/ansidecl.h \
750 $(INCDIR)/filenames.h $(INCDIR)/libiberty.h \
751 $(INCDIR)/safe-ctype.h
752 if [ x"$(PICFLAG)" != x ]; then \
753 $(COMPILE.c) $(PICFLAG) $(srcdir)/lbasename.c -o pic/$@; \
755 $(COMPILE.c) $(srcdir)/lbasename.c $(OUTPUT_OPTION)
757 ./lrealpath.$(objext): $(srcdir)/lrealpath.c config.h $(INCDIR)/ansidecl.h \
758 $(INCDIR)/libiberty.h
759 if [ x"$(PICFLAG)" != x ]; then \
760 $(COMPILE.c) $(PICFLAG) $(srcdir)/lrealpath.c -o pic/$@; \
762 $(COMPILE.c) $(srcdir)/lrealpath.c $(OUTPUT_OPTION)
764 ./make-relative-prefix.$(objext): $(srcdir)/make-relative-prefix.c config.h \
765 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
766 if [ x"$(PICFLAG)" != x ]; then \
767 $(COMPILE.c) $(PICFLAG) $(srcdir)/make-relative-prefix.c -o pic/$@; \
769 $(COMPILE.c) $(srcdir)/make-relative-prefix.c $(OUTPUT_OPTION)
771 ./make-temp-file.$(objext): $(srcdir)/make-temp-file.c config.h \
772 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
773 if [ x"$(PICFLAG)" != x ]; then \
774 $(COMPILE.c) $(PICFLAG) $(srcdir)/make-temp-file.c -o pic/$@; \
776 $(COMPILE.c) $(srcdir)/make-temp-file.c $(OUTPUT_OPTION)
778 ./md5.$(objext): $(srcdir)/md5.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h
779 if [ x"$(PICFLAG)" != x ]; then \
780 $(COMPILE.c) $(PICFLAG) $(srcdir)/md5.c -o pic/$@; \
782 $(COMPILE.c) $(srcdir)/md5.c $(OUTPUT_OPTION)
784 ./memchr.$(objext): $(srcdir)/memchr.c $(INCDIR)/ansidecl.h
785 if [ x"$(PICFLAG)" != x ]; then \
786 $(COMPILE.c) $(PICFLAG) $(srcdir)/memchr.c -o pic/$@; \
788 $(COMPILE.c) $(srcdir)/memchr.c $(OUTPUT_OPTION)
790 ./memcmp.$(objext): $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h
791 if [ x"$(PICFLAG)" != x ]; then \
792 $(COMPILE.c) $(PICFLAG) $(srcdir)/memcmp.c -o pic/$@; \
794 $(COMPILE.c) $(srcdir)/memcmp.c $(OUTPUT_OPTION)
796 ./memcpy.$(objext): $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h
797 if [ x"$(PICFLAG)" != x ]; then \
798 $(COMPILE.c) $(PICFLAG) $(srcdir)/memcpy.c -o pic/$@; \
800 $(COMPILE.c) $(srcdir)/memcpy.c $(OUTPUT_OPTION)
802 ./memmem.$(objext): $(srcdir)/memmem.c config.h
803 if [ x"$(PICFLAG)" != x ]; then \
804 $(COMPILE.c) $(PICFLAG) $(srcdir)/memmem.c -o pic/$@; \
806 $(COMPILE.c) $(srcdir)/memmem.c $(OUTPUT_OPTION)
808 ./memmove.$(objext): $(srcdir)/memmove.c $(INCDIR)/ansidecl.h
809 if [ x"$(PICFLAG)" != x ]; then \
810 $(COMPILE.c) $(PICFLAG) $(srcdir)/memmove.c -o pic/$@; \
812 $(COMPILE.c) $(srcdir)/memmove.c $(OUTPUT_OPTION)
814 ./mempcpy.$(objext): $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h
815 if [ x"$(PICFLAG)" != x ]; then \
816 $(COMPILE.c) $(PICFLAG) $(srcdir)/mempcpy.c -o pic/$@; \
818 $(COMPILE.c) $(srcdir)/mempcpy.c $(OUTPUT_OPTION)
820 ./memset.$(objext): $(srcdir)/memset.c $(INCDIR)/ansidecl.h
821 if [ x"$(PICFLAG)" != x ]; then \
822 $(COMPILE.c) $(PICFLAG) $(srcdir)/memset.c -o pic/$@; \
824 $(COMPILE.c) $(srcdir)/memset.c $(OUTPUT_OPTION)
826 ./mkstemps.$(objext): $(srcdir)/mkstemps.c config.h $(INCDIR)/ansidecl.h
827 if [ x"$(PICFLAG)" != x ]; then \
828 $(COMPILE.c) $(PICFLAG) $(srcdir)/mkstemps.c -o pic/$@; \
830 $(COMPILE.c) $(srcdir)/mkstemps.c $(OUTPUT_OPTION)
832 ./msdos.$(objext): $(srcdir)/msdos.c
833 if [ x"$(PICFLAG)" != x ]; then \
834 $(COMPILE.c) $(PICFLAG) $(srcdir)/msdos.c -o pic/$@; \
836 $(COMPILE.c) $(srcdir)/msdos.c $(OUTPUT_OPTION)
838 ./objalloc.$(objext): $(srcdir)/objalloc.c config.h $(INCDIR)/ansidecl.h \
840 if [ x"$(PICFLAG)" != x ]; then \
841 $(COMPILE.c) $(PICFLAG) $(srcdir)/objalloc.c -o pic/$@; \
843 $(COMPILE.c) $(srcdir)/objalloc.c $(OUTPUT_OPTION)
845 ./obstack.$(objext): $(srcdir)/obstack.c config.h $(INCDIR)/obstack.h
846 if [ x"$(PICFLAG)" != x ]; then \
847 $(COMPILE.c) $(PICFLAG) $(srcdir)/obstack.c -o pic/$@; \
849 $(COMPILE.c) $(srcdir)/obstack.c $(OUTPUT_OPTION)
851 ./partition.$(objext): $(srcdir)/partition.c config.h $(INCDIR)/ansidecl.h \
852 $(INCDIR)/libiberty.h $(INCDIR)/partition.h
853 if [ x"$(PICFLAG)" != x ]; then \
854 $(COMPILE.c) $(PICFLAG) $(srcdir)/partition.c -o pic/$@; \
856 $(COMPILE.c) $(srcdir)/partition.c $(OUTPUT_OPTION)
858 ./pex-common.$(objext): $(srcdir)/pex-common.c config.h $(INCDIR)/ansidecl.h \
859 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
860 if [ x"$(PICFLAG)" != x ]; then \
861 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-common.c -o pic/$@; \
863 $(COMPILE.c) $(srcdir)/pex-common.c $(OUTPUT_OPTION)
865 ./pex-djgpp.$(objext): $(srcdir)/pex-djgpp.c config.h $(INCDIR)/ansidecl.h \
866 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
867 if [ x"$(PICFLAG)" != x ]; then \
868 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-djgpp.c -o pic/$@; \
870 $(COMPILE.c) $(srcdir)/pex-djgpp.c $(OUTPUT_OPTION)
872 ./pex-msdos.$(objext): $(srcdir)/pex-msdos.c config.h $(INCDIR)/ansidecl.h \
873 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h \
874 $(INCDIR)/safe-ctype.h
875 if [ x"$(PICFLAG)" != x ]; then \
876 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-msdos.c -o pic/$@; \
878 $(COMPILE.c) $(srcdir)/pex-msdos.c $(OUTPUT_OPTION)
880 ./pex-one.$(objext): $(srcdir)/pex-one.c config.h $(INCDIR)/ansidecl.h \
881 $(INCDIR)/libiberty.h
882 if [ x"$(PICFLAG)" != x ]; then \
883 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-one.c -o pic/$@; \
885 $(COMPILE.c) $(srcdir)/pex-one.c $(OUTPUT_OPTION)
887 ./pex-unix.$(objext): $(srcdir)/pex-unix.c config.h $(INCDIR)/ansidecl.h \
888 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
889 if [ x"$(PICFLAG)" != x ]; then \
890 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-unix.c -o pic/$@; \
892 $(COMPILE.c) $(srcdir)/pex-unix.c $(OUTPUT_OPTION)
894 ./pex-win32.$(objext): $(srcdir)/pex-win32.c config.h $(INCDIR)/ansidecl.h \
895 $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
896 if [ x"$(PICFLAG)" != x ]; then \
897 $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-win32.c -o pic/$@; \
899 $(COMPILE.c) $(srcdir)/pex-win32.c $(OUTPUT_OPTION)
901 ./pexecute.$(objext): $(srcdir)/pexecute.c config.h $(INCDIR)/ansidecl.h \
902 $(INCDIR)/libiberty.h
903 if [ x"$(PICFLAG)" != x ]; then \
904 $(COMPILE.c) $(PICFLAG) $(srcdir)/pexecute.c -o pic/$@; \
906 $(COMPILE.c) $(srcdir)/pexecute.c $(OUTPUT_OPTION)
908 ./physmem.$(objext): $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \
909 $(INCDIR)/libiberty.h
910 if [ x"$(PICFLAG)" != x ]; then \
911 $(COMPILE.c) $(PICFLAG) $(srcdir)/physmem.c -o pic/$@; \
913 $(COMPILE.c) $(srcdir)/physmem.c $(OUTPUT_OPTION)
915 ./putenv.$(objext): $(srcdir)/putenv.c config.h $(INCDIR)/ansidecl.h
916 if [ x"$(PICFLAG)" != x ]; then \
917 $(COMPILE.c) $(PICFLAG) $(srcdir)/putenv.c -o pic/$@; \
919 $(COMPILE.c) $(srcdir)/putenv.c $(OUTPUT_OPTION)
921 ./random.$(objext): $(srcdir)/random.c $(INCDIR)/ansidecl.h
922 if [ x"$(PICFLAG)" != x ]; then \
923 $(COMPILE.c) $(PICFLAG) $(srcdir)/random.c -o pic/$@; \
925 $(COMPILE.c) $(srcdir)/random.c $(OUTPUT_OPTION)
927 ./regex.$(objext): $(srcdir)/regex.c config.h $(INCDIR)/ansidecl.h \
928 $(INCDIR)/xregex.h $(INCDIR)/xregex2.h
929 if [ x"$(PICFLAG)" != x ]; then \
930 $(COMPILE.c) $(PICFLAG) $(srcdir)/regex.c -o pic/$@; \
932 $(COMPILE.c) $(srcdir)/regex.c $(OUTPUT_OPTION)
934 ./rename.$(objext): $(srcdir)/rename.c config.h $(INCDIR)/ansidecl.h
935 if [ x"$(PICFLAG)" != x ]; then \
936 $(COMPILE.c) $(PICFLAG) $(srcdir)/rename.c -o pic/$@; \
938 $(COMPILE.c) $(srcdir)/rename.c $(OUTPUT_OPTION)
940 ./rindex.$(objext): $(srcdir)/rindex.c
941 if [ x"$(PICFLAG)" != x ]; then \
942 $(COMPILE.c) $(PICFLAG) $(srcdir)/rindex.c -o pic/$@; \
944 $(COMPILE.c) $(srcdir)/rindex.c $(OUTPUT_OPTION)
946 ./safe-ctype.$(objext): $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \
947 $(INCDIR)/safe-ctype.h
948 if [ x"$(PICFLAG)" != x ]; then \
949 $(COMPILE.c) $(PICFLAG) $(srcdir)/safe-ctype.c -o pic/$@; \
951 $(COMPILE.c) $(srcdir)/safe-ctype.c $(OUTPUT_OPTION)
953 ./setenv.$(objext): $(srcdir)/setenv.c config.h $(INCDIR)/ansidecl.h
954 if [ x"$(PICFLAG)" != x ]; then \
955 $(COMPILE.c) $(PICFLAG) $(srcdir)/setenv.c -o pic/$@; \
957 $(COMPILE.c) $(srcdir)/setenv.c $(OUTPUT_OPTION)
959 ./setproctitle.$(objext): $(srcdir)/setproctitle.c config.h $(INCDIR)/ansidecl.h
960 if [ x"$(PICFLAG)" != x ]; then \
961 $(COMPILE.c) $(PICFLAG) $(srcdir)/setproctitle.c -o pic/$@; \
963 $(COMPILE.c) $(srcdir)/setproctitle.c $(OUTPUT_OPTION)
965 ./sha1.$(objext): $(srcdir)/sha1.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/sha1.h
966 if [ x"$(PICFLAG)" != x ]; then \
967 $(COMPILE.c) $(PICFLAG) $(srcdir)/sha1.c -o pic/$@; \
969 $(COMPILE.c) $(srcdir)/sha1.c $(OUTPUT_OPTION)
971 ./sigsetmask.$(objext): $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h
972 if [ x"$(PICFLAG)" != x ]; then \
973 $(COMPILE.c) $(PICFLAG) $(srcdir)/sigsetmask.c -o pic/$@; \
975 $(COMPILE.c) $(srcdir)/sigsetmask.c $(OUTPUT_OPTION)
977 ./simple-object-coff.$(objext): $(srcdir)/simple-object-coff.c config.h \
978 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
979 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
980 if [ x"$(PICFLAG)" != x ]; then \
981 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-coff.c -o pic/$@; \
983 $(COMPILE.c) $(srcdir)/simple-object-coff.c $(OUTPUT_OPTION)
985 ./simple-object-elf.$(objext): $(srcdir)/simple-object-elf.c config.h \
986 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
987 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
988 if [ x"$(PICFLAG)" != x ]; then \
989 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-elf.c -o pic/$@; \
991 $(COMPILE.c) $(srcdir)/simple-object-elf.c $(OUTPUT_OPTION)
993 ./simple-object-mach-o.$(objext): $(srcdir)/simple-object-mach-o.c config.h \
994 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
995 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
996 if [ x"$(PICFLAG)" != x ]; then \
997 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-mach-o.c -o pic/$@; \
999 $(COMPILE.c) $(srcdir)/simple-object-mach-o.c $(OUTPUT_OPTION)
1001 ./simple-object.$(objext): $(srcdir)/simple-object.c config.h \
1002 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
1003 $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
1004 if [ x"$(PICFLAG)" != x ]; then \
1005 $(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object.c -o pic/$@; \
1007 $(COMPILE.c) $(srcdir)/simple-object.c $(OUTPUT_OPTION)
1009 ./snprintf.$(objext): $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h
1010 if [ x"$(PICFLAG)" != x ]; then \
1011 $(COMPILE.c) $(PICFLAG) $(srcdir)/snprintf.c -o pic/$@; \
1013 $(COMPILE.c) $(srcdir)/snprintf.c $(OUTPUT_OPTION)
1015 ./sort.$(objext): $(srcdir)/sort.c config.h $(INCDIR)/ansidecl.h \
1016 $(INCDIR)/libiberty.h $(INCDIR)/sort.h
1017 if [ x"$(PICFLAG)" != x ]; then \
1018 $(COMPILE.c) $(PICFLAG) $(srcdir)/sort.c -o pic/$@; \
1020 $(COMPILE.c) $(srcdir)/sort.c $(OUTPUT_OPTION)
1022 ./spaces.$(objext): $(srcdir)/spaces.c config.h $(INCDIR)/ansidecl.h \
1023 $(INCDIR)/libiberty.h
1024 if [ x"$(PICFLAG)" != x ]; then \
1025 $(COMPILE.c) $(PICFLAG) $(srcdir)/spaces.c -o pic/$@; \
1027 $(COMPILE.c) $(srcdir)/spaces.c $(OUTPUT_OPTION)
1029 ./splay-tree.$(objext): $(srcdir)/splay-tree.c config.h $(INCDIR)/ansidecl.h \
1030 $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h
1031 if [ x"$(PICFLAG)" != x ]; then \
1032 $(COMPILE.c) $(PICFLAG) $(srcdir)/splay-tree.c -o pic/$@; \
1034 $(COMPILE.c) $(srcdir)/splay-tree.c $(OUTPUT_OPTION)
1036 ./stpcpy.$(objext): $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h
1037 if [ x"$(PICFLAG)" != x ]; then \
1038 $(COMPILE.c) $(PICFLAG) $(srcdir)/stpcpy.c -o pic/$@; \
1040 $(COMPILE.c) $(srcdir)/stpcpy.c $(OUTPUT_OPTION)
1042 ./stpncpy.$(objext): $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h
1043 if [ x"$(PICFLAG)" != x ]; then \
1044 $(COMPILE.c) $(PICFLAG) $(srcdir)/stpncpy.c -o pic/$@; \
1046 $(COMPILE.c) $(srcdir)/stpncpy.c $(OUTPUT_OPTION)
1048 ./strcasecmp.$(objext): $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h
1049 if [ x"$(PICFLAG)" != x ]; then \
1050 $(COMPILE.c) $(PICFLAG) $(srcdir)/strcasecmp.c -o pic/$@; \
1052 $(COMPILE.c) $(srcdir)/strcasecmp.c $(OUTPUT_OPTION)
1054 ./strchr.$(objext): $(srcdir)/strchr.c $(INCDIR)/ansidecl.h
1055 if [ x"$(PICFLAG)" != x ]; then \
1056 $(COMPILE.c) $(PICFLAG) $(srcdir)/strchr.c -o pic/$@; \
1058 $(COMPILE.c) $(srcdir)/strchr.c $(OUTPUT_OPTION)
1060 ./strdup.$(objext): $(srcdir)/strdup.c $(INCDIR)/ansidecl.h
1061 if [ x"$(PICFLAG)" != x ]; then \
1062 $(COMPILE.c) $(PICFLAG) $(srcdir)/strdup.c -o pic/$@; \
1064 $(COMPILE.c) $(srcdir)/strdup.c $(OUTPUT_OPTION)
1066 ./strerror.$(objext): $(srcdir)/strerror.c config.h $(INCDIR)/ansidecl.h \
1067 $(INCDIR)/libiberty.h
1068 if [ x"$(PICFLAG)" != x ]; then \
1069 $(COMPILE.c) $(PICFLAG) $(srcdir)/strerror.c -o pic/$@; \
1071 $(COMPILE.c) $(srcdir)/strerror.c $(OUTPUT_OPTION)
1073 ./strncasecmp.$(objext): $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h
1074 if [ x"$(PICFLAG)" != x ]; then \
1075 $(COMPILE.c) $(PICFLAG) $(srcdir)/strncasecmp.c -o pic/$@; \
1077 $(COMPILE.c) $(srcdir)/strncasecmp.c $(OUTPUT_OPTION)
1079 ./strncmp.$(objext): $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h
1080 if [ x"$(PICFLAG)" != x ]; then \
1081 $(COMPILE.c) $(PICFLAG) $(srcdir)/strncmp.c -o pic/$@; \
1083 $(COMPILE.c) $(srcdir)/strncmp.c $(OUTPUT_OPTION)
1085 ./strndup.$(objext): $(srcdir)/strndup.c $(INCDIR)/ansidecl.h
1086 if [ x"$(PICFLAG)" != x ]; then \
1087 $(COMPILE.c) $(PICFLAG) $(srcdir)/strndup.c -o pic/$@; \
1089 $(COMPILE.c) $(srcdir)/strndup.c $(OUTPUT_OPTION)
1091 ./strrchr.$(objext): $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h
1092 if [ x"$(PICFLAG)" != x ]; then \
1093 $(COMPILE.c) $(PICFLAG) $(srcdir)/strrchr.c -o pic/$@; \
1095 $(COMPILE.c) $(srcdir)/strrchr.c $(OUTPUT_OPTION)
1097 ./strsignal.$(objext): $(srcdir)/strsignal.c config.h $(INCDIR)/ansidecl.h \
1098 $(INCDIR)/libiberty.h
1099 if [ x"$(PICFLAG)" != x ]; then \
1100 $(COMPILE.c) $(PICFLAG) $(srcdir)/strsignal.c -o pic/$@; \
1102 $(COMPILE.c) $(srcdir)/strsignal.c $(OUTPUT_OPTION)
1104 ./strstr.$(objext): $(srcdir)/strstr.c
1105 if [ x"$(PICFLAG)" != x ]; then \
1106 $(COMPILE.c) $(PICFLAG) $(srcdir)/strstr.c -o pic/$@; \
1108 $(COMPILE.c) $(srcdir)/strstr.c $(OUTPUT_OPTION)
1110 ./strtod.$(objext): $(srcdir)/strtod.c $(INCDIR)/ansidecl.h \
1111 $(INCDIR)/safe-ctype.h
1112 if [ x"$(PICFLAG)" != x ]; then \
1113 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtod.c -o pic/$@; \
1115 $(COMPILE.c) $(srcdir)/strtod.c $(OUTPUT_OPTION)
1117 ./strtol.$(objext): $(srcdir)/strtol.c config.h $(INCDIR)/safe-ctype.h
1118 if [ x"$(PICFLAG)" != x ]; then \
1119 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtol.c -o pic/$@; \
1121 $(COMPILE.c) $(srcdir)/strtol.c $(OUTPUT_OPTION)
1123 ./strtoul.$(objext): $(srcdir)/strtoul.c config.h $(INCDIR)/ansidecl.h \
1124 $(INCDIR)/safe-ctype.h
1125 if [ x"$(PICFLAG)" != x ]; then \
1126 $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoul.c -o pic/$@; \
1128 $(COMPILE.c) $(srcdir)/strtoul.c $(OUTPUT_OPTION)
1130 ./strverscmp.$(objext): $(srcdir)/strverscmp.c $(INCDIR)/ansidecl.h \
1131 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
1132 if [ x"$(PICFLAG)" != x ]; then \
1133 $(COMPILE.c) $(PICFLAG) $(srcdir)/strverscmp.c -o pic/$@; \
1135 $(COMPILE.c) $(srcdir)/strverscmp.c $(OUTPUT_OPTION)
1137 ./tmpnam.$(objext): $(srcdir)/tmpnam.c
1138 if [ x"$(PICFLAG)" != x ]; then \
1139 $(COMPILE.c) $(PICFLAG) $(srcdir)/tmpnam.c -o pic/$@; \
1141 $(COMPILE.c) $(srcdir)/tmpnam.c $(OUTPUT_OPTION)
1143 ./unlink-if-ordinary.$(objext): $(srcdir)/unlink-if-ordinary.c config.h \
1144 $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
1145 if [ x"$(PICFLAG)" != x ]; then \
1146 $(COMPILE.c) $(PICFLAG) $(srcdir)/unlink-if-ordinary.c -o pic/$@; \
1148 $(COMPILE.c) $(srcdir)/unlink-if-ordinary.c $(OUTPUT_OPTION)
1150 ./vasprintf.$(objext): $(srcdir)/vasprintf.c config.h $(INCDIR)/ansidecl.h \
1151 $(INCDIR)/libiberty.h
1152 if [ x"$(PICFLAG)" != x ]; then \
1153 $(COMPILE.c) $(PICFLAG) $(srcdir)/vasprintf.c -o pic/$@; \
1155 $(COMPILE.c) $(srcdir)/vasprintf.c $(OUTPUT_OPTION)
1157 ./vfork.$(objext): $(srcdir)/vfork.c $(INCDIR)/ansidecl.h
1158 if [ x"$(PICFLAG)" != x ]; then \
1159 $(COMPILE.c) $(PICFLAG) $(srcdir)/vfork.c -o pic/$@; \
1161 $(COMPILE.c) $(srcdir)/vfork.c $(OUTPUT_OPTION)
1163 ./vfprintf.$(objext): $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h
1164 if [ x"$(PICFLAG)" != x ]; then \
1165 $(COMPILE.c) $(PICFLAG) $(srcdir)/vfprintf.c -o pic/$@; \
1167 $(COMPILE.c) $(srcdir)/vfprintf.c $(OUTPUT_OPTION)
1169 ./vprintf.$(objext): $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h
1170 if [ x"$(PICFLAG)" != x ]; then \
1171 $(COMPILE.c) $(PICFLAG) $(srcdir)/vprintf.c -o pic/$@; \
1173 $(COMPILE.c) $(srcdir)/vprintf.c $(OUTPUT_OPTION)
1175 ./vsnprintf.$(objext): $(srcdir)/vsnprintf.c config.h $(INCDIR)/ansidecl.h \
1176 $(INCDIR)/libiberty.h
1177 if [ x"$(PICFLAG)" != x ]; then \
1178 $(COMPILE.c) $(PICFLAG) $(srcdir)/vsnprintf.c -o pic/$@; \
1180 $(COMPILE.c) $(srcdir)/vsnprintf.c $(OUTPUT_OPTION)
1182 ./vsprintf.$(objext): $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h
1183 if [ x"$(PICFLAG)" != x ]; then \
1184 $(COMPILE.c) $(PICFLAG) $(srcdir)/vsprintf.c -o pic/$@; \
1186 $(COMPILE.c) $(srcdir)/vsprintf.c $(OUTPUT_OPTION)
1188 ./waitpid.$(objext): $(srcdir)/waitpid.c config.h $(INCDIR)/ansidecl.h
1189 if [ x"$(PICFLAG)" != x ]; then \
1190 $(COMPILE.c) $(PICFLAG) $(srcdir)/waitpid.c -o pic/$@; \
1192 $(COMPILE.c) $(srcdir)/waitpid.c $(OUTPUT_OPTION)
1194 ./xatexit.$(objext): $(srcdir)/xatexit.c config.h $(INCDIR)/ansidecl.h \
1195 $(INCDIR)/libiberty.h
1196 if [ x"$(PICFLAG)" != x ]; then \
1197 $(COMPILE.c) $(PICFLAG) $(srcdir)/xatexit.c -o pic/$@; \
1199 $(COMPILE.c) $(srcdir)/xatexit.c $(OUTPUT_OPTION)
1201 ./xexit.$(objext): $(srcdir)/xexit.c config.h $(INCDIR)/ansidecl.h \
1202 $(INCDIR)/libiberty.h
1203 if [ x"$(PICFLAG)" != x ]; then \
1204 $(COMPILE.c) $(PICFLAG) $(srcdir)/xexit.c -o pic/$@; \
1206 $(COMPILE.c) $(srcdir)/xexit.c $(OUTPUT_OPTION)
1208 ./xmalloc.$(objext): $(srcdir)/xmalloc.c config.h $(INCDIR)/ansidecl.h \
1209 $(INCDIR)/libiberty.h
1210 if [ x"$(PICFLAG)" != x ]; then \
1211 $(COMPILE.c) $(PICFLAG) $(srcdir)/xmalloc.c -o pic/$@; \
1213 $(COMPILE.c) $(srcdir)/xmalloc.c $(OUTPUT_OPTION)
1215 ./xmemdup.$(objext): $(srcdir)/xmemdup.c config.h $(INCDIR)/ansidecl.h \
1216 $(INCDIR)/libiberty.h
1217 if [ x"$(PICFLAG)" != x ]; then \
1218 $(COMPILE.c) $(PICFLAG) $(srcdir)/xmemdup.c -o pic/$@; \
1220 $(COMPILE.c) $(srcdir)/xmemdup.c $(OUTPUT_OPTION)
1222 ./xstrdup.$(objext): $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \
1223 $(INCDIR)/libiberty.h
1224 if [ x"$(PICFLAG)" != x ]; then \
1225 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrdup.c -o pic/$@; \
1227 $(COMPILE.c) $(srcdir)/xstrdup.c $(OUTPUT_OPTION)
1229 ./xstrerror.$(objext): $(srcdir)/xstrerror.c config.h $(INCDIR)/ansidecl.h \
1230 $(INCDIR)/libiberty.h
1231 if [ x"$(PICFLAG)" != x ]; then \
1232 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrerror.c -o pic/$@; \
1234 $(COMPILE.c) $(srcdir)/xstrerror.c $(OUTPUT_OPTION)
1236 ./xstrndup.$(objext): $(srcdir)/xstrndup.c config.h $(INCDIR)/ansidecl.h \
1237 $(INCDIR)/libiberty.h
1238 if [ x"$(PICFLAG)" != x ]; then \
1239 $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrndup.c -o pic/$@; \
1241 $(COMPILE.c) $(srcdir)/xstrndup.c $(OUTPUT_OPTION)