From e4481c7c82efe9a4f0c64b064db5c013c45859fd Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 22 Apr 2005 17:20:11 +0000 Subject: 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. llvm-svn: 21450 --- llvm/lib/Target/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target/Makefile') diff --git a/llvm/lib/Target/Makefile b/llvm/lib/Target/Makefile index 5b69f49b2eb..ae70488a4d0 100644 --- a/llvm/lib/Target/Makefile +++ b/llvm/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 + -- cgit v1.2.3