1LOCAL_PATH := $(call my-dir) 2 3x86_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 13x86_codegen_SRC_FILES := \ 14 X86AsmPrinter.cpp \ 15 X86AtomicExpandPass.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# ===================================================== 38include $(CLEAR_VARS) 39include $(CLEAR_TBLGEN_VARS) 40 41TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES) 42 43LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES) 44 45LOCAL_MODULE:= libLLVMX86CodeGen 46 47LOCAL_MODULE_TAGS := optional 48 49include $(LLVM_HOST_BUILD_MK) 50include $(LLVM_TBLGEN_RULES_MK) 51include $(LLVM_GEN_INTRINSICS_MK) 52include $(BUILD_HOST_STATIC_LIBRARY) 53 54# For the device only 55# ===================================================== 56ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 57include $(CLEAR_VARS) 58include $(CLEAR_TBLGEN_VARS) 59 60TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES) 61 62LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES) 63 64LOCAL_MODULE:= libLLVMX86CodeGen 65 66LOCAL_MODULE_TAGS := optional 67 68include $(LLVM_DEVICE_BUILD_MK) 69include $(LLVM_TBLGEN_RULES_MK) 70include $(LLVM_GEN_INTRINSICS_MK) 71include $(BUILD_STATIC_LIBRARY) 72endif 73