1 LOCAL_PATH := $(call my-dir) 2 3 arm_mc_desc_TBLGEN_TABLES := \ 4 ARMGenRegisterInfo.inc \ 5 ARMGenInstrInfo.inc \ 6 ARMGenMCCodeEmitter.inc \ 7 ARMGenSubtargetInfo.inc 8 9 arm_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 ARMMachORelocationInfo.cpp \ 19 ARMUnwindOpAsm.cpp 20 21 # For the host 22 # ===================================================== 23 include $(CLEAR_VARS) 24 include $(CLEAR_TBLGEN_VARS) 25 26 27 LOCAL_MODULE:= libLLVMARMDesc 28 LOCAL_MODULE_TAGS := optional 29 30 LOCAL_SRC_FILES := $(arm_mc_desc_SRC_FILES) 31 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 32 33 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 34 TBLGEN_TABLES := $(arm_mc_desc_TBLGEN_TABLES) 35 36 include $(LLVM_HOST_BUILD_MK) 37 include $(LLVM_TBLGEN_RULES_MK) 38 include $(LLVM_GEN_INTRINSICS_MK) 39 include $(BUILD_HOST_STATIC_LIBRARY) 40 41 # For the device only 42 # ===================================================== 43 ifeq ($(TARGET_ARCH),arm) 44 include $(CLEAR_VARS) 45 include $(CLEAR_TBLGEN_VARS) 46 47 LOCAL_MODULE:= libLLVMARMDesc 48 LOCAL_MODULE_TAGS := optional 49 50 LOCAL_SRC_FILES := $(arm_mc_desc_SRC_FILES) 51 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 52 53 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 54 TBLGEN_TABLES := $(arm_mc_desc_TBLGEN_TABLES) 55 56 include $(LLVM_DEVICE_BUILD_MK) 57 include $(LLVM_TBLGEN_RULES_MK) 58 include $(LLVM_GEN_INTRINSICS_MK) 59 include $(BUILD_STATIC_LIBRARY) 60 endif 61