This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "Correct" way of implementing common files?


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]