X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libf2c%2FMakefile.in;h=4aae68f0b9ec6e0920192edee9a6231e480bc46c;hb=d96ddc68394bb3869b93ba2b5c5295f7a4905276;hp=1e7c73738f14d5a053248693fd7ebc3e42f51c39;hpb=4e2fd3f02fcd977a48f9660bcbf4997dc4a2efd0;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libf2c/Makefile.in b/libf2c/Makefile.in index 1e7c73738f1..4aae68f0b9e 100644 --- a/libf2c/Makefile.in +++ b/libf2c/Makefile.in @@ -1,5 +1,5 @@ # Makefile for GNU F77 compiler runtime. -# Copyright (C) 1995-1998, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1995-1998, 2001, 2002, 2003 Free Software Foundation, Inc. # Contributed by Dave Love (d.love@dl.ac.uk). # #This file is part of GNU Fortran. @@ -81,6 +81,7 @@ FLAGS_TO_PASS= \ WARN_CFLAGS='$(WARN_CFLAGS)' \ CFLAGS='$(CFLAGS)' \ CPPFLAGS='$(CPPFLAGS)' \ + DESTDIR='$(DESTDIR)' \ AR='$(AR)' \ RANLIB='$(RANLIB)' \ prefix='$(prefix)' \ @@ -124,7 +125,7 @@ F2CEXT = abort derf derfc ef1asc ef1cmc erf erfc exit getarg getenv iargc \ # the dependency) and then (perhaps) builds multilibs. all: all-unilib - $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO="all-unilib" + : $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO="all-unilib" # `all-unilib' is the overall target in the absence of multilibs, # meant to be invoked via multi-do for multilibs. @@ -152,7 +153,7 @@ i77 f77 u77: g2c.h $(LIBG2C): s-libi77 s-libf77 s-libu77 s-libe77 $(LIBTOOL) --mode=link $(CC) -o $@ \ -version-info $(VERSION_MAJOR):$(VERSION_MINOR):$(VERSION_SUB) \ - -rpath $(libdir)$(MULTISUBDIR) \ + -rpath $(glibcpp_toolexeclibdir) \ -objectlist s-libe77 \ -objectlist s-libf77 \ -objectlist s-libi77 \ @@ -175,7 +176,7 @@ s-libe77: f2cext.c do \ echo $${name}; \ $(LIBTOOL) --mode=compile $(CC) -c -I. -I$(srcdir) -I../../include \ - $(CPPFLAGS) $(CFLAGS) -DL$${name} $(srcdir)/f2cext.c \ + $(CPPFLAGS) $(WARN_CFLAGS) $(CFLAGS) -DL$${name} $(srcdir)/f2cext.c \ -o libE77/L$${name}.lo ; \ if [ $$? -eq 0 ] ; then true; else exit 1; fi; \ echo libE77/L$${name}.lo >> $@.T; \ @@ -214,21 +215,21 @@ check: cd libU77; $(MAKE) G77DIR=../../../gcc/ check install: all - $(SHELL) $(toplevel_srcdir)/mkinstalldirs $(glibcpp_toolexeclibdir) - $(LIBTOOL) --mode=install $(INSTALL) $(LIBG2C) $(glibcpp_toolexeclibdir) - $(INSTALL_DATA) libfrtbegin.a $(glibcpp_toolexeclibdir) - $(RANLIB) $(glibcpp_toolexeclibdir)/libfrtbegin.a - $(INSTALL_DATA) g2c.h $(libsubdir)/include/g2c.h + $(SHELL) $(toplevel_srcdir)/mkinstalldirs $(DESTDIR)$(glibcpp_toolexeclibdir) + $(LIBTOOL) --mode=install $(INSTALL) $(LIBG2C) $(DESTDIR)$(glibcpp_toolexeclibdir) + $(INSTALL_DATA) libfrtbegin.a $(DESTDIR)$(glibcpp_toolexeclibdir) + $(RANLIB) $(DESTDIR)$(glibcpp_toolexeclibdir)/libfrtbegin.a + $(INSTALL_DATA) g2c.h $(DESTDIR)$(libsubdir)/include/g2c.h $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO="$@" - @-$(LIBTOOL) --mode=finish $(glibcpp_toolexeclibdir) + @-$(LIBTOOL) --mode=finish $(DESTDIR)$(glibcpp_toolexeclibdir) install-strip: $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install uninstall: - rm -f $(libsubdir)/include/g2c.h - rm -f $(glibcpp_toolexeclibdir)/libfrtbegin.a - $(LIBTOOL) --mode=uninstall rm -f $(glibcpp_toolexeclibdir)$(LIBG2C_BASE).la + rm -f $(DESTDIR)$(libsubdir)/include/g2c.h + rm -f $(DESTDIR)$(glibcpp_toolexeclibdir)/libfrtbegin.a + $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(glibcpp_toolexeclibdir)$(LIBG2C_BASE).la $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO="$@" mostlyclean: