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 ARMTargetStreamer.cpp \ 20 ARMUnwindOpAsm.cpp \ 21 ARMWinCOFFObjectWriter.cpp \ 22 ARMWinCOFFStreamer.cpp \ 23 24 # For the host 25 # ===================================================== 26 include $(CLEAR_VARS) 27 include $(CLEAR_TBLGEN_VARS) 28 29 30 LOCAL_MODULE:= libLLVMARMDesc 31 LOCAL_MODULE_TAGS := optional 32 33 LOCAL_SRC_FILES := $(arm_mc_desc_SRC_FILES) 34 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 35 36 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 37 TBLGEN_TABLES := $(arm_mc_desc_TBLGEN_TABLES) 38 39 include $(LLVM_HOST_BUILD_MK) 40 include $(LLVM_TBLGEN_RULES_MK) 41 include $(LLVM_GEN_INTRINSICS_MK) 42 include $(BUILD_HOST_STATIC_LIBRARY) 43 44 # For the device only 45 # ===================================================== 46 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 47 include $(CLEAR_VARS) 48 include $(CLEAR_TBLGEN_VARS) 49 50 LOCAL_MODULE:= libLLVMARMDesc 51 LOCAL_MODULE_TAGS := optional 52 53 LOCAL_SRC_FILES := $(arm_mc_desc_SRC_FILES) 54 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 55 56 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 57 TBLGEN_TABLES := $(arm_mc_desc_TBLGEN_TABLES) 58 59 include $(LLVM_DEVICE_BUILD_MK) 60 include $(LLVM_TBLGEN_RULES_MK) 61 include $(LLVM_GEN_INTRINSICS_MK) 62 include $(BUILD_STATIC_LIBRARY) 63 endif 64