Re: 1. How to checkout gcc 4.1? 2. Outputing dependancy headers in a way that's not make specific

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 23, 2006, at 11:59 AM, Asfand Yar Qazi wrote:

2. I want to generate dependancies for a non-Makefile build system (the Ruby 'rake' build system) which is unfortunately a bit immature, and doesn't do automatic dependancy generation for C/C+ +. It'd be useful if the GCC dependancy generation system could output dependancies in an easy to parse non-Makefile format and a few regexps would do the rest. Know of a way? Or plans to generalise the dependancy generation features of GCC?

I am not sure if this answers your question: gcc/g++ has a whole bunch of options with -M (like -MM, etc) The form I use is -MMD. It does:

target : dep1 dep2 dep3 ...

The lines are continued with a backslash but there are alternatives that don't break the lines.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux