Re-enable AVX detection on x64 platforms.
[oota-llvm.git] / projects / Makefile
index 0489557731f70783ca8c30521bcb0439368d32f5..1318a35d941ef9548642d9392447e20b5d1b39e7 100644 (file)
@@ -1,6 +1,28 @@
+##===- projects/Makefile ------------------------------*- Makefile -*-===##
+# 
+#                     The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+# 
+##===----------------------------------------------------------------------===##
 LEVEL=..
 
-DIRS=
-OPTIONAL_DIRS:=$(shell ls | grep -v CVS)
+include $(LEVEL)/Makefile.config
 
-include $(LEVEL)/Makefile.common
+# Compile all subdirs, except for the test suite, which lives in test-suite.
+# Before 2008.06.24 it lived in llvm-test, so exclude that as well for now.
+DIRS:= $(filter-out llvm-test test-suite,$(patsubst $(PROJ_SRC_DIR)/%/Makefile,%,$(wildcard $(PROJ_SRC_DIR)/*/Makefile)))
+
+# Don't build compiler-rt, it isn't designed to be built directly.
+DIRS := $(filter-out compiler-rt,$(DIRS))
+
+# Don't build libcxx, it isn't designed to be built directly.
+DIRS := $(filter-out libcxx,$(DIRS))
+
+# Sparc cannot link shared libraries (libtool problem?)
+ifeq ($(ARCH), Sparc)
+DIRS := $(filter-out sample, $(DIRS))
+endif
+
+include $(PROJ_SRC_ROOT)/Makefile.rules