Home | History | Annotate | Download | only in macho-dump
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 LLVM_ROOT_PATH := $(LOCAL_PATH)/../..
      4 
      5 
      6 #===---------------------------------------------------------------===
      7 # macho-dump command line tool
      8 #===---------------------------------------------------------------===
      9 
     10 macho_dump_SRC_FILES := \
     11   macho-dump.cpp
     12 
     13 macho_dump_STATIC_LIBRARIES := \
     14   libLLVMObject                \
     15   libLLVMMC                    \
     16   libLLVMMCParser              \
     17   libLLVMBitReader             \
     18   libLLVMCore                  \
     19   libLLVMSupport               \
     20 
     21 include $(CLEAR_VARS)
     22 
     23 LOCAL_MODULE := macho-dump
     24 LOCAL_MODULE_TAGS := optional
     25 LOCAL_MODULE_CLASS := EXECUTABLES
     26 LOCAL_IS_HOST_MODULE := true
     27 
     28 LOCAL_SRC_FILES := $(macho_dump_SRC_FILES)
     29 
     30 LOCAL_STATIC_LIBRARIES := $(macho_dump_STATIC_LIBRARIES)
     31 
     32 LOCAL_LDLIBS += -lpthread -lm -ldl
     33 
     34 include $(LLVM_ROOT_PATH)/llvm.mk
     35 include $(LLVM_HOST_BUILD_MK)
     36 include $(LLVM_GEN_INTRINSICS_MK)
     37 include $(BUILD_HOST_EXECUTABLE)
     38