<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt"><br><div class="gmail_quote">On Thu, Dec 6, 2012 at 5:50 PM, NAKAMURA Takumi <span dir="ltr"><<a href="mailto:geek4civic@gmail.com" target="_blank">geek4civic@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2012/12/7 Alexey Samsonov <<a href="mailto:samsonov@google.com">samsonov@google.com</a>>:<br>
<div class="im">> Thank you (and sorry for the breakage)!<br>
><br>
> I looked at Makefile.common which has lines:<br>
> # 4. Source - If specified, this sets the source code filenames. If this<br>
> # is not set, it defaults to be all of the .cpp, .c, .y, and .l files<br>
> # in the current directory.<br>
<br>
</div>It's odd. Fixed in r169569. (I have confirmed to Eric, thanks)<br>
<br>
> Should we s/Source/SOURCES here?<br>
<br>
Sure. FYI;<br>
<br>
* <a href="http://llvm.org/docs/MakefileGuide.html#variables" target="_blank">http://llvm.org/docs/MakefileGuide.html#variables</a><br>
<br>
Variables are also used internally by the LLVM Makefile System.<br>
Variable names that contain only the upper case alphabetic letters and<br>
underscore are intended for use by the end user.<br>
<br>
* <a href="http://llvm.org/docs/MakefileGuide.html#control-variables" target="_blank">http://llvm.org/docs/MakefileGuide.html#control-variables</a><br>
<br>
SOURCES (optional)Specifies the list of source files in the current<br>
directory to be built. Source files of any type may be specified<br>
(programs, documentation, config files, etc.). If not specified, the<br>
makefile system will infer the set of source files from the files<br>
present in the current directory.<br>
<br>
* in Makefile.rules<br>
<br>
#----------------------------------------------------------<br>
# Get the list of source files and compute object file<br>
# names from them.<br>
#----------------------------------------------------------<br>
<br>
ifndef SOURCES<br>
Sources := $(notdir $(wildcard $(PROJ_SRC_DIR)/*.cpp \<br>
$(PROJ_SRC_DIR)/*.cc $(PROJ_SRC_DIR)/*.c))<br>
else<br>
Sources := $(SOURCES)<br>
endif<br>
<br></blockquote><div><br></div><div>Thanks for the links and reference! (and, once again, sorry for breaking all the bots).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--<br>
HTH, Takumi<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
> On Thu, Dec 6, 2012 at 5:25 PM, NAKAMURA Takumi <<a href="mailto:geek4civic@gmail.com">geek4civic@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Author: chapuni<br>
>> Date: Thu Dec 6 19:25:45 2012<br>
>> New Revision: <a href="tel:169568" value="+49169568">169568</a><br>
>><br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=169568&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=169568&view=rev</a><br>
>> Log:<br>
>> unittest/googletest/Makefile: Unbreak out-of-tree build.<br>
>><br>
>> - Use SOURCES instead of Source. See Makefile.rules and<br>
>> MakefileGuide.html.<br>
>> - Don't assume the current directory. $(wildcard *.cc) doesn't match<br>
>> anything on corresponding build directory.<br>
>><br>
>> Modified:<br>
>> llvm/trunk/utils/unittest/googletest/Makefile<br>
>><br>
>> Modified: llvm/trunk/utils/unittest/googletest/Makefile<br>
>> URL:<br>
>> <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/unittest/googletest/Makefile?rev=169568&r1=169567&r2=169568&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/unittest/googletest/Makefile?rev=169568&r1=169567&r2=169568&view=diff</a><br>
>><br>
>> ==============================================================================<br>
>> --- llvm/trunk/utils/unittest/googletest/Makefile (original)<br>
>> +++ llvm/trunk/utils/unittest/googletest/Makefile Thu Dec 6 19:25:45 2012<br>
>> @@ -36,6 +36,6 @@<br>
>><br>
>> NO_INSTALL = 1<br>
>><br>
>> -Source = $(filter-out gtest-all.cc,$(wildcard *.cc))<br>
>> +SOURCES = $(filter-out gtest-all.cc, $(notdir $(wildcard<br>
>> $(PROJ_SRC_DIR)/*.cc)))<br>
>><br>
>> include $(LEVEL)/Makefile.common<br>
>><br>
>><br>
>> _______________________________________________<br>
>> llvm-commits mailing list<br>
>> <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Alexey Samsonov, MSK<br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Alexey Samsonov, MSK</div><br>
</div>