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