URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [fixincludes/] [mkheaders.in] - Rev 154
Go to most recent revision | Compare with Previous | Blame | View Log
#!/bin/sh# Copyright (C) 2002, 2007 Free Software Foundation, Inc.#This file is part of GCC.#GCC 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.#GCC 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 GCC; see the file COPYING. If not, write to the Free#Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA#02110-1301, USA.# Basic informationtarget=@target@target_noncanonical=@target_noncanonical@version=@gcc_version@VERBOSE=0while [ x$1 = x-v ] ; doshiftVERBOSE=`expr $VERBOSE + 1`doneexport VERBOSEif [ x$1 = x--help ] ; thenecho "Usage: mkheaders [options] [prefix [isysroot]]"echo "Options:"echo " -v Print more output (may be repeated for even more output)"echo " --help This help"echo " --version Print version information"exit 0fiif [ x$1 = x--version ] ; thenecho "mkheaders (GCC) version $version"echo "Copyright 2002, 2007 Free Software Foundation, Inc."echo "This program is free software; you may redistribute it under the"echo "terms of the GNU General Public License. This program has"echo "absolutely no warranty."exit 0fi# Common prefix for installation directories.if [ x$1 != x ] ; thenprefix=$1shiftelseprefix=@prefix@fi# Allow for alternate isysroot in which to find headersif [ x$1 != x ] ; thenisysroot=$1shiftelseisysroot=fi# Directory in which to put host dependent programs and librariesexec_prefix=@exec_prefix@# Directory in which to put the directories used by the compiler.libdir=@libdir@libexecdir=@libexecdir@# Directory in which the compiler finds libraries, etc.libsubdir=${libdir}/gcc/${target_noncanonical}/${version}# Directory in which the compiler finds executableslibexecsubdir=${libexecdir}/gcc/${target_noncanonical}/${version}itoolsdir=${libexecsubdir}/install-toolsitoolsdatadir=${libsubdir}/install-toolsincdir=${libsubdir}/include. ${itoolsdatadir}/mkheaders.confcd ${itoolsdir}rm -rf ${incdir}/*if [ x${STMP_FIXINC} != x ] ; thenTARGET_MACHINE="${target}" target_canonical="${target}" \MACRO_LIST="${itoolsdatadir}/macro_list" \@SHELL@ ./fixinc.sh ${incdir} \${isysroot}${SYSTEM_HEADER_DIR} ${OTHER_FIXINCLUDES_DIRS}rm -f ${incdir}/syslimits.hif [ -f ${incdir}/limits.h ]; thenmv ${incdir}/limits.h ${incdir}/syslimits.helsecp ${itoolsdatadir}/gsyslimits.h ${incdir}/syslimits.hfificp ${itoolsdatadir}/include/* ${incdir}if [ x${STMP_FIXPROTO} != x ] ; thenmkinstalldirs="@SHELL@ ${itoolsdir}/mkinstalldirs"export FIXPROTO_DEFINES mkinstalldirs@SHELL@ fixproto ${incdir} ${incdir} ${isysroot}${SYSTEM_HEADER_DIR} || exit 1fi
Go to most recent revision | Compare with Previous | Blame | View Log
