blob: 491d596eca9abe4d7e358906003c84f9bae3ae95 [file] [log] [blame]
John Criswelle26ba9f2003-10-20 22:28:01 +00001##===- projects/Makefile ------------------------------*- Makefile -*-===##
2#
3# The LLVM Compiler Infrastructure
4#
Chris Lattner57360d12007-12-29 20:11:13 +00005# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
John Criswelle26ba9f2003-10-20 22:28:01 +00007#
8##===----------------------------------------------------------------------===##
John Criswell2f8b4172003-06-30 22:12:19 +00009LEVEL=..
10
John Criswell9b3b5de2003-11-25 20:37:45 +000011include $(LEVEL)/Makefile.config
John Criswell2f8b4172003-06-30 22:12:19 +000012
Matthijs Kooijman5b80c662008-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)))
John Criswell9b3b5de2003-11-25 20:37:45 +000016
Daniel Dunbard58816f2010-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
Chris Lattnerde8dacf2007-01-17 05:26:57 +000020# Sparc cannot link shared libraries (libtool problem?)
Misha Brukmanb9210122004-09-13 22:42:54 +000021ifeq ($(ARCH), Sparc)
Misha Brukman1cf70ff2004-09-14 18:21:03 +000022DIRS := $(filter-out sample, $(DIRS))
Misha Brukmanb9210122004-09-13 22:42:54 +000023endif
24
Reid Spencerbdf6a392005-01-16 02:21:29 +000025include $(PROJ_SRC_ROOT)/Makefile.rules