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   MipsELFObjectWriter.cpp \
     12   MipsMCAsmInfo.cpp \
     13   MipsMCCodeEmitter.cpp \
     14   MipsMCTargetDesc.cpp
     15 
     16 # For the host
     17 # =====================================================
     18 include $(CLEAR_VARS)
     19 include $(CLEAR_TBLGEN_VARS)
     20 
     21 LOCAL_MODULE:= libLLVMMipsDesc
     22 LOCAL_MODULE_TAGS := optional
     23 
     24 LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES)
     25 LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
     26 
     27 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     28 TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES)
     29 
     30 include $(LLVM_HOST_BUILD_MK)
     31 include $(LLVM_TBLGEN_RULES_MK)
     32 include $(LLVM_GEN_INTRINSICS_MK)
     33 include $(BUILD_HOST_STATIC_LIBRARY)
     34 
     35 # For the device only
     36 # =====================================================
     37 ifeq ($(TARGET_ARCH),mips)
     38 include $(CLEAR_VARS)
     39 include $(CLEAR_TBLGEN_VARS)
     40 
     41 LOCAL_MODULE:= libLLVMMipsDesc
     42 LOCAL_MODULE_TAGS := optional
     43 
     44 LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES)
     45 LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
     46 
     47 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     48 TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES)
     49 
     50 include $(LLVM_DEVICE_BUILD_MK)
     51 include $(LLVM_TBLGEN_RULES_MK)
     52 include $(LLVM_GEN_INTRINSICS_MK)
     53 include $(BUILD_STATIC_LIBRARY)
     54 endif
     55