Fix MachineSink to be able to sink instructions that use physical registers
[oota-llvm.git] / unittests / Makefile.unittest
index 5832d6ac1fd30606d9f128a8281a90557d3045db..355e6a34f51cb5c67d37ed140d1842e53863226b 100644 (file)
 # Set up variables for building a unit test.
 ifdef TESTNAME
 
-LLVMUnitTestDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/unittests
-LLVMUnitTestExe := $(LLVMUnitTestDir)/$(TESTNAME)Tests$(EXEEXT)
-
 include $(LEVEL)/Makefile.common
 
+LLVMUnitTestExe = $(BuildMode)/$(TESTNAME)Tests$(EXEEXT)
+
 CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include/
 CPP.Flags += -Wno-variadic-macros
 LIBS += -lGoogleTest -lUnitTestMain
@@ -31,6 +30,8 @@ $(LLVMUnitTestExe): $(ObjectsO) $(ProjLibsPaths) $(LLVMLibsPaths)
           $(StripWarnMsg)
 
 all:: $(LLVMUnitTestExe)
+
+unitcheck:: $(LLVMUnitTestExe)
        $(LLVMUnitTestExe)
 
 endif