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   MipsGenFastISel.inc \
     12   MipsGenCallingConv.inc \
     13   MipsGenSubtargetInfo.inc
     14 
     15 mips_codegen_SRC_FILES := \
     16   Mips16FrameLowering.cpp \
     17   Mips16HardFloat.cpp \
     18   Mips16HardFloatInfo.cpp \
     19   Mips16ISelDAGToDAG.cpp \
     20   Mips16ISelLowering.cpp \
     21   Mips16InstrInfo.cpp \
     22   Mips16RegisterInfo.cpp \
     23   MipsAnalyzeImmediate.cpp \
     24   MipsAsmPrinter.cpp \
     25   MipsCCState.cpp \
     26   MipsConstantIslandPass.cpp \
     27   MipsDelaySlotFiller.cpp \
     28   MipsFastISel.cpp \
     29   MipsFrameLowering.cpp \
     30   MipsInstrInfo.cpp \
     31   MipsISelDAGToDAG.cpp \
     32   MipsISelLowering.cpp \
     33   MipsLongBranch.cpp \
     34   MipsMachineFunction.cpp \
     35   MipsMCInstLower.cpp \
     36   MipsModuleISelDAGToDAG.cpp \
     37   MipsOs16.cpp \
     38   MipsOptimizePICCall.cpp \
     39   MipsRegisterInfo.cpp \
     40   MipsSEFrameLowering.cpp \
     41   MipsSEISelDAGToDAG.cpp \
     42   MipsSEISelLowering.cpp \
     43   MipsSEInstrInfo.cpp \
     44   MipsSERegisterInfo.cpp \
     45   MipsSubtarget.cpp \
     46   MipsTargetMachine.cpp \
     47   MipsTargetObjectFile.cpp
     48 
     49 # For the host
     50 # =====================================================
     51 include $(CLEAR_VARS)
     52 include $(CLEAR_TBLGEN_VARS)
     53 
     54 LOCAL_MODULE:= libLLVMMipsCodeGen
     55 LOCAL_MODULE_HOST_OS := darwin linux windows
     56 
     57 LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
     58 LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
     59 
     60 TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
     61 
     62 include $(LLVM_HOST_BUILD_MK)
     63 include $(LLVM_TBLGEN_RULES_MK)
     64 include $(LLVM_GEN_ATTRIBUTES_MK)
     65 include $(LLVM_GEN_INTRINSICS_MK)
     66 include $(BUILD_HOST_STATIC_LIBRARY)
     67 
     68 # For the device only
     69 # =====================================================
     70 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
     71 include $(CLEAR_VARS)
     72 include $(CLEAR_TBLGEN_VARS)
     73 
     74 LOCAL_MODULE:= libLLVMMipsCodeGen
     75 
     76 LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
     77 LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
     78 
     79 TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
     80 
     81 include $(LLVM_DEVICE_BUILD_MK)
     82 include $(LLVM_TBLGEN_RULES_MK)
     83 include $(LLVM_GEN_ATTRIBUTES_MK)
     84 include $(LLVM_GEN_INTRINSICS_MK)
     85 include $(BUILD_STATIC_LIBRARY)
     86 endif
     87