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