Re: {newbie question] dependencies on libraries

Mathew Boorman <[email protected]> 06 Feb 2004 23:41:04 +1100
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
On Sat, 2004-02-07 at 00:30, Bram Moolenaar wrote: 
> Mathew Boorman wrote:
> 
> > I cannot figure out how to specify a dependency on a library.
> > My current rules file looks like the following, by unfortunately
> > libdog.so does not get built if I build go1.

> You can specify the dependency explicitly:
> 
> 	:dll dog : dog.cpp
> 	:program go1 
> 		{var_LIBS= -ldog }
> 		{var_LDFLAGS= -L. }
> 		:
> 		go1.cpp
> 	go1 : dog

When I tried doing that, but must of messed it up somehow.
Thats the answer I need.


> Since you use "-ldog" this is more logical than adding "dog" as a source
> file.  Aap cannot know which "dog" library you want to link with (could
> be a system library), thus I don't think this should be done
> automatically.

I agree that its not required. 

Thanks
Mat





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn