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
|
|
|
|
|
2005-04-22 17:32:05 +00:00
|
|
|
# Initialize the USEDLIBS so we can add to it
|
|
|
|
USEDLIBS :=
|
|
|
|
|
2005-04-23 17:24:33 +00:00
|
|
|
# Check for LLVMCBackend target
|
|
|
|
ifneq ($(strip $(filter CBackend,$(TARGETS_TO_BUILD))),)
|
|
|
|
USEDLIBS += LLVMCBackend
|
|
|
|
endif
|
2005-04-22 17:32:05 +00:00
|
|
|
|
|
|
|
# Check for Skeleton target
|
|
|
|
ifneq ($(strip $(filter Skeleton,$(TARGETS_TO_BUILD))),)
|
|
|
|
USEDLIB += LLVMSkeleton
|
|
|
|
endif
|
2005-04-22 17:20:11 +00:00
|
|
|
|
|
|
|
# Check for Sparc target
|
2005-06-08 22:32:51 +00:00
|
|
|
ifneq ($(strip $(filter SparcV9,$(TARGETS_TO_BUILD))),)
|
2005-04-22 17:20:11 +00:00
|
|
|
USEDLIBS += \
|
2004-11-18 18:38:01 +00:00
|
|
|
LLVMSparcV9ModuloSched \
|
2004-10-27 23:18:45 +00:00
|
|
|
LLVMSparcV9 \
|
|
|
|
LLVMSparcV9RegAlloc \
|
|
|
|
LLVMSparcV9InstrSched \
|
2005-04-22 17:20:11 +00:00
|
|
|
LLVMSparcV9LiveVar
|
|
|
|
endif
|
|
|
|
|
2005-06-08 22:32:51 +00:00
|
|
|
ifneq ($(strip $(filter SparcV8,$(TARGETS_TO_BUILD))),)
|
|
|
|
USEDLIBS += LLVMSparcV8
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2005-04-22 17:20:11 +00:00
|
|
|
#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 \
|
2005-10-24 01:13:21 +00:00
|
|
|
LLVMScalarOpts.a \
|
2004-10-27 23:18:45 +00:00
|
|
|
LLVMTransformUtils.a \
|
2005-10-25 17:10:30 +00:00
|
|
|
LLVMAnalysis.a \
|
2004-10-27 23:18:45 +00:00
|
|
|
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
|
|
|
|