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