OSDN Git Service

LLVM_TBLGEN to LLVM70_TBLGEN
[android-x86/external-llvm.git] / lib / Target / Mips / AsmParser / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 #===---------------------------------------------------------------===
4 # libLLVM70MipsAsmParser (common)
5 #===---------------------------------------------------------------===
6
7 mips_asm_parser_SRC_FILES := \
8   MipsAsmParser.cpp
9
10 mips_asm_parser_C_INCLUDES := $(LOCAL_PATH)/..
11
12 mips_asm_parser_TBLGEN_TABLES := \
13   MipsGenAsmMatcher.inc \
14   MipsGenInstrInfo.inc \
15   MipsGenRegisterInfo.inc \
16   MipsGenSubtargetInfo.inc
17
18 mips_asm_parser_TBLGEN_TD_DIR := $(LOCAL_PATH)/..
19
20
21 #===---------------------------------------------------------------===
22 # libLLVM70MipsAsmParser (host)
23 #===---------------------------------------------------------------===
24 include $(CLEAR_VARS)
25 include $(CLEAR_TBLGEN_VARS)
26
27 LOCAL_MODULE:= libLLVM70MipsAsmParser
28 LOCAL_MODULE_HOST_OS := darwin linux windows
29 LOCAL_SRC_FILES := $(mips_asm_parser_SRC_FILES)
30 LOCAL_C_INCLUDES += $(mips_asm_parser_C_INCLUDES)
31 TBLGEN_TABLES := $(mips_asm_parser_TBLGEN_TABLES)
32 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
33
34 include $(LLVM_HOST_BUILD_MK)
35 include $(LLVM70_TBLGEN_RULES_MK)
36 include $(LLVM_GEN_ATTRIBUTES_MK)
37 include $(BUILD_HOST_STATIC_LIBRARY)
38
39
40 #===---------------------------------------------------------------===
41 # libLLVM70MipsAsmParser (target)
42 #===---------------------------------------------------------------===
43 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
44 include $(CLEAR_VARS)
45 include $(CLEAR_TBLGEN_VARS)
46
47 LOCAL_MODULE:= libLLVM70MipsAsmParser
48 LOCAL_SRC_FILES := $(mips_asm_parser_SRC_FILES)
49 LOCAL_C_INCLUDES += $(mips_asm_parser_C_INCLUDES)
50 TBLGEN_TABLES := $(mips_asm_parser_TBLGEN_TABLES)
51 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
52
53 include $(LLVM_DEVICE_BUILD_MK)
54 include $(LLVM70_TBLGEN_RULES_MK)
55 include $(LLVM_GEN_ATTRIBUTES_MK)
56 include $(BUILD_STATIC_LIBRARY)
57 endif