Home | History | Annotate | Download | only in Disassembler
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 arm_disassembler_TBLGEN_TABLES := \
      4   ARMGenDisassemblerTables.inc \
      5   ARMGenEDInfo.inc \
      6   ARMGenInstrInfo.inc \
      7   ARMGenSubtargetInfo.inc \
      8   ARMGenRegisterInfo.inc
      9 
     10 arm_disassembler_SRC_FILES := \
     11   ARMDisassembler.cpp
     12 
     13 # For the device
     14 # =====================================================
     15 ifeq ($(TARGET_ARCH),arm)
     16 include $(CLEAR_VARS)
     17 include $(CLEAR_TBLGEN_VARS)
     18 
     19 TBLGEN_TABLES := $(arm_disassembler_TBLGEN_TABLES)
     20 
     21 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     22 
     23 LOCAL_SRC_FILES := $(arm_disassembler_SRC_FILES)
     24 
     25 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
     26 
     27 LOCAL_MODULE:= libLLVMARMDisassembler
     28 
     29 LOCAL_MODULE_TAGS := optional
     30 
     31 include $(LLVM_DEVICE_BUILD_MK)
     32 include $(LLVM_TBLGEN_RULES_MK)
     33 include $(BUILD_STATIC_LIBRARY)
     34 endif
     35 
     36 # For the host
     37 # =====================================================
     38 include $(CLEAR_VARS)
     39 include $(CLEAR_TBLGEN_VARS)
     40 
     41 TBLGEN_TABLES := $(arm_disassembler_TBLGEN_TABLES)
     42 
     43 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     44 
     45 LOCAL_SRC_FILES := $(arm_disassembler_SRC_FILES)
     46 
     47 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
     48 
     49 LOCAL_MODULE:= libLLVMARMDisassembler
     50 
     51 LOCAL_MODULE_TAGS := optional
     52 
     53 include $(LLVM_HOST_BUILD_MK)
     54 include $(LLVM_TBLGEN_RULES_MK)
     55 include $(BUILD_HOST_STATIC_LIBRARY)
     56 
     57