X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=projects%2FMakefile;h=1318a35d941ef9548642d9392447e20b5d1b39e7;hb=ea0dc09804d3cc1e6357f00988bd2e8a4ba58191;hp=2fe6430093b546f227bfe3e347b48a1c73730cdf;hpb=4e5b9e136f2eafcb2ab4c5b968307c2678e16a96;p=oota-llvm.git diff --git a/projects/Makefile b/projects/Makefile index 2fe6430093b..1318a35d941 100644 --- a/projects/Makefile +++ b/projects/Makefile @@ -2,14 +2,27 @@ # # 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. +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. # ##===----------------------------------------------------------------------===## LEVEL=.. include $(LEVEL)/Makefile.config -DIRS:= SmallExamples sample +# 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))) -include $(BUILD_SRC_ROOT)/Makefile.rules +# 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