Hello, <br><br>I was reading (<a href="http://llvm.org/docs/Projects.html">http://llvm.org/docs/Projects.html</a>) which mentions the use of ExtraSource as a variable that can be set in project Makefiles to handle code that is generated. I couldn't get this to work, and grepping through all the Makefile.*s in all the directories I couldn't find any mention of "ExtraSource" except for in the Makefile.common (where it is in a comment):<br>

<br><span style="font-family: courier new,monospace;"># 4. Source - If specified, this sets the source code filenames.  If this</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#    is not set, it defaults to be all of the .cpp, .c, .y, and .l files</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">#    in the current directory.  Also, if you want to build files in addition</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#    to the local files, you can use the ExtraSource variable</span><br clear="all">

<br>Is this a bug or has the documentation simply not been updated? Is there a new way to do it?<br><br>On a slightly related note, I tend to like to put generated files in subdirectories (maybe this is a bad thing?) to keep them from cluttering the code that I'm working on. This breaks the default LLVM makefiles because it compiles foo/bar.c to Debug+Asserts/foo/bar.o and the foo directory doesn't exist in Debug+Asserts.<br>

<br>I'm pretty bad with Makefiles, but the attached patch seems to fix both problems, though possibly not in the most elegant way.<br><br>-- <br>gregory malecha<br>