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
|
|
|
|
2006-02-05 08:30:45 +00:00
|
|
|
ifneq ($(strip $(filter Sparc,$(TARGETS_TO_BUILD))),)
|
|
|
|
USEDLIBS += LLVMSparc
|
2005-06-08 22:32:51 +00:00
|
|
|
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
|
|
|
|
|
2006-05-14 22:18:28 +00:00
|
|
|
#Check for ARM Target
|
|
|
|
ifneq ($(strip $(filter ARM,$(TARGETS_TO_BUILD))),)
|
|
|
|
USEDLIBS += LLVMARM
|
|
|
|
endif
|
|
|
|
|
2005-04-22 17:20:11 +00:00
|
|
|
USEDLIBS += \
|
2005-01-07 07:51:25 +00:00
|
|
|
LLVMSelectionDAG \
|
2004-10-27 23:18:45 +00:00
|
|
|
LLVMCodeGen \
|
2006-06-01 01:42:33 +00:00
|
|
|
LLVMTarget.a \
|
2004-10-27 23:18:45 +00:00
|
|
|
LLVMipa.a \
|
|
|
|
LLVMTransforms.a \
|
2005-10-24 01:13:21 +00:00
|
|
|
LLVMScalarOpts.a \
|
2005-10-27 15:54:34 +00:00
|
|
|
LLVMTransformUtils.a \
|
2005-10-25 17:10:30 +00:00
|
|
|
LLVMAnalysis.a \
|
2006-06-01 01:30:27 +00:00
|
|
|
LLVMBCReader.a \
|
|
|
|
LLVMBCWriter.a \
|
|
|
|
LLVMCore.a \
|
2004-10-27 23:18:45 +00:00
|
|
|
LLVMSupport.a \
|
2006-06-01 01:30:27 +00:00
|
|
|
LLVMbzip2.a \
|
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
|
|
|
|