OSDN Git Service

2004-12-18 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / libiberty / Makefile.in
1 #
2 # Makefile
3 #   Copyright (C) 1990, 91-99, 2000, 2001, 2002, 2003, 2004
4 #   Free Software Foundation
5 #
6 # This file is part of the libiberty library.
7 # Libiberty is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Library General Public
9 # License as published by the Free Software Foundation; either
10 # version 2 of the License, or (at your option) any later version.
11 #
12 # Libiberty is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 # Library General Public License for more details.
16 #
17 # You should have received a copy of the GNU Library General Public
18 # License along with libiberty; see the file COPYING.LIB.  If not,
19 # write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 # Boston, MA 02111-1307, USA.
21 #
22
23 # This file was written by K. Richard Pixley <rich@cygnus.com>.
24
25 #
26 # Makefile for libiberty directory
27 #
28
29 libiberty_topdir = @libiberty_topdir@
30 srcdir = @srcdir@
31
32 top_builddir = .
33
34 prefix = @prefix@
35
36 exec_prefix = @exec_prefix@
37 bindir = @bindir@
38 libdir = @libdir@
39 includedir = @includedir@
40 target_header_dir = @target_header_dir@
41
42 SHELL = @SHELL@
43
44 # Multilib support variables.
45 MULTISRCTOP =
46 MULTIBUILDTOP =
47 MULTIDIRS =
48 MULTISUBDIR =
49 MULTIDO = true
50 MULTICLEAN = true
51
52 INSTALL = @INSTALL@
53 INSTALL_PROGRAM = @INSTALL_PROGRAM@
54 INSTALL_DATA = @INSTALL_DATA@
55 mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs
56
57 AR = @AR@
58 AR_FLAGS = rc
59
60 CC = @CC@
61 CFLAGS = @CFLAGS@
62 LIBCFLAGS = $(CFLAGS)
63 RANLIB = @RANLIB@
64 MAKEINFO = @MAKEINFO@
65 PERL = @PERL@
66 LIBTOOL = @LIBTOOL@
67
68 PICFLAG =
69
70 MAKEOVERRIDES =
71
72 TARGETLIB = ./libiberty.a
73 TESTLIB = ./testlib.a
74
75 LIBOBJS = @LIBOBJS@
76 LTLIBOBJS = @LTLIBOBJS@
77
78 # A configuration can specify extra .o files that should be included,
79 # even if they are in libc. (Perhaps the libc version is buggy.)
80 EXTRA_OFILES = 
81 EXTRA_LTOFILES = 
82
83 # Flags to pass to a recursive make.
84 FLAGS_TO_PASS = \
85         "AR=$(AR)" \
86         "AR_FLAGS=$(AR_FLAGS)" \
87         "CC=$(CC)" \
88         "CFLAGS=$(CFLAGS)" \
89         "DESTDIR=$(DESTDIR)" \
90         "LIBCFLAGS=$(LIBCFLAGS)" \
91         "EXTRA_OFILES=$(EXTRA_OFILES)" \
92         "EXTRA_LTOFILES=$(EXTRA_LTOFILES)" \
93         "HDEFINES=$(HDEFINES)" \
94         "INSTALL=$(INSTALL)" \
95         "INSTALL_DATA=$(INSTALL_DATA)" \
96         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
97         "LDFLAGS=$(LDFLAGS)" \
98         "LOADLIBES=$(LOADLIBES)" \
99         "RANLIB=$(RANLIB)" \
100         "SHELL=$(SHELL)" \
101         "prefix=$(prefix)" \
102         "exec_prefix=$(exec_prefix)" \
103         "libdir=$(libdir)" \
104         "libsubdir=$(libsubdir)" \
105         "tooldir=$(tooldir)"
106
107 # Subdirectories to recurse into. We need to override this during cleaning
108 SUBDIRS = testsuite
109
110 # FIXME: add @BUILD_INFO@ once we're sure it works for everyone.
111 all: $(TARGETLIB) needed-list required-list all-subdir
112         @: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
113
114 .PHONY: check installcheck
115 check: check-subdir
116 installcheck: installcheck-subdir
117
118 @host_makefile_frag@
119
120 INCDIR=$(srcdir)/$(MULTISRCTOP)../include
121
122 COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@
123 LTCOMPILE = $(LIBTOOL) --mode=compile $(COMPILE.c)
124
125 # Just to make sure we don't use a built-in rule with VPATH
126 .c.o:
127         false
128
129 .c.lo:
130         false
131
132 # NOTE: If you add new files to the library, add them to this list
133 # (alphabetical), and add them to REQUIRED_OFILES/REQUIRED_LTOFILES, or
134 # CONFIGURED_OFILES/CONFIGURED_LTOFILES and funcs in configure.ac.
135 # Also run "make maint-deps" to build the new rules.
136 CFILES = alloca.c argv.c asprintf.c atexit.c                            \
137         basename.c bcmp.c bcopy.c bsearch.c bzero.c                     \
138         calloc.c choose-temp.c clock.c concat.c cp-demangle.c           \
139          cp-demint.c cplus-dem.c                                        \
140         dyn-string.c                                                    \
141         fdmatch.c ffs.c fibheap.c floatformat.c fnmatch.c               \
142         getcwd.c getopt.c getopt1.c getpagesize.c getpwd.c getruntime.c \
143         hashtab.c hex.c                                                 \
144         index.c insque.c                                                \
145         lbasename.c                                                     \
146         lrealpath.c                                                     \
147         make-relative-prefix.c                                          \
148         make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmove.c     \
149          mempcpy.c memset.c mkstemps.c                                  \
150         objalloc.c obstack.c                                            \
151         partition.c                                                     \
152          pex-djgpp.c pex-mpw.c pex-msdos.c pex-os2.c                    \
153          pex-unix.c pex-win32.c                                         \
154          physmem.c putenv.c                                             \
155         random.c regex.c rename.c rindex.c                              \
156         safe-ctype.c setenv.c sigsetmask.c snprintf.c sort.c spaces.c   \
157          splay-tree.c stpcpy.c stpncpy.c strcasecmp.c strchr.c strdup.c \
158          strerror.c strncasecmp.c strncmp.c strrchr.c strsignal.c       \
159          strstr.c strtod.c strtol.c strtoul.c                           \
160         ternary.c tmpnam.c                                              \
161         vasprintf.c vfork.c vfprintf.c vprintf.c vsnprintf.c vsprintf.c \
162         waitpid.c                                                       \
163         xatexit.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c
164
165 # These are always included in the library.  The first four are listed
166 # first and by compile time to optimize parallel builds.
167 REQUIRED_OFILES = ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o       \
168         ./alloca.o ./argv.o                                             \
169         ./choose-temp.o ./concat.o ./cp-demint.o                        \
170         ./dyn-string.o                                                  \
171         ./fdmatch.o ./fibheap.o ./floatformat.o ./fnmatch.o             \
172         ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o                \
173         ./hashtab.o ./hex.o                                             \
174         ./lbasename.o ./lrealpath.o                                     \
175         ./make-relative-prefix.o ./make-temp-file.o                     \
176         ./objalloc.o ./obstack.o                                        \
177         ./partition.o ./physmem.o @pexecute@                            \
178         ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o  \
179          ./strsignal.o                                                  \
180         ./ternary.o                                                     \
181         ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o       \
182          ./xstrerror.o
183 REQUIRED_LTOFILES = ./regex.lo ./cplus-dem.lo ./cp-demangle.lo ./md5.lo \
184         ./alloca.lo ./argv.lo                                           \
185         ./choose-temp.lo ./concat.lo ./cp-demint.lo                     \
186         ./dyn-string.lo                                                 \
187         ./fdmatch.lo ./fibheap.lo ./floatformat.lo ./fnmatch.lo         \
188         ./getopt.lo ./getopt1.lo ./getpwd.lo ./getruntime.lo            \
189         ./hashtab.lo ./hex.lo                                           \
190         ./lbasename.lo ./lrealpath.lo                                   \
191         ./make-relative-prefix.lo ./make-temp-file.lo                   \
192         ./objalloc.lo ./obstack.lo                                      \
193         ./partition.lo ./physmem.lo @ltpexecute@                                \
194         ./safe-ctype.lo ./sort.lo ./spaces.lo ./splay-tree.lo ./strerror.lo     \
195          ./strsignal.lo                                                 \
196         ./ternary.lo                                                    \
197         ./xatexit.lo ./xexit.lo ./xmalloc.lo ./xmemdup.lo ./xstrdup.lo  \
198          ./xstrerror.lo
199
200 # These are all the objects that configure may add to the library via
201 # $funcs or EXTRA_OFILES.  This list exists here only for "make
202 # maint-missing" and "make check".
203 CONFIGURED_OFILES = ./asprintf.o ./atexit.o                             \
204         ./basename.o ./bcmp.o ./bcopy.o ./bsearch.o ./bzero.o           \
205         ./calloc.o ./clock.o ./copysign.o                               \
206         ./_doprnt.o                                                     \
207         ./ffs.o                                                         \
208         ./getcwd.o ./getpagesize.o                                      \
209         ./index.o ./insque.o                                            \
210         ./memchr.o ./memcmp.o ./memcpy.o ./memmove.o ./mempcpy.o        \
211          ./memset.o ./mkstemps.o                                        \
212         ./pex-djgpp.o ./pex-mpw.o ./pex-msdos.o ./pex-os2.o             \
213          ./pex-unix.o ./pex-win32.o                                     \
214          ./putenv.o                                                     \
215         ./random.o ./rename.o ./rindex.o                                \
216         ./setenv.o ./sigsetmask.o ./snprintf.o ./stpcpy.o ./stpncpy.o   \
217          ./strcasecmp.o ./strchr.o ./strdup.o ./strncasecmp.o           \
218          ./strncmp.o ./strrchr.o ./strstr.o                             \
219          ./strtod.o ./strtol.o ./strtoul.o                              \
220         ./tmpnam.o                                                      \
221         ./vasprintf.o ./vfork.o ./vfprintf.o ./vprintf.o ./vsnprintf.o  \
222          ./vsprintf.o                                                   \
223         ./waitpid.o
224 CONFIGURED_LTOFILES = ./asprintf.lo ./atexit.lo                         \
225         ./basename.lo ./bcmp.lo ./bcopy.lo ./bsearch.lo ./bzero.lo              \
226         ./calloc.lo ./clock.lo ./copysign.lo                            \
227         ./_doprnt.lo                                                    \
228         ./ffs.lo                                                                \
229         ./getcwd.lo ./getpagesize.lo                                    \
230         ./index.lo ./insque.lo                                          \
231         ./memchr.lo ./memcmp.lo ./memcpy.lo ./memmove.lo ./mempcpy.lo   \
232          ./memset.lo ./mkstemps.lo                                      \
233         ./pex-djgpp.lo ./pex-mpw.lo ./pex-msdos.lo ./pex-os2.lo         \
234          ./pex-unix.lo ./pex-win32.lo                                   \
235          ./putenv.lo                                                    \
236         ./random.lo ./rename.lo ./rindex.lo                             \
237         ./setenv.lo ./sigsetmask.lo ./snprintf.lo ./stpcpy.lo ./stpncpy.lo      \
238          ./strcasecmp.lo ./strchr.lo ./strdup.lo ./strncasecmp.lo               \
239          ./strncmp.lo ./strrchr.lo ./strstr.lo                          \
240          ./strtod.lo ./strtol.lo ./strtoul.lo                           \
241         ./tmpnam.lo                                                     \
242         ./vasprintf.lo ./vfork.lo ./vfprintf.lo ./vprintf.lo ./vsnprintf.lo     \
243          ./vsprintf.lo                                                  \
244         ./waitpid.lo
245
246 # These files are installed if the library has been configured to do so.
247 INSTALLED_HEADERS =                                                     \
248         $(INCDIR)/ansidecl.h                                            \
249         $(INCDIR)/demangle.h                                            \
250         $(INCDIR)/dyn-string.h                                          \
251         $(INCDIR)/fibheap.h                                             \
252         $(INCDIR)/floatformat.h                                         \
253         $(INCDIR)/hashtab.h                                             \
254         $(INCDIR)/libiberty.h                                           \
255         $(INCDIR)/objalloc.h                                            \
256         $(INCDIR)/partition.h                                           \
257         $(INCDIR)/safe-ctype.h                                          \
258         $(INCDIR)/sort.h                                                \
259         $(INCDIR)/splay-tree.h                                          \
260         $(INCDIR)/ternary.h
261
262 $(TARGETLIB): $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS)
263         -rm -f $(TARGETLIB) .libs/$(TARGETLIB)
264         $(AR) $(AR_FLAGS) $(TARGETLIB) \
265           $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
266         $(RANLIB) $(TARGETLIB)
267         if [ -d .libs ]; then \
268           cd .libs; \
269           $(AR) $(AR_FLAGS) $(TARGETLIB) \
270             $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
271           $(RANLIB) $(TARGETLIB); \
272           [ -d ../pic ] || mkdir ../pic; \
273           rm -f ../pic/$(TARGETLIB); \
274           cp $(TARGETLIB) ../pic/$(TARGETLIB); \
275           cd ..; \
276         else true; fi
277
278 $(TESTLIB): $(REQUIRED_LTOFILES) $(CONFIGURED_LTOFILES)
279         -rm -f $(TESTLIB)
280         $(AR) $(AR_FLAGS) $(TESTLIB) \
281           $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
282         $(RANLIB) $(TESTLIB)
283
284 info: libiberty.info info-subdir
285 install-info: install-info-subdir
286 clean-info: clean-info-subdir
287 dvi: libiberty.dvi dvi-subdir
288 html: libiberty.html
289
290 TEXISRC = \
291         $(srcdir)/libiberty.texi \
292         $(srcdir)/copying-lib.texi \
293         $(srcdir)/obstacks.texi \
294         $(srcdir)/functions.texi
295
296 # Additional files that have texi snippets that need to be collected
297 # and sorted.  Some are here because the sources are imported from
298 # elsewhere.  Others represent headers in ../include.
299 TEXIFILES = fnmatch.txh pexecute.txh
300
301 libiberty.info : $(srcdir)/libiberty.texi $(TEXISRC)
302         $(MAKEINFO) -I$(srcdir) $(srcdir)/libiberty.texi
303
304 libiberty.dvi : $(srcdir)/libiberty.texi $(TEXISRC)
305         texi2dvi $(srcdir)/libiberty.texi
306
307 libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC)
308         $(MAKEINFO) --no-split --html -I$(srcdir) -o $@ $<
309
310 @MAINT@$(srcdir)/functions.texi : stamp-functions
311 @MAINT@ @true
312
313 @MAINT@stamp-functions : $(CFILES) $(TEXIFILES) $(srcdir)/gather-docs Makefile
314 @MAINT@@HAVE_PERL@      $(PERL) $(srcdir)/gather-docs $(srcdir) $(srcdir)/functions.texi $(CFILES) $(TEXIFILES)
315 @MAINT@ echo stamp > stamp-functions
316
317 INSTALL_DEST = @INSTALL_DEST@
318 install: install_to_$(INSTALL_DEST) install-subdir
319
320 install_to_libdir: all
321         ${mkinstalldirs} $(DESTDIR)$(libdir)$(MULTISUBDIR)
322         $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n
323         ( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
324         mv -f $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)
325         if test -n "${target_header_dir}"; then \
326           case "${target_header_dir}" in \
327             /*)    thd=${target_header_dir};; \
328             *)     thd=${includedir}${MULTISUBDIR}/${target_header_dir};; \
329           esac; \
330           ${mkinstalldirs} $(DESTDIR)$${thd}; \
331           for h in ${INSTALLED_HEADERS}; do \
332             ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \
333           done; \
334         fi
335         @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
336
337 # This is tricky.  Even though CC in the Makefile contains
338 # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
339 # default multilib, so we have to take LIBCFLAGS into account as well,
340 # since it will be passed the multilib flags.
341 MULTIOSDIR = `$(CC) $(LIBCFLAGS) -print-multi-os-directory`
342 install_to_tooldir: all
343         ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)
344         $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n
345         ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; $(RANLIB) $(TARGETLIB)n )
346         mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)
347         @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
348
349 # needed-list is used by libstdc++.  NEEDED is the list of functions
350 # to include there.  Do not add anything LGPL to this list; libstdc++
351 # can't use anything encumbering.
352 NEEDED = atexit calloc memchr memcmp memcpy memmove memset rename strchr \
353          strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf \
354          vfork waitpid bcmp bcopy bzero
355 needed-list: Makefile
356         rm -f needed-list; touch needed-list; \
357         for f in $(NEEDED); do \
358           for g in $(LIBOBJS) $(EXTRA_OFILES); do \
359             case "$$g" in \
360               *$$f*) echo $$g >> needed-list ;; \
361             esac; \
362           done; \
363         done
364
365 # required-list was used when building a shared bfd/opcodes/libiberty
366 # library.  I don't know if it used by anything currently.
367 required-list: Makefile
368         echo $(REQUIRED_OFILES) > required-list
369
370 .PHONY: all etags tags ls clean stage1 stage2
371
372 etags tags: TAGS etags-subdir
373
374 TAGS: $(CFILES)
375         etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done`
376
377 # The standalone demangler (c++filt) has been moved to binutils.
378 demangle:
379         @echo "The standalone demangler, now named c++filt, is now"
380         @echo "a part of binutils."
381         @false
382
383 ls:
384         @echo Makefile $(CFILES)
385
386 # Various targets for maintainers.
387
388 maint-missing :
389         @$(PERL) $(srcdir)/maint-tool -s $(srcdir) missing $(CFILES) $(REQUIRED_LTOFILES) $(CONFIGURED_LTOFILES)
390
391 maint-buildall : $(REQUIRED_LTOFILES) $(CONFIGURED_LTOFILES)
392         @true
393
394 maint-undoc : $(srcdir)/functions.texi
395         @$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc
396
397 maint-deps :
398         @$(PERL) $(srcdir)/maint-tool -s $(srcdir) deps $(INCDIR)
399
400 # Need to deal with profiled libraries, too.
401
402 # Cleaning has to be done carefully to ensure that we don't clean our SUBDIRS
403 # multiple times, hence our explicit recursion with an empty SUBDIRS.
404 mostlyclean: mostlyclean-subdir
405         -rm -rf *.o *.lo pic .libs core errs \#* *.E a.out
406         -rm -f needed.awk needed2.awk errors dummy needed-list config.h stamp-*
407         -rm -f $(CONFIG_H) $(NEEDED_LIST)
408         -rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky
409         -rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg
410         -rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.vr
411         -rm -f libtexi.stamp
412         @$(MULTICLEAN) multi-clean DO=mostlyclean
413 clean: clean-subdir
414         $(MAKE) SUBDIRS="" mostlyclean
415         -rm -f *.a required-list tmpmulti.out
416         -rm -f libiberty.dvi libiberty.info* libiberty.html
417         @$(MULTICLEAN) multi-clean DO=clean
418 distclean: distclean-subdir
419         $(MAKE) SUBDIRS="" clean
420         @$(MULTICLEAN) multi-clean DO=distclean
421         -rm -f *~ Makefile config.cache config.status xhost-mkfrag TAGS multilib.out
422         -rm -f config.log
423         -rmdir testsuite 2>/dev/null
424 maintainer-clean realclean: maintainer-clean-subdir
425         $(MAKE) SUBDIRS="" distclean
426
427 force:
428
429 Makefile: $(srcdir)/Makefile.in config.status
430         CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
431
432 # Depending on Makefile makes sure that config.status has been re-run
433 # if needed.  This prevents problems with parallel builds.
434 config.h: stamp-h ; @true
435 stamp-h: $(srcdir)/config.in config.status Makefile
436         CONFIG_FILES= CONFIG_HEADERS=config.h:$(srcdir)/config.in $(SHELL) ./config.status
437
438 config.status: $(srcdir)/configure $(srcdir)/config.table
439         $(SHELL) ./config.status --recheck
440
441 # Depending on config.h makes sure that config.status has been re-run
442 # if needed.  This prevents problems with parallel builds, in case
443 # subdirectories need to run config.status also.
444 all-subdir check-subdir installcheck-subdir info-subdir \
445 install-info-subdir clean-info-subdir dvi-subdir install-subdir \
446 etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
447 maintainer-clean-subdir: config.h
448         @subdirs='$(SUBDIRS)'; \
449         target=`echo $@ | sed -e 's/-subdir//'`; \
450         for dir in $$subdirs ; do \
451           cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \
452         done
453
454 # Don't export variables to the environment, in order to not confuse
455 # configure.
456 .NOEXPORT:
457 # The dependencies in the remainder of this file are automatically
458 # generated by "make maint-deps".  Manual edits will be lost.
459
460 ./_doprnt.lo: $(srcdir)/_doprnt.c config.h $(INCDIR)/ansidecl.h \
461         $(INCDIR)/safe-ctype.h
462         $(LTCOMPILE) -c -o $@ $(srcdir)/_doprnt.c
463
464 ./alloca.lo: $(srcdir)/alloca.c config.h $(INCDIR)/ansidecl.h \
465         $(INCDIR)/libiberty.h
466         $(LTCOMPILE) -c -o $@ $(srcdir)/alloca.c
467
468 ./argv.lo: $(srcdir)/argv.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
469         $(LTCOMPILE) -c -o $@ $(srcdir)/argv.c
470
471 ./asprintf.lo: $(srcdir)/asprintf.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
472         $(LTCOMPILE) -c -o $@ $(srcdir)/asprintf.c
473
474 ./atexit.lo: $(srcdir)/atexit.c config.h
475         $(LTCOMPILE) -c -o $@ $(srcdir)/atexit.c
476
477 ./basename.lo: $(srcdir)/basename.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
478         $(INCDIR)/safe-ctype.h
479         $(LTCOMPILE) -c -o $@ $(srcdir)/basename.c
480
481 ./bcmp.lo: $(srcdir)/bcmp.c
482         $(LTCOMPILE) -c -o $@ $(srcdir)/bcmp.c
483
484 ./bcopy.lo: $(srcdir)/bcopy.c
485         $(LTCOMPILE) -c -o $@ $(srcdir)/bcopy.c
486
487 ./bsearch.lo: $(srcdir)/bsearch.c config.h $(INCDIR)/ansidecl.h
488         $(LTCOMPILE) -c -o $@ $(srcdir)/bsearch.c
489
490 ./bzero.lo: $(srcdir)/bzero.c
491         $(LTCOMPILE) -c -o $@ $(srcdir)/bzero.c
492
493 ./calloc.lo: $(srcdir)/calloc.c $(INCDIR)/ansidecl.h
494         $(LTCOMPILE) -c -o $@ $(srcdir)/calloc.c
495
496 ./choose-temp.lo: $(srcdir)/choose-temp.c config.h $(INCDIR)/ansidecl.h \
497         $(INCDIR)/libiberty.h
498         $(LTCOMPILE) -c -o $@ $(srcdir)/choose-temp.c
499
500 ./clock.lo: $(srcdir)/clock.c config.h
501         $(LTCOMPILE) -c -o $@ $(srcdir)/clock.c
502
503 ./concat.lo: $(srcdir)/concat.c config.h $(INCDIR)/ansidecl.h \
504         $(INCDIR)/libiberty.h
505         $(LTCOMPILE) -c -o $@ $(srcdir)/concat.c
506
507 ./copysign.lo: $(srcdir)/copysign.c $(INCDIR)/ansidecl.h
508         $(LTCOMPILE) -c -o $@ $(srcdir)/copysign.c
509
510 ./cp-demangle.lo: $(srcdir)/cp-demangle.c config.h $(INCDIR)/ansidecl.h \
511         $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \
512         $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h
513         $(LTCOMPILE) -c -o $@ $(srcdir)/cp-demangle.c
514
515 ./cp-demint.lo: $(srcdir)/cp-demint.c config.h $(INCDIR)/ansidecl.h \
516         $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \
517         $(INCDIR)/libiberty.h
518         $(LTCOMPILE) -c -o $@ $(srcdir)/cp-demint.c
519
520 ./cplus-dem.lo: $(srcdir)/cplus-dem.c config.h $(INCDIR)/ansidecl.h \
521         $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
522         $(INCDIR)/safe-ctype.h
523         $(LTCOMPILE) -c -o $@ $(srcdir)/cplus-dem.c
524
525 ./dyn-string.lo: $(srcdir)/dyn-string.c config.h $(INCDIR)/ansidecl.h \
526         $(INCDIR)/dyn-string.h $(INCDIR)/libiberty.h
527         $(LTCOMPILE) -c -o $@ $(srcdir)/dyn-string.c
528
529 ./fdmatch.lo: $(srcdir)/fdmatch.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
530         $(LTCOMPILE) -c -o $@ $(srcdir)/fdmatch.c
531
532 ./ffs.lo: $(srcdir)/ffs.c
533         $(LTCOMPILE) -c -o $@ $(srcdir)/ffs.c
534
535 ./fibheap.lo: $(srcdir)/fibheap.c config.h $(INCDIR)/ansidecl.h \
536         $(INCDIR)/fibheap.h $(INCDIR)/libiberty.h
537         $(LTCOMPILE) -c -o $@ $(srcdir)/fibheap.c
538
539 ./floatformat.lo: $(srcdir)/floatformat.c config.h $(INCDIR)/ansidecl.h \
540         $(INCDIR)/floatformat.h $(INCDIR)/libiberty.h
541         $(LTCOMPILE) -c -o $@ $(srcdir)/floatformat.c
542
543 ./fnmatch.lo: $(srcdir)/fnmatch.c config.h $(INCDIR)/fnmatch.h \
544         $(INCDIR)/safe-ctype.h
545         $(LTCOMPILE) -c -o $@ $(srcdir)/fnmatch.c
546
547 ./getcwd.lo: $(srcdir)/getcwd.c config.h
548         $(LTCOMPILE) -c -o $@ $(srcdir)/getcwd.c
549
550 ./getopt.lo: $(srcdir)/getopt.c config.h $(INCDIR)/getopt.h
551         $(LTCOMPILE) -c -o $@ $(srcdir)/getopt.c
552
553 ./getopt1.lo: $(srcdir)/getopt1.c config.h $(INCDIR)/getopt.h
554         $(LTCOMPILE) -c -o $@ $(srcdir)/getopt1.c
555
556 ./getpagesize.lo: $(srcdir)/getpagesize.c config.h
557         $(LTCOMPILE) -c -o $@ $(srcdir)/getpagesize.c
558
559 ./getpwd.lo: $(srcdir)/getpwd.c config.h $(INCDIR)/ansidecl.h \
560         $(INCDIR)/libiberty.h
561         $(LTCOMPILE) -c -o $@ $(srcdir)/getpwd.c
562
563 ./getruntime.lo: $(srcdir)/getruntime.c config.h $(INCDIR)/ansidecl.h \
564         $(INCDIR)/libiberty.h
565         $(LTCOMPILE) -c -o $@ $(srcdir)/getruntime.c
566
567 ./hashtab.lo: $(srcdir)/hashtab.c config.h $(INCDIR)/ansidecl.h \
568         $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h
569         $(LTCOMPILE) -c -o $@ $(srcdir)/hashtab.c
570
571 ./hex.lo: $(srcdir)/hex.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
572         $(INCDIR)/safe-ctype.h
573         $(LTCOMPILE) -c -o $@ $(srcdir)/hex.c
574
575 ./index.lo: $(srcdir)/index.c
576         $(LTCOMPILE) -c -o $@ $(srcdir)/index.c
577
578 ./insque.lo: $(srcdir)/insque.c
579         $(LTCOMPILE) -c -o $@ $(srcdir)/insque.c
580
581 ./lbasename.lo: $(srcdir)/lbasename.c $(INCDIR)/ansidecl.h $(INCDIR)/filenames.h \
582         $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
583         $(LTCOMPILE) -c -o $@ $(srcdir)/lbasename.c
584
585 ./lrealpath.lo: $(srcdir)/lrealpath.c config.h $(INCDIR)/ansidecl.h \
586         $(INCDIR)/libiberty.h
587         $(LTCOMPILE) -c -o $@ $(srcdir)/lrealpath.c
588
589 ./make-relative-prefix.lo: $(srcdir)/make-relative-prefix.c config.h \
590         $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
591         $(LTCOMPILE) -c -o $@ $(srcdir)/make-relative-prefix.c
592
593 ./make-temp-file.lo: $(srcdir)/make-temp-file.c config.h $(INCDIR)/ansidecl.h \
594         $(INCDIR)/libiberty.h
595         $(LTCOMPILE) -c -o $@ $(srcdir)/make-temp-file.c
596
597 ./md5.lo: $(srcdir)/md5.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h
598         $(LTCOMPILE) -c -o $@ $(srcdir)/md5.c
599
600 ./memchr.lo: $(srcdir)/memchr.c $(INCDIR)/ansidecl.h
601         $(LTCOMPILE) -c -o $@ $(srcdir)/memchr.c
602
603 ./memcmp.lo: $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h
604         $(LTCOMPILE) -c -o $@ $(srcdir)/memcmp.c
605
606 ./memcpy.lo: $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h
607         $(LTCOMPILE) -c -o $@ $(srcdir)/memcpy.c
608
609 ./memmove.lo: $(srcdir)/memmove.c $(INCDIR)/ansidecl.h
610         $(LTCOMPILE) -c -o $@ $(srcdir)/memmove.c
611
612 ./mempcpy.lo: $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h
613         $(LTCOMPILE) -c -o $@ $(srcdir)/mempcpy.c
614
615 ./memset.lo: $(srcdir)/memset.c $(INCDIR)/ansidecl.h
616         $(LTCOMPILE) -c -o $@ $(srcdir)/memset.c
617
618 ./mkstemps.lo: $(srcdir)/mkstemps.c config.h $(INCDIR)/ansidecl.h
619         $(LTCOMPILE) -c -o $@ $(srcdir)/mkstemps.c
620
621 ./mpw.lo: $(srcdir)/mpw.c
622         $(LTCOMPILE) -c -o $@ $(srcdir)/mpw.c
623
624 ./msdos.lo: $(srcdir)/msdos.c
625         $(LTCOMPILE) -c -o $@ $(srcdir)/msdos.c
626
627 ./objalloc.lo: $(srcdir)/objalloc.c config.h $(INCDIR)/ansidecl.h \
628         $(INCDIR)/objalloc.h
629         $(LTCOMPILE) -c -o $@ $(srcdir)/objalloc.c
630
631 ./obstack.lo: $(srcdir)/obstack.c config.h $(INCDIR)/obstack.h
632         $(LTCOMPILE) -c -o $@ $(srcdir)/obstack.c
633
634 ./partition.lo: $(srcdir)/partition.c config.h $(INCDIR)/ansidecl.h \
635         $(INCDIR)/libiberty.h $(INCDIR)/partition.h
636         $(LTCOMPILE) -c -o $@ $(srcdir)/partition.c
637
638 ./pex-djgpp.lo: $(srcdir)/pex-djgpp.c config.h $(INCDIR)/ansidecl.h \
639         $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
640         $(LTCOMPILE) -c -o $@ $(srcdir)/pex-djgpp.c
641
642 ./pex-mpw.lo: $(srcdir)/pex-mpw.c config.h $(INCDIR)/ansidecl.h \
643         $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
644         $(LTCOMPILE) -c -o $@ $(srcdir)/pex-mpw.c
645
646 ./pex-msdos.lo: $(srcdir)/pex-msdos.c config.h $(INCDIR)/ansidecl.h \
647         $(INCDIR)/libiberty.h $(srcdir)/pex-common.h \
648         $(INCDIR)/safe-ctype.h
649         $(LTCOMPILE) -c -o $@ $(srcdir)/pex-msdos.c
650
651 ./pex-os2.lo: $(srcdir)/pex-os2.c config.h $(INCDIR)/ansidecl.h \
652         $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
653         $(LTCOMPILE) -c -o $@ $(srcdir)/pex-os2.c
654
655 ./pex-unix.lo: $(srcdir)/pex-unix.c config.h $(INCDIR)/ansidecl.h \
656         $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
657         $(LTCOMPILE) -c -o $@ $(srcdir)/pex-unix.c
658
659 ./pex-win32.lo: $(srcdir)/pex-win32.c config.h $(INCDIR)/ansidecl.h \
660         $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
661         $(LTCOMPILE) -c -o $@ $(srcdir)/pex-win32.c
662
663 ./physmem.lo: $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \
664         $(INCDIR)/libiberty.h
665         $(LTCOMPILE) -c -o $@ $(srcdir)/physmem.c
666
667 ./putenv.lo: $(srcdir)/putenv.c config.h $(INCDIR)/ansidecl.h
668         $(LTCOMPILE) -c -o $@ $(srcdir)/putenv.c
669
670 ./random.lo: $(srcdir)/random.c $(INCDIR)/ansidecl.h
671         $(LTCOMPILE) -c -o $@ $(srcdir)/random.c
672
673 ./regex.lo: $(srcdir)/regex.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/xregex.h \
674         $(INCDIR)/xregex2.h
675         $(LTCOMPILE) -c -o $@ $(srcdir)/regex.c
676
677 ./rename.lo: $(srcdir)/rename.c config.h $(INCDIR)/ansidecl.h
678         $(LTCOMPILE) -c -o $@ $(srcdir)/rename.c
679
680 ./rindex.lo: $(srcdir)/rindex.c
681         $(LTCOMPILE) -c -o $@ $(srcdir)/rindex.c
682
683 ./safe-ctype.lo: $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \
684         $(INCDIR)/safe-ctype.h
685         $(LTCOMPILE) -c -o $@ $(srcdir)/safe-ctype.c
686
687 ./setenv.lo: $(srcdir)/setenv.c config.h $(INCDIR)/ansidecl.h
688         $(LTCOMPILE) -c -o $@ $(srcdir)/setenv.c
689
690 ./sigsetmask.lo: $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h
691         $(LTCOMPILE) -c -o $@ $(srcdir)/sigsetmask.c
692
693 ./snprintf.lo: $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h
694         $(LTCOMPILE) -c -o $@ $(srcdir)/snprintf.c
695
696 ./sort.lo: $(srcdir)/sort.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
697         $(INCDIR)/sort.h
698         $(LTCOMPILE) -c -o $@ $(srcdir)/sort.c
699
700 ./spaces.lo: $(srcdir)/spaces.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
701         $(LTCOMPILE) -c -o $@ $(srcdir)/spaces.c
702
703 ./splay-tree.lo: $(srcdir)/splay-tree.c config.h $(INCDIR)/ansidecl.h \
704         $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h
705         $(LTCOMPILE) -c -o $@ $(srcdir)/splay-tree.c
706
707 ./stpcpy.lo: $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h
708         $(LTCOMPILE) -c -o $@ $(srcdir)/stpcpy.c
709
710 ./stpncpy.lo: $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h
711         $(LTCOMPILE) -c -o $@ $(srcdir)/stpncpy.c
712
713 ./strcasecmp.lo: $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h
714         $(LTCOMPILE) -c -o $@ $(srcdir)/strcasecmp.c
715
716 ./strchr.lo: $(srcdir)/strchr.c $(INCDIR)/ansidecl.h
717         $(LTCOMPILE) -c -o $@ $(srcdir)/strchr.c
718
719 ./strdup.lo: $(srcdir)/strdup.c $(INCDIR)/ansidecl.h
720         $(LTCOMPILE) -c -o $@ $(srcdir)/strdup.c
721
722 ./strerror.lo: $(srcdir)/strerror.c config.h $(INCDIR)/ansidecl.h \
723         $(INCDIR)/libiberty.h
724         $(LTCOMPILE) -c -o $@ $(srcdir)/strerror.c
725
726 ./strncasecmp.lo: $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h
727         $(LTCOMPILE) -c -o $@ $(srcdir)/strncasecmp.c
728
729 ./strncmp.lo: $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h
730         $(LTCOMPILE) -c -o $@ $(srcdir)/strncmp.c
731
732 ./strrchr.lo: $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h
733         $(LTCOMPILE) -c -o $@ $(srcdir)/strrchr.c
734
735 ./strsignal.lo: $(srcdir)/strsignal.c config.h $(INCDIR)/ansidecl.h \
736         $(INCDIR)/libiberty.h
737         $(LTCOMPILE) -c -o $@ $(srcdir)/strsignal.c
738
739 ./strstr.lo: $(srcdir)/strstr.c
740         $(LTCOMPILE) -c -o $@ $(srcdir)/strstr.c
741
742 ./strtod.lo: $(srcdir)/strtod.c $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h
743         $(LTCOMPILE) -c -o $@ $(srcdir)/strtod.c
744
745 ./strtol.lo: $(srcdir)/strtol.c config.h $(INCDIR)/safe-ctype.h
746         $(LTCOMPILE) -c -o $@ $(srcdir)/strtol.c
747
748 ./strtoul.lo: $(srcdir)/strtoul.c config.h $(INCDIR)/ansidecl.h \
749         $(INCDIR)/safe-ctype.h
750         $(LTCOMPILE) -c -o $@ $(srcdir)/strtoul.c
751
752 ./ternary.lo: $(srcdir)/ternary.c config.h $(INCDIR)/ansidecl.h \
753         $(INCDIR)/libiberty.h $(INCDIR)/ternary.h
754         $(LTCOMPILE) -c -o $@ $(srcdir)/ternary.c
755
756 ./tmpnam.lo: $(srcdir)/tmpnam.c
757         $(LTCOMPILE) -c -o $@ $(srcdir)/tmpnam.c
758
759 ./vasprintf.lo: $(srcdir)/vasprintf.c config.h $(INCDIR)/ansidecl.h \
760         $(INCDIR)/libiberty.h
761         $(LTCOMPILE) -c -o $@ $(srcdir)/vasprintf.c
762
763 ./vfork.lo: $(srcdir)/vfork.c $(INCDIR)/ansidecl.h
764         $(LTCOMPILE) -c -o $@ $(srcdir)/vfork.c
765
766 ./vfprintf.lo: $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h
767         $(LTCOMPILE) -c -o $@ $(srcdir)/vfprintf.c
768
769 ./vprintf.lo: $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h
770         $(LTCOMPILE) -c -o $@ $(srcdir)/vprintf.c
771
772 ./vsnprintf.lo: $(srcdir)/vsnprintf.c config.h $(INCDIR)/ansidecl.h \
773         $(INCDIR)/libiberty.h
774         $(LTCOMPILE) -c -o $@ $(srcdir)/vsnprintf.c
775
776 ./vsprintf.lo: $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h
777         $(LTCOMPILE) -c -o $@ $(srcdir)/vsprintf.c
778
779 ./waitpid.lo: $(srcdir)/waitpid.c config.h
780         $(LTCOMPILE) -c -o $@ $(srcdir)/waitpid.c
781
782 ./xatexit.lo: $(srcdir)/xatexit.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
783         $(LTCOMPILE) -c -o $@ $(srcdir)/xatexit.c
784
785 ./xexit.lo: $(srcdir)/xexit.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
786         $(LTCOMPILE) -c -o $@ $(srcdir)/xexit.c
787
788 ./xmalloc.lo: $(srcdir)/xmalloc.c config.h $(INCDIR)/ansidecl.h \
789         $(INCDIR)/libiberty.h
790         $(LTCOMPILE) -c -o $@ $(srcdir)/xmalloc.c
791
792 ./xmemdup.lo: $(srcdir)/xmemdup.c config.h $(INCDIR)/ansidecl.h \
793         $(INCDIR)/libiberty.h
794         $(LTCOMPILE) -c -o $@ $(srcdir)/xmemdup.c
795
796 ./xstrdup.lo: $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \
797         $(INCDIR)/libiberty.h
798         $(LTCOMPILE) -c -o $@ $(srcdir)/xstrdup.c
799
800 ./xstrerror.lo: $(srcdir)/xstrerror.c config.h $(INCDIR)/ansidecl.h \
801         $(INCDIR)/libiberty.h
802         $(LTCOMPILE) -c -o $@ $(srcdir)/xstrerror.c
803