Home | History | Annotate | Download | only in Mips
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 mips_codegen_TBLGEN_TABLES := \
      4   MipsGenRegisterInfo.inc \
      5   MipsGenInstrInfo.inc \
      6   MipsGenCodeEmitter.inc \
      7   MipsGenMCCodeEmitter.inc \
      8   MipsGenMCPseudoLowering.inc \
      9   MipsGenAsmWriter.inc \
     10   MipsGenDAGISel.inc \
     11   MipsGenCallingConv.inc \
     12   MipsGenSubtargetInfo.inc
     13 
     14 mips_codegen_SRC_FILES := \
     15   Mips16FrameLowering.cpp \
     16   Mips16HardFloat.cpp \
     17   Mips16ISelDAGToDAG.cpp \
     18   Mips16ISelLowering.cpp \
     19   Mips16InstrInfo.cpp \
     20   Mips16RegisterInfo.cpp \
     21   MipsAnalyzeImmediate.cpp \
     22   MipsAsmPrinter.cpp \
     23   MipsCodeEmitter.cpp \
     24   MipsConstantIslandPass.cpp \
     25   MipsDelaySlotFiller.cpp \
     26   MipsFrameLowering.cpp \
     27   MipsInstrInfo.cpp \
     28   MipsISelDAGToDAG.cpp \
     29   MipsISelLowering.cpp \
     30   MipsJITInfo.cpp \
     31   MipsLongBranch.cpp \
     32   MipsMachineFunction.cpp \
     33   MipsMCInstLower.cpp \
     34   MipsModuleISelDAGToDAG.cpp \
     35   MipsOptimizeMathLibCalls.cpp \
     36   MipsOs16.cpp \
     37   MipsRegisterInfo.cpp \
     38   MipsSEFrameLowering.cpp \
     39   MipsSEISelDAGToDAG.cpp \
     40   MipsSEISelLowering.cpp \
     41   MipsSEInstrInfo.cpp \
     42   MipsSERegisterInfo.cpp \
     43   MipsSelectionDAGInfo.cpp \
     44   MipsSubtarget.cpp \
     45   MipsTargetMachine.cpp \
     46   MipsTargetObjectFile.cpp
     47 
     48 # For the host
     49 # =====================================================
     50 include $(CLEAR_VARS)
     51 include $(CLEAR_TBLGEN_VARS)
     52 
     53 LOCAL_MODULE:= libLLVMMipsCodeGen
     54 LOCAL_MODULE_TAGS := optional
     55 
     56 LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
     57 LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
     58 
     59 TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
     60 
     61 include $(LLVM_HOST_BUILD_MK)
     62 include $(LLVM_TBLGEN_RULES_MK)
     63 include $(LLVM_GEN_INTRINSICS_MK)
     64 include $(BUILD_HOST_STATIC_LIBRARY)
     65 
     66 # For the device only
     67 # =====================================================
     68 ifeq ($(TARGET_ARCH),mips)
     69 include $(CLEAR_VARS)
     70 include $(CLEAR_TBLGEN_VARS)
     71 
     72 LOCAL_MODULE:= libLLVMMipsCodeGen
     73 LOCAL_MODULE_TAGS := optional
     74 
     75 LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
     76 LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
     77 
     78 TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
     79 
     80 include $(LLVM_DEVICE_BUILD_MK)
     81 include $(LLVM_TBLGEN_RULES_MK)
     82 include $(LLVM_GEN_INTRINSICS_MK)
     83 include $(BUILD_STATIC_LIBRARY)
     84 endif
     85