aDd support for building a subset of the llvm tools, patch by Jeffrey Yasskin!
[oota-llvm.git] / tools / Makefile
index 756d7d58c3c783d27135305f61f89d3b7ab3750f..b3c015f307cb49377c99791694b89f20bdc99111 100644 (file)
@@ -22,6 +22,12 @@ PARALLEL_DIRS := opt llvm-as llvm-dis \
                  lli gccas gccld llvm-extract llvm-db \
                  bugpoint llvm-bcanalyzer llvm-stub llvmc
 
+# Let users override the set of tools to build from the command line.
+ifdef ONLY_TOOLS
+  OPTIONAL_PARALLEL_DIRS :=
+  PARALLEL_DIRS := $(ONLY_TOOLS)
+endif
+
 include $(LEVEL)/Makefile.config
 
 ifeq ($(ENABLE_PIC),1)