1 LOCAL_PATH := $(call my-dir) 2 3 LLVM_ROOT_PATH := $(LOCAL_PATH)/../.. 4 5 6 #===---------------------------------------------------------------=== 7 # llvm-mc command line tool 8 #===---------------------------------------------------------------=== 9 10 llvm_mc_SRC_FILES := \ 11 llvm-mc.cpp \ 12 Disassembler.cpp 13 14 llvm_mc_STATIC_LIBRARIES := \ 15 libLLVMARMAsmParser \ 16 libLLVMARMInfo \ 17 libLLVMARMDesc \ 18 libLLVMARMAsmPrinter \ 19 libLLVMARMDisassembler \ 20 libLLVMAArch64Info \ 21 libLLVMAArch64AsmParser \ 22 libLLVMAArch64Desc \ 23 libLLVMAArch64AsmPrinter \ 24 libLLVMAArch64Utils \ 25 libLLVMAArch64Disassembler \ 26 libLLVMMipsInfo \ 27 libLLVMMipsAsmParser \ 28 libLLVMMipsDesc \ 29 libLLVMMipsAsmPrinter \ 30 libLLVMMipsDisassembler \ 31 libLLVMX86Info \ 32 libLLVMX86Desc \ 33 libLLVMX86AsmParser \ 34 libLLVMX86AsmPrinter \ 35 libLLVMX86Utils \ 36 libLLVMX86Disassembler \ 37 libLLVMAsmPrinter \ 38 libLLVMTarget \ 39 libLLVMMC \ 40 libLLVMObject \ 41 libLLVMBitReader \ 42 libLLVMMCParser \ 43 libLLVMCore \ 44 libLLVMAsmParser \ 45 libLLVMSupport \ 46 libLLVMMCDisassembler \ 47 48 include $(CLEAR_VARS) 49 50 LOCAL_MODULE := llvm-mc 51 LOCAL_MODULE_TAGS := optional 52 LOCAL_MODULE_CLASS := EXECUTABLES 53 LOCAL_IS_HOST_MODULE := true 54 55 LOCAL_SRC_FILES := $(llvm_mc_SRC_FILES) 56 57 LOCAL_STATIC_LIBRARIES := $(llvm_mc_STATIC_LIBRARIES) 58 59 LOCAL_LDLIBS += -lpthread -lm -ldl 60 61 include $(LLVM_ROOT_PATH)/llvm.mk 62 include $(LLVM_HOST_BUILD_MK) 63 include $(LLVM_GEN_INTRINSICS_MK) 64 include $(BUILD_HOST_EXECUTABLE) 65