unittest/googletest/Makefile: Unbreak out-of-tree build.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 7 Dec 2012 01:25:45 +0000 (01:25 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 7 Dec 2012 01:25:45 +0000 (01:25 +0000)
  - Use SOURCES instead of Source. See Makefile.rules and MakefileGuide.html.
  - Don't assume the current directory. $(wildcard *.cc) doesn't match anything on corresponding build directory.

llvm-svn: 169568

llvm/utils/unittest/googletest/Makefile

index 280b012..bf73670 100644 (file)
@@ -36,6 +36,6 @@ endif
 
 NO_INSTALL = 1
 
-Source = $(filter-out gtest-all.cc,$(wildcard *.cc))
+SOURCES = $(filter-out gtest-all.cc, $(notdir $(wildcard $(PROJ_SRC_DIR)/*.cc)))
 
 include $(LEVEL)/Makefile.common