2002-05-26 Geoffrey Keating <geoffk@redhat.com> * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'. (mkheaders): New rule. (install-mkheaders): New rule. * configure.in (all_outputs): Add mkheaders. * configure: Regenerate. * mkheaders.in: New file. Index: gcc/Makefile.in =================================================================== RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v retrieving revision 1.880 diff -p -u -p -r1.880 Makefile.in --- gcc/Makefile.in 25 May 2002 22:01:40 -0000 1.880 +++ gcc/Makefile.in 27 May 2002 04:14:19 -0000 @@ -434,7 +434,7 @@ FLOAT_H=@float_h_file@ LIBCONVERT = # Control whether header files are installed. -INSTALL_HEADERS=install-headers +INSTALL_HEADERS=install-headers install-mkheaders # Control whether Info documentation is built and installed. BUILD_INFO = @BUILD_INFO@ @@ -878,6 +878,9 @@ gccbug: $(srcdir)/gccbug.in mklibgcc: $(srcdir)/mklibgcc.in CONFIG_FILES=mklibgcc CONFIG_HEADERS= ./config.status +mkheaders: $(srcdir)/mkheaders.in + CONFIG_FILES=mkheaders CONFIG_HEADERS= ./config.status + # cstamp-h.in controls rebuilding of config.in. # It is named cstamp-h.in and not stamp-h.in so the mostlyclean rule doesn't # delete it. A stamp file is needed as autoheader won't update the file if @@ -2839,6 +2842,47 @@ install-headers-cpio: stmp-int-hdrs $(ST # Install the include directory using cp. install-headers-cp: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir cp -p -r include $(libsubdir) + +itoolsdir = $(libsubdir)/install-tools +# Don't install the headers. Instead, install appropriate scripts +# and supporting files for fixincludes to be run later. +install-mkheaders: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir \ + mkheaders xlimits.h + -rm -rf $(itoolsdir) + $(SHELL) $(srcdir)/mkinstalldirs $(itoolsdir)/include + for file in $(USER_H); do \ + realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \ + $(INSTALL_DATA) $$file \ + $(itoolsdir)/include/$$realfile ; \ + done + if [ x$(FLOAT_H) != xMakefile.in ]; then \ + $(INSTALL_DATA) $(srcdir)/config/$(FLOAT_H) \ + $(itoolsdir)/include/float.h ; \ + else :; fi + $(INSTALL_DATA) xlimits.h $(itoolsdir)/include/limits.h + if [ x$(STMP_FIXINC) != x ] ; then \ + $(INSTALL_DATA) $(srcdir)/README-fixinc \ + $(itoolsdir)/include/README ; \ + $(INSTALL_PROGRAM) fixinc.sh $(itoolsdir)/fixinc.sh ; \ + $(INSTALL_PROGRAM) fixinc/fixincl $(itoolsdir)/fixincl ; \ + $(INSTALL_DATA) $(srcdir)/gsyslimits.h $(itoolsdir)/gsyslimits.h ; \ + else :; fi + if [ x$(STMP_FIXPROTO) != x ] ; then \ + $(INSTALL_PROGRAM) $(srcdir)/mkinstalldirs \ + $(itoolsdir)/mkinstalldirs ; \ + $(INSTALL_PROGRAM) $(srcdir)/fixproto $(itoolsdir)/fixproto ; \ + $(INSTALL_PROGRAM) fix-header$(build_exeext) \ + $(itoolsdir)/fix-header$(build_exeext) ; \ + else :; fi + $(INSTALL_PROGRAM) mkheaders $(itoolsdir)/mkheaders + echo 'SYSTEM_HEADER_DIR="$(SYSTEM_HEADER_DIR)"' \ + > $(itoolsdir)/mkheaders.conf + echo 'OTHER_FIXINCLUDES_DIRS="$(OTHER_FIXINCLUDES_DIRS)"' \ + >> $(itoolsdir)/mkheaders.conf + echo 'FIXPROTO_DEFINES="$(FIXPROTO_DEFINES)"' \ + >> $(itoolsdir)/mkheaders.conf + echo 'STMP_FIXPROTO="$(STMP_FIXPROTO)"' >> $(itoolsdir)/mkheaders.conf + echo 'STMP_FIXINC="$(STMP_FIXINC)"' >> $(itoolsdir)/mkheaders.conf # Use this target to install the program `collect2' under the name `collect2'. install-collect2: collect2 installdirs Index: gcc/configure =================================================================== RCS file: /cvs/gcc/gcc/gcc/configure,v retrieving revision 1.606 diff -p -u -p -r1.606 configure --- gcc/configure 25 May 2002 19:51:40 -0000 1.606 +++ gcc/configure 27 May 2002 04:14:21 -0000 @@ -8065,7 +8065,7 @@ all_languages= all_boot_languages= all_compilers= all_stagestuff= -all_outputs='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc' +all_outputs='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc mkheaders' # List of language makefile fragments. all_lang_makefiles= Index: gcc/configure.in =================================================================== RCS file: /cvs/gcc/gcc/gcc/configure.in,v retrieving revision 1.593 diff -p -u -p -r1.593 configure.in --- gcc/configure.in 25 May 2002 19:51:41 -0000 1.593 +++ gcc/configure.in 27 May 2002 04:14:21 -0000 @@ -2312,7 +2312,7 @@ all_languages= all_boot_languages= all_compilers= all_stagestuff= -all_outputs='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc' +all_outputs='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc mkheaders' # List of language makefile fragments. all_lang_makefiles= Index: gcc/mkheaders.in =================================================================== RCS file: gcc/mkheaders.in diff -N gcc/mkheaders.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ gcc/mkheaders.in 27 May 2002 04:14:21 -0000 @@ -0,0 +1,101 @@ +#!/bin/sh + +# Copyright (C) 2002 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, 59 Temple Place - Suite 330, Boston, MA +#02111-1307, USA. + +# Basic information +target=@target@ +target_alias=@target_alias@ +version=@gcc_version@ + +VERBOSE=0 +while [ x$1 = x-v ] ; do + shift + VERBOSE=`expr $VERBOSE + 1` +done +export VERBOSE + +if [ x$1 = x--help ] ; then + echo "Usage: mkheaders [options] [prefix]" + echo "Options:" + echo " -v Print more output (may be repeated for even more output)" + echo " --help This help" + echo " --version Print version information" + exit 0 +fi + +if [ x$1 = x--version ] ; then + echo "mkheaders (GCC) version $version" + echo "Copyright 2002 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 0 +fi + +# Common prefix for installation directories. +if [ x$1 != x ] ; then + prefix=$1 +else + prefix=@prefix@ +fi +# Directory in which to put localized header files. On the systems with +# gcc as the native cc, `local_prefix' may not be `prefix' which is +# `/usr'. +# NOTE: local_prefix *should not* default from prefix. +local_prefix=@local_prefix@ +# Directory in which to put host dependent programs and libraries +exec_prefix=@exec_prefix@ +# Directory in which to put the directories used by the compiler. +libdir=@libdir@ +# Directory in which the compiler finds executables, libraries, etc. +libsubdir=${libdir}/gcc-lib/${target_alias}/${version} +# Since gcc_tooldir does not exist at build-time, use -B${build_tooldir}/bin/ +build_tooldir=${exec_prefix}/${target_alias} +# Directory to search for site-specific includes. +local_includedir=${local_prefix}/include +includedir=${prefix}/include + +itoolsdir=${libsubdir}/install-tools +incdir=${libsubdir}/include + +. ${itoolsdir}/mkheaders.conf + +cd ${itoolsdir} +rm -rf ${incdir}/* + +if [ x${STMP_FIXINC} != x ] ; then + TARGET_MACHINE="${target}" target_canonical="${target}" \ + ${SHELL} ./fixinc.sh ${incdir} \ + ${SYSTEM_HEADER_DIR} ${OTHER_FIXINCLUDES_DIRS} + rm -f ${incdir}/syslimits.h + if [ -f ${incdir}/limits.h ]; then + mv ${incdir}/limits.h ${incdir}/syslimits.h + else + cp gsyslimits.h ${incdir}/syslimits.h + fi +fi + +cp include/* ${incdir} + +if [ x${STMP_FIXPROTO} != x ] ; then + mkinstalldirs="${SHELL} ${itoolsdir}/mkinstalldirs" + export FIXPROTO_DEFINES mkinstalldirs + ${SHELL} fixproto ${incdir} ${incdir} ${SYSTEM_HEADER_DIR} || exit 1 +fi From-SVN: r53907
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
ada | Loading commit data... | |
config | Loading commit data... | |
cp | Loading commit data... | |
doc | Loading commit data... | |
f | Loading commit data... | |
fixinc | Loading commit data... | |
ginclude | Loading commit data... | |
intl | Loading commit data... | |
java | Loading commit data... | |
objc | Loading commit data... | |
po | Loading commit data... | |
testsuite | Loading commit data... | |
treelang | Loading commit data... | |
.cvsignore | Loading commit data... | |
ABOUT-GCC-NLS | Loading commit data... | |
ABOUT-NLS | Loading commit data... | |
COPYING | Loading commit data... | |
COPYING.LIB | Loading commit data... | |
ChangeLog | Loading commit data... | |
ChangeLog.0 | Loading commit data... | |
ChangeLog.1 | Loading commit data... | |
ChangeLog.2 | Loading commit data... | |
ChangeLog.3 | Loading commit data... | |
ChangeLog.4 | Loading commit data... | |
ChangeLog.5 | Loading commit data... | |
ChangeLog.6 | Loading commit data... | |
ChangeLog.lib | Loading commit data... | |
FSFChangeLog | Loading commit data... | |
FSFChangeLog.10 | Loading commit data... | |
FSFChangeLog.11 | Loading commit data... | |
LANGUAGES | Loading commit data... | |
Makefile.in | Loading commit data... | |
ONEWS | Loading commit data... | |
README-fixinc | Loading commit data... | |
README.Portability | Loading commit data... | |
SERVICE | Loading commit data... | |
acconfig.h | Loading commit data... | |
aclocal.m4 | Loading commit data... | |
alias.c | Loading commit data... | |
attribs.c | Loading commit data... | |
basic-block.h | Loading commit data... | |
bb-reorder.c | Loading commit data... | |
bitmap.c | Loading commit data... | |
bitmap.h | Loading commit data... | |
builtin-attrs.def | Loading commit data... | |
builtin-types.def | Loading commit data... | |
builtins.c | Loading commit data... | |
builtins.def | Loading commit data... | |
c-aux-info.c | Loading commit data... | |
c-common.c | Loading commit data... | |
c-common.def | Loading commit data... | |
c-common.h | Loading commit data... | |
c-convert.c | Loading commit data... | |
c-decl.c | Loading commit data... | |
c-errors.c | Loading commit data... | |
c-format.c | Loading commit data... | |
c-lang.c | Loading commit data... | |
c-lex.c | Loading commit data... | |
c-objc-common.c | Loading commit data... | |
c-parse.in | Loading commit data... | |
c-pragma.c | Loading commit data... | |
c-pragma.h | Loading commit data... | |
c-semantics.c | Loading commit data... | |
c-tree.h | Loading commit data... | |
c-typeck.c | Loading commit data... | |
caller-save.c | Loading commit data... | |
calls.c | Loading commit data... | |
cfg.c | Loading commit data... | |
cfganal.c | Loading commit data... | |
cfgbuild.c | Loading commit data... | |
cfgcleanup.c | Loading commit data... | |
cfglayout.c | Loading commit data... | |
cfglayout.h | Loading commit data... | |
cfgloop.c | Loading commit data... | |
cfgrtl.c | Loading commit data... | |
collect2.c | Loading commit data... | |
collect2.h | Loading commit data... | |
combine.c | Loading commit data... | |
conditions.h | Loading commit data... | |
config.gcc | Loading commit data... | |
config.guess | Loading commit data... | |
config.in | Loading commit data... | |
configure | Loading commit data... | |
configure.frag | Loading commit data... | |
configure.in | Loading commit data... | |
conflict.c | Loading commit data... | |
convert.c | Loading commit data... | |
convert.h | Loading commit data... | |
cppdefault.c | Loading commit data... | |
cppdefault.h | Loading commit data... | |
cpperror.c | Loading commit data... | |
cppexp.c | Loading commit data... | |
cppfiles.c | Loading commit data... | |
cpphash.c | Loading commit data... | |
cpphash.h | Loading commit data... | |
cppinit.c | Loading commit data... | |
cpplex.c | Loading commit data... | |
cpplib.c | Loading commit data... | |
cpplib.h | Loading commit data... | |
cppmacro.c | Loading commit data... | |
cppmain.c | Loading commit data... | |
cppspec.c | Loading commit data... | |
cpptrad.c | Loading commit data... | |
crtstuff.c | Loading commit data... | |
cse.c | Loading commit data... | |
cselib.c | Loading commit data... | |
cselib.h | Loading commit data... | |
cstamp-h.in | Loading commit data... | |
dbxout.c | Loading commit data... | |
dbxout.h | Loading commit data... | |
dbxstclass.h | Loading commit data... | |
debug.c | Loading commit data... | |
debug.h | Loading commit data... | |
defaults.h | Loading commit data... | |
dependence.c | Loading commit data... | |
df.c | Loading commit data... | |
df.h | Loading commit data... | |
diagnostic.c | Loading commit data... | |
diagnostic.def | Loading commit data... | |
diagnostic.h | Loading commit data... | |
doloop.c | Loading commit data... | |
dominance.c | Loading commit data... | |
doschk.c | Loading commit data... | |
dwarf.h | Loading commit data... | |
dwarf2.h | Loading commit data... | |
dwarf2asm.c | Loading commit data... | |
dwarf2asm.h | Loading commit data... | |
dwarf2out.c | Loading commit data... | |
dwarf2out.h | Loading commit data... | |
dwarfout.c | Loading commit data... | |
emit-rtl.c | Loading commit data... | |
enquire.c | Loading commit data... | |
errors.c | Loading commit data... | |
errors.h | Loading commit data... | |
except.c | Loading commit data... | |
except.h | Loading commit data... | |
explow.c | Loading commit data... | |
expmed.c | Loading commit data... | |
expr.c | Loading commit data... | |
expr.h | Loading commit data... | |
final.c | Loading commit data... | |
fix-header.c | Loading commit data... | |
fixproto | Loading commit data... | |
flags.h | Loading commit data... | |
floatlib.c | Loading commit data... | |
flow.c | Loading commit data... | |
fold-const.c | Loading commit data... | |
fp-test.c | Loading commit data... | |
function.c | Loading commit data... | |
function.h | Loading commit data... | |
future.options | Loading commit data... | |
gbl-ctors.h | Loading commit data... | |
gcc.c | Loading commit data... | |
gcc.h | Loading commit data... | |
gcc.hlp | Loading commit data... | |
gccbug.in | Loading commit data... | |
gccspec.c | Loading commit data... | |
gcov-io.h | Loading commit data... | |
gcov.c | Loading commit data... | |
gcse.c | Loading commit data... | |
gdbinit.in | Loading commit data... | |
gen-protos.c | Loading commit data... | |
genattr.c | Loading commit data... | |
genattrtab.c | Loading commit data... | |
genattrtab.h | Loading commit data... | |
genautomata.c | Loading commit data... | |
gencheck.c | Loading commit data... | |
gencodes.c | Loading commit data... | |
genconfig.c | Loading commit data... | |
genconstants.c | Loading commit data... | |
genemit.c | Loading commit data... | |
genextract.c | Loading commit data... | |
genflags.c | Loading commit data... | |
gengenrtl.c | Loading commit data... | |
genmultilib | Loading commit data... | |
genopinit.c | Loading commit data... | |
genoutput.c | Loading commit data... | |
genpeep.c | Loading commit data... | |
genpreds.c | Loading commit data... | |
genrecog.c | Loading commit data... | |
gensupport.c | Loading commit data... | |
gensupport.h | Loading commit data... | |
ggc-common.c | Loading commit data... | |
ggc-none.c | Loading commit data... | |
ggc-page.c | Loading commit data... | |
ggc-simple.c | Loading commit data... | |
ggc.h | Loading commit data... | |
glimits.h | Loading commit data... | |
global.c | Loading commit data... | |
gmon.c | Loading commit data... | |
graph.c | Loading commit data... | |
graph.h | Loading commit data... | |
gstab.h | Loading commit data... | |
gsyms.h | Loading commit data... | |
gsyslimits.h | Loading commit data... | |
gthr-aix.h | Loading commit data... | |
gthr-dce.h | Loading commit data... | |
gthr-posix.h | Loading commit data... | |
gthr-rtems.h | Loading commit data... | |
gthr-single.h | Loading commit data... | |
gthr-solaris.h | Loading commit data... | |
gthr-vxworks.h | Loading commit data... | |
gthr-win32.h | Loading commit data... | |
gthr.h | Loading commit data... | |
haifa-sched.c | Loading commit data... | |
halfpic.c | Loading commit data... | |
halfpic.h | Loading commit data... | |
hard-reg-set.h | Loading commit data... | |
hash.c | Loading commit data... | |
hash.h | Loading commit data... | |
hashtable.c | Loading commit data... | |
hashtable.h | Loading commit data... | |
hooks.c | Loading commit data... | |
hooks.h | Loading commit data... | |
hwint.h | Loading commit data... | |
ifcvt.c | Loading commit data... | |
input.h | Loading commit data... | |
insn-addr.h | Loading commit data... | |
integrate.c | Loading commit data... | |
integrate.h | Loading commit data... | |
intl.c | Loading commit data... | |
intl.h | Loading commit data... | |
jump.c | Loading commit data... | |
langhooks-def.h | Loading commit data... | |
langhooks.c | Loading commit data... | |
langhooks.h | Loading commit data... | |
lcm.c | Loading commit data... | |
libfuncs.h | Loading commit data... | |
libgcc-std.ver | Loading commit data... | |
libgcc2.c | Loading commit data... | |
libgcc2.h | Loading commit data... | |
limitx.h | Loading commit data... | |
limity.h | Loading commit data... | |
line-map.c | Loading commit data... | |
line-map.h | Loading commit data... | |
lists.c | Loading commit data... | |
local-alloc.c | Loading commit data... | |
longlong.h | Loading commit data... | |
loop.c | Loading commit data... | |
loop.h | Loading commit data... | |
machmode.def | Loading commit data... | |
machmode.h | Loading commit data... | |
main.c | Loading commit data... | |
mbchar.c | Loading commit data... | |
mbchar.h | Loading commit data... | |
mips-tdump.c | Loading commit data... | |
mips-tfile.c | Loading commit data... | |
mkconfig.sh | Loading commit data... | |
mkdeps.c | Loading commit data... | |
mkdeps.h | Loading commit data... | |
mkheaders.in | Loading commit data... | |
mkinstalldirs | Loading commit data... | |
mklibgcc.in | Loading commit data... | |
mkmap-flat.awk | Loading commit data... | |
mkmap-symver.awk | Loading commit data... | |
move-if-change | Loading commit data... | |
optabs.c | Loading commit data... | |
optabs.h | Loading commit data... | |
output.h | Loading commit data... | |
params.c | Loading commit data... | |
params.def | Loading commit data... | |
params.h | Loading commit data... | |
predict.c | Loading commit data... | |
predict.def | Loading commit data... | |
predict.h | Loading commit data... | |
prefix.c | Loading commit data... | |
prefix.h | Loading commit data... | |
print-rtl.c | Loading commit data... | |
print-tree.c | Loading commit data... | |
profile.c | Loading commit data... | |
profile.h | Loading commit data... | |
protoize.c | Loading commit data... | |
read-rtl.c | Loading commit data... | |
real.c | Loading commit data... | |
real.h | Loading commit data... | |
recog.c | Loading commit data... | |
recog.h | Loading commit data... | |
reg-stack.c | Loading commit data... | |
regclass.c | Loading commit data... | |
regmove.c | Loading commit data... | |
regrename.c | Loading commit data... | |
regs.h | Loading commit data... | |
reload.c | Loading commit data... | |
reload.h | Loading commit data... | |
reload1.c | Loading commit data... | |
reorg.c | Loading commit data... | |
resource.c | Loading commit data... | |
resource.h | Loading commit data... | |
rtl-error.c | Loading commit data... | |
rtl.c | Loading commit data... | |
rtl.def | Loading commit data... | |
rtl.h | Loading commit data... | |
rtlanal.c | Loading commit data... | |
sbitmap.c | Loading commit data... | |
sbitmap.h | Loading commit data... | |
scan-decls.c | Loading commit data... | |
scan-types.sh | Loading commit data... | |
scan.c | Loading commit data... | |
scan.h | Loading commit data... | |
sched-deps.c | Loading commit data... | |
sched-ebb.c | Loading commit data... | |
sched-int.h | Loading commit data... | |
sched-rgn.c | Loading commit data... | |
sched-vis.c | Loading commit data... | |
sdbout.c | Loading commit data... | |
sdbout.h | Loading commit data... | |
sibcall.c | Loading commit data... | |
simplify-rtx.c | Loading commit data... | |
sort-protos | Loading commit data... | |
ssa-ccp.c | Loading commit data... | |
ssa-dce.c | Loading commit data... | |
ssa.c | Loading commit data... | |
ssa.h | Loading commit data... | |
stab.def | Loading commit data... | |
stack.h | Loading commit data... | |
stmt.c | Loading commit data... | |
stor-layout.c | Loading commit data... | |
stringpool.c | Loading commit data... | |
sys-protos.h | Loading commit data... | |
sys-types.h | Loading commit data... | |
system.h | Loading commit data... | |
target-def.h | Loading commit data... | |
target.h | Loading commit data... | |
timevar.c | Loading commit data... | |
timevar.def | Loading commit data... | |
timevar.h | Loading commit data... | |
tlink.c | Loading commit data... | |
toplev.c | Loading commit data... | |
toplev.h | Loading commit data... | |
tradcif.y | Loading commit data... | |
tradcpp.c | Loading commit data... | |
tradcpp.h | Loading commit data... | |
tree-dump.c | Loading commit data... | |
tree-dump.h | Loading commit data... | |
tree-inline.c | Loading commit data... | |
tree-inline.h | Loading commit data... | |
tree.c | Loading commit data... | |
tree.def | Loading commit data... | |
tree.h | Loading commit data... | |
tsystem.h | Loading commit data... | |
typeclass.h | Loading commit data... | |
unroll.c | Loading commit data... | |
unwind-dw2-fde-glibc.c | Loading commit data... | |
unwind-dw2-fde.c | Loading commit data... | |
unwind-dw2-fde.h | Loading commit data... | |
unwind-dw2.c | Loading commit data... | |
unwind-pe.h | Loading commit data... | |
unwind-sjlj.c | Loading commit data... | |
unwind.h | Loading commit data... | |
unwind.inc | Loading commit data... | |
varasm.c | Loading commit data... | |
varray.c | Loading commit data... | |
varray.h | Loading commit data... | |
version.c | Loading commit data... | |
version.h | Loading commit data... | |
vmsdbg.h | Loading commit data... | |
vmsdbgout.c | Loading commit data... | |
xcoffout.c | Loading commit data... | |
xcoffout.h | Loading commit data... |