Re: skipping header file depency
Bram Moolenaar <[email protected]> Mon, 07 Jun 2004 17:16:25 +0200
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Taco Walstra wrote:
> Perhaps somebody could help with the following.
> I'm trying to convert some makefiles into aap recipes for microcontroller
> applications which should be compiled with a windows commandline compiler
> with the linux wine emulator.
> Because this compiler cannot generate dependencies I run both the linux
> compiler and the uC compiler on the files.
> One header files gives problems because of several preprocessor directives and
> I would like to skip the dep. checking on this file. How to do this?
The problem appears to be that you use the "-MM" flag of gcc, which
recursively finds all dependencies. But you specify a "depend" action
without the "recursive" flag. I don't think you can tell gcc to do this
non-recursively.
You could add the "{recursive}" argument to the "depend" action, perhaps
that already solves the problem. Otherwise you can use the default
depend action without using gcc. This requires a recent Aap version
that supports the HASGCC variable. Set HASGCC to "no".
I now wonder if the internal dependency function checks the "autodepend"
attribute.
I don't see a simple way to make a "depend" action that is not
recursive, so that at each level the "autodepend" attribute can be
checked and files skipped where it's off. This would require using
Python to do your own dependency checking.
--
hundred-and-one symptoms of being an internet addict:
63. You start using smileys in your snail 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 the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504