Reverted back to previous revision - this was previously merged
[oota-llvm.git] / projects / Makefile
index 0489557731f70783ca8c30521bcb0439368d32f5..5465268ecf1bb769f75ed1e10d4311be471f2749 100644 (file)
@@ -1,6 +1,16 @@
+##===- projects/Makefile ------------------------------*- Makefile -*-===##
+# 
+#                     The LLVM Compiler Infrastructure
+#
+# This file was developed by the LLVM research group and is distributed under
+# the University of Illinois Open Source License. See LICENSE.TXT for details.
+# 
+##===----------------------------------------------------------------------===##
 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