Home | History | Annotate | Download | only in MCTargetDesc
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 mips_mc_desc_TBLGEN_TABLES := \
      4   MipsGenRegisterInfo.inc \
      5   MipsGenInstrInfo.inc \
      6   MipsGenMCCodeEmitter.inc \
      7   MipsGenSubtargetInfo.inc
      8 
      9 mips_mc_desc_SRC_FILES := \
     10   MipsAsmBackend.cpp \
     11   MipsDirectObjLower.cpp \
     12   MipsELFObjectWriter.cpp \
     13   MipsELFStreamer.cpp \
     14   MipsMCAsmInfo.cpp \
     15   MipsMCCodeEmitter.cpp \
     16   MipsMCTargetDesc.cpp \
     17   MipsReginfo.cpp
     18 
     19 # For the host
     20 # =====================================================
     21 include $(CLEAR_VARS)
     22 include $(CLEAR_TBLGEN_VARS)
     23 
     24 LOCAL_MODULE:= libLLVMMipsDesc
     25 LOCAL_MODULE_TAGS := optional
     26 
     27 LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES)
     28 LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
     29 
     30 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     31 TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES)
     32 
     33 include $(LLVM_HOST_BUILD_MK)
     34 include $(LLVM_TBLGEN_RULES_MK)
     35 include $(LLVM_GEN_INTRINSICS_MK)
     36 include $(BUILD_HOST_STATIC_LIBRARY)
     37 
     38 # For the device only
     39 # =====================================================
     40 ifeq ($(TARGET_ARCH),mips)
     41 include $(CLEAR_VARS)
     42 include $(CLEAR_TBLGEN_VARS)
     43 
     44 LOCAL_MODULE:= libLLVMMipsDesc
     45 LOCAL_MODULE_TAGS := optional
     46 
     47 LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES)
     48 LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
     49 
     50 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     51 TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES)
     52 
     53 include $(LLVM_DEVICE_BUILD_MK)
     54 include $(LLVM_TBLGEN_RULES_MK)
     55 include $(LLVM_GEN_INTRINSICS_MK)
     56 include $(BUILD_STATIC_LIBRARY)
     57 endif
     58