This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Can non-libiberty includes be moved out of include/ ?
[Get raw message]
On Tue, Nov 13, 2001 at 03:20:56PM -0800, David O'Brien wrote:
> > > I know this is going to be controveral... But could non libiberty
> > > includes be moved from include to bu-include? The reason being is that
> > > at the moment it is hard to build a Cygnus-like cross build tree from the
> > > Binutils, gdb, and GCC sources. The only conflicting directory is
> >
> > It is trivial to do. My cross toolchain has binutils, gcc and gdb. I
> > only need to type
>
> Specifically how have you set this up?
>
Only tested on Linux.
H.J.
---Makefile---
GCC-SOURCE-DIR=../../../src/gcc/gcc
BINUTILS-SOURCE-DIR=../../../../linux/src/binutils/binutils
GDB-SOURCE-DIR=../../../src/gdb-5.1/gdb
TOOLS-SOURCE-DIR=tools
link: clobber
mkdir $(TOOLS-SOURCE-DIR)
cd $(TOOLS-SOURCE-DIR) && \
lndir $(GCC-SOURCE-DIR) && \
lndir $(BINUTILS-SOURCE-DIR) && \
rm -rf mips libiberty include && \
mkdir libiberty include && \
cd libiberty && \
lndir ../$(BINUTILS-SOURCE-DIR)/libiberty && \
lndir ../$(GCC-SOURCE-DIR)/libiberty && \
cd ../include && \
lndir ../$(BINUTILS-SOURCE-DIR)/include && \
lndir ../$(GCC-SOURCE-DIR)/include && \
cd .. && \
lndir $(GDB-SOURCE-DIR) && \
test -x ../applied/README && ../applied/README && \
cd ..; \
copy: link
rm -fr $(TOOLS-SOURCE-DIR).tmp
mkdir $(TOOLS-SOURCE-DIR).tmp
cd $(TOOLS-SOURCE-DIR) && \
cp -afL . ../$(TOOLS-SOURCE-DIR).tmp
clobber:
rm -rf $(TOOLS-SOURCE-DIR)