Home | History | Annotate | Download | only in llvm-objdump
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 LLVM_ROOT_PATH := $(LOCAL_PATH)/../..
      4 
      5 
      6 #===---------------------------------------------------------------===
      7 # llvm-objdump command line tool
      8 #===---------------------------------------------------------------===
      9 
     10 llvm_objdump_SRC_FILES := \
     11   llvm-objdump.cpp \
     12   COFFDump.cpp \
     13   ELFDump.cpp \
     14   MachODump.cpp \
     15 
     16 llvm_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 
     56 include $(CLEAR_VARS)
     57 
     58 LOCAL_MODULE := llvm-objdump
     59 LOCAL_MODULE_TAGS := optional
     60 LOCAL_MODULE_CLASS := EXECUTABLES
     61 LOCAL_IS_HOST_MODULE := true
     62 
     63 LOCAL_SRC_FILES := $(llvm_objdump_SRC_FILES)
     64 
     65 LOCAL_STATIC_LIBRARIES := $(llvm_objdump_STATIC_LIBRARIES)
     66 
     67 LOCAL_LDLIBS += -lpthread -lm -ldl
     68 
     69 include $(LLVM_ROOT_PATH)/llvm.mk
     70 include $(LLVM_HOST_BUILD_MK)
     71 include $(LLVM_GEN_INTRINSICS_MK)
     72 include $(BUILD_HOST_EXECUTABLE)
     73