1##===- projects/Makefile ------------------------------*- Makefile -*-===##
2# 
3#                     The LLVM Compiler Infrastructure
4#
5# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
7# 
8##===----------------------------------------------------------------------===##
9LEVEL=..
10
11include $(LEVEL)/Makefile.config
12
13# Compile all subdirs, except for the test suite, which lives in test-suite.
14# Before 2008.06.24 it lived in llvm-test, so exclude that as well for now.
15DIRS:= $(filter-out llvm-test test-suite,$(patsubst $(PROJ_SRC_DIR)/%/Makefile,%,$(wildcard $(PROJ_SRC_DIR)/*/Makefile)))
16
17# Don't build compiler-rt, it isn't designed to be built directly.
18DIRS := $(filter-out compiler-rt,$(DIRS))
19
20# Don't build libcxx, it isn't designed to be built directly.
21DIRS := $(filter-out libcxx,$(DIRS))
22
23# Sparc cannot link shared libraries (libtool problem?)
24ifeq ($(ARCH), Sparc)
25DIRS := $(filter-out sample, $(DIRS))
26endif
27
28include $(PROJ_SRC_ROOT)/Makefile.rules
29