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