Home | History | Annotate | Download | only in AsmParser
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 # For the device only
      4 # =====================================================
      5 include $(CLEAR_VARS)
      6 include $(CLEAR_TBLGEN_VARS)
      7 
      8 x86_asm_parser_SRC_FILES :=	\
      9 	X86AsmInstrumentation.cpp \
     10 	X86AsmParser.cpp
     11 
     12 x86_asm_parser_TBLGEN_TABLES :=	\
     13 	X86GenAsmMatcher.inc	\
     14 	X86GenInstrInfo.inc	\
     15 	X86GenRegisterInfo.inc \
     16 	X86GenSubtargetInfo.inc
     17 
     18 x86_asm_parser_TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     19 
     20 x86_asm_parser_C_INCLUDES +=	\
     21 	$(LOCAL_PATH)/..
     22 
     23 
     24 #===---------------------------------------------------------------===
     25 # libX86AsmParser (host)
     26 #===---------------------------------------------------------------===
     27 include $(CLEAR_VARS)
     28 include $(CLEAR_TBLGEN_VARS)
     29 
     30 LOCAL_MODULE:= libLLVMX86AsmParser
     31 LOCAL_MODULE_HOST_OS := darwin linux windows
     32 LOCAL_SRC_FILES := $(x86_asm_parser_SRC_FILES)
     33 LOCAL_C_INCLUDES += $(x86_asm_parser_C_INCLUDES)
     34 TBLGEN_TABLES := $(x86_asm_parser_TBLGEN_TABLES)
     35 TBLGEN_TD_DIR := $(x86_asm_parser_TBLGEN_TD_DIR)
     36 
     37 include $(LLVM_HOST_BUILD_MK)
     38 include $(LLVM_TBLGEN_RULES_MK)
     39 include $(LLVM_GEN_ATTRIBUTES_MK)
     40 include $(LLVM_GEN_INTRINSICS_MK)
     41 include $(BUILD_HOST_STATIC_LIBRARY)
     42 
     43 
     44 #===---------------------------------------------------------------===
     45 # libX86AsmParser (target)
     46 #===---------------------------------------------------------------===
     47 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
     48 include $(CLEAR_VARS)
     49 include $(CLEAR_TBLGEN_VARS)
     50 
     51 LOCAL_MODULE:= libLLVMX86AsmParser
     52 LOCAL_SRC_FILES := $(x86_asm_parser_SRC_FILES)
     53 LOCAL_C_INCLUDES += $(x86_asm_parser_C_INCLUDES)
     54 TBLGEN_TABLES := $(x86_asm_parser_TBLGEN_TABLES)
     55 TBLGEN_TD_DIR := $(x86_asm_parser_TBLGEN_TD_DIR)
     56 
     57 include $(LLVM_DEVICE_BUILD_MK)
     58 include $(LLVM_TBLGEN_RULES_MK)
     59 include $(LLVM_GEN_ATTRIBUTES_MK)
     60 include $(LLVM_GEN_INTRINSICS_MK)
     61 include $(BUILD_STATIC_LIBRARY)
     62 endif
     63