Makefile revision 0465fa9cf89a0c8a96cff6af59b0fbac9098471a
1#===- tools/llc/Makefile -----------------------------------*- Makefile -*-===## 2# 3# The LLVM Compiler Infrastructure 4# 5# This file was developed by the LLVM research group and is distributed under 6# the University of Illinois Open Source License. See LICENSE.TXT for details. 7# 8##===----------------------------------------------------------------------===## 9 10LEVEL = ../.. 11TOOLNAME = llc 12REQUIRES_EH := 1 13 14# Include this here so we can get the configuration of the targets 15# that have been configured for construction. We have to do this 16# early so we can set up USEDLIBS properly before includeing Makefile.rules 17include $(LEVEL)/Makefile.config 18 19# Initialize the USEDLIBS so we can add to it 20USEDLIBS := 21 22# Check for LLVMCBackend target 23ifneq ($(strip $(filter CBackend,$(TARGETS_TO_BUILD))),) 24USEDLIBS += LLVMCBackend 25endif 26 27ifneq ($(strip $(filter Sparc,$(TARGETS_TO_BUILD))),) 28USEDLIBS += LLVMSparc 29endif 30 31 32#Check for X86 Target 33ifneq ($(strip $(filter X86,$(TARGETS_TO_BUILD))),) 34USEDLIBS += LLVMX86 35endif 36 37#Check for PowerPC Target 38ifneq ($(strip $(filter PowerPC,$(TARGETS_TO_BUILD))),) 39USEDLIBS += LLVMPowerPC 40endif 41 42#Check for Alpha Target 43ifneq ($(strip $(filter Alpha,$(TARGETS_TO_BUILD))),) 44USEDLIBS += LLVMAlpha 45endif 46 47#Check for IA64 Target 48ifneq ($(strip $(filter IA64,$(TARGETS_TO_BUILD))),) 49USEDLIBS += LLVMIA64 50endif 51 52#Check for ARM Target 53ifneq ($(strip $(filter ARM,$(TARGETS_TO_BUILD))),) 54USEDLIBS += LLVMARM 55endif 56 57USEDLIBS += \ 58 LLVMSelectionDAG \ 59 LLVMCodeGen \ 60 LLVMTarget.a \ 61 LLVMipa.a \ 62 LLVMTransforms.a \ 63 LLVMScalarOpts.a \ 64 LLVMTransformUtils.a \ 65 LLVMAnalysis.a \ 66 LLVMBCReader.a \ 67 LLVMBCWriter.a \ 68 LLVMCore.a \ 69 LLVMSupport.a \ 70 LLVMbzip2.a \ 71 LLVMSystem.a 72 73include $(LLVM_SRC_ROOT)/Makefile.rules 74 75