• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH := $(call my-dir)
2
3LLVM_ROOT_PATH := $(LOCAL_PATH)/../..
4
5
6#===---------------------------------------------------------------===
7# llvm-mc command line tool
8#===---------------------------------------------------------------===
9
10llvm_mc_SRC_FILES := \
11  llvm-mc.cpp \
12  Disassembler.cpp
13
14llvm_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
48include $(CLEAR_VARS)
49
50LOCAL_MODULE := llvm-mc
51LOCAL_MODULE_TAGS := optional
52LOCAL_MODULE_CLASS := EXECUTABLES
53LOCAL_IS_HOST_MODULE := true
54
55LOCAL_SRC_FILES := $(llvm_mc_SRC_FILES)
56
57LOCAL_STATIC_LIBRARIES := $(llvm_mc_STATIC_LIBRARIES)
58
59LOCAL_LDLIBS += -lpthread -lm -ldl
60
61include $(LLVM_ROOT_PATH)/llvm.mk
62include $(LLVM_HOST_BUILD_MK)
63include $(LLVM_GEN_INTRINSICS_MK)
64include $(BUILD_HOST_EXECUTABLE)
65