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 ##===----------------------------------------------------------------------===##
13 # Include this here so we can get the configuration of the targets
14 # that have been configured for construction. We have to do this
15 # early so we can set up USEDLIBS properly before includeing Makefile.rules
16 include $(LEVEL
)/Makefile.config
18 # Initialize the USEDLIBS so we can add to it
21 # Check for LLVMCBackend target
22 ifneq ($(strip $(filter CBackend
,$(TARGETS_TO_BUILD
))),)
23 USEDLIBS
+= LLVMCBackend
26 # Check for Skeleton target
27 ifneq ($(strip $(filter Skeleton
,$(TARGETS_TO_BUILD
))),)
28 USEDLIB
+= LLVMSkeleton
31 # Check for Sparc target
32 ifneq ($(strip $(filter SparcV8
,$(TARGETS_TO_BUILD
))),)
34 LLVMSparcV9ModuloSched \
38 LLVMSparcV9InstrSched \
43 ifneq ($(strip $(filter X86
,$(TARGETS_TO_BUILD
))),)
47 #Check for PowerPC Target
48 ifneq ($(strip $(filter PowerPC
,$(TARGETS_TO_BUILD
))),)
49 USEDLIBS
+= LLVMPowerPC
52 #Check for Alpha Target
53 ifneq ($(strip $(filter Alpha
,$(TARGETS_TO_BUILD
))),)
57 #Check for IA64 Target
58 ifneq ($(strip $(filter IA64
,$(TARGETS_TO_BUILD
))),)
70 LLVMTransformUtils.a \
78 include $(LLVM_SRC_ROOT
)/Makefile.rules