mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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
This commit is contained in:
parent
5a870448d1
commit
18969fbc9f
@ -7,8 +7,14 @@
|
|||||||
#
|
#
|
||||||
##===----------------------------------------------------------------------===##
|
##===----------------------------------------------------------------------===##
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
PARALLEL_DIRS = CBackend X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton
|
|
||||||
LIBRARYNAME = LLVMTarget
|
LIBRARYNAME = LLVMTarget
|
||||||
BUILD_ARCHIVE = 1
|
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
|
||||||
|
|
||||||
|
@ -9,22 +9,50 @@
|
|||||||
|
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
TOOLNAME = llc
|
TOOLNAME = llc
|
||||||
USEDLIBS = \
|
|
||||||
|
# Include this here so we can get the configuration of the targets
|
||||||
|
# that have been configured for construction. We have to do this
|
||||||
|
# early so we can set up USEDLIBS properly before includeing Makefile.rules
|
||||||
|
include $(LEVEL)/Makefile.config
|
||||||
|
|
||||||
|
# We always build the C Backend and the Skeleton
|
||||||
|
USEDLIBS := LLVMCBackend LLVMSkeleton
|
||||||
|
|
||||||
|
# Check for Sparc target
|
||||||
|
ifneq ($(strip $(filter SparcV8,$(TARGETS_TO_BUILD))),)
|
||||||
|
USEDLIBS += \
|
||||||
LLVMSparcV9ModuloSched \
|
LLVMSparcV9ModuloSched \
|
||||||
LLVMCBackend \
|
|
||||||
LLVMPowerPC \
|
|
||||||
LLVMSparcV8 \
|
LLVMSparcV8 \
|
||||||
LLVMSparcV9 \
|
LLVMSparcV9 \
|
||||||
LLVMX86 \
|
|
||||||
LLVMAlpha \
|
|
||||||
LLVMIA64 \
|
|
||||||
LLVMSkeleton \
|
|
||||||
LLVMSparcV9RegAlloc \
|
LLVMSparcV9RegAlloc \
|
||||||
LLVMSparcV9InstrSched \
|
LLVMSparcV9InstrSched \
|
||||||
|
LLVMSparcV9LiveVar
|
||||||
|
endif
|
||||||
|
|
||||||
|
#Check for X86 Target
|
||||||
|
ifneq ($(strip $(filter X86,$(TARGETS_TO_BUILD))),)
|
||||||
|
USEDLIBS += LLVMX86
|
||||||
|
endif
|
||||||
|
|
||||||
|
#Check for PowerPC Target
|
||||||
|
ifneq ($(strip $(filter PowerPC,$(TARGETS_TO_BUILD))),)
|
||||||
|
USEDLIBS += LLVMPowerPC
|
||||||
|
endif
|
||||||
|
|
||||||
|
#Check for Alpha Target
|
||||||
|
ifneq ($(strip $(filter Alpha,$(TARGETS_TO_BUILD))),)
|
||||||
|
USEDLIBS += LLVMAlpha
|
||||||
|
endif
|
||||||
|
|
||||||
|
#Check for IA64 Target
|
||||||
|
ifneq ($(strip $(filter IA64,$(TARGETS_TO_BUILD))),)
|
||||||
|
USEDLIBS += LLVMIA64
|
||||||
|
endif
|
||||||
|
|
||||||
|
USEDLIBS += \
|
||||||
LLVMSelectionDAG \
|
LLVMSelectionDAG \
|
||||||
LLVMCodeGen \
|
LLVMCodeGen \
|
||||||
LLVMTarget.a \
|
LLVMTarget.a \
|
||||||
LLVMSparcV9LiveVar \
|
|
||||||
LLVMipa.a \
|
LLVMipa.a \
|
||||||
LLVMTransforms.a \
|
LLVMTransforms.a \
|
||||||
LLVMScalarOpts \
|
LLVMScalarOpts \
|
||||||
@ -37,7 +65,5 @@ USEDLIBS = \
|
|||||||
LLVMbzip2 \
|
LLVMbzip2 \
|
||||||
LLVMSystem.a
|
LLVMSystem.a
|
||||||
|
|
||||||
TOOLLINKOPTS = $(PLATFORMLIBDL)
|
include $(LLVM_SRC_ROOT)/Makefile.rules
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user