1 LOCAL_PATH := $(call my-dir) 2 3 x86_codegen_TBLGEN_TABLES := \ 4 X86GenAsmMatcher.inc \ 5 X86GenAsmWriter.inc \ 6 X86GenAsmWriter1.inc \ 7 X86GenDisassemblerTables.inc \ 8 X86GenRegisterInfo.inc \ 9 X86GenInstrInfo.inc \ 10 X86GenDAGISel.inc \ 11 X86GenFastISel.inc \ 12 X86GenSubtargetInfo.inc \ 13 X86GenCallingConv.inc 14 15 x86_codegen_SRC_FILES := \ 16 X86AsmPrinter.cpp \ 17 X86CallFrameOptimization.cpp \ 18 X86ExpandPseudo.cpp \ 19 X86FastISel.cpp \ 20 X86FixupLEAs.cpp \ 21 X86FloatingPoint.cpp \ 22 X86FrameLowering.cpp \ 23 X86ISelDAGToDAG.cpp \ 24 X86ISelLowering.cpp \ 25 X86InstrInfo.cpp \ 26 X86MachineFunctionInfo.cpp \ 27 X86MCInstLower.cpp \ 28 X86OptimizeLEAs.cpp \ 29 X86PadShortFunction.cpp \ 30 X86RegisterInfo.cpp \ 31 X86SelectionDAGInfo.cpp \ 32 X86Subtarget.cpp \ 33 X86TargetMachine.cpp \ 34 X86TargetObjectFile.cpp \ 35 X86TargetTransformInfo.cpp \ 36 X86VZeroUpper.cpp \ 37 X86WinEHState.cpp 38 39 # For the host 40 # ===================================================== 41 include $(CLEAR_VARS) 42 include $(CLEAR_TBLGEN_VARS) 43 44 TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES) 45 46 LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES) 47 48 LOCAL_MODULE:= libLLVMX86CodeGen 49 50 LOCAL_MODULE_HOST_OS := darwin linux windows 51 52 include $(LLVM_HOST_BUILD_MK) 53 include $(LLVM_TBLGEN_RULES_MK) 54 include $(LLVM_GEN_ATTRIBUTES_MK) 55 include $(LLVM_GEN_INTRINSICS_MK) 56 include $(BUILD_HOST_STATIC_LIBRARY) 57 58 # For the device only 59 # ===================================================== 60 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 61 include $(CLEAR_VARS) 62 include $(CLEAR_TBLGEN_VARS) 63 64 TBLGEN_TABLES := $(x86_codegen_TBLGEN_TABLES) 65 66 LOCAL_SRC_FILES := $(x86_codegen_SRC_FILES) 67 68 LOCAL_MODULE:= libLLVMX86CodeGen 69 70 include $(LLVM_DEVICE_BUILD_MK) 71 include $(LLVM_TBLGEN_RULES_MK) 72 include $(LLVM_GEN_ATTRIBUTES_MK) 73 include $(LLVM_GEN_INTRINSICS_MK) 74 include $(BUILD_STATIC_LIBRARY) 75 endif 76