Home | History | Annotate | Download | only in Disassembler
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 x86_disassembler_TBLGEN_TABLES := \
      4   X86GenDisassemblerTables.inc \
      5   X86GenEDInfo.inc \
      6   X86GenInstrInfo.inc \
      7   X86GenRegisterInfo.inc
      8 
      9 x86_disassembler_SRC_FILES := \
     10   X86Disassembler.cpp \
     11   X86DisassemblerDecoder.c
     12 
     13 # For the device
     14 # =====================================================
     15 ifeq ($(TARGET_ARCH),x86)
     16 include $(CLEAR_VARS)
     17 include $(CLEAR_TBLGEN_VARS)
     18 
     19 TBLGEN_TABLES := $(x86_disassembler_TBLGEN_TABLES)
     20 
     21 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     22 
     23 LOCAL_SRC_FILES := $(x86_disassembler_SRC_FILES)
     24 
     25 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
     26 
     27 LOCAL_MODULE:= libLLVMX86Disassembler
     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 := $(x86_disassembler_TBLGEN_TABLES)
     42 
     43 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     44 
     45 LOCAL_SRC_FILES := $(x86_disassembler_SRC_FILES)
     46 
     47 LOCAL_C_INCLUDES +=	\
     48 	$(LOCAL_PATH)/..
     49 
     50 LOCAL_MODULE:= libLLVMX86Disassembler
     51 
     52 LOCAL_MODULE_TAGS := optional
     53 
     54 include $(LLVM_HOST_BUILD_MK)
     55 include $(LLVM_TBLGEN_RULES_MK)
     56 include $(BUILD_HOST_STATIC_LIBRARY)
     57