Home | History | Annotate | Download | only in InstPrinter
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 mips_asm_printer_TBLGEN_TABLES := \
      4   MipsGenAsmWriter.inc \
      5   MipsGenRegisterInfo.inc \
      6   MipsGenSubtargetInfo.inc \
      7   MipsGenInstrInfo.inc
      8 
      9 mips_asm_printer_SRC_FILES := \
     10   MipsInstPrinter.cpp
     11 
     12 # For the host
     13 # =====================================================
     14 include $(CLEAR_VARS)
     15 include $(CLEAR_TBLGEN_VARS)
     16 
     17 LOCAL_MODULE:= libLLVMMipsAsmPrinter
     18 LOCAL_MODULE_TAGS := optional
     19 
     20 TBLGEN_TABLES := $(mips_asm_printer_TBLGEN_TABLES)
     21 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     22 
     23 LOCAL_SRC_FILES := $(mips_asm_printer_SRC_FILES)
     24 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
     25 
     26 include $(LLVM_HOST_BUILD_MK)
     27 include $(LLVM_TBLGEN_RULES_MK)
     28 include $(BUILD_HOST_STATIC_LIBRARY)
     29 
     30 # For the device only
     31 # =====================================================
     32 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
     33 include $(CLEAR_VARS)
     34 include $(CLEAR_TBLGEN_VARS)
     35 
     36 LOCAL_MODULE:= libLLVMMipsAsmPrinter
     37 LOCAL_MODULE_TAGS := optional
     38 
     39 TBLGEN_TABLES := $(mips_asm_printer_TBLGEN_TABLES)
     40 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     41 
     42 LOCAL_SRC_FILES := $(mips_asm_printer_SRC_FILES)
     43 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
     44 
     45 include $(LLVM_DEVICE_BUILD_MK)
     46 include $(LLVM_TBLGEN_RULES_MK)
     47 include $(BUILD_STATIC_LIBRARY)
     48 endif
     49