• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH := $(call my-dir)
2
3# For the device only
4# =====================================================
5include $(CLEAR_VARS)
6include $(CLEAR_TBLGEN_VARS)
7
8x86_asm_parser_SRC_FILES :=	\
9	X86AsmParser.cpp
10
11x86_asm_parser_TBLGEN_TABLES :=	\
12	X86GenAsmMatcher.inc	\
13	X86GenInstrInfo.inc	\
14	X86GenRegisterInfo.inc \
15	X86GenSubtargetInfo.inc
16
17x86_asm_parser_TBLGEN_TD_DIR := $(LOCAL_PATH)/..
18
19x86_asm_parser_C_INCLUDES +=	\
20	$(LOCAL_PATH)/..
21
22
23#===---------------------------------------------------------------===
24# libX86AsmParser (host)
25#===---------------------------------------------------------------===
26include $(CLEAR_VARS)
27include $(CLEAR_TBLGEN_VARS)
28
29LOCAL_MODULE:= libLLVMX86AsmParser
30LOCAL_MODULE_TAGS := optional
31LOCAL_SRC_FILES := $(x86_asm_parser_SRC_FILES)
32LOCAL_C_INCLUDES += $(x86_asm_parser_C_INCLUDES)
33TBLGEN_TABLES := $(x86_asm_parser_TBLGEN_TABLES)
34TBLGEN_TD_DIR := $(x86_asm_parser_TBLGEN_TD_DIR)
35
36include $(LLVM_HOST_BUILD_MK)
37include $(LLVM_TBLGEN_RULES_MK)
38include $(BUILD_HOST_STATIC_LIBRARY)
39
40
41#===---------------------------------------------------------------===
42# libX86AsmParser (target)
43#===---------------------------------------------------------------===
44include $(CLEAR_VARS)
45include $(CLEAR_TBLGEN_VARS)
46
47LOCAL_MODULE:= libLLVMX86AsmParser
48LOCAL_MODULE_TAGS := optional
49LOCAL_SRC_FILES := $(x86_asm_parser_SRC_FILES)
50LOCAL_C_INCLUDES += $(x86_asm_parser_C_INCLUDES)
51TBLGEN_TABLES := $(x86_asm_parser_TBLGEN_TABLES)
52TBLGEN_TD_DIR := $(x86_asm_parser_TBLGEN_TD_DIR)
53
54include $(LLVM_DEVICE_BUILD_MK)
55include $(LLVM_TBLGEN_RULES_MK)
56include $(BUILD_STATIC_LIBRARY)
57