automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Correct" way of implementing common files?


From: Tom Tromey
Subject: Re: "Correct" way of implementing common files?
Date: 02 Aug 2001 20:03:11 -0600

>>>>> "Hugo" == hugo  <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]