2004-07-16 09:12:46 +02:00
|
|
|
#===- tools/llc/Makefile -----------------------------------*- Makefile -*-===##
|
2003-10-21 00:29:16 +02: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 09:12:46 +02:00
|
|
|
|
2001-07-21 14:42:29 +02:00
|
|
|
LEVEL = ../..
|
2001-09-08 00:59:25 +02:00
|
|
|
TOOLNAME = llc
|
2005-04-22 19:20:11 +02: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 19:32:05 +02:00
|
|
|
# Initialize the USEDLIBS so we can add to it
|
|
|
|
USEDLIBS :=
|
|
|
|
|
2005-04-23 19:24:33 +02:00
|
|
|
# Check for LLVMCBackend target
|
|
|
|
ifneq ($(strip $(filter CBackend,$(TARGETS_TO_BUILD))),)
|
|
|
|
USEDLIBS += LLVMCBackend
|
|
|
|
endif
|
2005-04-22 19:32:05 +02:00
|
|
|
|
|
|
|
# Check for Skeleton target
|
|
|
|
ifneq ($(strip $(filter Skeleton,$(TARGETS_TO_BUILD))),)
|
|
|
|
USEDLIB += LLVMSkeleton
|
|
|
|
endif
|
2005-04-22 19:20:11 +02:00
|
|
|
|
|
|
|
# Check for Sparc target
|
2005-06-09 00:32:51 +02:00
|
|
|
ifneq ($(strip $(filter SparcV9,$(TARGETS_TO_BUILD))),)
|
2005-04-22 19:20:11 +02:00
|
|
|
USEDLIBS += \
|
2004-11-18 19:38:01 +01:00
|
|
|
LLVMSparcV9ModuloSched \
|
2004-10-28 01:18:45 +02:00
|
|
|
LLVMSparcV9 \
|
|
|
|
LLVMSparcV9RegAlloc \
|
|
|
|
LLVMSparcV9InstrSched \
|
2005-04-22 19:20:11 +02:00
|
|
|
LLVMSparcV9LiveVar
|
|
|
|
endif
|
|
|
|
|
2005-06-09 00:32:51 +02:00
|
|
|
ifneq ($(strip $(filter SparcV8,$(TARGETS_TO_BUILD))),)
|
|
|
|
USEDLIBS += LLVMSparcV8
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2005-04-22 19:20:11 +02: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 08:51:25 +01:00
|
|
|
LLVMSelectionDAG \
|
2004-10-28 01:18:45 +02:00
|
|
|
LLVMCodeGen \
|
|
|
|
LLVMTarget.a \
|
|
|
|
LLVMipa.a \
|
|
|
|
LLVMTransforms.a \
|
2004-12-17 00:07:13 +01:00
|
|
|
LLVMScalarOpts \
|
2004-10-28 01:18:45 +02:00
|
|
|
LLVMAnalysis.a \
|
|
|
|
LLVMTransformUtils.a \
|
|
|
|
LLVMBCReader \
|
|
|
|
LLVMBCWriter \
|
|
|
|
LLVMCore \
|
|
|
|
LLVMSupport.a \
|
2004-11-25 21:22:06 +01:00
|
|
|
LLVMbzip2 \
|
2004-10-28 01:18:45 +02:00
|
|
|
LLVMSystem.a
|
|
|
|
|
2005-04-22 19:20:11 +02:00
|
|
|
include $(LLVM_SRC_ROOT)/Makefile.rules
|
2001-07-21 14:42:29 +02:00
|
|
|
|