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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169568 91177308-0d34-0410-b5e6-96231b3b80d8

utils/unittest/googletest/Makefile

index 280b012e67e97d0b71a6a4112b350e20e7975c70..bf736704f5498dc37ad3d31bd4d6f81dd7d48e14 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