Re: Linking a program with a directory??
Bram Moolenaar <[email protected]> Fri, 23 Jul 2004 20:37:59 +0200
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
> Of course I had to try out the hierarchical build as well. Again I got
> stuck though :-(
>
> main.aap:
>
> :child foo/main.aap
> :child bar/main.aap
>
> foo/main.aap:
>
> :dll foo : foo.c
>
> bar/main.aap:
>
> :program { add_LIBS = $(DLLPRE)foo$(DLLSUF) }
> : main.c
The foo library was created in the "foo" directory, thus in the "bar"
directory you need to use "../foo/$(DLLPRE)foo$(DLLSUF)".
> What I am stuck on that main.c needs foo/foo.h to compile. So, I'd like
> to add '-I../foo' when gcc compiles main.c. But I am at a loss!
> add_INCLUDE, INCLUDE, add_CPPFLAGS, CPPFLAGS... neither has any effect.
> How do I do it?
Setting $INCLUDE should work. What have you tried?
> I have to say that the documentation seems to miss some really essential
> parts here, doesn't it? A-A-P is a build tool, right? Why not have some
> examples of what people do with build tools?
>
> - Linking to libraries, both in and outside of the build.
> - Hierarchical builds, with dependencies between targets in different
> directories (make is considered harmful because of its poor support
> for this, I hope AAP is better)
Aap will take care of dependencies between sources and targets in
different directories. You just have to speficy what depends on what.
You still have to specify where to look for include files, Aap can't
guess where they are.
--
hundred-and-one symptoms of being an internet addict:
66. You create a homepage with the impression to cure the afflicted...but
your hidden agenda is to receive more e-mail.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click