[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: generate automatic dependencies
From: |
Ken Smith |
Subject: |
Re: generate automatic dependencies |
Date: |
Tue, 30 Nov 2004 09:09:22 -0500 |
User-agent: |
Mutt/1.5.6i |
If your compiler supports generating a preprocessed file the way GCC
does when supplied with the -E flag, you could run your perl script on
that.
Ken
On Sat, Nov 20, 2004 at 07:04:18PM +0100, Torsten Mohr wrote:
> Hi,
>
> i have a small project where i let the automaic dependencies
> be generated automatically.
>
> The project is written in C for an embedded compiler that
> does not support dependency generation.
>
> So i generate the dependency files and the included files
> with a perl script, just scanning for '#include "name.h"'.
>
> But the perl script does NOT replace the complete
> C preprocessor.
>
> Can anybody give me a hint on a perl or python script that
> takes over some more functionality of the C preprocessor?
> Some things like:
>
> #if ABC > DEF
> #include "file.h"
> #endif
>
>
> I don't want to let the dependencies be generated with
> _another_ compiler that i (and the other people working on
> the project) need to install.
>
>
> Best regards,
> Torsten.
>
>
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make