[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Grouping header files during build
From: |
Stepan Kasal |
Subject: |
Re: Grouping header files during build |
Date: |
Fri, 24 Feb 2006 12:48:50 +0100 |
User-agent: |
Mutt/1.4.1i |
Hello,
On Thu, Feb 23, 2006 at 02:33:40AM +1100, Russell Shaw wrote:
> 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.
>
> So, what is the recommended way in Makefile.am to copy a library header and
> object to another directory after a library is built?
I'd say that the recommended way is to add the directories to AM_CPPFLAGS
and AM_LDFLAGS, instead of copying files.
As soon as you have two copies of something, there is always the risk that
they get out of sync.
Have a nice day,
Stepan