This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]