-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2008-08-05 13:58:17 (-0400), Harvey Chapman <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I'd like to be able to define a list of macros like (DEBUG_XX, DEBUG_YY)  
> and have make detect that a source file needs to be recompiled because  
> of a change in that list. These macros are always used with an "#ifdef"  
> or  an "#if defined()" style pre-processing directive.
>
> I would appreciate any pointers to solutions.
You may want to take a look at how the Linux kernel handles that.

In short: they have a tool scan each source file to find out which
defines it uses (in the kernel they all start with CONFIG_) and it adds
those files as extra dependencies for that source file.

Kristof

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkiYuLEACgkQUEZ9DhGwDuhkuACffQS78TuaPPzBKXTELI7+fbOh
nrsAoIbocxTQfB1Fg+jj7TeBfUDUtoio
=hj/Z
-----END PGP SIGNATURE-----


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to