added a skeleton of the ARM backend
[oota-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 ifneq ($(strip $(filter Sparc,$(TARGETS_TO_BUILD))),)
27 USEDLIBS += LLVMSparc
28 endif
29
30
31 #Check for X86 Target
32 ifneq ($(strip $(filter X86,$(TARGETS_TO_BUILD))),)
33 USEDLIBS += LLVMX86
34 endif
35
36 #Check for PowerPC Target
37 ifneq ($(strip $(filter PowerPC,$(TARGETS_TO_BUILD))),)
38 USEDLIBS += LLVMPowerPC
39 endif
40
41 #Check for Alpha Target
42 ifneq ($(strip $(filter Alpha,$(TARGETS_TO_BUILD))),)
43 USEDLIBS += LLVMAlpha
44 endif
45
46 #Check for IA64 Target
47 ifneq ($(strip $(filter IA64,$(TARGETS_TO_BUILD))),)
48 USEDLIBS += LLVMIA64
49 endif
50
51 #Check for ARM Target
52 ifneq ($(strip $(filter ARM,$(TARGETS_TO_BUILD))),)
53 USEDLIBS += LLVMARM
54 endif
55
56 USEDLIBS += \
57         LLVMSelectionDAG \
58         LLVMCodeGen \
59         LLVMTarget.a \
60         LLVMipa.a \
61         LLVMTransforms.a \
62         LLVMScalarOpts.a \
63         LLVMTransformUtils.a \
64         LLVMAnalysis.a \
65         LLVMBCReader \
66         LLVMBCWriter \
67         LLVMCore \
68         LLVMSupport.a \
69         LLVMbzip2 \
70         LLVMSystem.a
71
72 include $(LLVM_SRC_ROOT)/Makefile.rules
73