• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH := $(call my-dir)
2
3arm_mc_desc_TBLGEN_TABLES := \
4  ARMGenRegisterInfo.inc \
5  ARMGenInstrInfo.inc \
6  ARMGenMCCodeEmitter.inc \
7  ARMGenSubtargetInfo.inc
8
9arm_mc_desc_SRC_FILES := \
10  ARMAsmBackend.cpp \
11  ARMELFObjectWriter.cpp \
12  ARMELFStreamer.cpp \
13  ARMMCAsmInfo.cpp \
14  ARMMCCodeEmitter.cpp \
15  ARMMCExpr.cpp \
16  ARMMCTargetDesc.cpp \
17  ARMMachObjectWriter.cpp
18
19# For the host
20# =====================================================
21include $(CLEAR_VARS)
22include $(CLEAR_TBLGEN_VARS)
23
24
25LOCAL_MODULE:= libLLVMARMDesc
26LOCAL_MODULE_TAGS := optional
27
28LOCAL_SRC_FILES := $(arm_mc_desc_SRC_FILES)
29LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
30
31TBLGEN_TD_DIR := $(LOCAL_PATH)/..
32TBLGEN_TABLES := $(arm_mc_desc_TBLGEN_TABLES)
33
34include $(LLVM_HOST_BUILD_MK)
35include $(LLVM_TBLGEN_RULES_MK)
36include $(LLVM_GEN_INTRINSICS_MK)
37include $(BUILD_HOST_STATIC_LIBRARY)
38
39# For the device only
40# =====================================================
41ifeq ($(TARGET_ARCH),arm)
42include $(CLEAR_VARS)
43include $(CLEAR_TBLGEN_VARS)
44
45LOCAL_MODULE:= libLLVMARMDesc
46LOCAL_MODULE_TAGS := optional
47
48LOCAL_SRC_FILES := $(arm_mc_desc_SRC_FILES)
49LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
50
51TBLGEN_TD_DIR := $(LOCAL_PATH)/..
52TBLGEN_TABLES := $(arm_mc_desc_TBLGEN_TABLES)
53
54include $(LLVM_DEVICE_BUILD_MK)
55include $(LLVM_TBLGEN_RULES_MK)
56include $(LLVM_GEN_INTRINSICS_MK)
57include $(BUILD_STATIC_LIBRARY)
58endif
59