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 X86FloatingPoint.cpp \ 19 X86FrameLowering.cpp \ 20 X86ISelDAGToDAG.cpp \ 21 X86ISelLowering.cpp \ 22 X86InstrInfo.cpp \ 23 X86JITInfo.cpp \ 24 X86MachineFunctionInfo.cpp \ 25 X86MCInstLower.cpp \ 26 X86PadShortFunction.cpp \ 27 X86RegisterInfo.cpp \ 28 X86SelectionDAGInfo.cpp \ 29 X86Subtarget.cpp \ 30 X86TargetMachine.cpp \ 31 X86TargetObjectFile.cpp \ 32 X86TargetTransformInfo.cpp \ 33 X86VZeroUpper.cpp 34 35 # For the host 36 # ===================================================== 37 include $(CLEAR_VARS) 38 include $(CLEAR_TBLGEN_VARS) 39 40 TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES) 41 42 LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES) 43 44 LOCAL_MODULE:= libLLVMX86CodeGen 45 46 LOCAL_MODULE_TAGS := optional 47 48 include $(LLVM_HOST_BUILD_MK) 49 include $(LLVM_TBLGEN_RULES_MK) 50 include $(LLVM_GEN_INTRINSICS_MK) 51 include $(BUILD_HOST_STATIC_LIBRARY) 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 72