gcc installation

winimuell@freesurf.ch winimuell@freesurf.ch
Sat Jan 20 08:30:00 GMT 2001


hi

I'm trying to build a gcc cross compiler for my Intel i586 Linux 2.2.14 
to compile some sources for a Powerbook 180 (m68k). I followed exactly  
the instructions in the CrossGCC FAQ. Espescially I used the one-way 
installation with the additional build-cross shell skript. Before I had 
some troubles with the single installation anyway I'm not very confident 
with solving some make errors.

Everything went good till I got an error massage which I put into the 
file: shell_out_put_1 (You can see the second compilation with the 
error. The second part is the Makefile in libio (see below)). Now, 
something is really bad (I'm going soon crazy but surley I won't give 
up).

Do you have any imagination what went wrong? Could it be that my 
headerfiles in /usr/include do not involve this function (because I use 
for my cross compiler newlib and on my system is glibc).

I observed something too. In the libio Makefile (automatic generated) I 
found the line:

gxx_include_dir=${prefix}/include/g++-3

But unfortunatly I don't have such a directory (only g++-2, of course I 
tried to change it in the Makefile but without any success).  

It would be great if you can give me an advice I really don't have any 
idee. If you need some additional information please tell me.

Many thanks Martin

--
Enjoy more time at less cost with sunrise freetime
http://go.sunrise.ch/de/sel/default.asp

-------------- next part --------------
[root@localhost one-foo]# sh build-cross.sh m68k-apple-linux install
build-cross.sh: started Son Jan 21 09:16:32 /etc/localtime 2001
build-cross.sh: compile binutils, gcc, and newlib.
make[1]: Entering directory `/home/one-foo/b-m68k-apple-linux/libiberty'
make[2]: Entering directory `/home/one-foo/b-m68k-apple-linux/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/one-foo/b-m68k-apple-linux/libiberty/testsuite'
make[1]: Leaving directory `/home/one-foo/b-m68k-apple-linux/libiberty'
make[1]: Entering directory `/home/one-foo/b-m68k-apple-linux/texinfo'
make all-recursive
make[2]: Entering directory `/home/one-foo/b-m68k-apple-linux/texinfo'
Making all in intl
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/texinfo/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/texinfo/intl'
Making all in lib
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/texinfo/lib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/texinfo/lib'
Making all in makeinfo
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/texinfo/makeinfo'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/texinfo/makeinfo'
make[2]: Leaving directory `/home/one-foo/b-m68k-apple-linux/texinfo'
make[1]: Leaving directory `/home/one-foo/b-m68k-apple-linux/texinfo'
make[1]: Entering directory `/home/one-foo/b-m68k-apple-linux/bfd'
make all-recursive
make[2]: Entering directory `/home/one-foo/b-m68k-apple-linux/bfd'
Making all in doc
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/bfd/doc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/bfd/doc'
make[2]: Leaving directory `/home/one-foo/b-m68k-apple-linux/bfd'
make[1]: Leaving directory `/home/one-foo/b-m68k-apple-linux/bfd'
make[1]: Entering directory `/home/one-foo/b-m68k-apple-linux/opcodes'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/one-foo/b-m68k-apple-linux/opcodes'
make[1]: Entering directory `/home/one-foo/b-m68k-apple-linux/binutils'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/one-foo/b-m68k-apple-linux/binutils'
make[1]: Entering directory `/home/one-foo/b-m68k-apple-linux/etc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/one-foo/b-m68k-apple-linux/etc'
make[1]: Entering directory `/home/one-foo/b-m68k-apple-linux/gas'
make all-recursive
make[2]: Entering directory `/home/one-foo/b-m68k-apple-linux/gas'
Making all in doc
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/gas/doc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/gas/doc'
make[2]: Leaving directory `/home/one-foo/b-m68k-apple-linux/gas'
make[1]: Leaving directory `/home/one-foo/b-m68k-apple-linux/gas'
make[1]: Entering directory `/home/one-foo/b-m68k-apple-linux/ld'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/one-foo/b-m68k-apple-linux/ld'
make[1]: Entering directory `/home/one-foo/b-m68k-apple-linux/gcc'
(cd intl && make all)
make[2]: Entering directory `/home/one-foo/b-m68k-apple-linux/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/one-foo/b-m68k-apple-linux/gcc/intl'
case "c c++" in \
  *[fF]77*) touch lang-f77;; \
  *) rm -f lang-f77;; \
esac
if [ -f lang-f77 ]; then \
  gcc -c -DCROSS_COMPILE -DIN_GCC     -g -O2  -DHAVE_CONFIG_H    -I. -I../../src/gcc -I../../src/gcc/config -I../../src/gcc/../include ../../src/gcc/f/g77spec.c; \
else true; fi
case "c c++" in \
  *[fF]77*) touch lang-f77;; \
  *) rm -f lang-f77;; \
esac
if [ -f lang-f77 ]; then \
  gcc -c -DCROSS_COMPILE -DIN_GCC     -g -O2  -DHAVE_CONFIG_H    -I. -I../../src/gcc -I../../src/gcc/config -I../../src/gcc/../include -o g77version.o \
    ../../src/gcc/f/version.c; \
else true; fi
if [ -f lang-f77 ]; then \
  gcc -DCROSS_COMPILE -DIN_GCC     -g -O2  -DHAVE_CONFIG_H  -o g77 gcc.o g77spec.o g77version.o \
   version.o prefix.o intl.o  obstack.o        ../libiberty/libiberty.a; \
else true; fi
if [ -f lang-f77 ]; then \
  rm -f g77-cross; \
  cp g77 g77-cross; \
else true; fi
case "c c++" in \
  *[fF]77*) touch lang-f77;; \
  *) rm -f lang-f77;; \
esac
if [ -f lang-f77 ]; then \
  rm -f ../../src/gcc/f/g77.info-*; \
  /home/one-foo/b-m68k-apple-linux/texinfo/makeinfo/makeinfo  -I../../src/gcc/f -o f/g77.info ../../src/gcc/f/g77.texi; \
else true; fi
make[1]: Leaving directory `/home/one-foo/b-m68k-apple-linux/gcc'
make[1]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib'
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/bin/sh /home/one-foo/src/install-sh -c" "INSTALL_DATA=/bin/sh /home/one-foo/src/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh /home/one-foo/src/install-sh -c " "INSTALL_SCRIPT=/bin/sh /home/one-foo/src/install-sh -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=/home/one-foo/b-m68k-apple-linux/texinfo/makeinfo/makeinfo  " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr" "infodir=/usr/info" "libdir=/usr/lib" "prefix=/usr" "tooldir=/usr/m68k-apple-linux" "AR=/home/one-foo/b-m68k-apple-linux/binutils/ar" "AS=/home/one-foo/b-m68k-apple-linux/gas/as-new" "CC=/home/one-foo/b-m68k-apple-linux/gcc/xgcc -B/home/one-foo/b-m68k-apple-linux/gcc/ -B/usr/m68k-apple-linux/bin/ -idirafter /home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/targ-include -idirafter /home/one-foo/src/newlib/libc/include -nostdinc" "LD=/home/one-foo/b-m68k-apple-linux/ld/ld-new" "LIBCFLAGS=-g -O2" "NM=/home/one-foo/b-m68k-apple-linux/binutils/nm-new" "PICFLAG=" "RANLIB=/home/one-foo/b-m68k-apple-linux/binutils/ranlib" "DESTDIR=" DO=all multi-do
make[2]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib'
if [ -z "" ]; then \
  true; \
else \
  rootpre=`pwd`/; export rootpre; \
  srcrootpre=`cd ../../../src/newlib; pwd`/; export srcrootpre; \
  lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="/home/one-foo/b-m68k-apple-linux/gcc/xgcc -B/home/one-foo/b-m68k-apple-linux/gcc/ -B/usr/m68k-apple-linux/bin/ -idirafter /home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/targ-include -idirafter /home/one-foo/src/newlib/libc/include -nostdinc"; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
        flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
        if (cd ../${dir}/${lib}; make  \
                        CFLAGS="-g -O2 ${flags}" \
                        CXXFLAGS="-g -O2 -fvtable-thunks -D_GNU_SOURCE ${flags}" \
                        LIBCFLAGS="-g -O2 ${flags}" \
                        LIBCXXFLAGS="-g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates ${flags}" \                         LDFLAGS=" ${flags}" \
                        all); then \
          true; \
        else \
          exit 1; \
        fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
make[2]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib'
Making all in libc
make[2]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc'
Making all in stdlib
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/stdlib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/stdlib'
Making all in ctype
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/ctype'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/ctype'
Making all in stdio
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/stdio'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/stdio'
Making all in string
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/string'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/string'
Making all in signal
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/signal'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/signal'
Making all in time
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/time'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/time'
Making all in locale
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/locale'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/locale'
Making all in sys
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/sys'
Making all in .
make[4]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/sys'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/sys'
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/sys'
Making all in reent
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/reent'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/reent'
Making all in errno
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/errno'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/errno'
Making all in misc
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/misc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/misc'
Making all in machine
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/machine'
Making all in m68k
make[4]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/machine/m68k'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/machine/m68k'
Making all in .
make[4]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/machine'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/machine'
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc/machine'
Making all in .
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc'
make[2]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libc'
Making all in libm
make[2]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libm'
Making all in math
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libm/math'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libm/math'
Making all in common
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libm/common'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libm/common'
Making all in .
make[3]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libm'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libm'
make[2]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/libm'
Making all in doc
make[2]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/doc'
Making all in .
make[2]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib'
make[1]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib'
make[1]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/libiberty'
make[2]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/libiberty/testsuite'
make[2]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/libiberty'
if [ -z "" ]; then \
  true; \
else \
  rootpre=`pwd`/; export rootpre; \
  srcrootpre=`cd ../../../src/libiberty; pwd`/; export srcrootpre; \
  lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="/home/one-foo/b-m68k-apple-linux/gcc/xgcc -B/home/one-foo/b-m68k-apple-linux/gcc/ -B/usr/m68k-apple-linux/bin/ -idirafter /home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/targ-include -idirafter /home/one-foo/src/newlib/libc/include -nostdinc"; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
        flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
        if (cd ../${dir}/${lib}; make "AR=/home/one-foo/b-m68k-apple-linux/binutils/ar" "AR_FLAGS=rc" "CC=/home/one-foo/b-m68k-apple-linux/gcc/xgcc -B/home/one-foo/b-m68k-apple-linux/gcc/ -B/usr/m68k-apple-linux/bin/ -idirafter /home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/targ-include -idirafter /home/one-foo/src/newlib/libc/include -nostdinc" "CFLAGS=-g -O2" "LIBCFLAGS=-g -O2" "EXTRA_OFILES=" "HDEFINES=" "INSTALL=/bin/sh /home/one-foo/src/install-sh -c" "INSTALL_DATA=/bin/sh /home/one-foo/src/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh /home/one-foo/src/install-sh -c " "LDFLAGS=" "LOADLIBES=" "RANLIB=/home/one-foo/b-m68k-apple-linux/binutils/ranlib" "SHELL=/bin/sh" "prefix=/usr" "exec_prefix=/usr" "libdir=/usr/lib" "libsubdir=/usr/lib/gcc-lib/m68k-apple-linux/2.95.2" "tooldir=/usr/m68k-apple-linux" \
                        CFLAGS="-g -O2 ${flags}" \
                        CXXFLAGS="-g -O2 -fvtable-thunks -D_GNU_SOURCE ${flags}" \
                        LIBCFLAGS="-g -O2 ${flags}" \
                        LIBCXXFLAGS="-g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates ${flags}" \
                        LDFLAGS=" ${flags}" \
                        all); then \
          true; \
        else \
          exit 1; \
        fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
make[2]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/libiberty'
make[1]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/libiberty'
make[1]: Entering directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/libio'
test x"no" != xyes || \
  /home/one-foo/b-m68k-apple-linux/gcc/xgcc -B/home/one-foo/b-m68k-apple-linux/gcc/ -B/usr/m68k-apple-linux/bin/ -idirafter /home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/targ-include -idirafter /home/one-foo/src/newlib/libc/include -nostdinc -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I../../../src/libio -nostdinc++ -D_IO_MTSAFE_IO  ../../../src/libio/iostream.cc -o pic/iostream.o
/home/one-foo/b-m68k-apple-linux/gcc/xgcc -B/home/one-foo/b-m68k-apple-linux/gcc/ -B/usr/m68k-apple-linux/bin/ -idirafter /home/one-foo/b-m68k-apple-linux/m68k-apple-linux/newlib/targ-include -idirafter /home/one-foo/src/newlib/libc/include -nostdinc -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I../../../src/libio -nostdinc++ -D_IO_MTSAFE_IO ../../../src/libio/iostream.cc
../../../src/libio/iostream.cc: In method `class istream & istream::get(char &)':
../../../src/libio/iostream.cc:75: implicit declaration of function `int _IO_cleanup_region_start(...)'
../../../src/libio/iostream.cc:86: implicit declaration of function `int _IO_cleanup_region_end(...)'
make[1]: *** [iostream.o] Error 1
make[1]: Leaving directory `/home/one-foo/b-m68k-apple-linux/m68k-apple-linux/libio'
make: *** [all-target-libio] Error 2



*************************************** Makefile in libio **********************************************


# This file was generated automatically by configure.  Do not edit.
VPATH = ../../../src/libio
links =
host_alias = m68k-apple-linux
host_cpu = m68k
host_vendor = apple
host_os = linux-gnu
host_canonical = m68k-apple-linux-gnu
target_alias = m68k-apple-linux
target_cpu = m68k
target_vendor = apple
target_os = linux-gnu
target_canonical = m68k-apple-linux-gnu
build_alias = i586-pc-linux-gnu
build_cpu = i586
build_vendor = pc
build_os = linux-gnu
build_canonical = i586-pc-linux-gnu
package_makefile_frag = Make.pack
target_makefile_frag = target-mkfrag
enable_shared = no
enable_version_specific_runtime_libs = no
gcc_version_trigger = /home/one-foo/src/gcc/version.c
gcc_version = 2.95.2
# Copyright (C) 1993, 1995, 1996, 1997, 1998 Free Software Foundation
#
# This file is part of the GNU IO Library.  This library is free
# software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This library 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this library; see the file COPYING.  If not, write to the Free
# Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

srcdir = ../../../src/libio

VERSION = 2.8.0
# The config file (overriden by Linux).
_G_CONFIG_H=_G_config.h
tooldir = $(exec_prefix)/m68k-apple-linux
INSTALLDIR = $(tooldir)/lib
gxx_include_dir=${prefix}/include/g++-3

IO_OBJECTS = filedoalloc.o floatconv.o genops.o fileops.o \
  iovfprintf.o \
  iovfscanf.o ioignore.o iopadn.o \
  iofgetpos.o iofread.o iofscanf.o \
  iofsetpos.o iogetdelim.o iogetline.o \
  ioprintf.o ioseekoff.o ioseekpos.o \
  outfloat.o strops.o iofclose.o iopopen.o ioungetc.o peekc.o iogetc.o \
  ioputc.o iofeof.o ioferror.o

STDIO_OBJECTS = stdfiles.o

# These emulate stdio functionality, but with a different name (_IO_ungetc
# instead of ungetc), and using _IO_FILE instead of FILE.
# They are not needed for C++ iostream, nor stdio, though some stdio
# files are build using the same source files (see stdio/configure.in).
# They are needed for iostdio.h.  They are needed under Linux to avoid
# version incompatibility problems with the C library.
# iofclose.o is not here, because it is needed for stdio (by pclose).
STDIO_WRAP_OBJECTS =  iofdopen.o iofflush.o iofgets.o iofopen.o iofprintf.o iofputs.o iofwrite.o \
  iogets.o ioperror.o ioputs.o ioscanf.o iosetbuffer.o iosetvbuf.o \
  iosprintf.o iosscanf.o ioftell.o iovsscanf.o iovsprintf.o

IOSTREAM_OBJECTS = builtinbuf.o filebuf.o fstream.o \
  indstream.o ioassign.o ioextend.o iomanip.o iostream.o \
  isgetline.o isgetsb.o isscan.o \
  osform.o procbuf.o sbform.o sbgetline.o sbscan.o \
  stdiostream.o stdstrbufs.o stdstreams.o stream.o streambuf.o strstream.o \
  PlotFile.o SFile.o parsestream.o pfstream.o editbuf.o

# These files define _IO_read etc, which are just wrappers for read(2) etc.
# They need to be changed to use name-space-clean (e.g. __read) versions
# for each specific libc.
OSPRIM_OBJECTS = ioprims.o iostrerror.o cleanup.o

LIBIOSTREAM_OBJECTS = $(IO_OBJECTS) $(IOSTREAM_OBJECTS) $(OSPRIM_OBJECTS)
LIBIO_OBJECTS = $(IO_OBJECTS) $(STDIO_WRAP_OBJECTS) $(OSPRIM_OBJECTS) \
		$(STDIO_OBJECTS)

LIBIOSTREAM_DEP = $(LIBIOSTREAM_OBJECTS)
LIBIOSTREAM_USE = $(LIBIOSTREAM_OBJECTS)

USER_INCLUDES = *.h

PICFLAG =

#### package, host, target, and site dependent Makefile fragments come in here.
# Start of package fragment generated by ../../../src/libio/config.shared.

MULTISRCTOP =
MULTIBUILDTOP =
MULTIDIRS =
MULTISUBDIR =
MULTIDO = $(MAKE)
MULTICLEAN = $(MAKE)

# TOPDIR=$${rootme}$(MULTIBUILDTOP)../../ invsubdir= subdir=
srcdir = ../../../src/libio
SUBDIRS = tests dbz stdio testsuite
CHECK_SUBDIRS = testsuite
prefix = /usr
exec_prefix = $(prefix)
bindir = ${exec_prefix}/bin
libdir = ${exec_prefix}/lib
libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
datadir = ${prefix}/share
mandir = ${prefix}/man
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
man3dir = $(mandir)/man3
man4dir = $(mandir)/man4
man5dir = $(mandir)/man5
man6dir = $(mandir)/man6
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
infodir = ${prefix}/info
includedir = ${prefix}/include
docdir = $(datadir)/doc

SHELL = /bin/sh

INSTALL = $${rootme}$(srcdir)/../install-sh -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)

AR = /home/one-foo/b-m68k-apple-linux/binutils/ar
AR_FLAGS = rc
RANLIB = /home/one-foo/b-m68k-apple-linux/binutils/ranlib
NM = /home/one-foo/b-m68k-apple-linux/binutils/nm-new
NLMCONV = `if [ -f $${rootme}$(MULTIBUILDTOP)../../binutils/nlmconv ] ; \
	then echo $${rootme}$(MULTIBUILDTOP)../../binutils/nlmconv ; \
	else echo nlmconv ; fi`
LD = /home/one-foo/b-m68k-apple-linux/ld/ld-new

MAKEINFO = makeinfo
TEXIDIR = $(srcdir)/../texinfo
TEXI2DVI = TEXINPUTS=${TEXIDIR}:$$TEXINPUTS texi2dvi

CC = /home/one-foo/b-m68k-apple-linux/gcc/xgcc -B/home/one-foo/b-m68k-apple-linux/gcc/ -B/usr/m68k-apple-linux/bin/
CXX = /home/one-foo/b-m68k-apple-linux/gcc/xgcc -B/home/one-foo/b-m68k-apple-linux/gcc/ -B/usr/m68k-apple-linux/bin/

WRAP_C_INCLUDES =
CFLAGS = -g -O2
CXXFLAGS = -g -O2 -fvtable-thunks -D_GNU_SOURCE
LIBCFLAGS = $(CFLAGS)
LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
PICDIR = stamp-picdir
# End of package fragment generated by ../../../src/libio/config.shared.
# Warning: this fragment is automatically generated
# Following fragment copied from ../../../src/libio/config/linux.mt
# Use the libio which comes with the local libc.

# Comment this out to avoid including the stdio functions in libiostream.a:
#LIBIOSTREAM_OBJECTS = $(IO_OBJECTS) $(IOSTREAM_OBJECTS) $(STDIO_WRAP_OBJECTS) $(OSPRIM_OBJECTS)
#LIBIOSTREAM_DEP = $(LIBIOSTREAM_OBJECTS) stdio.list
#LIBIOSTREAM_USE = $(LIBIOSTREAM_OBJECTS) `cat stdio.list`

# Comment the above and uncomment the below to use the code in the Linux libc:
# We have _G_config.h in /usr/include.
_G_CONFIG_H=

# We must not see the libio.h file from this library.
LIBIO_INCLUDE=

# We have those in libc.a.
IO_OBJECTS= iogetline.o
STDIO_WRAP_OBJECTS=
OSPRIM_OBJECTS=
STDIO_OBJECTS=

# We have the rest in /usr/include.
USER_INCLUDES=PlotFile.h SFile.h builtinbuf.h editbuf.h fstream.h \
	indstream.h iomanip.h iostream.h istream.h ostream.h \
	parsestream.h pfstream.h procbuf.h stdiostream.h stream.h \
	streambuf.h strfile.h strstream.h
# Following fragment copied from ../../../src/libio/config/mtsafe.mt
# tell we want the mt-safe version
MT_CFLAGS = -D_IO_MTSAFE_IO
# Start of package rules fragment generated by ../../../src/libio/config.shared.

all: $(_G_CONFIG_H) libio.a libiostream.a iostream.list multi-all
	@rootme=`pwd`/; export rootme; \
	$(MAKE) "DODIRS=$(SUBDIRS)" DO=all $(FLAGS_TO_PASS) subdir_do
$(_G_CONFIG_H) libio.a libiostream.a iostream.list multi-all: $(PICDIR)
.PHONY: all

.PHONY: multi-all
multi-all:
	@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all


.PHONY: subdir_do
subdir_do: force
	@rootme=`pwd`/; export rootme; \
	for i in $(DODIRS); do \
		if [ -f  ./$$i/Makefile ] ; then \
			echo "cd $$i; make $(DO) ..." ; \
			(cd $$i ; $(MAKE) $(FLAGS_TO_PASS) $(DO)) || exit 1 ; \
		else true ; fi ; \
	done

# List of variables to pass to sub-makes.  This should not be needed
# by GNU make or Sun make (both of which pass command-line variable
# overrides thouh $(MAKE)) but may be needed by older versions.

FLAGS_TO_PASS= \
	"SHELL=$(SHELL)" \
	"INSTALL=$(INSTALL)" \
	"INSTALL_DATA=$(INSTALL_DATA)" \
	"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
	"prefix=$(prefix)" \
	"exec_prefix=$(exec_prefix)" \
	"tooldir=$(tooldir)" \
	"gxx_include_dir=$(gxx_include_dir)" \
	"libsubdir=$(libsubdir)" \
	"gcc_version=$(gcc_version)" \
	"gcc_version_trigger=$(gcc_version_trigger)" \
	"AR=$(AR)" \
	"AR_FLAGS=$(AR_FLAGS)" \
	"CC=$(CC)" \
	"CXX=$(CXX)" \
	"CFLAGS=$(CFLAGS)" \
	"CXXFLAGS=$(CXXFLAGS)" \
	"NM=$(NM)" \
	"RANLIB=$(RANLIB)" \
	"LIBCFLAGS=$(LIBCFLAGS)" \
	"LIBCXXFLAGS=$(LIBCXXFLAGS)" \
	"LOADLIBES=$(LOADLIBES)" \
	"LDFLAGS=$(LDFLAGS)" \
	"MAKEINFO=$(MAKEINFO)" \
	"SHLIB=$(SHLIB)" \
	"SHCURSES=$(SHCURSES)" \
	"RUNTESTFLAGS=$(RUNTESTFLAGS)"
NOSTDINC = -nostdinc++
CXXINCLUDES = -I. -I$(srcdir) $(NOSTDINC)
CINCLUDES = -I. -I$(srcdir)
XCFLAGS = $(LIBCFLAGS)
XCXXFLAGS = $(LIBCXXFLAGS)
.SUFFIXES: .o .C .cc .c
COMPILE.c = $(CC) -c $(XCFLAGS) $(CINCLUDES) $(MT_CFLAGS)
.c.o:
	test x"$(enable_shared)" != xyes ||\
	  $(COMPILE.c) $(PICFLAG) $< -o pic/$@
	$(COMPILE.c) $<
COMPILE.cc = $(CXX) -c $(XCXXFLAGS) $(CXXINCLUDES) $(MT_CFLAGS)
.C.o:
	test x"$(enable_shared)" != xyes ||\
	  $(COMPILE.cc) $(PICFLAG) $< -o pic/$@
	$(COMPILE.cc) $<
.cc.o:
	test x"$(enable_shared)" != xyes || \
	  $(COMPILE.cc) $(PICFLAG) $< -o pic/$@
	$(COMPILE.cc) $<


stamp-picdir:
	if [ x"$(enable_shared)" = xyes ] && [ ! -d pic ]; then \
	  mkdir pic; \
	else true; fi
	touch stamp-picdir

.PHONY: install
install:
.PHONY: check
check: $(_G_CONFIG_H) libio.a libiostream.a iostream.list
	rootme=`pwd`/; export rootme; \
	SAVE_LLPATH="$${SAVE_LLPATH-$$LD_LIBRARY_PATH}"; export SAVE_LLPATH; \
	LD_LIBRARY_PATH="$${rootme}${TOLIBGXX}../libstdc++:$${rootme}${TOLIBGXX}../libg++:$$SAVE_LLPATH"; \
	export LD_LIBRARY_PATH; \
	$(MAKE) "DODIRS=$(CHECK_SUBDIRS)" DO=check $(FLAGS_TO_PASS) subdir_do
.PHONY: info dvi install-info clean-info
info: iostream.info
dvi: iostream.dvi
iostream.info: $(srcdir)/iostream.texi
	$(MAKEINFO) -I$(srcdir) -I$(TEXIDIR) $(srcdir)/iostream.texi -o iostream.info
iostream.dvi: $(srcdir)/iostream.texi
	$(TEXI2DVI) $(srcdir)/iostream.texi
iostream.ps: iostream.dvi
	dvips iostream -o
install-info:
	-parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
	if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
	-if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
	for i in *.info* ; do \
	  $(INSTALL_DATA) $$i $(infodir)/$$i ; \
	done
.PHONY: do-clean-info clean-info do-clean-dvi clean-dvi
do-clean-info:
	rm -f *.info*
do-clean-dvi:
	rm -f *.dvi *.aux *.cp *.cps *.fn* *.ky *.log *.pg *.toc *.tp *.vr
clean-info: do-clean-info
clean-dvi: do-clean-dvi

.PHONY: boltcc
boltcc:
	rootme=`pwd`/ ; export rootme ; $(MAKE) $(FLAGS_TO_PASS)


# clean rules
.PHONY: mostlyclean clean distclean maintainer-clean realclean
.PHONY: do-clean subdir_distclean subdir_maintainer_clean
mostlyclean: do-clean-dvi
	rm -rf *.o pic stamp-picdir core iostream.list
	@$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=mostlyclean subdir_do
	@$(MULTICLEAN) multi-clean DO=mostlyclean
do-clean: do-clean-dvi
	rm -rf *.o pic stamp-picdir core iostream.list  _G_config.h *.a
clean: do-clean
	@$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=clean subdir_do
	@$(MULTICLEAN) multi-clean DO=clean
subdir_distclean:
	@$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=distclean subdir_do
distclean: do-clean subdir_distclean
	@$(MULTICLEAN) multi-clean DO=distclean
	rm -rf config.status Makefile *~ Make.pack target-mkfrag multilib.out
subdir_maintainer_clean:
	@$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=maintainer-clean subdir_do
maintainer-clean realclean: do-clean subdir_maintainer_clean do-clean-info
	@$(MULTICLEAN) multi-clean DO=maintainer-clean
	rm -rf config.status Makefile *~ Make.pack target-mkfrag multilib.out depend *.info*

.PHONY: force
force:

# with the gnu make, this is done automatically.

Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
	$(SHELL) ./config.status

.NOEXPORT:
MAKEOVERRIDES=
DEPEND_SOURCES = ${srcdir}/*.cc ${srcdir}/*.c
depend.new:
# The sed script below attempts to make the depend output portable.
# It cleans up the depenency information generated by cpp.
# It replaces instances of $(srcdir)/ by the string '$(srcdir)/'.
# It removes remaining absolute files names (such as /usr/include/stdio.h).
# It removes lines containing only "\\".
# It inserts '$(MULTISRCTOP)' in '$(srcdir)/..'.
# In order to support SunOS VPATH, $(srcdir)/[a-z]*.{c,cc} is replaced with
# [a-z]*.{c,cc} (the directory part is removed).
# The awk script removes a continuation marker that is followed by
# a blank line, since that may confuse make.
	echo "# AUTOMATICALLY GENERATED BY 'make depend' - DO NOT EDIT" \
	  >depend.new
	$(CXX) -M $(CXXINCLUDES) $(DEPEND_SOURCES) \
	| sed -e 's|$(srcdir)/|$$(srcdir)/|g' \
	      -e 's| [^ ]*_G_config.h| $$(_G_CONFIG_H)|g' \
	      -e 's| /[^ ]*||g' -e 's| libc-lock\.h||' \
	      -e '/^[ 	]*\\$$/d' -e 's/^[ 	]*$$//' \
	| sed -e 's|$$(srcdir)/[.][.]|$$(srcdir)/$$(MULTISRCTOP)..|g' \
	      -e 's|$$(srcdir)/\([^/]*[.]c\)|\1|' \
	| awk 'BEGIN   { prev = "" } \
	      /^( )*$$/ { if (prev ~ /\\$$/) \
	                    { prev = substr(prev,1,length(prev)-1); next } } \
	                { print prev; prev = $$0 } \
	      END { if (prev !~ /^( )*$$/) print prev }' \
	>> depend.new
$(srcdir)/depend:  depend.new
	mv depend.new $(srcdir)/depend
# AUTOMATICALLY GENERATED BY 'make depend' - DO NOT EDIT

PlotFile.o: PlotFile.cc \
 $(srcdir)/PlotFile.h \
 $(srcdir)/fstream.h \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
SFile.o: SFile.cc \
 $(srcdir)/SFile.h \
 $(srcdir)/fstream.h \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
builtinbuf.o: builtinbuf.cc \
 $(srcdir)/builtinbuf.h \
 $(srcdir)/streambuf.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/iostreamP.h \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h
editbuf.o: editbuf.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/editbuf.h \
 $(srcdir)/fstream.h \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h
filebuf.o: filebuf.cc \
 $(srcdir)/iostreamP.h \
 $(srcdir)/streambuf.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/builtinbuf.h
fstream.o: fstream.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/fstream.h \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h
indstream.o: indstream.cc \
 $(srcdir)/indstream.h \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
ioassign.o: ioassign.cc \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h
ioextend.o: ioextend.cc \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iomanip.o: iomanip.cc \
 $(srcdir)/iomanip.h \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iostream.o: iostream.cc \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/floatio.h
isgetline.o: isgetline.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h
isgetsb.o: isgetsb.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h
isscan.o: isscan.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h
osform.o: osform.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h
parsestream.o: parsestream.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/parsestream.h \
 $(srcdir)/streambuf.h
pfstream.o: pfstream.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/pfstream.h \
 $(srcdir)/fstream.h \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h \
 $(srcdir)/procbuf.h
procbuf.o: procbuf.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/procbuf.h \
 $(srcdir)/streambuf.h
sbform.o: sbform.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/streambuf.h
sbgetline.o: sbgetline.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/streambuf.h
sbscan.o: sbscan.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/streambuf.h
stdiostream.o: stdiostream.cc \
 $(srcdir)/stdiostream.h \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h
stdstrbufs.o: stdstrbufs.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/stdiostream.h \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h
stdstreams.o: stdstreams.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/streambuf.h \
 $(srcdir)/iostream.h
stream.o: stream.cc \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/stream.h \
 $(srcdir)/iostream.h \
 $(srcdir)/streambuf.h \
 $(srcdir)/strstream.h \
 $(srcdir)/strfile.h
streambuf.o: streambuf.cc \
 $(srcdir)/iostreamP.h \
 $(srcdir)/streambuf.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h
strstream.o: strstream.cc \
 $(srcdir)/iostreamP.h \
 $(srcdir)/streambuf.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/strstream.h \
 $(srcdir)/iostream.h \
 $(srcdir)/strfile.h
cleanup.o: cleanup.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
filedoalloc.o: filedoalloc.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
fileops.o: fileops.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
floatconv.o: floatconv.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
genops.o: genops.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iofclose.o: iofclose.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iofdopen.o: iofdopen.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iofeof.o: iofeof.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
ioferror.o: ioferror.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iofflush.o: iofflush.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iofflush_u.o: iofflush_u.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iofgetpos.o: iofgetpos.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iofgets.o: iofgets.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iofopen.o: iofopen.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iofprintf.o: iofprintf.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iofputs.o: iofputs.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iofread.o: iofread.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iofscanf.o: iofscanf.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iofsetpos.o: iofsetpos.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
ioftell.o: ioftell.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iofwrite.o: iofwrite.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iogetc.o: iogetc.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iogetdelim.o: iogetdelim.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iogetline.o: iogetline.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iogets.o: iogets.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
ioignore.o: ioignore.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iopadn.o: iopadn.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
ioperror.o: ioperror.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iopopen.o: iopopen.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
ioprims.o: ioprims.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
ioprintf.o: ioprintf.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
ioputc.o: ioputc.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
ioputs.o: ioputs.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
ioscanf.o: ioscanf.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
ioseekoff.o: ioseekoff.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
ioseekpos.o: ioseekpos.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iosetbuffer.o: iosetbuffer.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iosetvbuf.o: iosetvbuf.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iosprintf.o: iosprintf.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iosscanf.o: iosscanf.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iostrerror.o: iostrerror.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
ioungetc.o: ioungetc.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
iovfprintf.o: iovfprintf.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/floatio.h
iovfscanf.o: iovfscanf.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/floatio.h
iovsprintf.o: iovsprintf.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/strfile.h
iovsscanf.o: iovsscanf.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/strfile.h
outfloat.o: outfloat.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
peekc.o: peekc.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
stdfiles.o: stdfiles.c \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h \
 $(srcdir)/libio.h $(_G_CONFIG_H)
strops.o: strops.c \
 $(srcdir)/strfile.h \
 $(srcdir)/libio.h $(_G_CONFIG_H) \
 $(srcdir)/libioP.h \
 $(srcdir)/iolibio.h
# End of package rules fragment generated by ../../../src/libio/config.shared.
##

$(LIBIO_OBJECTS): $(_G_CONFIG_H)

libio.a: $(_G_CONFIG_H) $(LIBIO_OBJECTS)
	-rm -rf libio.a
	$(AR) $(AR_FLAGS) libio.a $(LIBIO_OBJECTS)
	$(RANLIB) libio.a

libiostream.a: $(_G_CONFIG_H) $(LIBIOSTREAM_DEP)
	-rm -rf libiostream.a
	$(AR) $(AR_FLAGS) libiostream.a $(LIBIOSTREAM_USE)
	$(RANLIB) libiostream.a

test: test.o libio.a
	$(CC) $(CFLAGS) -o test test.o libio.a
tpipe: tpipe.o libio.a
	$(CC) $(CFLAGS) -o tpipe tpipe.o libio.a

iostream.list: $(_G_CONFIG_H) $(LIBIOSTREAM_DEP)
	@echo "$(LIBIOSTREAM_USE)"> iostream.list

# The "pic" subdir must be created before we can put any object
# files into it.
$(LIBIOSTREAM_DEP) $(LIBIO_OBJECTS): stamp-picdir

stmp-stdio:
	@rootme=`pwd`/ ; export rootme; cd stdio ; \
	  $(MAKE) $(FLAGS_TO_PASS) stdio.list

_G_config.h: ${srcdir}/gen-params
	rootme=`pwd`/ ; export rootme; \
	CC="$(CC) $(CINCLUDES)"; export CC; \
	CXX="$(CXX) $(CXXINCLUDES) $(NOSTDINC) $(CXXFLAGS)"; export CXX; \
	CONFIG_NM="$(NM)"; export CONFIG_NM; \
	$(SHELL) ${srcdir}/gen-params LIB_VERSION=$(VERSION) $(G_CONFIG_ARGS) >tmp-params.h
	mv tmp-params.h _G_config.h

install:
	rootme=`pwd`/ ; export rootme ; \
	if [ -z "$(MULTISUBDIR)" ]; then \
	  if [ "$(_G_CONFIG_H)" != "" ]; then \
	    if [ x$(enable_version_specific_runtime_libs) = xyes ]; then \
	      rm -f $(gxx_include_dir)/_G_config.h ; \
	      $(INSTALL_DATA) _G_config.h $(gxx_include_dir)/_G_config.h || exit 1; \
	    else \
	      rm -f $(tooldir)/include/_G_config.h ; \
	      $(INSTALL_DATA) _G_config.h $(tooldir)/include/_G_config.h || exit 1; \
	    fi; \
	  else true; \
	  fi ; \
	  cd $(srcdir); \
	  for FILE in $(USER_INCLUDES); do if [ $$FILE != _G_config.h ]; then \
	    rm -f $(gxx_include_dir)/$$FILE ; \
	    $(INSTALL_DATA) $$FILE $(gxx_include_dir)/$$FILE ; \
	    chmod a-x $(gxx_include_dir)/$$FILE ; \
	  else true; fi; done ; \
	else true; \
	fi
	@rootme=`pwd`/ ; export rootme ; \
	$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install

c++clean:
	rm -rf $(IOSTREAM_OBJECTS)
	@$(MAKE) $(FLAGS_TO_PASS) "DODIRS=tests" DO=clean subdir_do

# FIXME: There should be an @-sign in front of the `if'.
# Leave out until this is tested a bit more.
multi-do:
	if [ -z "$(MULTIDIRS)" ]; then \
	  true; \
	else \
	  rootpre=`pwd`/; export rootpre; \
	  srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
	  lib=`echo $${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$$,\1,'`; \
	  compiler="$(CC)"; \
	  for i in `$${compiler} --print-multi-lib 2>/dev/null`; do \
	    dir=`echo $$i | sed -e 's/;.*$$//'`; \
	    if [ "$${dir}" = "." ]; then \
	      true; \
	    else \
	      if [ -d ../$${dir}/$${lib} ]; then \
		flags=`echo $$i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
		if (cd ../$${dir}/$${lib}; $(MAKE) $(FLAGS_TO_PASS) \
				CFLAGS="$(CFLAGS) $${flags}" \
				CXXFLAGS="$(CXXFLAGS) $${flags}" \
				LIBCFLAGS="$(LIBCFLAGS) $${flags}" \
				LIBCXXFLAGS="$(LIBCXXFLAGS) $${flags}" \
				LDFLAGS="$(LDFLAGS) $${flags}" \
				$(DO)); then \
		  true; \
		else \
		  exit 1; \
		fi; \
	      else true; \
	      fi; \
	    fi; \
	  done; \
	fi

# FIXME: There should be an @-sign in front of the `if'.
# Leave out until this is tested a bit more.
multi-clean:
	if [ -z "$(MULTIDIRS)" ]; then \
	  true; \
	else \
	  lib=`pwd | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
	  for dir in Makefile $(MULTIDIRS); do \
	    if [ -f ../$${dir}/$${lib}/Makefile ]; then \
	      if (cd ../$${dir}/$${lib}; $(MAKE) $(FLAGS_TO_PASS) $(DO)); \
	      then true; \
	      else exit 1; \
	      fi; \
	    else true; \
	    fi; \
	  done; \
	fi





















                                             








  


More information about the Gcc-help mailing list