blob: a728a8059fdbbe2b16619af0073f4892db327a29 [file] [log] [blame]
Logan Chien79f06f32011-11-26 14:18:36 +08001LOCAL_PATH := $(call my-dir)
2
3mips_mc_desc_TBLGEN_TABLES := \
4 MipsGenRegisterInfo.inc \
5 MipsGenInstrInfo.inc \
6 MipsGenMCCodeEmitter.inc \
7 MipsGenSubtargetInfo.inc
8
9mips_mc_desc_SRC_FILES := \
10 MipsAsmBackend.cpp \
11 MipsMCAsmInfo.cpp \
12 MipsMCCodeEmitter.cpp \
13 MipsMCTargetDesc.cpp
14
15# For the host
16# =====================================================
17include $(CLEAR_VARS)
18include $(CLEAR_TBLGEN_VARS)
19
20LOCAL_MODULE:= libLLVMMipsDesc
21LOCAL_MODULE_TAGS := optional
22
23LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES)
24LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
25
26TBLGEN_TD_DIR := $(LOCAL_PATH)/..
27TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES)
28
29include $(LLVM_HOST_BUILD_MK)
30include $(LLVM_TBLGEN_RULES_MK)
31include $(LLVM_GEN_INTRINSICS_MK)
32include $(BUILD_HOST_STATIC_LIBRARY)
33
34# For the device only
35# =====================================================
36ifeq ($(TARGET_ARCH),mips)
37include $(CLEAR_VARS)
38include $(CLEAR_TBLGEN_VARS)
39
40LOCAL_MODULE:= libLLVMMipsDesc
41LOCAL_MODULE_TAGS := optional
42
43LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES)
44LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
45
46TBLGEN_TD_DIR := $(LOCAL_PATH)/..
47TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES)
48
49include $(LLVM_DEVICE_BUILD_MK)
50include $(LLVM_TBLGEN_RULES_MK)
51include $(LLVM_GEN_INTRINSICS_MK)
52include $(BUILD_STATIC_LIBRARY)
53endif