+#
+# Right now, QMTest compiles the python test classes and put them into the
+# source tree. Since Python bytecode is *not* cross-platform compatible (I
+# think), we'll regenerate every time.
+#
+# Simultaneous builds won't work, but shared source trees will.
+#
+register:
+ $(QMTEST) register test llvm.TestAsmDisasm
+ $(QMTEST) register test llvm.AssembleTest
+ $(QMTEST) register test llvm.ConvertToCTest
+ $(QMTEST) register test llvm.LLToCTest
+ $(QMTEST) register test llvm.MachineCodeTest
+ $(QMTEST) register test llvm.TestOptimizer
+ $(QMTEST) register test llvm.LLITest
+ $(QMTEST) register test llvm.TestRunner
+ $(QMTEST) register test llvm.VerifierTest
+ $(QMTEST) register test llvm.CTest
+ $(QMTEST) register test llvm.CXXTest
+ $(QMTEST) register database llvmdb.llvmdb
+
+# Start up the QMTest GUI
+gui::
+ $(QMTEST) gui --no-browser --daemon
+
+# Also get rid of qmtest garbage when we 'make clean' in this directory.
+clean:: qmtest-clean
+
+qmtest-clean:
+ $(RM) -rf $(LLVM_OBJ_ROOT)/test/tmp
+ $(RM) -f $(LLVM_SRC_ROOT)/test/QMTest/*.pyo \
+ $(LLVM_OBJ_ROOT)/test/QMTest/*.pyo
+ $(RM) -f $(LLVM_SRC_ROOT)/test/results.qmr \
+ $(LLVM_OBJ_ROOT)/test/results.qmr