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