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