Adjusted the projects Makefile so that it picks up the name of projects
[oota-llvm.git] / projects / Makefile
index 16ee42e4754692955ab9f83bcc7ca99677fd0d57..5465268ecf1bb769f75ed1e10d4311be471f2749 100644 (file)
@@ -8,7 +8,9 @@
 ##===----------------------------------------------------------------------===##
 LEVEL=..
 
+include $(LEVEL)/Makefile.config
+
 DIRS=
-OPTIONAL_DIRS:=$(shell ls | grep -v CVS)
+OPTIONAL_DIRS:=$(basename $(shell ls $(SourceDir) | grep -v CVS | grep -v Makefile))
 
-include $(LEVEL)/Makefile.common
+include $(BUILD_SRC_ROOT)/Makefile.rules