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.