1 LOCAL_PATH := $(call my-dir) 2 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 12 13 x86_codegen_SRC_FILES := \ 14 X86AsmPrinter.cpp \ 15 X86COFFMachineModuleInfo.cpp \ 16 X86CodeEmitter.cpp \ 17 X86FastISel.cpp \ 18 X86FixupLEAs.cpp \ 19 X86FloatingPoint.cpp \ 20 X86FrameLowering.cpp \ 21 X86ISelDAGToDAG.cpp \ 22 X86ISelLowering.cpp \ 23 X86InstrInfo.cpp \ 24 X86JITInfo.cpp \ 25 X86MachineFunctionInfo.cpp \ 26 X86MCInstLower.cpp \ 27 X86PadShortFunction.cpp \ 28 X86RegisterInfo.cpp \ 29 X86SelectionDAGInfo.cpp \ 30 X86Subtarget.cpp \ 31 X86TargetMachine.cpp \ 32 X86TargetObjectFile.cpp \ 33 X86TargetTransformInfo.cpp \ 34 X86VZeroUpper.cpp 35 36 # For the host 37 # ===================================================== 38 include $(CLEAR_VARS) 39 include $(CLEAR_TBLGEN_VARS) 40 41 TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES) 42 43 LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES) 44 45 LOCAL_MODULE:= libLLVMX86CodeGen 46 47 LOCAL_MODULE_TAGS := optional 48 49 include $(LLVM_HOST_BUILD_MK) 50 include $(LLVM_TBLGEN_RULES_MK) 51 include $(LLVM_GEN_INTRINSICS_MK) 52 include $(BUILD_HOST_STATIC_LIBRARY) 53 54 # For the device only 55 # ===================================================== 56 ifeq ($(TARGET_ARCH),x86) 57 include $(CLEAR_VARS) 58 include $(CLEAR_TBLGEN_VARS) 59 60 TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES) 61 62 LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES) 63 64 LOCAL_MODULE:= libLLVMX86CodeGen 65 66 LOCAL_MODULE_TAGS := optional 67 68 include $(LLVM_DEVICE_BUILD_MK) 69 include $(LLVM_TBLGEN_RULES_MK) 70 include $(LLVM_GEN_INTRINSICS_MK) 71 include $(BUILD_STATIC_LIBRARY) 72 endif 73