Shih-wei Liao | e445432 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
Logan Chien | 2e5a5ee | 2011-10-21 14:45:53 +0800 | [diff] [blame] | 3 | x86_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 Root | cfb9e3d | 2011-02-07 10:16:49 -0800 | [diff] [blame] | 12 | |
Logan Chien | 2e5a5ee | 2011-10-21 14:45:53 +0800 | [diff] [blame] | 13 | x86_codegen_SRC_FILES := \ |
| 14 | X86AsmPrinter.cpp \ |
| 15 | X86COFFMachineModuleInfo.cpp \ |
| 16 | X86CodeEmitter.cpp \ |
Logan Chien | 2e5a5ee | 2011-10-21 14:45:53 +0800 | [diff] [blame] | 17 | X86FastISel.cpp \ |
| 18 | X86FloatingPoint.cpp \ |
| 19 | X86FrameLowering.cpp \ |
| 20 | X86ISelDAGToDAG.cpp \ |
| 21 | X86ISelLowering.cpp \ |
| 22 | X86InstrInfo.cpp \ |
| 23 | X86JITInfo.cpp \ |
Stephen Hines | 8019aac | 2012-03-05 15:03:32 -0800 | [diff] [blame] | 24 | X86MachineFunctionInfo.cpp \ |
Logan Chien | 2e5a5ee | 2011-10-21 14:45:53 +0800 | [diff] [blame] | 25 | X86MCInstLower.cpp \ |
Stephen Hines | 3aef703 | 2013-01-08 23:43:13 -0800 | [diff] [blame^] | 26 | X86PadShortFunction.cpp \ |
Logan Chien | 2e5a5ee | 2011-10-21 14:45:53 +0800 | [diff] [blame] | 27 | X86RegisterInfo.cpp \ |
| 28 | X86SelectionDAGInfo.cpp \ |
| 29 | X86Subtarget.cpp \ |
| 30 | X86TargetMachine.cpp \ |
| 31 | X86TargetObjectFile.cpp \ |
Stephen Hines | 3aef703 | 2013-01-08 23:43:13 -0800 | [diff] [blame^] | 32 | X86TargetTransformInfo.cpp \ |
Logan Chien | 2e5a5ee | 2011-10-21 14:45:53 +0800 | [diff] [blame] | 33 | X86VZeroUpper.cpp |
Kenny Root | cfb9e3d | 2011-02-07 10:16:49 -0800 | [diff] [blame] | 34 | |
| 35 | # For the host |
Shih-wei Liao | e445432 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 36 | # ===================================================== |
| 37 | include $(CLEAR_VARS) |
| 38 | include $(CLEAR_TBLGEN_VARS) |
| 39 | |
Kenny Root | cfb9e3d | 2011-02-07 10:16:49 -0800 | [diff] [blame] | 40 | TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES) |
Shih-wei Liao | e445432 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 41 | |
Kenny Root | cfb9e3d | 2011-02-07 10:16:49 -0800 | [diff] [blame] | 42 | LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES) |
Shih-wei Liao | e445432 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 43 | |
| 44 | LOCAL_MODULE:= libLLVMX86CodeGen |
| 45 | |
Logan | 42c32da | 2011-01-15 12:10:18 +0800 | [diff] [blame] | 46 | LOCAL_MODULE_TAGS := optional |
| 47 | |
Shih-wei Liao | e445432 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 48 | include $(LLVM_HOST_BUILD_MK) |
| 49 | include $(LLVM_TBLGEN_RULES_MK) |
| 50 | include $(LLVM_GEN_INTRINSICS_MK) |
| 51 | include $(BUILD_HOST_STATIC_LIBRARY) |
Kenny Root | cfb9e3d | 2011-02-07 10:16:49 -0800 | [diff] [blame] | 52 | |
| 53 | # For the device only |
| 54 | # ===================================================== |
| 55 | ifeq ($(TARGET_ARCH),x86) |
| 56 | include $(CLEAR_VARS) |
| 57 | include $(CLEAR_TBLGEN_VARS) |
| 58 | |
| 59 | TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES) |
| 60 | |
| 61 | LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES) |
| 62 | |
| 63 | LOCAL_MODULE:= libLLVMX86CodeGen |
| 64 | |
| 65 | LOCAL_MODULE_TAGS := optional |
| 66 | |
| 67 | include $(LLVM_DEVICE_BUILD_MK) |
| 68 | include $(LLVM_TBLGEN_RULES_MK) |
| 69 | include $(LLVM_GEN_INTRINSICS_MK) |
| 70 | include $(BUILD_STATIC_LIBRARY) |
| 71 | endif |