1 LOCAL_PATH := $(call my-dir) 2 3 LLVM_ROOT_PATH := $(LOCAL_PATH)/../.. 4 5 6 #===---------------------------------------------------------------=== 7 # llvm-extract command line tool 8 #===---------------------------------------------------------------=== 9 10 llvm_extract_SRC_FILES := \ 11 llvm-extract.cpp 12 13 llvm_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 26 include $(CLEAR_VARS) 27 28 LOCAL_MODULE := llvm-extract 29 LOCAL_MODULE_TAGS := optional 30 LOCAL_MODULE_CLASS := EXECUTABLES 31 LOCAL_IS_HOST_MODULE := true 32 33 LOCAL_SRC_FILES := $(llvm_extract_SRC_FILES) 34 35 LOCAL_STATIC_LIBRARIES := $(llvm_extract_STATIC_LIBRARIES) 36 37 LOCAL_LDLIBS += -lpthread -lm -ldl 38 39 include $(LLVM_ROOT_PATH)/llvm.mk 40 include $(LLVM_HOST_BUILD_MK) 41 include $(LLVM_GEN_ATTRIBUTES_MK) 42 include $(LLVM_GEN_INTRINSICS_MK) 43 include $(BUILD_HOST_EXECUTABLE) 44