aboutsummaryrefslogtreecommitdiff
path: root/libiberty/Makefile.in
diff options
context:
space:
mode:
authorPhil Edwards <pme@gcc.gnu.org>2002-03-04 21:41:06 +0000
committerPhil Edwards <pme@gcc.gnu.org>2002-03-04 21:41:06 +0000
commit48d7db63ff581b026e057badf39f1f23fdf47928 (patch)
treeed430ec7e88592af6a1259c8a8265e9c2c62ff04 /libiberty/Makefile.in
parentaf18e951d4952c9aa06b35ace0f65e9ac5ffa5e3 (diff)
downloadgcc-48d7db63ff581b026e057badf39f1f23fdf47928.zip
gcc-48d7db63ff581b026e057badf39f1f23fdf47928.tar.gz
gcc-48d7db63ff581b026e057badf39f1f23fdf47928.tar.bz2
configure.in: Add --enable-install-libiberty option.
2002-03-04 Phil Edwards <pme@gcc.gnu.org> * configure.in: Add --enable-install-libiberty option. * Makefile.in (INSTALLED_HEADERS): New variable. (install_to_libdir): Possibly also copy headers. * configure: Regenerated. From-SVN: r50288
Diffstat (limited to 'libiberty/Makefile.in')
-rw-r--r--libiberty/Makefile.in31
1 files changed, 30 insertions, 1 deletions
diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
index 5fa9630..3dccfad 100644
--- a/libiberty/Makefile.in
+++ b/libiberty/Makefile.in
@@ -1,6 +1,6 @@
#
# Makefile
-# Copyright (C) 1990, 91-99, 2000, 2001
+# Copyright (C) 1990, 91-99, 2000, 2001, 2002
# Free Software Foundation
#
# This file is part of the libiberty library.
@@ -34,6 +34,8 @@ prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
+includedir = @includedir@
+target_header_dir = @target_header_dir@
SHELL = @SHELL@
@@ -48,6 +50,7 @@ MULTICLEAN = true
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
+mkinstalldirs = $(SHELL) $(srcdir)/../mkinstalldirs
AR = @AR@
AR_FLAGS = rc
@@ -181,6 +184,22 @@ CONFIGURED_OFILES = asprintf.o atexit.o \
vasprintf.o vfork.o vfprintf.o vprintf.o vsprintf.o \
waitpid.o
+# 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
+
$(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
-rm -f $(TARGETLIB) pic/$(TARGETLIB)
$(AR) $(AR_FLAGS) $(TARGETLIB) \
@@ -240,6 +259,16 @@ install_to_libdir: all
$(INSTALL_DATA) $(TARGETLIB) $(libdir)$(MULTISUBDIR)/$(TARGETLIB)n
( cd $(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
mv -f $(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(libdir)$(MULTISUBDIR)/$(TARGETLIB)
+ if test -n "${target_header_dir}"; then \
+ case "${target_header_dir}" in \
+ /*) thd=${target_header_dir};; \
+ *) thd=${includedir}${MULTISUBDIR}/${target_header_dir};; \
+ esac; \
+ ${mkinstalldirs} $${thd}; \
+ for h in ${INSTALLED_HEADERS}; do \
+ ${INSTALL_DATA} $$h $${thd}; \
+ done; \
+ fi
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
install_to_tooldir: all