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 X86AsmLexer.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_TAGS := optional 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 $(BUILD_HOST_STATIC_LIBRARY) 40 41 42 #===---------------------------------------------------------------=== 43 # libX86AsmParser (target) 44 #===---------------------------------------------------------------=== 45 include $(CLEAR_VARS) 46 include $(CLEAR_TBLGEN_VARS) 47 48 LOCAL_MODULE:= libLLVMX86AsmParser 49 LOCAL_MODULE_TAGS := optional 50 LOCAL_SRC_FILES := $(x86_asm_parser_SRC_FILES) 51 LOCAL_C_INCLUDES += $(x86_asm_parser_C_INCLUDES) 52 TBLGEN_TABLES := $(x86_asm_parser_TBLGEN_TABLES) 53 TBLGEN_TD_DIR := $(x86_asm_parser_TBLGEN_TD_DIR) 54 55 include $(LLVM_DEVICE_BUILD_MK) 56 include $(LLVM_TBLGEN_RULES_MK) 57 include $(BUILD_STATIC_LIBRARY) 58