[GCC-XML] Starter Question

Brad King brad.king at kitware.com
Thu May 12 10:04:06 EDT 2005


sthelapu at comcast.net wrote:
> This must have been used for large projects, which have multiple included files and dependancies. Could anyone share tips on how to painlessly include this in gmake files ?

You can use the standard GCC option "-M" for getting dependencies.  The 
make fragments below are off the top of my head but they should get you 
started.

myxml.depends.make:
	gccxml mysource.cxx -E -M -MT myxml.xml -MF myxml.depends.make
myxml.xml:
	gccxml mysource.cxx -fxml=myxml.xml
-include myxml.depends.make

-Brad



More information about the gccxml mailing list