1LOCAL_PATH := $(call my-dir) 2 3LLVM_ROOT_PATH := $(LOCAL_PATH)/../.. 4 5 6#===---------------------------------------------------------------=== 7# llvm-ar command line tool 8#===---------------------------------------------------------------=== 9 10llvm_ar_SRC_FILES := \ 11 llvm-ar.cpp 12 13include $(CLEAR_VARS) 14 15LOCAL_MODULE := llvm-ar 16LOCAL_MODULE_TAGS := optional 17LOCAL_MODULE_CLASS := EXECUTABLES 18LOCAL_IS_HOST_MODULE := true 19 20LOCAL_SRC_FILES := $(llvm_ar_SRC_FILES) 21 22LOCAL_SHARED_LIBRARIES := libLLVM 23 24LOCAL_LDLIBS += -lpthread -lm -ldl 25 26# Create symlink llvm-lib and llvm-ranlib pointing to llvm-ar. 27# Use "=" (instead of ":=") to defer the evaluation. 28LOCAL_POST_INSTALL_CMD = $(hide) ln -sf llvm-ar $(dir $(LOCAL_INSTALLED_MODULE))llvm-lib \ 29 && ln -sf llvm-ar $(dir $(LOCAL_INSTALLED_MODULE))llvm-ranlib 30 31include $(LLVM_ROOT_PATH)/llvm.mk 32include $(LLVM_HOST_BUILD_MK) 33include $(LLVM_GEN_ATTRIBUTES_MK) 34include $(BUILD_HOST_EXECUTABLE) 35