This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: 1. How to checkout gcc 4.1? 2. Outputing dependancy headers in a way that's not make specific
- From: Perry Smith <pedz at easesoftware dot net>
- To: Asfand Yar Qazi <email at asfandyar dot cjb dot net>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 23 Feb 2006 12:12:50 -0600
- Subject: Re: 1. How to checkout gcc 4.1? 2. Outputing dependancy headers in a way that's not make specific
- References: <43FDF7F2.5070606@asfandyar.cjb.net>
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.