1999-05-03 15:29:11 +08:00
|
|
|
#
|
|
|
|
# Makefile
|
2003-01-28 09:46:13 +08:00
|
|
|
# Copyright (C) 1990, 91-99, 2000, 2001, 2002, 2003
|
1999-05-03 15:29:11 +08:00
|
|
|
# Free Software Foundation
|
|
|
|
#
|
|
|
|
# This file is part of the libiberty library.
|
|
|
|
# Libiberty is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# Libiberty is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with libiberty; see the file COPYING.LIB. If not,
|
|
|
|
# write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
# Boston, MA 02111-1307, USA.
|
|
|
|
#
|
|
|
|
|
|
|
|
# This file was written by K. Richard Pixley <rich@cygnus.com>.
|
|
|
|
|
|
|
|
#
|
|
|
|
# Makefile for libiberty directory
|
|
|
|
#
|
|
|
|
|
2003-01-31 04:00:42 +08:00
|
|
|
libiberty_topdir = @libiberty_topdir@
|
1999-05-03 15:29:11 +08:00
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
libdir = @libdir@
|
2002-03-05 06:01:27 +08:00
|
|
|
includedir = @includedir@
|
|
|
|
target_header_dir = @target_header_dir@
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
SHELL = @SHELL@
|
|
|
|
|
|
|
|
# Multilib support variables.
|
|
|
|
MULTISRCTOP =
|
|
|
|
MULTIBUILDTOP =
|
|
|
|
MULTIDIRS =
|
|
|
|
MULTISUBDIR =
|
|
|
|
MULTIDO = true
|
|
|
|
MULTICLEAN = true
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
2003-01-31 04:00:42 +08:00
|
|
|
mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2002-07-02 02:02:30 +08:00
|
|
|
# Some compilers can't handle cc -c blah.c -o foo/blah.o.
|
|
|
|
OUTPUT_OPTION = @OUTPUT_OPTION@
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
AR = @AR@
|
|
|
|
AR_FLAGS = rc
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
LIBCFLAGS = $(CFLAGS)
|
|
|
|
RANLIB = @RANLIB@
|
2001-09-27 02:45:50 +08:00
|
|
|
MAKEINFO = @MAKEINFO@
|
|
|
|
PERL = @PERL@
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
PICFLAG =
|
|
|
|
|
|
|
|
MAKEOVERRIDES =
|
|
|
|
|
|
|
|
TARGETLIB = libiberty.a
|
2002-01-23 04:14:53 +08:00
|
|
|
TESTLIB = testlib.a
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
LIBOBJS = @LIBOBJS@
|
|
|
|
|
|
|
|
# A configuration can specify extra .o files that should be included,
|
|
|
|
# even if they are in libc. (Perhaps the libc version is buggy.)
|
|
|
|
EXTRA_OFILES =
|
|
|
|
|
|
|
|
# Flags to pass to a recursive make.
|
|
|
|
FLAGS_TO_PASS = \
|
|
|
|
"AR=$(AR)" \
|
|
|
|
"AR_FLAGS=$(AR_FLAGS)" \
|
|
|
|
"CC=$(CC)" \
|
|
|
|
"CFLAGS=$(CFLAGS)" \
|
2003-01-09 22:39:43 +08:00
|
|
|
"DESTDIR=$(DESTDIR)" \
|
1999-05-03 15:29:11 +08:00
|
|
|
"LIBCFLAGS=$(LIBCFLAGS)" \
|
|
|
|
"EXTRA_OFILES=$(EXTRA_OFILES)" \
|
|
|
|
"HDEFINES=$(HDEFINES)" \
|
|
|
|
"INSTALL=$(INSTALL)" \
|
|
|
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
|
|
|
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
|
|
|
"LDFLAGS=$(LDFLAGS)" \
|
|
|
|
"LOADLIBES=$(LOADLIBES)" \
|
|
|
|
"RANLIB=$(RANLIB)" \
|
2000-02-23 00:14:35 +08:00
|
|
|
"SHELL=$(SHELL)" \
|
|
|
|
"prefix=$(prefix)" \
|
|
|
|
"exec_prefix=$(exec_prefix)" \
|
|
|
|
"libdir=$(libdir)" \
|
|
|
|
"libsubdir=$(libsubdir)" \
|
|
|
|
"tooldir=$(tooldir)"
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2000-02-23 00:14:35 +08:00
|
|
|
# Subdirectories to recurse into. We need to override this during cleaning
|
|
|
|
SUBDIRS = testsuite
|
|
|
|
|
2001-09-27 02:45:50 +08:00
|
|
|
# FIXME: add @BUILD_INFO@ once we're sure it works for everyone.
|
2000-02-23 00:14:35 +08:00
|
|
|
all: stamp-picdir $(TARGETLIB) needed-list required-list all-subdir
|
2002-09-23 20:08:57 +08:00
|
|
|
@: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
.PHONY: check installcheck
|
2000-02-23 00:14:35 +08:00
|
|
|
check: check-subdir
|
|
|
|
installcheck: installcheck-subdir
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
@host_makefile_frag@
|
|
|
|
|
|
|
|
INCDIR=$(srcdir)/$(MULTISRCTOP)../include
|
|
|
|
|
2000-06-16 04:56:25 +08:00
|
|
|
COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@
|
1999-05-03 15:29:11 +08:00
|
|
|
.c.o:
|
2000-06-16 04:56:25 +08:00
|
|
|
if [ x"$(PICFLAG)" != x ]; then \
|
|
|
|
$(COMPILE.c) $(PICFLAG) $< -o pic/$@; \
|
|
|
|
else true; fi
|
2002-07-02 02:02:30 +08:00
|
|
|
$(COMPILE.c) $< $(OUTPUT_OPTION)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
# NOTE: If you add new files to the library, add them to this list
|
2002-01-23 04:14:53 +08:00
|
|
|
# (alphabetical), and add them to REQUIRED_OFILES, or
|
|
|
|
# CONFIGURED_OFILES and funcs in configure.in.
|
|
|
|
CFILES = alloca.c argv.c asprintf.c atexit.c \
|
|
|
|
basename.c bcmp.c bcopy.c bsearch.c bzero.c \
|
|
|
|
calloc.c choose-temp.c clock.c concat.c cp-demangle.c \
|
|
|
|
cplus-dem.c \
|
|
|
|
dyn-string.c \
|
|
|
|
fdmatch.c ffs.c fibheap.c floatformat.c fnmatch.c \
|
|
|
|
getcwd.c getopt.c getopt1.c getpagesize.c getpwd.c getruntime.c \
|
|
|
|
hashtab.c hex.c \
|
|
|
|
index.c insque.c \
|
|
|
|
lbasename.c \
|
2002-11-23 05:02:14 +08:00
|
|
|
make-relative-prefix.c \
|
2002-01-23 04:14:53 +08:00
|
|
|
make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmove.c \
|
|
|
|
memset.c mkstemps.c \
|
|
|
|
objalloc.c obstack.c \
|
2003-01-25 05:31:35 +08:00
|
|
|
partition.c \
|
2003-01-25 08:23:30 +08:00
|
|
|
pex-djgpp.c pex-mpw.c pex-msdos.c pex-os2.c \
|
2003-01-25 05:31:35 +08:00
|
|
|
pex-unix.c pex-win32.c \
|
|
|
|
putenv.c \
|
2002-01-23 04:14:53 +08:00
|
|
|
random.c regex.c rename.c rindex.c \
|
|
|
|
safe-ctype.c setenv.c sigsetmask.c sort.c spaces.c \
|
|
|
|
splay-tree.c strcasecmp.c strchr.c strdup.c strerror.c \
|
|
|
|
strncasecmp.c strncmp.c strrchr.c strsignal.c strstr.c \
|
|
|
|
strtod.c strtol.c strtoul.c \
|
|
|
|
ternary.c tmpnam.c \
|
|
|
|
vasprintf.c vfork.c vfprintf.c vprintf.c vsprintf.c \
|
|
|
|
waitpid.c \
|
|
|
|
xatexit.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c
|
|
|
|
|
|
|
|
# These are always included in the library. The first four are listed
|
|
|
|
# first and by compile time to optimize parallel builds.
|
|
|
|
REQUIRED_OFILES = regex.o cplus-dem.o cp-demangle.o md5.o \
|
|
|
|
alloca.o argv.o \
|
|
|
|
choose-temp.o concat.o \
|
|
|
|
dyn-string.o \
|
|
|
|
fdmatch.o fibheap.o floatformat.o fnmatch.o \
|
|
|
|
getopt.o getopt1.o getpwd.o getruntime.o \
|
|
|
|
hashtab.o hex.o \
|
|
|
|
lbasename.o \
|
2002-11-23 05:02:14 +08:00
|
|
|
make-relative-prefix.o \
|
2002-01-23 04:14:53 +08:00
|
|
|
make-temp-file.o \
|
|
|
|
objalloc.o obstack.o \
|
2003-01-25 05:31:35 +08:00
|
|
|
partition.o @pexecute@ \
|
2002-01-23 04:14:53 +08:00
|
|
|
safe-ctype.o sort.o spaces.o splay-tree.o strerror.o \
|
|
|
|
strsignal.o \
|
|
|
|
ternary.o \
|
|
|
|
xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o
|
2001-03-07 02:27:14 +08:00
|
|
|
|
2001-09-27 02:45:50 +08:00
|
|
|
# These are all the objects that configure may add to the library via
|
2002-01-23 04:14:53 +08:00
|
|
|
# $funcs or EXTRA_OFILES. This list exists here only for "make
|
|
|
|
# maint-missing" and "make check".
|
|
|
|
CONFIGURED_OFILES = asprintf.o atexit.o \
|
|
|
|
basename.o bcmp.o bcopy.o bsearch.o bzero.o \
|
|
|
|
calloc.o clock.o copysign.o \
|
|
|
|
_doprnt.o \
|
|
|
|
ffs.o \
|
|
|
|
getcwd.o getpagesize.o \
|
|
|
|
index.o insque.o \
|
|
|
|
memchr.o memcmp.o memcpy.o memmove.o memset.o mkstemps.o \
|
2003-01-25 08:23:30 +08:00
|
|
|
pex-djgpp.o pex-mpw.o pex-msdos.o pex-os2.o \
|
2003-01-25 05:31:35 +08:00
|
|
|
pex-unix.o pex-win32.o \
|
|
|
|
putenv.o \
|
2002-01-23 04:14:53 +08:00
|
|
|
random.o rename.o rindex.o \
|
|
|
|
setenv.o sigsetmask.o strcasecmp.o strchr.o strdup.o \
|
|
|
|
strncasecmp.o strncmp.o strrchr.o strstr.o strtod.o strtol.o \
|
|
|
|
strtoul.o \
|
|
|
|
tmpnam.o \
|
|
|
|
vasprintf.o vfork.o vfprintf.o vprintf.o vsprintf.o \
|
|
|
|
waitpid.o
|
2001-09-27 02:45:50 +08:00
|
|
|
|
2002-03-05 06:01:27 +08:00
|
|
|
# These files are installed if the library has been configured to do so.
|
|
|
|
INSTALLED_HEADERS = \
|
|
|
|
$(INCDIR)/ansidecl.h \
|
|
|
|
$(INCDIR)/demangle.h \
|
|
|
|
$(INCDIR)/dyn-string.h \
|
|
|
|
$(INCDIR)/fibheap.h \
|
|
|
|
$(INCDIR)/floatformat.h \
|
|
|
|
$(INCDIR)/hashtab.h \
|
|
|
|
$(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/objalloc.h \
|
|
|
|
$(INCDIR)/partition.h \
|
|
|
|
$(INCDIR)/safe-ctype.h \
|
|
|
|
$(INCDIR)/sort.h \
|
|
|
|
$(INCDIR)/splay-tree.h \
|
|
|
|
$(INCDIR)/ternary.h
|
|
|
|
|
2001-03-07 02:27:14 +08:00
|
|
|
$(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
|
2001-10-21 08:08:22 +08:00
|
|
|
-rm -f $(TARGETLIB) pic/$(TARGETLIB)
|
1999-05-03 15:29:11 +08:00
|
|
|
$(AR) $(AR_FLAGS) $(TARGETLIB) \
|
2001-03-07 02:27:14 +08:00
|
|
|
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
|
1999-05-03 15:29:11 +08:00
|
|
|
$(RANLIB) $(TARGETLIB)
|
2001-10-21 08:08:22 +08:00
|
|
|
if [ x"$(PICFLAG)" != x ]; then \
|
|
|
|
cd pic; \
|
|
|
|
$(AR) $(AR_FLAGS) $(TARGETLIB) \
|
|
|
|
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
|
|
|
|
$(RANLIB) $(TARGETLIB); \
|
|
|
|
cd ..; \
|
|
|
|
else true; fi
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2002-01-23 04:14:53 +08:00
|
|
|
$(TESTLIB): $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
|
|
|
|
-rm -f $(TESTLIB)
|
|
|
|
$(AR) $(AR_FLAGS) $(TESTLIB) \
|
|
|
|
$(REQUIRED_OFILES) $(CONFIGURED_OFILES)
|
|
|
|
$(RANLIB) $(TESTLIB)
|
|
|
|
|
2001-09-27 02:45:50 +08:00
|
|
|
info: libiberty.info info-subdir
|
|
|
|
install-info: install-info-subdir
|
|
|
|
clean-info: clean-info-subdir
|
|
|
|
dvi: libiberty.dvi dvi-subdir
|
|
|
|
html: libiberty.html
|
|
|
|
|
|
|
|
TEXISRC = \
|
|
|
|
$(srcdir)/libiberty.texi \
|
|
|
|
$(srcdir)/copying-lib.texi \
|
|
|
|
$(srcdir)/obstacks.texi \
|
|
|
|
$(srcdir)/functions.texi
|
|
|
|
|
|
|
|
# Additional files that have texi snippets that need to be collected
|
2001-10-16 10:55:31 +08:00
|
|
|
# and sorted. Some are here because the sources are imported from
|
|
|
|
# elsewhere. Others represent headers in ../include.
|
2003-01-25 05:31:35 +08:00
|
|
|
TEXIFILES = fnmatch.txh pexecute.txh
|
2001-09-27 02:45:50 +08:00
|
|
|
|
|
|
|
libiberty.info : $(srcdir)/libiberty.texi $(TEXISRC)
|
|
|
|
$(MAKEINFO) -I$(srcdir) $(srcdir)/libiberty.texi
|
|
|
|
|
|
|
|
libiberty.dvi : $(srcdir)/libiberty.texi $(TEXISRC)
|
|
|
|
texi2dvi $(srcdir)/libiberty.texi
|
|
|
|
|
|
|
|
libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC)
|
|
|
|
$(MAKEINFO) --html -I$(srcdir) $(srcdir)/libiberty.texi
|
|
|
|
|
|
|
|
@MAINT@$(srcdir)/functions.texi : stamp-functions
|
|
|
|
@MAINT@ @true
|
|
|
|
|
|
|
|
@MAINT@stamp-functions : $(CFILES) $(TEXIFILES) $(srcdir)/gather-docs Makefile
|
|
|
|
@MAINT@@HAVE_PERL@ $(PERL) $(srcdir)/gather-docs $(srcdir) $(srcdir)/functions.texi $(CFILES) $(TEXIFILES)
|
|
|
|
@MAINT@ echo stamp > stamp-functions
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
INSTALL_DEST = @INSTALL_DEST@
|
2000-02-23 00:14:35 +08:00
|
|
|
install: install_to_$(INSTALL_DEST) install-subdir
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
install_to_libdir: all
|
2003-01-09 22:39:43 +08:00
|
|
|
${mkinstalldirs} $(DESTDIR)$(libdir)$(MULTISUBDIR)
|
2002-06-22 21:31:20 +08:00
|
|
|
$(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n
|
|
|
|
( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
|
|
|
|
mv -f $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)
|
2002-03-05 06:01:27 +08:00
|
|
|
if test -n "${target_header_dir}"; then \
|
|
|
|
case "${target_header_dir}" in \
|
|
|
|
/*) thd=${target_header_dir};; \
|
|
|
|
*) thd=${includedir}${MULTISUBDIR}/${target_header_dir};; \
|
|
|
|
esac; \
|
2002-06-22 21:31:20 +08:00
|
|
|
${mkinstalldirs} $(DESTDIR)$${thd}; \
|
2002-03-05 06:01:27 +08:00
|
|
|
for h in ${INSTALLED_HEADERS}; do \
|
2002-06-22 21:31:20 +08:00
|
|
|
${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \
|
2002-03-05 06:01:27 +08:00
|
|
|
done; \
|
|
|
|
fi
|
1999-05-03 15:29:11 +08:00
|
|
|
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
|
|
|
|
|
|
|
|
install_to_tooldir: all
|
2003-01-28 09:46:13 +08:00
|
|
|
${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory`
|
|
|
|
$(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory`/$(TARGETLIB)n
|
|
|
|
( cd $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory` ; $(RANLIB) $(TARGETLIB)n )
|
|
|
|
mv -f $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory`/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory`/$(TARGETLIB)
|
1999-05-03 15:29:11 +08:00
|
|
|
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
|
|
|
|
|
2000-02-23 00:14:35 +08:00
|
|
|
# needed-list is used by libstdc++. NEEDED is the list of functions
|
|
|
|
# to include there. Do not add anything LGPL to this list; libstdc++
|
|
|
|
# can't use anything encumbering.
|
|
|
|
NEEDED = atexit calloc memchr memcmp memcpy memmove memset rename strchr \
|
2000-06-16 04:56:25 +08:00
|
|
|
strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf \
|
2000-02-23 00:14:35 +08:00
|
|
|
vfork waitpid bcmp bcopy bzero
|
1999-05-03 15:29:11 +08:00
|
|
|
needed-list: Makefile
|
2000-02-23 00:14:35 +08:00
|
|
|
rm -f needed-list; touch needed-list; \
|
|
|
|
for f in $(NEEDED); do \
|
|
|
|
for g in $(LIBOBJS) $(EXTRA_OFILES); do \
|
|
|
|
case "$$g" in \
|
|
|
|
*$$f*) echo $$g >> needed-list ;; \
|
|
|
|
esac; \
|
|
|
|
done; \
|
|
|
|
done
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
# required-list was used when building a shared bfd/opcodes/libiberty
|
|
|
|
# library. I don't know if it used by anything currently.
|
|
|
|
required-list: Makefile
|
|
|
|
echo $(REQUIRED_OFILES) > required-list
|
|
|
|
|
|
|
|
stamp-picdir:
|
2000-06-16 04:56:25 +08:00
|
|
|
if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \
|
1999-05-03 15:29:11 +08:00
|
|
|
mkdir pic; \
|
|
|
|
else true; fi
|
|
|
|
touch stamp-picdir
|
|
|
|
|
|
|
|
.PHONY: all etags tags ls clean stage1 stage2
|
|
|
|
|
2000-02-23 00:14:35 +08:00
|
|
|
etags tags: TAGS etags-subdir
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-03-07 02:27:14 +08:00
|
|
|
TAGS: $(CFILES)
|
|
|
|
etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done`
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
# The standalone demangler (c++filt) has been moved to binutils.
|
|
|
|
demangle:
|
|
|
|
@echo "The standalone demangler, now named c++filt, is now"
|
|
|
|
@echo "a part of binutils."
|
|
|
|
@false
|
|
|
|
|
|
|
|
ls:
|
2001-03-07 02:27:14 +08:00
|
|
|
@echo Makefile $(CFILES)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-09-27 02:45:50 +08:00
|
|
|
# Various targets for maintainers.
|
|
|
|
|
|
|
|
maint-missing :
|
|
|
|
@$(PERL) $(srcdir)/maint-tool -s $(srcdir) missing $(CFILES) $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
|
|
|
|
|
|
|
|
maint-buildall : $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
|
|
|
|
@true
|
|
|
|
|
2001-10-16 10:55:31 +08:00
|
|
|
maint-undoc : $(srcdir)/functions.texi
|
|
|
|
@$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc
|
|
|
|
|
2002-01-23 04:14:53 +08:00
|
|
|
maint-deps :
|
|
|
|
@$(PERL) $(srcdir)/maint-tool -s $(srcdir) deps $(INCDIR)
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
# Need to deal with profiled libraries, too.
|
|
|
|
|
2000-02-23 00:14:35 +08:00
|
|
|
# Cleaning has to be done carefully to ensure that we don't clean our SUBDIRS
|
|
|
|
# multiple times, hence our explicit recursion with an empty SUBDIRS.
|
|
|
|
mostlyclean: mostlyclean-subdir
|
2000-12-10 00:10:41 +08:00
|
|
|
-rm -rf *.o pic core errs \#* *.E a.out
|
|
|
|
-rm -f needed.awk needed2.awk errors dummy needed-list config.h stamp-*
|
|
|
|
-rm -f $(CONFIG_H) $(NEEDED_LIST) stamp-picdir
|
2001-09-27 02:45:50 +08:00
|
|
|
-rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky
|
|
|
|
-rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg
|
|
|
|
-rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.vr
|
|
|
|
-rm -f libtexi.stamp
|
1999-05-03 15:29:11 +08:00
|
|
|
@$(MULTICLEAN) multi-clean DO=mostlyclean
|
2000-02-23 00:14:35 +08:00
|
|
|
clean: clean-subdir
|
|
|
|
$(MAKE) SUBDIRS="" mostlyclean
|
2000-12-10 00:10:41 +08:00
|
|
|
-rm -f *.a required-list tmpmulti.out
|
2001-09-27 02:45:50 +08:00
|
|
|
-rm -f libiberty.dvi libiberty.info* libiberty.html
|
1999-05-03 15:29:11 +08:00
|
|
|
@$(MULTICLEAN) multi-clean DO=clean
|
2000-02-23 00:14:35 +08:00
|
|
|
distclean: distclean-subdir
|
|
|
|
$(MAKE) SUBDIRS="" clean
|
1999-05-03 15:29:11 +08:00
|
|
|
@$(MULTICLEAN) multi-clean DO=distclean
|
2000-12-10 00:10:41 +08:00
|
|
|
-rm -f *~ Makefile config.status xhost-mkfrag TAGS multilib.out
|
|
|
|
-rm -f config.log
|
2000-12-08 07:14:29 +08:00
|
|
|
-rmdir testsuite 2>/dev/null
|
2000-02-23 00:14:35 +08:00
|
|
|
maintainer-clean realclean: maintainer-clean-subdir
|
|
|
|
$(MAKE) SUBDIRS="" distclean
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
force:
|
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in config.status
|
|
|
|
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
2001-11-27 06:25:58 +08:00
|
|
|
# Depending on Makefile makes sure that config.status has been re-run
|
|
|
|
# if needed. This prevents problems with parallel builds.
|
1999-05-03 15:29:11 +08:00
|
|
|
config.h: stamp-h ; @true
|
2001-11-27 06:25:58 +08:00
|
|
|
stamp-h: config.in config.status Makefile
|
1999-05-03 15:29:11 +08:00
|
|
|
CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
|
|
|
|
|
|
|
|
config.status: $(srcdir)/configure $(srcdir)/config.table
|
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
|
2001-11-27 06:25:58 +08:00
|
|
|
# Depending on config.h makes sure that config.status has been re-run
|
|
|
|
# if needed. This prevents problems with parallel builds, in case
|
|
|
|
# subdirectories need to run config.status also.
|
2000-02-23 00:14:35 +08:00
|
|
|
all-subdir check-subdir installcheck-subdir info-subdir \
|
|
|
|
install-info-subdir clean-info-subdir dvi-subdir install-subdir \
|
|
|
|
etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
|
2001-11-27 06:25:58 +08:00
|
|
|
maintainer-clean-subdir: config.h
|
2000-05-26 20:50:58 +08:00
|
|
|
@subdirs='$(SUBDIRS)'; \
|
2000-04-22 06:19:43 +08:00
|
|
|
target=`echo $@ | sed -e 's/-subdir//'`; \
|
2000-05-26 20:50:58 +08:00
|
|
|
for dir in $$subdirs ; do \
|
2003-01-29 05:53:39 +08:00
|
|
|
cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \
|
2000-02-23 00:14:35 +08:00
|
|
|
done
|
|
|
|
|
2001-03-07 02:27:14 +08:00
|
|
|
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS): stamp-picdir
|
2002-01-23 04:14:53 +08:00
|
|
|
$(CONFIGURED_OFILES): stamp-picdir
|
|
|
|
|
|
|
|
# The dependencies in the remainder of this file are automatically
|
|
|
|
# generated by "make maint-deps". Manual edits will be lost.
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2002-01-23 04:14:53 +08:00
|
|
|
_doprnt.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h
|
|
|
|
alloca.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
argv.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
asprintf.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
1999-05-03 15:29:11 +08:00
|
|
|
atexit.o: config.h
|
2002-01-23 04:14:53 +08:00
|
|
|
basename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/safe-ctype.h
|
|
|
|
bsearch.o: config.h $(INCDIR)/ansidecl.h
|
|
|
|
calloc.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
choose-temp.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
1999-05-03 15:29:11 +08:00
|
|
|
clock.o: config.h
|
2002-01-23 04:14:53 +08:00
|
|
|
concat.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
copysign.o: $(INCDIR)/ansidecl.h
|
|
|
|
cp-demangle.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/demangle.h \
|
|
|
|
$(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h
|
|
|
|
cplus-dem.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/demangle.h \
|
|
|
|
$(INCDIR)/getopt.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
|
|
|
|
dyn-string.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/dyn-string.h \
|
|
|
|
$(INCDIR)/libiberty.h
|
|
|
|
fdmatch.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
fibheap.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/fibheap.h \
|
|
|
|
$(INCDIR)/libiberty.h
|
|
|
|
floatformat.o: $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h
|
|
|
|
fnmatch.o: config.h $(INCDIR)/fnmatch.h $(INCDIR)/safe-ctype.h
|
1999-05-03 15:29:11 +08:00
|
|
|
getcwd.o: config.h
|
|
|
|
getopt.o: config.h $(INCDIR)/getopt.h
|
|
|
|
getopt1.o: config.h $(INCDIR)/getopt.h
|
|
|
|
getpagesize.o: config.h
|
2002-01-23 04:14:53 +08:00
|
|
|
getpwd.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
getruntime.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
hashtab.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/hashtab.h \
|
|
|
|
$(INCDIR)/libiberty.h
|
|
|
|
hex.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
lbasename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/safe-ctype.h
|
2002-11-23 05:02:14 +08:00
|
|
|
make-relative-prefix.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
2002-01-23 04:14:53 +08:00
|
|
|
make-temp-file.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
md5.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h
|
|
|
|
memchr.o: $(INCDIR)/ansidecl.h
|
|
|
|
memcmp.o: $(INCDIR)/ansidecl.h
|
|
|
|
memcpy.o: $(INCDIR)/ansidecl.h
|
|
|
|
memmove.o: $(INCDIR)/ansidecl.h
|
|
|
|
memset.o: $(INCDIR)/ansidecl.h
|
|
|
|
mkstemps.o: config.h $(INCDIR)/ansidecl.h
|
|
|
|
objalloc.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/objalloc.h
|
1999-05-03 15:29:11 +08:00
|
|
|
obstack.o: config.h $(INCDIR)/obstack.h
|
2002-01-23 04:14:53 +08:00
|
|
|
partition.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/partition.h
|
2003-01-25 05:31:35 +08:00
|
|
|
pex-djgpp.o: config.h pex-common.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
pex-mpw.o: config.h pex-common.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
pex-msdos.o: config.h pex-common.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
2002-01-23 04:14:53 +08:00
|
|
|
$(INCDIR)/safe-ctype.h
|
2003-01-25 05:31:35 +08:00
|
|
|
pex-os2.o: config.h pex-common.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
pex-unix.o: config.h pex-common.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
pex-win32.o: config.h pex-common.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
2002-01-23 04:14:53 +08:00
|
|
|
putenv.o: config.h $(INCDIR)/ansidecl.h
|
|
|
|
random.o: $(INCDIR)/ansidecl.h
|
2001-07-26 22:14:49 +08:00
|
|
|
regex.o: config.h $(INCDIR)/xregex.h $(INCDIR)/xregex2.h
|
2000-07-27 07:24:05 +08:00
|
|
|
rename.o: config.h
|
2002-01-23 04:14:53 +08:00
|
|
|
safe-ctype.o: $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h
|
|
|
|
setenv.o: config.h $(INCDIR)/ansidecl.h
|
|
|
|
sigsetmask.o: $(INCDIR)/ansidecl.h
|
|
|
|
sort.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/sort.h
|
|
|
|
spaces.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
splay-tree.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/splay-tree.h
|
|
|
|
strcasecmp.o: $(INCDIR)/ansidecl.h
|
|
|
|
strchr.o: $(INCDIR)/ansidecl.h
|
|
|
|
strerror.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
strncasecmp.o: $(INCDIR)/ansidecl.h
|
|
|
|
strncmp.o: $(INCDIR)/ansidecl.h
|
|
|
|
strrchr.o: $(INCDIR)/ansidecl.h
|
|
|
|
strsignal.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
strtod.o: $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h
|
|
|
|
strtol.o: config.h $(INCDIR)/safe-ctype.h
|
|
|
|
strtoul.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h
|
|
|
|
ternary.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/ternary.h
|
|
|
|
vasprintf.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
vfork.o: $(INCDIR)/ansidecl.h
|
|
|
|
vprintf.o: $(INCDIR)/ansidecl.h
|
|
|
|
vsprintf.o: $(INCDIR)/ansidecl.h
|
2000-07-27 07:24:05 +08:00
|
|
|
waitpid.o: config.h
|
2002-01-23 04:14:53 +08:00
|
|
|
xatexit.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
xexit.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
xmalloc.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
xmemdup.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
xstrdup.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
|
|
|
xstrerror.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|