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 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
     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 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_instprinter_TBLGEN_TABLES)
     42 
     43 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     44 
     45 LOCAL_SRC_FILES := $(x86_instprinter_SRC_FILES)
     46 
     47 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
     48 
     49 LOCAL_MODULE := libLLVMX86AsmPrinter
     50 
     51 LOCAL_MODULE_HOST_OS := darwin linux windows
     52 
     53 include $(LLVM_HOST_BUILD_MK)
     54 include $(LLVM_TBLGEN_RULES_MK)
     55 include $(BUILD_HOST_STATIC_LIBRARY)
     56