blob: 445dd5dadc0d33377f33b74f3ae5c33d933bdad8 [file] [log] [blame]
Shih-wei Liaoe4454322010-04-07 12:21:42 -07001LOCAL_PATH := $(call my-dir)
2
Logan Chien2e5a5ee2011-10-21 14:45:53 +08003x86_codegen_TBLGEN_TABLES := \
4 X86GenAsmWriter.inc \
5 X86GenAsmWriter1.inc \
6 X86GenRegisterInfo.inc \
7 X86GenInstrInfo.inc \
8 X86GenDAGISel.inc \
9 X86GenFastISel.inc \
10 X86GenSubtargetInfo.inc \
11 X86GenCallingConv.inc
Kenny Rootcfb9e3d2011-02-07 10:16:49 -080012
Logan Chien2e5a5ee2011-10-21 14:45:53 +080013x86_codegen_SRC_FILES := \
14 X86AsmPrinter.cpp \
15 X86COFFMachineModuleInfo.cpp \
16 X86CodeEmitter.cpp \
17 X86ELFWriterInfo.cpp \
18 X86FastISel.cpp \
19 X86FloatingPoint.cpp \
20 X86FrameLowering.cpp \
21 X86ISelDAGToDAG.cpp \
22 X86ISelLowering.cpp \
23 X86InstrInfo.cpp \
24 X86JITInfo.cpp \
Stephen Hines8019aac2012-03-05 15:03:32 -080025 X86MachineFunctionInfo.cpp \
Logan Chien2e5a5ee2011-10-21 14:45:53 +080026 X86MCInstLower.cpp \
27 X86RegisterInfo.cpp \
28 X86SelectionDAGInfo.cpp \
29 X86Subtarget.cpp \
30 X86TargetMachine.cpp \
31 X86TargetObjectFile.cpp \
32 X86VZeroUpper.cpp
Kenny Rootcfb9e3d2011-02-07 10:16:49 -080033
34# For the host
Shih-wei Liaoe4454322010-04-07 12:21:42 -070035# =====================================================
36include $(CLEAR_VARS)
37include $(CLEAR_TBLGEN_VARS)
38
Kenny Rootcfb9e3d2011-02-07 10:16:49 -080039TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES)
Shih-wei Liaoe4454322010-04-07 12:21:42 -070040
Kenny Rootcfb9e3d2011-02-07 10:16:49 -080041LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES)
Shih-wei Liaoe4454322010-04-07 12:21:42 -070042
43LOCAL_MODULE:= libLLVMX86CodeGen
44
Logan42c32da2011-01-15 12:10:18 +080045LOCAL_MODULE_TAGS := optional
46
Shih-wei Liaoe4454322010-04-07 12:21:42 -070047include $(LLVM_HOST_BUILD_MK)
48include $(LLVM_TBLGEN_RULES_MK)
49include $(LLVM_GEN_INTRINSICS_MK)
50include $(BUILD_HOST_STATIC_LIBRARY)
Kenny Rootcfb9e3d2011-02-07 10:16:49 -080051
52# For the device only
53# =====================================================
54ifeq ($(TARGET_ARCH),x86)
55include $(CLEAR_VARS)
56include $(CLEAR_TBLGEN_VARS)
57
58TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES)
59
60LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES)
61
62LOCAL_MODULE:= libLLVMX86CodeGen
63
64LOCAL_MODULE_TAGS := optional
65
66include $(LLVM_DEVICE_BUILD_MK)
67include $(LLVM_TBLGEN_RULES_MK)
68include $(LLVM_GEN_INTRINSICS_MK)
69include $(BUILD_STATIC_LIBRARY)
70endif