OSDN Git Service

Fix MacOSX build failures. (pr841)
[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 REQUIRES_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
17 include $(LEVEL)/Makefile.config
18
19 # Initialize the USEDLIBS so we can add to it
20 USEDLIBS :=
21
22 # Check for LLVMCBackend  target
23 ifneq ($(strip $(filter CBackend,$(TARGETS_TO_BUILD))),)
24 USEDLIBS += LLVMCBackend
25 endif
26
27 ifneq ($(strip $(filter Sparc,$(TARGETS_TO_BUILD))),)
28 USEDLIBS += LLVMSparc
29 endif
30
31
32 #Check for X86 Target
33 ifneq ($(strip $(filter X86,$(TARGETS_TO_BUILD))),)
34 USEDLIBS += LLVMX86
35 endif
36
37 #Check for PowerPC Target
38 ifneq ($(strip $(filter PowerPC,$(TARGETS_TO_BUILD))),)
39 USEDLIBS += LLVMPowerPC
40 endif
41
42 #Check for Alpha Target
43 ifneq ($(strip $(filter Alpha,$(TARGETS_TO_BUILD))),)
44 USEDLIBS += LLVMAlpha
45 endif
46
47 #Check for IA64 Target
48 ifneq ($(strip $(filter IA64,$(TARGETS_TO_BUILD))),)
49 USEDLIBS += LLVMIA64
50 endif
51
52 #Check for ARM Target
53 ifneq ($(strip $(filter ARM,$(TARGETS_TO_BUILD))),)
54 USEDLIBS += LLVMARM
55 endif
56
57 USEDLIBS += \
58         LLVMCodeGen.a \
59         LLVMSelectionDAG.a \
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
73 include $(LLVM_SRC_ROOT)/Makefile.rules
74