diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-04-22 17:20:11 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-04-22 17:20:11 +0000 |
commit | 18969fbc9f19fbc62d25ff2e83098c3143d77a33 (patch) | |
tree | 74a3595e21c1fd374b36f3021d052cafdf4b1917 /lib | |
parent | 5a870448d12a786098e9ec5018cd2bb3f5f673fd (diff) | |
download | external_llvm-18969fbc9f19fbc62d25ff2e83098c3143d77a33.zip external_llvm-18969fbc9f19fbc62d25ff2e83098c3143d77a33.tar.gz external_llvm-18969fbc9f19fbc62d25ff2e83098c3143d77a33.tar.bz2 |
Implement the --enable-targets= feature of the configure script. The make
variable TARGETS_TO_BUILD is used to determine which targets in lib/Target
are built and which libraries are linked into llc. This effectively
implements the feature. One item remains: disabling targets in the dejagnu
test suite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21450 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Target/Makefile b/lib/Target/Makefile index 5b69f49..ae70488 100644 --- a/lib/Target/Makefile +++ b/lib/Target/Makefile @@ -7,8 +7,14 @@ # ##===----------------------------------------------------------------------===## LEVEL = ../.. -PARALLEL_DIRS = CBackend X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton LIBRARYNAME = LLVMTarget BUILD_ARCHIVE = 1 -include $(LEVEL)/Makefile.common +# We include this early so we can access the value of TARGETS_TO_BUILD as the +# value for PARALLEL_DIRS which must be set before Makefile.rules is included +include $(LEVEL)/Makefile.config + +PARALLEL_DIRS := $(TARGETS_TO_BUILD) + +include $(LLVM_SRC_ROOT)/Makefile.rules + |