1LOCAL_PATH := $(call my-dir) 2 3LLVM_ROOT_PATH := $(LOCAL_PATH)/../.. 4 5 6#===---------------------------------------------------------------=== 7# llvm-lto command line tool 8#===---------------------------------------------------------------=== 9 10llvm_lto_SRC_FILES := \ 11 llvm-lto.cpp 12 13llvm_lto_STATIC_LIBRARIES := \ 14 libLLVMARMCodeGen \ 15 libLLVMARMInfo \ 16 libLLVMARMDesc \ 17 libLLVMARMAsmPrinter \ 18 libLLVMARMAsmParser \ 19 libLLVMARMDisassembler \ 20 libLLVMAArch64CodeGen \ 21 libLLVMAArch64Info \ 22 libLLVMAArch64AsmParser \ 23 libLLVMAArch64AsmPrinter \ 24 libLLVMAArch64Desc \ 25 libLLVMAArch64Utils \ 26 libLLVMAArch64Disassembler \ 27 libLLVMMipsCodeGen \ 28 libLLVMMipsInfo \ 29 libLLVMMipsDesc \ 30 libLLVMMipsAsmPrinter \ 31 libLLVMMipsAsmParser \ 32 libLLVMMipsDisassembler \ 33 libLLVMX86CodeGen \ 34 libLLVMX86Info \ 35 libLLVMX86Desc \ 36 libLLVMX86AsmPrinter \ 37 libLLVMX86AsmParser \ 38 libLLVMX86Utils \ 39 libLLVMX86Disassembler \ 40 libLLVMAsmPrinter \ 41 libLLVMSelectionDAG \ 42 libLLVMCodeGen \ 43 libLLVMTarget \ 44 libLLVMLTO \ 45 libLLVMBitReader \ 46 libLLVMBitWriter \ 47 libLLVMLinker \ 48 libLLVMipo \ 49 libLLVMTransformObjCARC \ 50 libLLVMScalarOpts \ 51 libLLVMInstCombine \ 52 libLLVMVectorize \ 53 libLLVMTransformUtils \ 54 libLLVMAnalysis \ 55 libLLVMipa \ 56 libLLVMMC \ 57 libLLVMMCParser \ 58 libLLVMMCDisassembler \ 59 libLLVMObject \ 60 libLLVMCore \ 61 libLLVMAsmParser \ 62 libLLVMOption \ 63 libLLVMSupport \ 64 65include $(CLEAR_VARS) 66 67LOCAL_MODULE := llvm-lto 68LOCAL_MODULE_TAGS := optional 69LOCAL_MODULE_CLASS := EXECUTABLES 70LOCAL_IS_HOST_MODULE := true 71 72LOCAL_SRC_FILES := $(llvm_lto_SRC_FILES) 73 74LOCAL_STATIC_LIBRARIES := $(llvm_lto_STATIC_LIBRARIES) 75 76LOCAL_LDLIBS += -lpthread -lm -ldl 77 78include $(LLVM_ROOT_PATH)/llvm.mk 79include $(LLVM_HOST_BUILD_MK) 80include $(LLVM_GEN_INTRINSICS_MK) 81include $(BUILD_HOST_EXECUTABLE) 82