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 X86AsmParser.cpp 10 11 x86_asm_parser_TBLGEN_TABLES := \ 12 X86GenAsmMatcher.inc \ 13 X86GenInstrInfo.inc \ 14 X86GenRegisterInfo.inc \ 15 X86GenSubtargetInfo.inc 16 17 x86_asm_parser_TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 18 19 x86_asm_parser_C_INCLUDES += \ 20 $(LOCAL_PATH)/.. 21 22 23 #===---------------------------------------------------------------=== 24 # libX86AsmParser (host) 25 #===---------------------------------------------------------------=== 26 include $(CLEAR_VARS) 27 include $(CLEAR_TBLGEN_VARS) 28 29 LOCAL_MODULE:= libLLVMX86AsmParser 30 LOCAL_MODULE_TAGS := optional 31 LOCAL_SRC_FILES := $(x86_asm_parser_SRC_FILES) 32 LOCAL_C_INCLUDES += $(x86_asm_parser_C_INCLUDES) 33 TBLGEN_TABLES := $(x86_asm_parser_TBLGEN_TABLES) 34 TBLGEN_TD_DIR := $(x86_asm_parser_TBLGEN_TD_DIR) 35 36 include $(LLVM_HOST_BUILD_MK) 37 include $(LLVM_TBLGEN_RULES_MK) 38 include $(BUILD_HOST_STATIC_LIBRARY) 39 40 41 #===---------------------------------------------------------------=== 42 # libX86AsmParser (target) 43 #===---------------------------------------------------------------=== 44 include $(CLEAR_VARS) 45 include $(CLEAR_TBLGEN_VARS) 46 47 LOCAL_MODULE:= libLLVMX86AsmParser 48 LOCAL_MODULE_TAGS := optional 49 LOCAL_SRC_FILES := $(x86_asm_parser_SRC_FILES) 50 LOCAL_C_INCLUDES += $(x86_asm_parser_C_INCLUDES) 51 TBLGEN_TABLES := $(x86_asm_parser_TBLGEN_TABLES) 52 TBLGEN_TD_DIR := $(x86_asm_parser_TBLGEN_TD_DIR) 53 54 include $(LLVM_DEVICE_BUILD_MK) 55 include $(LLVM_TBLGEN_RULES_MK) 56 include $(BUILD_STATIC_LIBRARY) 57