This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: "Correct" way of implementing common files?
- To: hugo at carfax dot org dot uk
- Subject: Re: "Correct" way of implementing common files?
- From: Tom Tromey <tromey at redhat dot com>
- Date: 02 Aug 2001 20:03:11 -0600
- Cc: automake at gnu dot org
- List-Id: Discussion list for automake <automake.gnu.org>
- References: <20010801180038.A11031@carfax>
- Reply-To: tromey at redhat dot com
>>>>> "Hugo" == hugo <hugo@carfax.org.uk> writes:
Hugo> What is the "right" (or best) way of implementing common files?
Hugo> I have a project with several sub-directories; these subdirs
Hugo> have a number of source files in common, which should rightly be
Hugo> placed in a subdir of their own. How do I persuade automake to
Hugo> make the .o files in the "common" directory, and to link with
Hugo> those files in each of the other sub-directories?
For this precise scenario all you can really do is make a convenience
library in the common directory and then link against it.
Well, there are other hacks, but they don't work as well.
Tom