X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=projects%2FMakefile;h=491d596eca9abe4d7e358906003c84f9bae3ae95;hb=a4e4ffd389497eb28f5fe91521fb71da4340e5d6;hp=16ee42e4754692955ab9f83bcc7ca99677fd0d57;hpb=e26ba9fb3f73d893bfb6458e4f05de22bc492171;p=oota-llvm.git diff --git a/projects/Makefile b/projects/Makefile index 16ee42e4754..491d596eca9 100644 --- a/projects/Makefile +++ b/projects/Makefile @@ -2,13 +2,24 @@ # # 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=.. -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 either, it isn't designed to be built directly. +DIRS := $(filter-out compiler-rt,$(DIRS)) + +# Sparc cannot link shared libraries (libtool problem?) +ifeq ($(ARCH), Sparc) +DIRS := $(filter-out sample, $(DIRS)) +endif + +include $(PROJ_SRC_ROOT)/Makefile.rules