I was confused about this, it turns out that MorphNodeTo
[oota-llvm.git] / Makefile
index f76f6b77bd2f673171743fd29c10a5456bd86537..f5a9b336e3749cf7aea8e9cefa427acadd3da26a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,10 @@ EXTRA_DIST := test unittests llvm.spec include win32 Xcode
 
 include $(LEVEL)/Makefile.config
 
+ifneq ($(ENABLE_SHARED),1)
+  DIRS := $(filter-out tools/llvm-shlib, $(DIRS))
+endif
+
 ifeq ($(MAKECMDGOALS),libs-only)
   DIRS := $(filter-out tools runtime docs, $(DIRS))
   OPTIONAL_DIRS :=