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   MipsGenAsmWriter.inc \
      9   MipsGenDAGISel.inc \
     10   MipsGenCallingConv.inc \
     11   MipsGenSubtargetInfo.inc
     12 
     13 mips_codegen_SRC_FILES := \
     14   MipsAnalyzeImmediate.cpp \
     15   MipsAsmPrinter.cpp \
     16   MipsCodeEmitter.cpp \
     17   MipsDelaySlotFiller.cpp \
     18   MipsEmitGPRestore.cpp \
     19   MipsExpandPseudo.cpp \
     20   MipsJITInfo.cpp \
     21   MipsInstrInfo.cpp \
     22   MipsISelDAGToDAG.cpp \
     23   MipsISelLowering.cpp \
     24   MipsFrameLowering.cpp \
     25   MipsMachineFunction.cpp \
     26   MipsMCInstLower.cpp \
     27   MipsRegisterInfo.cpp \
     28   MipsSubtarget.cpp \
     29   MipsTargetMachine.cpp \
     30   MipsTargetObjectFile.cpp \
     31   MipsSelectionDAGInfo.cpp
     32 
     33 # For the host
     34 # =====================================================
     35 include $(CLEAR_VARS)
     36 include $(CLEAR_TBLGEN_VARS)
     37 
     38 LOCAL_MODULE:= libLLVMMipsCodeGen
     39 LOCAL_MODULE_TAGS := optional
     40 
     41 LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
     42 LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
     43 
     44 TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
     45 
     46 include $(LLVM_HOST_BUILD_MK)
     47 include $(LLVM_TBLGEN_RULES_MK)
     48 include $(LLVM_GEN_INTRINSICS_MK)
     49 include $(BUILD_HOST_STATIC_LIBRARY)
     50 
     51 # For the device only
     52 # =====================================================
     53 ifeq ($(TARGET_ARCH),mips)
     54 include $(CLEAR_VARS)
     55 include $(CLEAR_TBLGEN_VARS)
     56 
     57 LOCAL_MODULE:= libLLVMMipsCodeGen
     58 LOCAL_MODULE_TAGS := optional
     59 
     60 LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
     61 LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
     62 
     63 TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
     64 
     65 include $(LLVM_DEVICE_BUILD_MK)
     66 include $(LLVM_TBLGEN_RULES_MK)
     67 include $(LLVM_GEN_INTRINSICS_MK)
     68 include $(BUILD_STATIC_LIBRARY)
     69 endif
     70