OSDN Git Service

remove support for the skeleton target
[android-x86/external-llvm.git] / tools / llc / Makefile
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
10 LEVEL = ../..
11 TOOLNAME = llc
12
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
17
18 # Initialize the USEDLIBS so we can add to it
19 USEDLIBS :=
20
21 # Check for LLVMCBackend  target
22 ifneq ($(strip $(filter CBackend,$(TARGETS_TO_BUILD))),)
23 USEDLIBS += LLVMCBackend
24 endif
25
26 # Check for Sparc target
27 ifneq ($(strip $(filter SparcV9,$(TARGETS_TO_BUILD))),)
28 USEDLIBS += \
29         LLVMSparcV9ModuloSched \
30         LLVMSparcV9 \
31         LLVMSparcV9RegAlloc \
32         LLVMSparcV9InstrSched \
33         LLVMSparcV9LiveVar
34 endif
35
36 ifneq ($(strip $(filter Sparc,$(TARGETS_TO_BUILD))),)
37 USEDLIBS += LLVMSparc
38 endif
39
40
41 #Check for X86 Target
42 ifneq ($(strip $(filter X86,$(TARGETS_TO_BUILD))),)
43 USEDLIBS += LLVMX86
44 endif
45
46 #Check for PowerPC Target
47 ifneq ($(strip $(filter PowerPC,$(TARGETS_TO_BUILD))),)
48 USEDLIBS += LLVMPowerPC
49 endif
50
51 #Check for Alpha Target
52 ifneq ($(strip $(filter Alpha,$(TARGETS_TO_BUILD))),)
53 USEDLIBS += LLVMAlpha
54 endif
55
56 #Check for IA64 Target
57 ifneq ($(strip $(filter IA64,$(TARGETS_TO_BUILD))),)
58 USEDLIBS += LLVMIA64
59 endif
60
61 USEDLIBS += \
62         LLVMSelectionDAG \
63         LLVMCodeGen \
64         LLVMTarget.a \
65         LLVMipa.a \
66         LLVMTransforms.a \
67         LLVMScalarOpts.a \
68         LLVMTransformUtils.a \
69         LLVMAnalysis.a \
70         LLVMBCReader \
71         LLVMBCWriter \
72         LLVMCore \
73         LLVMSupport.a \
74         LLVMbzip2 \
75         LLVMSystem.a
76
77 include $(LLVM_SRC_ROOT)/Makefile.rules
78