Re: Makefile.am subdirs and object files - anyone please help



Havoc Pennington <hp redhat com> writes:

> The way around it is what the automake docs call a "convenience
> library." You build a static library in the subdirectory with a
> Makefile.am in that subdirectory, then add the static library to the
> link line in the parent directory.
> 
> I can't think of a package with a simple example offhand, but someone
> else probably can. And it's in the automake docs.

The Evolution calendar GUI uses this technique.

	evolution/calendar/gui: main stuff
	evolution/calendar/gui/dialogs: little library with dialog boxes

You can look at the Makefile.am files there to see how it is done.

  Federico




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