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