1997-08-22 00:57:35 +02:00
|
|
|
#
|
|
|
|
# Makefile
|
2003-01-28 02:48:39 +01:00
|
|
|
# Copyright (C) 1990, 91-99, 2000, 2001, 2002, 2003
|
1998-05-16 01:42:58 +02:00
|
|
|
# Free Software Foundation
|
1997-08-22 00:57:35 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
1998-05-16 01:42:58 +02:00
|
|
|
# This file was written by K. Richard Pixley <rich@cygnus.com>.
|
1997-08-22 00:57:35 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Makefile for libiberty directory
|
|
|
|
#
|
|
|
|
|
2003-01-30 20:02:12 +01:00
|
|
|
libiberty_topdir = @libiberty_topdir@
|
1998-05-16 01:42:58 +02:00
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
1997-08-22 00:57:35 +02:00
|
|
|
|
1998-05-16 01:42:58 +02:00
|
|
|
prefix = @prefix@
|
1997-08-22 00:57:35 +02:00
|
|
|
|
1998-05-16 01:42:58 +02:00
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
libdir = @libdir@
|
2002-03-04 22:41:06 +01:00
|
|
|
includedir = @includedir@
|
|
|
|
target_header_dir = @target_header_dir@
|
1997-08-22 00:57:35 +02:00
|
|
|
|
1998-05-16 01:42:58 +02:00
|
|
|
SHELL = @SHELL@
|
1997-08-22 00:57:35 +02:00
|
|
|
|
|
|
|
# Multilib support variables.
|
|
|
|
MULTISRCTOP =
|
|
|
|
MULTIBUILDTOP =
|
|
|
|
MULTIDIRS =
|
|
|
|
MULTISUBDIR =
|
|
|
|
MULTIDO = true
|
|
|
|
MULTICLEAN = true
|
|
|
|
|
1998-05-16 01:42:58 +02:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
2003-01-30 20:02:12 +01:00
|
|
|
mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs
|
1997-08-22 00:57:35 +02:00
|
|
|
|
2002-07-01 07:38:50 +02:00
|
|
|
# Some compilers can't handle cc -c blah.c -o foo/blah.o.
|
|
|
|
OUTPUT_OPTION = @OUTPUT_OPTION@
|
|
|
|
|
1998-05-16 01:42:58 +02:00
|
|
|
AR = @AR@
|
1997-08-22 00:57:35 +02:00
|
|
|
AR_FLAGS = rc
|
|
|
|
|
1998-05-16 01:42:58 +02:00
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CFLAGS@
|
1997-08-22 00:57:35 +02:00
|
|
|
LIBCFLAGS = $(CFLAGS)
|
1998-05-16 01:42:58 +02:00
|
|
|
RANLIB = @RANLIB@
|
configure.in (MAKEINFO, PERL): Detect these.
* configure.in (MAKEINFO, PERL): Detect these.
(--enable-maintainer-mode): Add.
* configure: Regenerate.
* Makefile.in (MAKEINFO, PERL): Define.
(libiberty.info, libiberty.dvi, libiberty.html): New.
(CFILES): Add bsearch.c.
(CONFIGURED_OFILES): New, list of objects configure might add.
(maint-missing, maint-buildall): New, for maintainers only.
(clean, mostlyclean): Add info/dvi/html files.
* libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
* gather-docs: New, for maintainers.
* maint-tool: New, for maintainers.
* alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
documentation.
Co-Authored-By: Phil Edwards <pedwards@disaster.jaj.com>
From-SVN: r45828
2001-09-26 20:16:17 +02:00
|
|
|
MAKEINFO = @MAKEINFO@
|
|
|
|
PERL = @PERL@
|
1997-08-22 00:57:35 +02:00
|
|
|
|
|
|
|
PICFLAG =
|
|
|
|
|
|
|
|
MAKEOVERRIDES =
|
|
|
|
|
|
|
|
TARGETLIB = libiberty.a
|
2002-01-22 21:03:29 +01:00
|
|
|
TESTLIB = testlib.a
|
1997-08-22 00:57:35 +02:00
|
|
|
|
1998-05-16 01:42:58 +02:00
|
|
|
LIBOBJS = @LIBOBJS@
|
1997-08-22 00:57:35 +02:00
|
|
|
|
|
|
|
# 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 09:08:30 +01:00
|
|
|
"DESTDIR=$(DESTDIR)" \
|
1997-08-22 00:57:35 +02: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)" \
|
1999-08-07 07:37:16 +02:00
|
|
|
"SHELL=$(SHELL)" \
|
|
|
|
"prefix=$(prefix)" \
|
|
|
|
"exec_prefix=$(exec_prefix)" \
|
|
|
|
"libdir=$(libdir)" \
|
|
|
|
"libsubdir=$(libsubdir)" \
|
|
|
|
"tooldir=$(tooldir)"
|
1997-08-22 00:57:35 +02:00
|
|
|
|
1999-10-28 10:26:42 +02:00
|
|
|
# Subdirectories to recurse into. We need to override this during cleaning
|
|
|
|
SUBDIRS = testsuite
|
|
|
|
|
configure.in (MAKEINFO, PERL): Detect these.
* configure.in (MAKEINFO, PERL): Detect these.
(--enable-maintainer-mode): Add.
* configure: Regenerate.
* Makefile.in (MAKEINFO, PERL): Define.
(libiberty.info, libiberty.dvi, libiberty.html): New.
(CFILES): Add bsearch.c.
(CONFIGURED_OFILES): New, list of objects configure might add.
(maint-missing, maint-buildall): New, for maintainers only.
(clean, mostlyclean): Add info/dvi/html files.
* libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
* gather-docs: New, for maintainers.
* maint-tool: New, for maintainers.
* alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
documentation.
Co-Authored-By: Phil Edwards <pedwards@disaster.jaj.com>
From-SVN: r45828
2001-09-26 20:16:17 +02:00
|
|
|
# FIXME: add @BUILD_INFO@ once we're sure it works for everyone.
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 16:28:59 +02:00
|
|
|
all: stamp-picdir $(TARGETLIB) needed-list required-list all-subdir
|
2002-09-23 05:52:55 +02:00
|
|
|
@: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
|
1997-08-22 00:57:35 +02:00
|
|
|
|
|
|
|
.PHONY: check installcheck
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 16:28:59 +02:00
|
|
|
check: check-subdir
|
|
|
|
installcheck: installcheck-subdir
|
1997-08-22 00:57:35 +02:00
|
|
|
|
1998-05-16 01:42:58 +02:00
|
|
|
@host_makefile_frag@
|
1997-08-22 00:57:35 +02:00
|
|
|
|
|
|
|
INCDIR=$(srcdir)/$(MULTISRCTOP)../include
|
|
|
|
|
2000-01-04 17:09:57 +01:00
|
|
|
COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@
|
1997-08-22 00:57:35 +02:00
|
|
|
.c.o:
|
2000-05-16 04:48:28 +02:00
|
|
|
if [ x"$(PICFLAG)" != x ]; then \
|
|
|
|
$(COMPILE.c) $(PICFLAG) $< -o pic/$@; \
|
|
|
|
else true; fi
|
2002-07-01 07:38:50 +02:00
|
|
|
$(COMPILE.c) $< $(OUTPUT_OPTION)
|
1997-08-22 00:57:35 +02:00
|
|
|
|
|
|
|
# NOTE: If you add new files to the library, add them to this list
|
2002-01-22 21:03:29 +01: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 \
|
2003-02-20 23:11:13 +01:00
|
|
|
lrealpath.c \
|
2002-11-22 21:01:07 +01:00
|
|
|
make-relative-prefix.c \
|
2002-01-22 21:03:29 +01:00
|
|
|
make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmove.c \
|
2003-04-16 04:56:46 +02:00
|
|
|
mempcpy.c memset.c mkstemps.c \
|
2002-01-22 21:03:29 +01:00
|
|
|
objalloc.c obstack.c \
|
Makefile.in (CFILES): Add pex-*.c.
* Makefile.in (CFILES): Add pex-*.c.
(REQUIRED_OFILES): Change pexecute.o to @pexecute@
(CONFIGURED_OFILES): Add pex-*.o.
(TEXIFILES): Add pexecute.txh.
(pexecute.o): Delete rule.
(pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
pex-unix.o, pex-win32.o): New rules.
* configure.in: Change AC_INIT argument to xmalloc.c.
Compute appropriate pexecute implementation and substitute it
as @pexecute@.
* pexecute.c: Split up into...
* pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
new files.
* functions.texi: Regenerate.
* configure: Regenerate.
From-SVN: r61728
2003-01-24 21:02:11 +01:00
|
|
|
partition.c \
|
2003-01-25 00:23:18 +01:00
|
|
|
pex-djgpp.c pex-mpw.c pex-msdos.c pex-os2.c \
|
Makefile.in (CFILES): Add pex-*.c.
* Makefile.in (CFILES): Add pex-*.c.
(REQUIRED_OFILES): Change pexecute.o to @pexecute@
(CONFIGURED_OFILES): Add pex-*.o.
(TEXIFILES): Add pexecute.txh.
(pexecute.o): Delete rule.
(pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
pex-unix.o, pex-win32.o): New rules.
* configure.in: Change AC_INIT argument to xmalloc.c.
Compute appropriate pexecute implementation and substitute it
as @pexecute@.
* pexecute.c: Split up into...
* pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
new files.
* functions.texi: Regenerate.
* configure: Regenerate.
From-SVN: r61728
2003-01-24 21:02:11 +01:00
|
|
|
pex-unix.c pex-win32.c \
|
2003-02-21 01:27:04 +01:00
|
|
|
physmem.c putenv.c \
|
2002-01-22 21:03:29 +01:00
|
|
|
random.c regex.c rename.c rindex.c \
|
2003-04-17 00:42:07 +02:00
|
|
|
safe-ctype.c setenv.c sigsetmask.c snprintf.c sort.c spaces.c \
|
2003-04-16 04:56:46 +02:00
|
|
|
splay-tree.c stpcpy.c stpncpy.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 \
|
2002-01-22 21:03:29 +01:00
|
|
|
ternary.c tmpnam.c \
|
2003-04-17 00:42:07 +02:00
|
|
|
vasprintf.c vfork.c vfprintf.c vprintf.c vsnprintf.c vsprintf.c \
|
2002-01-22 21:03:29 +01:00
|
|
|
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 \
|
2003-02-20 23:11:13 +01:00
|
|
|
lrealpath.o \
|
2002-11-22 21:01:07 +01:00
|
|
|
make-relative-prefix.o \
|
2002-01-22 21:03:29 +01:00
|
|
|
make-temp-file.o \
|
|
|
|
objalloc.o obstack.o \
|
2003-02-21 01:27:04 +01:00
|
|
|
partition.o physmem.o @pexecute@ \
|
2002-01-22 21:03:29 +01: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
|
aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
libiberty:
* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
* configure.in: Replace all alloca logic with a simple use of
the above new macro.
* config.table: Kill *-*-beos* entry.
* config/mh-beos: Delete.
* configure, config.in: Regenerate.
* Makefile.in (ALLOCA, HFILES): Kill.
(REQUIRED_OFILES): Add alloca.o.
(alloca.o): Depend on libiberty.h.
(argv.o): Don't depend on alloca-conf.h.
* alloca-conf.h: Delete.
* alloca.c: Include libiberty.h. Kill all #ifdef emacs
blocks. Provide the C alloca unconditionally. Use PTR where
appropriate. Make i00afunc static.
* argv.c: Don't include alloca-conf.h.
include:
* libiberty.h: Prototype C_alloca; define alloca to either
__builtin_alloca or C_alloca as appropriate.
gcc:
* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE
AC_FUNC_ALLOCA.
* configure, config.in: Regenerate.
* config.gcc: Remove references to deleted files.
* genattr.c, genattrtab.c, genextract.c, genoutput.c,
genrecog.c, rtl.c: Do not use alloca anywhere.
* Makefile.in, build-make, system.h, config/x-interix,
config/x-svr4, config/xm-interix.h, config/xm-openbsd.h,
config/alpha/xm-alpha.h, config/alpha/xm-vms.h,
config/arc/xm-arc.h, config/arm/xm-arm.h,
config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
config/h8300/xm-h8300.h, config/i370/x-oe,
config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos,
config/i386/x-ncr3000, config/i386/x-sco5,
config/i386/xm-dgux.h, config/i860/x-sysv4,
config/i960/xm-i960.h, config/m32r/xm-m32r.h,
config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320,
config/m68k/x-hp320g, config/m69k/x-mot3300,
config/m68k/x-mot3300-gas, config/m68k/xm-amix.h,
config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h,
config/m68k/xm-mot3300.h, config/m88k/x-dolph,
config/m88k/x-sysv4, config/m88k/x-tekXD88,
config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
config/mips/x-iris, config/mips/x-iris3,
config/mips/x-sni-svr4, config/mips/x-sysv,
config/mips/xm-iris6.h, config/mips/xm-mips.h,
config/mips/xm-nws3250v4.h, config/pa/x-hpux,
config/pa/x-pa-mpeix, config/pa/xm-pa.h,
config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
config/pa/xm-papro.h, config/romp/xm-romp.h,
config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-beos, config/rs6000/x-lynx,
config/rs6000/x-mach, config/rs6000/x-rs6000,
config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h,
config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
config/sparc/x-sysv4, config/sparc/xm-linux.h,
config/sparc/xm-pbd.h, config/sparc/xm-sparc.h,
config/vax/xm-vms.h: Eradicate all references to alloca and
related stuff.
* config/xm-alloca.h, config/clipper/x-clix,
config/i386/xm-sysv4.h, config/i860/x-fx2800,
config/i860/x-sysv3, config/m88k/x-sysv3,
config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete
(contained only alloca related hacks).
* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define
USE_C_ALLOCA.
From-SVN: r40259
2001-03-06 10:52:35 +01:00
|
|
|
|
configure.in (MAKEINFO, PERL): Detect these.
* configure.in (MAKEINFO, PERL): Detect these.
(--enable-maintainer-mode): Add.
* configure: Regenerate.
* Makefile.in (MAKEINFO, PERL): Define.
(libiberty.info, libiberty.dvi, libiberty.html): New.
(CFILES): Add bsearch.c.
(CONFIGURED_OFILES): New, list of objects configure might add.
(maint-missing, maint-buildall): New, for maintainers only.
(clean, mostlyclean): Add info/dvi/html files.
* libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
* gather-docs: New, for maintainers.
* maint-tool: New, for maintainers.
* alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
documentation.
Co-Authored-By: Phil Edwards <pedwards@disaster.jaj.com>
From-SVN: r45828
2001-09-26 20:16:17 +02:00
|
|
|
# These are all the objects that configure may add to the library via
|
2002-01-22 21:03:29 +01: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 \
|
2003-04-16 04:56:46 +02:00
|
|
|
memchr.o memcmp.o memcpy.o memmove.o mempcpy.o memset.o mkstemps.o \
|
2003-01-25 00:23:18 +01:00
|
|
|
pex-djgpp.o pex-mpw.o pex-msdos.o pex-os2.o \
|
Makefile.in (CFILES): Add pex-*.c.
* Makefile.in (CFILES): Add pex-*.c.
(REQUIRED_OFILES): Change pexecute.o to @pexecute@
(CONFIGURED_OFILES): Add pex-*.o.
(TEXIFILES): Add pexecute.txh.
(pexecute.o): Delete rule.
(pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
pex-unix.o, pex-win32.o): New rules.
* configure.in: Change AC_INIT argument to xmalloc.c.
Compute appropriate pexecute implementation and substitute it
as @pexecute@.
* pexecute.c: Split up into...
* pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
new files.
* functions.texi: Regenerate.
* configure: Regenerate.
From-SVN: r61728
2003-01-24 21:02:11 +01:00
|
|
|
pex-unix.o pex-win32.o \
|
|
|
|
putenv.o \
|
2002-01-22 21:03:29 +01:00
|
|
|
random.o rename.o rindex.o \
|
2003-04-17 00:42:07 +02:00
|
|
|
setenv.o sigsetmask.o snprintf.o stpcpy.o stpncpy.o strcasecmp.o \
|
|
|
|
strchr.o strdup.o strncasecmp.o strncmp.o strrchr.o strstr.o \
|
|
|
|
strtod.o strtol.o strtoul.o \
|
2002-01-22 21:03:29 +01:00
|
|
|
tmpnam.o \
|
2003-04-17 00:42:07 +02:00
|
|
|
vasprintf.o vfork.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \
|
2002-01-22 21:03:29 +01:00
|
|
|
waitpid.o
|
configure.in (MAKEINFO, PERL): Detect these.
* configure.in (MAKEINFO, PERL): Detect these.
(--enable-maintainer-mode): Add.
* configure: Regenerate.
* Makefile.in (MAKEINFO, PERL): Define.
(libiberty.info, libiberty.dvi, libiberty.html): New.
(CFILES): Add bsearch.c.
(CONFIGURED_OFILES): New, list of objects configure might add.
(maint-missing, maint-buildall): New, for maintainers only.
(clean, mostlyclean): Add info/dvi/html files.
* libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
* gather-docs: New, for maintainers.
* maint-tool: New, for maintainers.
* alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
documentation.
Co-Authored-By: Phil Edwards <pedwards@disaster.jaj.com>
From-SVN: r45828
2001-09-26 20:16:17 +02:00
|
|
|
|
2002-03-04 22:41:06 +01: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
|
|
|
|
|
aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
libiberty:
* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
* configure.in: Replace all alloca logic with a simple use of
the above new macro.
* config.table: Kill *-*-beos* entry.
* config/mh-beos: Delete.
* configure, config.in: Regenerate.
* Makefile.in (ALLOCA, HFILES): Kill.
(REQUIRED_OFILES): Add alloca.o.
(alloca.o): Depend on libiberty.h.
(argv.o): Don't depend on alloca-conf.h.
* alloca-conf.h: Delete.
* alloca.c: Include libiberty.h. Kill all #ifdef emacs
blocks. Provide the C alloca unconditionally. Use PTR where
appropriate. Make i00afunc static.
* argv.c: Don't include alloca-conf.h.
include:
* libiberty.h: Prototype C_alloca; define alloca to either
__builtin_alloca or C_alloca as appropriate.
gcc:
* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE
AC_FUNC_ALLOCA.
* configure, config.in: Regenerate.
* config.gcc: Remove references to deleted files.
* genattr.c, genattrtab.c, genextract.c, genoutput.c,
genrecog.c, rtl.c: Do not use alloca anywhere.
* Makefile.in, build-make, system.h, config/x-interix,
config/x-svr4, config/xm-interix.h, config/xm-openbsd.h,
config/alpha/xm-alpha.h, config/alpha/xm-vms.h,
config/arc/xm-arc.h, config/arm/xm-arm.h,
config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
config/h8300/xm-h8300.h, config/i370/x-oe,
config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos,
config/i386/x-ncr3000, config/i386/x-sco5,
config/i386/xm-dgux.h, config/i860/x-sysv4,
config/i960/xm-i960.h, config/m32r/xm-m32r.h,
config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320,
config/m68k/x-hp320g, config/m69k/x-mot3300,
config/m68k/x-mot3300-gas, config/m68k/xm-amix.h,
config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h,
config/m68k/xm-mot3300.h, config/m88k/x-dolph,
config/m88k/x-sysv4, config/m88k/x-tekXD88,
config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
config/mips/x-iris, config/mips/x-iris3,
config/mips/x-sni-svr4, config/mips/x-sysv,
config/mips/xm-iris6.h, config/mips/xm-mips.h,
config/mips/xm-nws3250v4.h, config/pa/x-hpux,
config/pa/x-pa-mpeix, config/pa/xm-pa.h,
config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
config/pa/xm-papro.h, config/romp/xm-romp.h,
config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-beos, config/rs6000/x-lynx,
config/rs6000/x-mach, config/rs6000/x-rs6000,
config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h,
config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
config/sparc/x-sysv4, config/sparc/xm-linux.h,
config/sparc/xm-pbd.h, config/sparc/xm-sparc.h,
config/vax/xm-vms.h: Eradicate all references to alloca and
related stuff.
* config/xm-alloca.h, config/clipper/x-clix,
config/i386/xm-sysv4.h, config/i860/x-fx2800,
config/i860/x-sysv3, config/m88k/x-sysv3,
config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete
(contained only alloca related hacks).
* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define
USE_C_ALLOCA.
From-SVN: r40259
2001-03-06 10:52:35 +01:00
|
|
|
$(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
|
2001-10-20 07:39:06 +02:00
|
|
|
-rm -f $(TARGETLIB) pic/$(TARGETLIB)
|
1998-05-16 01:42:58 +02:00
|
|
|
$(AR) $(AR_FLAGS) $(TARGETLIB) \
|
aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
libiberty:
* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
* configure.in: Replace all alloca logic with a simple use of
the above new macro.
* config.table: Kill *-*-beos* entry.
* config/mh-beos: Delete.
* configure, config.in: Regenerate.
* Makefile.in (ALLOCA, HFILES): Kill.
(REQUIRED_OFILES): Add alloca.o.
(alloca.o): Depend on libiberty.h.
(argv.o): Don't depend on alloca-conf.h.
* alloca-conf.h: Delete.
* alloca.c: Include libiberty.h. Kill all #ifdef emacs
blocks. Provide the C alloca unconditionally. Use PTR where
appropriate. Make i00afunc static.
* argv.c: Don't include alloca-conf.h.
include:
* libiberty.h: Prototype C_alloca; define alloca to either
__builtin_alloca or C_alloca as appropriate.
gcc:
* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE
AC_FUNC_ALLOCA.
* configure, config.in: Regenerate.
* config.gcc: Remove references to deleted files.
* genattr.c, genattrtab.c, genextract.c, genoutput.c,
genrecog.c, rtl.c: Do not use alloca anywhere.
* Makefile.in, build-make, system.h, config/x-interix,
config/x-svr4, config/xm-interix.h, config/xm-openbsd.h,
config/alpha/xm-alpha.h, config/alpha/xm-vms.h,
config/arc/xm-arc.h, config/arm/xm-arm.h,
config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
config/h8300/xm-h8300.h, config/i370/x-oe,
config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos,
config/i386/x-ncr3000, config/i386/x-sco5,
config/i386/xm-dgux.h, config/i860/x-sysv4,
config/i960/xm-i960.h, config/m32r/xm-m32r.h,
config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320,
config/m68k/x-hp320g, config/m69k/x-mot3300,
config/m68k/x-mot3300-gas, config/m68k/xm-amix.h,
config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h,
config/m68k/xm-mot3300.h, config/m88k/x-dolph,
config/m88k/x-sysv4, config/m88k/x-tekXD88,
config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
config/mips/x-iris, config/mips/x-iris3,
config/mips/x-sni-svr4, config/mips/x-sysv,
config/mips/xm-iris6.h, config/mips/xm-mips.h,
config/mips/xm-nws3250v4.h, config/pa/x-hpux,
config/pa/x-pa-mpeix, config/pa/xm-pa.h,
config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
config/pa/xm-papro.h, config/romp/xm-romp.h,
config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-beos, config/rs6000/x-lynx,
config/rs6000/x-mach, config/rs6000/x-rs6000,
config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h,
config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
config/sparc/x-sysv4, config/sparc/xm-linux.h,
config/sparc/xm-pbd.h, config/sparc/xm-sparc.h,
config/vax/xm-vms.h: Eradicate all references to alloca and
related stuff.
* config/xm-alloca.h, config/clipper/x-clix,
config/i386/xm-sysv4.h, config/i860/x-fx2800,
config/i860/x-sysv3, config/m88k/x-sysv3,
config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete
(contained only alloca related hacks).
* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define
USE_C_ALLOCA.
From-SVN: r40259
2001-03-06 10:52:35 +01:00
|
|
|
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
|
1998-05-16 01:42:58 +02:00
|
|
|
$(RANLIB) $(TARGETLIB)
|
2001-10-20 07:39:06 +02:00
|
|
|
if [ x"$(PICFLAG)" != x ]; then \
|
|
|
|
cd pic; \
|
|
|
|
$(AR) $(AR_FLAGS) $(TARGETLIB) \
|
|
|
|
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
|
|
|
|
$(RANLIB) $(TARGETLIB); \
|
|
|
|
cd ..; \
|
|
|
|
else true; fi
|
1997-08-22 00:57:35 +02:00
|
|
|
|
2002-01-22 21:03:29 +01:00
|
|
|
$(TESTLIB): $(REQUIRED_OFILES) $(CONFIGURED_OFILES)
|
|
|
|
-rm -f $(TESTLIB)
|
|
|
|
$(AR) $(AR_FLAGS) $(TESTLIB) \
|
|
|
|
$(REQUIRED_OFILES) $(CONFIGURED_OFILES)
|
|
|
|
$(RANLIB) $(TESTLIB)
|
|
|
|
|
configure.in (MAKEINFO, PERL): Detect these.
* configure.in (MAKEINFO, PERL): Detect these.
(--enable-maintainer-mode): Add.
* configure: Regenerate.
* Makefile.in (MAKEINFO, PERL): Define.
(libiberty.info, libiberty.dvi, libiberty.html): New.
(CFILES): Add bsearch.c.
(CONFIGURED_OFILES): New, list of objects configure might add.
(maint-missing, maint-buildall): New, for maintainers only.
(clean, mostlyclean): Add info/dvi/html files.
* libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
* gather-docs: New, for maintainers.
* maint-tool: New, for maintainers.
* alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
documentation.
Co-Authored-By: Phil Edwards <pedwards@disaster.jaj.com>
From-SVN: r45828
2001-09-26 20:16:17 +02: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
|
Makefile.in (TEXIFILES): Add fnmatch.txh.
* Makefile.in (TEXIFILES): Add fnmatch.txh.
(maint-undoc): New.
maint-tool: Add "undoc" tool.
* alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
documentation.
* fnmatch.txh: New.
* functions.texi: Regenerate.
From-SVN: r46274
2001-10-16 04:50:13 +02:00
|
|
|
# and sorted. Some are here because the sources are imported from
|
|
|
|
# elsewhere. Others represent headers in ../include.
|
Makefile.in (CFILES): Add pex-*.c.
* Makefile.in (CFILES): Add pex-*.c.
(REQUIRED_OFILES): Change pexecute.o to @pexecute@
(CONFIGURED_OFILES): Add pex-*.o.
(TEXIFILES): Add pexecute.txh.
(pexecute.o): Delete rule.
(pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
pex-unix.o, pex-win32.o): New rules.
* configure.in: Change AC_INIT argument to xmalloc.c.
Compute appropriate pexecute implementation and substitute it
as @pexecute@.
* pexecute.c: Split up into...
* pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
new files.
* functions.texi: Regenerate.
* configure: Regenerate.
From-SVN: r61728
2003-01-24 21:02:11 +01:00
|
|
|
TEXIFILES = fnmatch.txh pexecute.txh
|
configure.in (MAKEINFO, PERL): Detect these.
* configure.in (MAKEINFO, PERL): Detect these.
(--enable-maintainer-mode): Add.
* configure: Regenerate.
* Makefile.in (MAKEINFO, PERL): Define.
(libiberty.info, libiberty.dvi, libiberty.html): New.
(CFILES): Add bsearch.c.
(CONFIGURED_OFILES): New, list of objects configure might add.
(maint-missing, maint-buildall): New, for maintainers only.
(clean, mostlyclean): Add info/dvi/html files.
* libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
* gather-docs: New, for maintainers.
* maint-tool: New, for maintainers.
* alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
documentation.
Co-Authored-By: Phil Edwards <pedwards@disaster.jaj.com>
From-SVN: r45828
2001-09-26 20:16:17 +02: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
|
|
|
|
|
1998-05-16 01:42:58 +02:00
|
|
|
INSTALL_DEST = @INSTALL_DEST@
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 16:28:59 +02:00
|
|
|
install: install_to_$(INSTALL_DEST) install-subdir
|
1997-08-22 00:57:35 +02:00
|
|
|
|
|
|
|
install_to_libdir: all
|
2003-01-09 09:10:57 +01:00
|
|
|
${mkinstalldirs} $(DESTDIR)$(libdir)$(MULTISUBDIR)
|
2002-06-22 12:57:46 +02: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-04 22:41:06 +01: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 12:57:46 +02:00
|
|
|
${mkinstalldirs} $(DESTDIR)$${thd}; \
|
2002-03-04 22:41:06 +01:00
|
|
|
for h in ${INSTALLED_HEADERS}; do \
|
2002-06-22 12:57:46 +02:00
|
|
|
${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \
|
2002-03-04 22:41:06 +01:00
|
|
|
done; \
|
|
|
|
fi
|
1997-08-22 00:57:35 +02:00
|
|
|
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
|
|
|
|
|
2003-03-23 11:15:50 +01:00
|
|
|
# This is tricky. Even though CC in the Makefile contains
|
|
|
|
# multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
|
|
|
|
# default multilib, so we have to take LIBCFLAGS into account as well,
|
|
|
|
# since it will be passed the multilib flags.
|
|
|
|
MULTIOSDIR = `$(CC) $(LIBCFLAGS) -print-multi-os-directory`
|
1997-08-22 00:57:35 +02:00
|
|
|
install_to_tooldir: all
|
2003-03-23 11:15:50 +01:00
|
|
|
${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)
|
|
|
|
$(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n
|
|
|
|
( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; $(RANLIB) $(TARGETLIB)n )
|
|
|
|
mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)
|
1997-08-22 00:57:35 +02:00
|
|
|
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
|
|
|
|
|
1999-07-07 17:22:55 +02: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-05-09 03:23:33 +02:00
|
|
|
strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf \
|
1999-07-12 20:20:41 +02:00
|
|
|
vfork waitpid bcmp bcopy bzero
|
1998-05-16 01:42:58 +02:00
|
|
|
needed-list: Makefile
|
1999-07-07 17:22:55 +02:00
|
|
|
rm -f needed-list; touch needed-list; \
|
|
|
|
for f in $(NEEDED); do \
|
1999-07-08 04:43:10 +02:00
|
|
|
for g in $(LIBOBJS) $(EXTRA_OFILES); do \
|
|
|
|
case "$$g" in \
|
|
|
|
*$$f*) echo $$g >> needed-list ;; \
|
|
|
|
esac; \
|
|
|
|
done; \
|
1999-07-07 17:22:55 +02:00
|
|
|
done
|
1998-05-16 01:42:58 +02:00
|
|
|
|
|
|
|
# required-list was used when building a shared bfd/opcodes/libiberty
|
|
|
|
# library. I don't know if it used by anything currently.
|
1997-08-22 00:57:35 +02:00
|
|
|
required-list: Makefile
|
|
|
|
echo $(REQUIRED_OFILES) > required-list
|
|
|
|
|
|
|
|
stamp-picdir:
|
2000-05-16 04:48:28 +02:00
|
|
|
if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \
|
1997-08-22 00:57:35 +02:00
|
|
|
mkdir pic; \
|
|
|
|
else true; fi
|
|
|
|
touch stamp-picdir
|
|
|
|
|
1998-05-16 01:42:58 +02:00
|
|
|
.PHONY: all etags tags ls clean stage1 stage2
|
1997-08-22 00:57:35 +02:00
|
|
|
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 16:28:59 +02:00
|
|
|
etags tags: TAGS etags-subdir
|
1997-08-22 00:57:35 +02:00
|
|
|
|
aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
libiberty:
* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
* configure.in: Replace all alloca logic with a simple use of
the above new macro.
* config.table: Kill *-*-beos* entry.
* config/mh-beos: Delete.
* configure, config.in: Regenerate.
* Makefile.in (ALLOCA, HFILES): Kill.
(REQUIRED_OFILES): Add alloca.o.
(alloca.o): Depend on libiberty.h.
(argv.o): Don't depend on alloca-conf.h.
* alloca-conf.h: Delete.
* alloca.c: Include libiberty.h. Kill all #ifdef emacs
blocks. Provide the C alloca unconditionally. Use PTR where
appropriate. Make i00afunc static.
* argv.c: Don't include alloca-conf.h.
include:
* libiberty.h: Prototype C_alloca; define alloca to either
__builtin_alloca or C_alloca as appropriate.
gcc:
* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE
AC_FUNC_ALLOCA.
* configure, config.in: Regenerate.
* config.gcc: Remove references to deleted files.
* genattr.c, genattrtab.c, genextract.c, genoutput.c,
genrecog.c, rtl.c: Do not use alloca anywhere.
* Makefile.in, build-make, system.h, config/x-interix,
config/x-svr4, config/xm-interix.h, config/xm-openbsd.h,
config/alpha/xm-alpha.h, config/alpha/xm-vms.h,
config/arc/xm-arc.h, config/arm/xm-arm.h,
config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
config/h8300/xm-h8300.h, config/i370/x-oe,
config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos,
config/i386/x-ncr3000, config/i386/x-sco5,
config/i386/xm-dgux.h, config/i860/x-sysv4,
config/i960/xm-i960.h, config/m32r/xm-m32r.h,
config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320,
config/m68k/x-hp320g, config/m69k/x-mot3300,
config/m68k/x-mot3300-gas, config/m68k/xm-amix.h,
config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h,
config/m68k/xm-mot3300.h, config/m88k/x-dolph,
config/m88k/x-sysv4, config/m88k/x-tekXD88,
config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
config/mips/x-iris, config/mips/x-iris3,
config/mips/x-sni-svr4, config/mips/x-sysv,
config/mips/xm-iris6.h, config/mips/xm-mips.h,
config/mips/xm-nws3250v4.h, config/pa/x-hpux,
config/pa/x-pa-mpeix, config/pa/xm-pa.h,
config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
config/pa/xm-papro.h, config/romp/xm-romp.h,
config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-beos, config/rs6000/x-lynx,
config/rs6000/x-mach, config/rs6000/x-rs6000,
config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h,
config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
config/sparc/x-sysv4, config/sparc/xm-linux.h,
config/sparc/xm-pbd.h, config/sparc/xm-sparc.h,
config/vax/xm-vms.h: Eradicate all references to alloca and
related stuff.
* config/xm-alloca.h, config/clipper/x-clix,
config/i386/xm-sysv4.h, config/i860/x-fx2800,
config/i860/x-sysv3, config/m88k/x-sysv3,
config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete
(contained only alloca related hacks).
* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define
USE_C_ALLOCA.
From-SVN: r40259
2001-03-06 10:52:35 +01:00
|
|
|
TAGS: $(CFILES)
|
|
|
|
etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done`
|
1997-08-22 00:57:35 +02: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:
|
aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
libiberty:
* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
* configure.in: Replace all alloca logic with a simple use of
the above new macro.
* config.table: Kill *-*-beos* entry.
* config/mh-beos: Delete.
* configure, config.in: Regenerate.
* Makefile.in (ALLOCA, HFILES): Kill.
(REQUIRED_OFILES): Add alloca.o.
(alloca.o): Depend on libiberty.h.
(argv.o): Don't depend on alloca-conf.h.
* alloca-conf.h: Delete.
* alloca.c: Include libiberty.h. Kill all #ifdef emacs
blocks. Provide the C alloca unconditionally. Use PTR where
appropriate. Make i00afunc static.
* argv.c: Don't include alloca-conf.h.
include:
* libiberty.h: Prototype C_alloca; define alloca to either
__builtin_alloca or C_alloca as appropriate.
gcc:
* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE
AC_FUNC_ALLOCA.
* configure, config.in: Regenerate.
* config.gcc: Remove references to deleted files.
* genattr.c, genattrtab.c, genextract.c, genoutput.c,
genrecog.c, rtl.c: Do not use alloca anywhere.
* Makefile.in, build-make, system.h, config/x-interix,
config/x-svr4, config/xm-interix.h, config/xm-openbsd.h,
config/alpha/xm-alpha.h, config/alpha/xm-vms.h,
config/arc/xm-arc.h, config/arm/xm-arm.h,
config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
config/h8300/xm-h8300.h, config/i370/x-oe,
config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos,
config/i386/x-ncr3000, config/i386/x-sco5,
config/i386/xm-dgux.h, config/i860/x-sysv4,
config/i960/xm-i960.h, config/m32r/xm-m32r.h,
config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320,
config/m68k/x-hp320g, config/m69k/x-mot3300,
config/m68k/x-mot3300-gas, config/m68k/xm-amix.h,
config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h,
config/m68k/xm-mot3300.h, config/m88k/x-dolph,
config/m88k/x-sysv4, config/m88k/x-tekXD88,
config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
config/mips/x-iris, config/mips/x-iris3,
config/mips/x-sni-svr4, config/mips/x-sysv,
config/mips/xm-iris6.h, config/mips/xm-mips.h,
config/mips/xm-nws3250v4.h, config/pa/x-hpux,
config/pa/x-pa-mpeix, config/pa/xm-pa.h,
config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
config/pa/xm-papro.h, config/romp/xm-romp.h,
config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-beos, config/rs6000/x-lynx,
config/rs6000/x-mach, config/rs6000/x-rs6000,
config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h,
config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
config/sparc/x-sysv4, config/sparc/xm-linux.h,
config/sparc/xm-pbd.h, config/sparc/xm-sparc.h,
config/vax/xm-vms.h: Eradicate all references to alloca and
related stuff.
* config/xm-alloca.h, config/clipper/x-clix,
config/i386/xm-sysv4.h, config/i860/x-fx2800,
config/i860/x-sysv3, config/m88k/x-sysv3,
config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete
(contained only alloca related hacks).
* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define
USE_C_ALLOCA.
From-SVN: r40259
2001-03-06 10:52:35 +01:00
|
|
|
@echo Makefile $(CFILES)
|
1997-08-22 00:57:35 +02:00
|
|
|
|
configure.in (MAKEINFO, PERL): Detect these.
* configure.in (MAKEINFO, PERL): Detect these.
(--enable-maintainer-mode): Add.
* configure: Regenerate.
* Makefile.in (MAKEINFO, PERL): Define.
(libiberty.info, libiberty.dvi, libiberty.html): New.
(CFILES): Add bsearch.c.
(CONFIGURED_OFILES): New, list of objects configure might add.
(maint-missing, maint-buildall): New, for maintainers only.
(clean, mostlyclean): Add info/dvi/html files.
* libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
* gather-docs: New, for maintainers.
* maint-tool: New, for maintainers.
* alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
documentation.
Co-Authored-By: Phil Edwards <pedwards@disaster.jaj.com>
From-SVN: r45828
2001-09-26 20:16:17 +02: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
|
|
|
|
|
Makefile.in (TEXIFILES): Add fnmatch.txh.
* Makefile.in (TEXIFILES): Add fnmatch.txh.
(maint-undoc): New.
maint-tool: Add "undoc" tool.
* alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
documentation.
* fnmatch.txh: New.
* functions.texi: Regenerate.
From-SVN: r46274
2001-10-16 04:50:13 +02:00
|
|
|
maint-undoc : $(srcdir)/functions.texi
|
|
|
|
@$(PERL) $(srcdir)/maint-tool -s $(srcdir) undoc
|
|
|
|
|
2002-01-22 21:03:29 +01:00
|
|
|
maint-deps :
|
|
|
|
@$(PERL) $(srcdir)/maint-tool -s $(srcdir) deps $(INCDIR)
|
|
|
|
|
1997-08-22 00:57:35 +02:00
|
|
|
# Need to deal with profiled libraries, too.
|
|
|
|
|
1999-10-28 10:26:42 +02: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.
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 16:28:59 +02:00
|
|
|
mostlyclean: mostlyclean-subdir
|
2000-12-09 00:18:00 +01: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
|
configure.in (MAKEINFO, PERL): Detect these.
* configure.in (MAKEINFO, PERL): Detect these.
(--enable-maintainer-mode): Add.
* configure: Regenerate.
* Makefile.in (MAKEINFO, PERL): Define.
(libiberty.info, libiberty.dvi, libiberty.html): New.
(CFILES): Add bsearch.c.
(CONFIGURED_OFILES): New, list of objects configure might add.
(maint-missing, maint-buildall): New, for maintainers only.
(clean, mostlyclean): Add info/dvi/html files.
* libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
* gather-docs: New, for maintainers.
* maint-tool: New, for maintainers.
* alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
documentation.
Co-Authored-By: Phil Edwards <pedwards@disaster.jaj.com>
From-SVN: r45828
2001-09-26 20:16:17 +02: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
|
1997-08-22 00:57:35 +02:00
|
|
|
@$(MULTICLEAN) multi-clean DO=mostlyclean
|
1999-10-28 10:26:42 +02:00
|
|
|
clean: clean-subdir
|
|
|
|
$(MAKE) SUBDIRS="" mostlyclean
|
2000-12-09 00:18:00 +01:00
|
|
|
-rm -f *.a required-list tmpmulti.out
|
configure.in (MAKEINFO, PERL): Detect these.
* configure.in (MAKEINFO, PERL): Detect these.
(--enable-maintainer-mode): Add.
* configure: Regenerate.
* Makefile.in (MAKEINFO, PERL): Define.
(libiberty.info, libiberty.dvi, libiberty.html): New.
(CFILES): Add bsearch.c.
(CONFIGURED_OFILES): New, list of objects configure might add.
(maint-missing, maint-buildall): New, for maintainers only.
(clean, mostlyclean): Add info/dvi/html files.
* libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
* gather-docs: New, for maintainers.
* maint-tool: New, for maintainers.
* alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
documentation.
Co-Authored-By: Phil Edwards <pedwards@disaster.jaj.com>
From-SVN: r45828
2001-09-26 20:16:17 +02:00
|
|
|
-rm -f libiberty.dvi libiberty.info* libiberty.html
|
1997-08-22 00:57:35 +02:00
|
|
|
@$(MULTICLEAN) multi-clean DO=clean
|
1999-10-28 10:26:42 +02:00
|
|
|
distclean: distclean-subdir
|
|
|
|
$(MAKE) SUBDIRS="" clean
|
1997-08-22 00:57:35 +02:00
|
|
|
@$(MULTICLEAN) multi-clean DO=distclean
|
2000-12-09 00:18:00 +01:00
|
|
|
-rm -f *~ Makefile config.status xhost-mkfrag TAGS multilib.out
|
|
|
|
-rm -f config.log
|
2000-12-07 23:04:07 +01:00
|
|
|
-rmdir testsuite 2>/dev/null
|
1999-10-28 10:26:42 +02:00
|
|
|
maintainer-clean realclean: maintainer-clean-subdir
|
|
|
|
$(MAKE) SUBDIRS="" distclean
|
1997-08-22 00:57:35 +02:00
|
|
|
|
|
|
|
force:
|
|
|
|
|
1998-05-16 01:42:58 +02:00
|
|
|
Makefile: $(srcdir)/Makefile.in config.status
|
|
|
|
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
2001-11-26 22:24:43 +01:00
|
|
|
# Depending on Makefile makes sure that config.status has been re-run
|
|
|
|
# if needed. This prevents problems with parallel builds.
|
1998-05-16 01:42:58 +02:00
|
|
|
config.h: stamp-h ; @true
|
2001-11-26 22:24:43 +01:00
|
|
|
stamp-h: config.in config.status Makefile
|
1998-05-16 01:42:58 +02:00
|
|
|
CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
|
|
|
|
|
|
|
|
config.status: $(srcdir)/configure $(srcdir)/config.table
|
|
|
|
$(SHELL) ./config.status --recheck
|
1997-08-22 00:57:35 +02:00
|
|
|
|
2001-11-26 22:24:43 +01: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.
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 16:28:59 +02: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-26 22:24:43 +01:00
|
|
|
maintainer-clean-subdir: config.h
|
2000-04-29 16:25:12 +02:00
|
|
|
@subdirs='$(SUBDIRS)'; \
|
2000-04-22 00:20:20 +02:00
|
|
|
target=`echo $@ | sed -e 's/-subdir//'`; \
|
2000-04-29 16:25:12 +02:00
|
|
|
for dir in $$subdirs ; do \
|
2003-01-28 22:52:14 +01:00
|
|
|
cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $$target; \
|
1999-10-28 10:26:42 +02:00
|
|
|
done
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 16:28:59 +02:00
|
|
|
|
aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
libiberty:
* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
* configure.in: Replace all alloca logic with a simple use of
the above new macro.
* config.table: Kill *-*-beos* entry.
* config/mh-beos: Delete.
* configure, config.in: Regenerate.
* Makefile.in (ALLOCA, HFILES): Kill.
(REQUIRED_OFILES): Add alloca.o.
(alloca.o): Depend on libiberty.h.
(argv.o): Don't depend on alloca-conf.h.
* alloca-conf.h: Delete.
* alloca.c: Include libiberty.h. Kill all #ifdef emacs
blocks. Provide the C alloca unconditionally. Use PTR where
appropriate. Make i00afunc static.
* argv.c: Don't include alloca-conf.h.
include:
* libiberty.h: Prototype C_alloca; define alloca to either
__builtin_alloca or C_alloca as appropriate.
gcc:
* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE
AC_FUNC_ALLOCA.
* configure, config.in: Regenerate.
* config.gcc: Remove references to deleted files.
* genattr.c, genattrtab.c, genextract.c, genoutput.c,
genrecog.c, rtl.c: Do not use alloca anywhere.
* Makefile.in, build-make, system.h, config/x-interix,
config/x-svr4, config/xm-interix.h, config/xm-openbsd.h,
config/alpha/xm-alpha.h, config/alpha/xm-vms.h,
config/arc/xm-arc.h, config/arm/xm-arm.h,
config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
config/h8300/xm-h8300.h, config/i370/x-oe,
config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos,
config/i386/x-ncr3000, config/i386/x-sco5,
config/i386/xm-dgux.h, config/i860/x-sysv4,
config/i960/xm-i960.h, config/m32r/xm-m32r.h,
config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320,
config/m68k/x-hp320g, config/m69k/x-mot3300,
config/m68k/x-mot3300-gas, config/m68k/xm-amix.h,
config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h,
config/m68k/xm-mot3300.h, config/m88k/x-dolph,
config/m88k/x-sysv4, config/m88k/x-tekXD88,
config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
config/mips/x-iris, config/mips/x-iris3,
config/mips/x-sni-svr4, config/mips/x-sysv,
config/mips/xm-iris6.h, config/mips/xm-mips.h,
config/mips/xm-nws3250v4.h, config/pa/x-hpux,
config/pa/x-pa-mpeix, config/pa/xm-pa.h,
config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
config/pa/xm-papro.h, config/romp/xm-romp.h,
config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-beos, config/rs6000/x-lynx,
config/rs6000/x-mach, config/rs6000/x-rs6000,
config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h,
config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
config/sparc/x-sysv4, config/sparc/xm-linux.h,
config/sparc/xm-pbd.h, config/sparc/xm-sparc.h,
config/vax/xm-vms.h: Eradicate all references to alloca and
related stuff.
* config/xm-alloca.h, config/clipper/x-clix,
config/i386/xm-sysv4.h, config/i860/x-fx2800,
config/i860/x-sysv3, config/m88k/x-sysv3,
config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete
(contained only alloca related hacks).
* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define
USE_C_ALLOCA.
From-SVN: r40259
2001-03-06 10:52:35 +01:00
|
|
|
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS): stamp-picdir
|
2002-01-22 21:03:29 +01: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.
|
1998-05-22 02:20:51 +02:00
|
|
|
|
2002-01-22 21:03:29 +01: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
|
1998-05-16 01:42:58 +02:00
|
|
|
atexit.o: config.h
|
2002-01-22 21:03:29 +01:00
|
|
|
basename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/safe-ctype.h
|
|
|
|
bsearch.o: config.h $(INCDIR)/ansidecl.h
|
2003-04-15 22:36:33 +02:00
|
|
|
calloc.o: $(INCDIR)/ansidecl.h
|
2002-01-22 21:03:29 +01:00
|
|
|
choose-temp.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
1998-05-16 01:42:58 +02:00
|
|
|
clock.o: config.h
|
2002-01-22 21:03:29 +01: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 \
|
2003-04-15 22:36:33 +02:00
|
|
|
$(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h
|
2002-01-22 21:03:29 +01:00
|
|
|
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
|
1998-05-16 01:42:58 +02: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-22 21:03:29 +01: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
|
safe-ctype.h (HC_UNKNOWN, [...]): Rename to HOST_CHARSET_UNKNOWN...
include:
* safe-ctype.h (HC_UNKNOWN, HC_ASCII, HC_EBCDIC): Rename to
HOST_CHARSET_UNKNOWN, HOST_CHARSET_ASCII, HOST_CHARSET_EBCDIC
respectively.
libiberty:
* safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
not HC_ASCII and HC_EBCDIC.
Add documentation in form expected by gather-docs.
* hex.c: Use HOST_CHARSET, not hand-coded check of character set.
* Makefile.in, functions.texi: Regenerate.
gcc:
* config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
From-SVN: r68335
2003-06-22 17:59:49 +02:00
|
|
|
hex.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/safe-ctype.h
|
2002-01-22 21:03:29 +01:00
|
|
|
lbasename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/safe-ctype.h
|
2003-02-20 23:11:13 +01:00
|
|
|
lrealpath.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
2003-04-15 22:36:33 +02:00
|
|
|
make-relative-prefix.o: config.h $(INCDIR)/ansidecl.h \
|
|
|
|
$(INCDIR)/libiberty.h
|
2002-01-22 21:03:29 +01: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
|
2003-04-16 04:56:46 +02:00
|
|
|
mempcpy.o: $(INCDIR)/ansidecl.h
|
2002-01-22 21:03:29 +01:00
|
|
|
memset.o: $(INCDIR)/ansidecl.h
|
|
|
|
mkstemps.o: config.h $(INCDIR)/ansidecl.h
|
|
|
|
objalloc.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/objalloc.h
|
1998-10-12 19:45:24 +02:00
|
|
|
obstack.o: config.h $(INCDIR)/obstack.h
|
2002-01-22 21:03:29 +01:00
|
|
|
partition.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/partition.h
|
2003-04-15 22:36:33 +02:00
|
|
|
pex-djgpp.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(srcdir)/pex-common.h
|
|
|
|
pex-mpw.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(srcdir)/pex-common.h
|
|
|
|
pex-msdos.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(srcdir)/pex-common.h $(INCDIR)/safe-ctype.h
|
|
|
|
pex-os2.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(srcdir)/pex-common.h
|
|
|
|
pex-unix.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(srcdir)/pex-common.h
|
|
|
|
pex-win32.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(srcdir)/pex-common.h
|
|
|
|
physmem.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
2002-01-22 21:03:29 +01:00
|
|
|
putenv.o: config.h $(INCDIR)/ansidecl.h
|
|
|
|
random.o: $(INCDIR)/ansidecl.h
|
2001-07-26 10:41:40 +02:00
|
|
|
regex.o: config.h $(INCDIR)/xregex.h $(INCDIR)/xregex2.h
|
2003-04-15 22:36:33 +02:00
|
|
|
rename.o: config.h $(INCDIR)/ansidecl.h
|
2002-01-22 21:03:29 +01:00
|
|
|
safe-ctype.o: $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h
|
|
|
|
setenv.o: config.h $(INCDIR)/ansidecl.h
|
|
|
|
sigsetmask.o: $(INCDIR)/ansidecl.h
|
2003-04-17 00:42:07 +02:00
|
|
|
snprintf.o: $(INCDIR)/ansidecl.h
|
2002-01-22 21:03:29 +01:00
|
|
|
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
|
2003-04-16 04:56:46 +02:00
|
|
|
stpcpy.o: $(INCDIR)/ansidecl.h
|
|
|
|
stpncpy.o: $(INCDIR)/ansidecl.h
|
2002-01-22 21:03:29 +01:00
|
|
|
strcasecmp.o: $(INCDIR)/ansidecl.h
|
|
|
|
strchr.o: $(INCDIR)/ansidecl.h
|
2003-04-15 22:36:33 +02:00
|
|
|
strdup.o: $(INCDIR)/ansidecl.h
|
2002-01-22 21:03:29 +01:00
|
|
|
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
|
2003-04-15 22:36:33 +02:00
|
|
|
vfprintf.o: $(INCDIR)/ansidecl.h
|
2002-01-22 21:03:29 +01:00
|
|
|
vprintf.o: $(INCDIR)/ansidecl.h
|
2003-04-17 00:42:07 +02:00
|
|
|
vsnprintf.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
2002-01-22 21:03:29 +01:00
|
|
|
vsprintf.o: $(INCDIR)/ansidecl.h
|
2000-07-27 01:23:24 +02:00
|
|
|
waitpid.o: config.h
|
2002-01-22 21:03:29 +01: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
|