blob: 491d596eca9abe4d7e358906003c84f9bae3ae95 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001##===- projects/Makefile ------------------------------*- Makefile -*-===##
2#
3# The LLVM Compiler Infrastructure
4#
Chris Lattner3876aa72007-12-29 20:11:13 +00005# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007#
8##===----------------------------------------------------------------------===##
9LEVEL=..
10
11include $(LEVEL)/Makefile.config
12
Matthijs Kooijman0b8be862008-06-24 13:01:57 +000013# 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)))
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016
Daniel Dunbar00b562c2010-01-18 17:52:28 +000017# Don't build compiler-rt either, it isn't designed to be built directly.
18DIRS := $(filter-out compiler-rt,$(DIRS))
19
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020# Sparc cannot link shared libraries (libtool problem?)
21ifeq ($(ARCH), Sparc)
22DIRS := $(filter-out sample, $(DIRS))
23endif
24
25include $(PROJ_SRC_ROOT)/Makefile.rules