1 #===- tools/llc/Makefile -----------------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
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.
8 ##===----------------------------------------------------------------------===##
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
17 include $(LEVEL)/Makefile.config
19 # Initialize the USEDLIBS so we can add to it
22 # Check for LLVMCBackend target
23 ifneq ($(strip $(filter CBackend,$(TARGETS_TO_BUILD))),)
24 USEDLIBS += LLVMCBackend
27 ifneq ($(strip $(filter Sparc,$(TARGETS_TO_BUILD))),)
33 ifneq ($(strip $(filter X86,$(TARGETS_TO_BUILD))),)
37 #Check for PowerPC Target
38 ifneq ($(strip $(filter PowerPC,$(TARGETS_TO_BUILD))),)
39 USEDLIBS += LLVMPowerPC
42 #Check for Alpha Target
43 ifneq ($(strip $(filter Alpha,$(TARGETS_TO_BUILD))),)
47 #Check for IA64 Target
48 ifneq ($(strip $(filter IA64,$(TARGETS_TO_BUILD))),)
53 ifneq ($(strip $(filter ARM,$(TARGETS_TO_BUILD))),)
64 LLVMTransformUtils.a \
73 include $(LLVM_SRC_ROOT)/Makefile.rules