[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Grouping header files during build
From: |
Ralf Wildenhues |
Subject: |
Re: Grouping header files during build |
Date: |
Sat, 25 Feb 2006 22:52:44 +0100 |
User-agent: |
Mutt/1.5.9i |
Hi Russell,
* Russell Shaw wrote on Sat, Feb 25, 2006 at 06:39:19AM CET:
> Ralf Wildenhues wrote:
> >* Russell Shaw wrote on Wed, Feb 22, 2006 at 04:33:40PM CET:
> >
> >>When each library is built, i want to copy its header to a
> >>header-directory and its object to a library-directory in the
> >>buildtree so that the programs that get built later can include it
> >>using the gcc -I and -L options.
> It doesn't matter so much for library objects, but source files have things
> like #include X11/extensions/... and i didn't want to modify those, because
> they can also be compiled stand-alone on the host, and so need those headers
> in those locations.
OK.
> >>Finally, could i also get the central library header directory and object
> >>directory installed in the distribution?
> >
> >Well, you can use `cp' to copy around stuff, but it would really help to
> >know the problem to be solved from a higher-level standpoint. We may be
> >able to point out a different solution.
>
> I was trying to make a different (top-down) build system for the Xorg tree.
> Most of the source relies on headers being layed out as they are in
> /usr/include/X11, so i wanted a layout like that used during "make" in
> the project tree before installing. I could permanently copy all the headers
> to those locations maybe.
If that can be done without severe restrictions for development, it may
be a good idea. I can imagine it to hinder modularization to some
extent, though.
Cheers,
Ralf