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_HOST_OS := darwin linux windows 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_ATTRIBUTES_MK) 42 include $(LLVM_GEN_INTRINSICS_MK) 43 include $(BUILD_HOST_STATIC_LIBRARY) 44 45 # For the device only 46 # ===================================================== 47 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 48 include $(CLEAR_VARS) 49 include $(CLEAR_TBLGEN_VARS) 50 51 LOCAL_MODULE:= libLLVMARMDesc 52 LOCAL_MODULE_TAGS := optional 53 54 LOCAL_SRC_FILES := $(arm_mc_desc_SRC_FILES) 55 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 56 57 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 58 TBLGEN_TABLES := $(arm_mc_desc_TBLGEN_TABLES) 59 60 include $(LLVM_DEVICE_BUILD_MK) 61 include $(LLVM_TBLGEN_RULES_MK) 62 include $(LLVM_GEN_ATTRIBUTES_MK) 63 include $(LLVM_GEN_INTRINSICS_MK) 64 include $(BUILD_STATIC_LIBRARY) 65 endif 66