Make my proxy happy.
[oota-llvm.git] / projects / Makefile
index 5465268ecf1bb769f75ed1e10d4311be471f2749..8be3d40c2e50e36e50f6bbf5fa51e9e99950828a 100644 (file)
@@ -10,7 +10,11 @@ LEVEL=..
 
 include $(LEVEL)/Makefile.config
 
-DIRS=
-OPTIONAL_DIRS:=$(basename $(shell ls $(SourceDir) | grep -v CVS | grep -v Makefile))
+DIRS:= $(filter-out llvm-test,$(patsubst $(PROJ_SRC_DIR)/%/Makefile,%,$(wildcard $(PROJ_SRC_DIR)/*/Makefile)))
 
-include $(BUILD_SRC_ROOT)/Makefile.rules
+# Sparc cannot link shared libraries (libtool problem?)
+ifeq ($(ARCH), Sparc)
+DIRS := $(filter-out sample, $(DIRS))
+endif
+
+include $(PROJ_SRC_ROOT)/Makefile.rules