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