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_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 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
     46 include $(CLEAR_VARS)
     47 include $(CLEAR_TBLGEN_VARS)
     48 
     49 LOCAL_MODULE:= libLLVMX86AsmParser
     50 LOCAL_MODULE_TAGS := optional
     51 LOCAL_SRC_FILES := $(x86_asm_parser_SRC_FILES)
     52 LOCAL_C_INCLUDES += $(x86_asm_parser_C_INCLUDES)
     53 TBLGEN_TABLES := $(x86_asm_parser_TBLGEN_TABLES)
     54 TBLGEN_TD_DIR := $(x86_asm_parser_TBLGEN_TD_DIR)
     55 
     56 include $(LLVM_DEVICE_BUILD_MK)
     57 include $(LLVM_TBLGEN_RULES_MK)
     58 include $(BUILD_STATIC_LIBRARY)
     59 endif
     60