2004-07-16 07:12:46 +00:00
|
|
|
#===- tools/llc/Makefile -----------------------------------*- Makefile -*-===##
|
2003-10-20 22:29:16 +00:00
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file was developed by the LLVM research group and is distributed under
|
|
|
|
# the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
2004-07-16 07:12:46 +00:00
|
|
|
|
2001-07-21 12:42:29 +00:00
|
|
|
LEVEL = ../..
|
2001-09-07 22:59:25 +00:00
|
|
|
TOOLNAME = llc
|
2005-04-22 17:20:11 +00:00
|
|
|
|
|
|
|
# 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 += \
|
2004-11-18 18:38:01 +00:00
|
|
|
LLVMSparcV9ModuloSched \
|
2004-12-10 05:04:13 +00:00
|
|
|
LLVMSparcV8 \
|
2004-10-27 23:18:45 +00:00
|
|
|
LLVMSparcV9 \
|
|
|
|
LLVMSparcV9RegAlloc \
|
|
|
|
LLVMSparcV9InstrSched \
|
2005-04-22 17:20:11 +00:00
|
|
|
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 += \
|
2005-01-07 07:51:25 +00:00
|
|
|
LLVMSelectionDAG \
|
2004-10-27 23:18:45 +00:00
|
|
|
LLVMCodeGen \
|
|
|
|
LLVMTarget.a \
|
|
|
|
LLVMipa.a \
|
|
|
|
LLVMTransforms.a \
|
2004-12-16 23:07:13 +00:00
|
|
|
LLVMScalarOpts \
|
2004-10-27 23:18:45 +00:00
|
|
|
LLVMAnalysis.a \
|
|
|
|
LLVMTransformUtils.a \
|
|
|
|
LLVMBCReader \
|
|
|
|
LLVMBCWriter \
|
|
|
|
LLVMCore \
|
|
|
|
LLVMSupport.a \
|
2004-11-25 20:22:06 +00:00
|
|
|
LLVMbzip2 \
|
2004-10-27 23:18:45 +00:00
|
|
|
LLVMSystem.a
|
|
|
|
|
2005-04-22 17:20:11 +00:00
|
|
|
include $(LLVM_SRC_ROOT)/Makefile.rules
|
2001-07-21 12:42:29 +00:00
|
|
|
|